• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_image函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_image函数的典型用法代码示例。如果您正苦于以下问题:PHP get_image函数的具体用法?PHP get_image怎么用?PHP get_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_image函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_image

function get_image()
{
    $id = rand(101, 585295);
    //id изображений на сайте начинаются со 101. 585295 далеко не последнее изображение, так что можно смело писать цифру побольше
    $url = "http://nuclear-wallpapers.ru.com/download.php?id=" . $id . "&width=1366&height=768";
    /*
    	$ch = curl_init($url);
    	curl_setopt($ch, CURLOPT_HEADER, 0);
    	$res = curl_exec($ch);
    	curl_close($ch);
    */
    $img = "http://white-wallpapers.ru/image/" . $id . "-1366-768-nuclear-wallpapers.ru.com.jpg";
    /*
     *Эту проверку делал для себя, на случай отсутствия интернета..
     */
    $check = get_headers($url);
    if ($check[0] !== 'HTTP/1.1 200 OK') {
        //проверяем, нормальный ли заголовок нам возвращается
        $dir = opendir('/mnt/trash/dl/wllpprs/');
        while (false !== ($file = readdir($dir))) {
            $images[] = $file;
        }
        shuffle($images);
        $img = '/mnt/trash/dl/wllpprs/' . $images[0];
        copy($img, '/home/nikolay/walls/wall.jpg');
    } else {
        if (!getimagesize($img)) {
            //бывает, что попадается битое изображение, так что проверяется его размер
            get_image();
        } else {
            copy('/home/nikolay/walls/wall.jpg', '/home/nikolay/walls/old_wall.jpg');
            copy($img, '/home/nikolay/walls/wall.jpg');
        }
    }
}
开发者ID:AweKyle,项目名称:image_downloader,代码行数:35,代码来源:imgloader.php


示例2: get_list_view_data

 function get_list_view_data()
 {
     $data = parent::get_list_view_data();
     $delete = '';
     $group_owner = false;
     $securitygroup_name = "";
     if (empty($data['SECURITYGROUP_ID'])) {
         $securitygroup_name = "All";
     } else {
         require_once 'modules/SecurityGroups/SecurityGroup.php';
         $securitygroup = new SecurityGroup();
         $securitygroup->retrieve($data['SECURITYGROUP_ID']);
         $securitygroup_name = $securitygroup->name;
         if ($securitygroup->assigned_user_id == $GLOBALS['current_user']->id) {
             $group_owner = true;
         }
     }
     if (is_admin($GLOBALS['current_user']) || $data['CREATED_BY'] == $GLOBALS['current_user']->id || $group_owner) {
         $delete = get_image($GLOBALS['image_path'] . '/delete_inline', 'width="12" height="12" border="0" align="absmiddle" style="vertical-align: bottom;" onclick=\'Message.deleteMessage("' . $data['ID'] . '", "{this.id}")\'');
     }
     $username = "";
     if (empty($data['CREATED_BY'])) {
         $username = "Unknown";
     } else {
         require_once 'modules/Users/User.php';
         $user = new User();
         $user->retrieve($data['CREATED_BY']);
         $username = $user->user_name;
     }
     $data['NAME'] = $data['DESCRIPTION'];
     $data['NAME'] = '<div class="list view" style="padding:5px;border:none;">' . html_entity_decode($data['NAME']);
     $data['NAME'] .= '<div class="byLineBox" style="padding-top: 2px"><span class="byLineLeft">' . $username . ' [' . $securitygroup_name . ']';
     $data['NAME'] .= '&nbsp;</span><span style="cursor: pointer;" class="byLineRight"> ' . $this->getTimeLapse($data['DATE_ENTERED']) . ' &nbsp;' . $delete . '</span></div>';
     return $data;
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:35,代码来源:SecurityGroupMessage.php


示例3: display

 function display()
 {
     global $current_language;
     if (empty($this->container_id)) {
         $child_reports = ReportContainer::get_root_reports();
     } else {
         $container = new ReportContainer();
         $container->retrieve($this->container_id);
         $child_reports = $container->get_linked_beans("reports", "ZuckerReport");
     }
     $mod_strings = return_module_language($current_language, "ZuckerReports");
     require_once 'include/ListView/ListView.php';
     $lv = new ListView();
     $lv->initNewXTemplate('modules/ZuckerReportContainer/DetailView.html', $mod_strings);
     $lv->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path . 'delete_inline.png', 'align="absmiddle" alt="' . $app_strings['LNK_DELETE'] . '" border="0"'));
     $lv->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path . 'edit_inline.png', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
     $lv->xTemplateAssign("RETURN_URL", "&return_module=ZuckerReportContainer&return_action=DetailView&return_id=" . $container->id);
     $lv->setHeaderTitle("");
     $lv->setHeaderText("");
     ob_start();
     $lv->processListViewTwo($child_reports, "reports", "REPORT");
     $str = ob_get_clean();
     ob_end_flush();
     return parent::display() . $str;
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:25,代码来源:ZuckerReportContainerDashlet.php


示例4: get_edit_view

 function get_edit_view()
 {
     global $image_path;
     $view = $this->contents;
     $counter = 0;
     $fields = get_register_values('dyn_layout_fields');
     for ($i = 0; $i < sizeof($this->slots); $i++) {
         $slot = $this->slots[$i];
         $explode = explode($slot[0], $view, 2);
         $view = $explode[0];
         if ($i > 0 && $i < sizeof($this->slots) / 2) {
             $view .= "<a href='#' onclick='add_col_to_view({$counter})' >" . get_image($image_path . "plus_inline", "border='0' alt='Add Column ->'") . "</a><a href='#' onclick='delete_col_from_view({$counter})' >" . get_image($image_path . "minus_inline", "border='0' alt='<- Delete Column '") . "</a></td><td  class='listViewThS1'>";
         } else {
             if ($i > 0 && $i > sizeof($this->slots) / 2) {
                 $view .= "</td><td >";
             }
         }
         $view .= $slot[1] . "</div>" . $explode[1];
         if ($fields) {
             foreach ($fields as $field => $field_code) {
                 if (trim($slot[1]) == trim($field_code[1]) || preg_match("'name[\\ ]*=[\\ ]*([\\'\"])" . $field_code[0] . "\\1'si", $slot[1])) {
                     $this->remove_from_add_fields($field);
                 }
             }
         }
         $this->add_to_form($counter);
         $counter++;
     }
     return $view;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:30,代码来源:SubPanelColParser.php


示例5: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     global $current_language, $theme;
     $mod_strings = return_module_language($current_language, "ZuckerWordTemplate");
     if (!empty($this->filename)) {
         $this->template_url = $this->get_resources_dir() . $this->filename;
         $this->extension = substr($this->filename, strrpos($this->filename, ".") + 1);
     }
     $this->action_module = $this->module_dir;
     $seed = new QueryTemplate();
     $this->querytemplate = $seed->retrieve($this->querytemplate_id);
     if (empty($this->querytemplate)) {
         $seed = new ListingTemplate();
         $this->querytemplate = $seed->retrieve($this->querytemplate_id);
     }
     if (!empty($this->querytemplate)) {
         $this->querytemplate_name = $this->querytemplate->name;
         $this->querytemplate_link = "index.php?module=" . $this->querytemplate->module_dir . "&action=DetailView&record=" . $this->querytemplate->id;
     }
     if ($this->extension == "stw" || $this->extension == "odt") {
         $this->type_desc = $mod_strings["LBL_OPENOFFICE"];
         $this->image_html = get_image("themes/" . $theme . "/images/ZuckerOpenOfficeTemplate", "alt=\"ZuckerOpenOfficeTemplate\"");
         $this->image_module = "ZuckerOpenOfficeTemplate";
     } else {
         if ($this->extension == "doc") {
             $this->type_desc = $mod_strings["LBL_WORD"];
             $this->image_html = get_image("themes/" . $theme . "/images/ZuckerWordTemplate", "alt=\"ZuckerWordTemplate\"");
             $this->image_module = "ZuckerWordTemplate";
         }
     }
     $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
     $this->team_name = SimpleTeams::get_assigned_team_name($this);
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:33,代码来源:WordTemplate.php


示例6: remove_image

function remove_image($connection, $id)
{
    remove_image_file(get_image($connection, $id));
    $delete_image_by_id_stmt = delete_image_by_id_stmt($connection);
    $delete_image_by_id_stmt->bind_param("i", $id);
    catch_execution_error($delete_image_by_id_stmt->execute(), $connection);
}
开发者ID:BourbonWarfare,项目名称:BWWebApplication,代码行数:7,代码来源:delete_service.php


示例7: displayList

 function displayList(&$layout_def)
 {
     global $app_strings;
     global $image_path;
     $parent_record_id = $_REQUEST['record'];
     $parent_module = $_REQUEST['module'];
     $action = 'UpDown';
     $record = $layout_def['fields']['ID'];
     $current_module = $layout_def['module'];
     $return_module = $_REQUEST['module'];
     //$return_action = 'SubPanelViewer';
     $subpanel = $layout_def['subpanel_id'];
     $return_id = $_REQUEST['record'];
     if (isset($layout_def['linked_field_set']) && !empty($layout_def['linked_field_set'])) {
         $linked_field = $layout_def['linked_field_set'];
     } else {
         $linked_field = $layout_def['linked_field'];
     }
     $refresh_page = 0;
     if (!empty($layout_def['refresh_page'])) {
         $refresh_page = 1;
     }
     $return_url = "index.php?module={$return_module}&action={$return_action}&subpanel={$subpanel}&record={$return_id}&sugar_body_only=1&inline=1";
     // $icon_up_text = $app_strings['LNK_REMOVE'];
     $icon_down_html = get_image($image_path . 'downarrow_inline', 'align="absmiddle" alt="' . $icon_remove_text . '" border="0"');
     $icon_up_html = get_image($image_path . 'uparrow_inline', 'align="absmiddle" alt="' . $icon_remove_text . '" border="0"');
     //based on listview since that lets you select records
     if ($layout_def['ListView'] && !$hideremove) {
         $linkUp = "<a href=\"javascript:upDown('{$subpanel}', 'up', '{$record}', {$refresh_page});\"" . " class=\"listViewTdToolsS1\">{$icon_up_html}</a>";
         $linkDown = "<a href=\"javascript:upDown('{$subpanel}', 'down', '{$record}', {$refresh_page});\"" . " class=\"listViewTdToolsS1\">{$icon_down_html}</a>";
         return $linkUp . '&nbsp;' . $linkDown;
     } else {
         return '';
     }
 }
开发者ID:pixprod,项目名称:Regoluna-Invoices-for-SugarCRM,代码行数:35,代码来源:SugarWidgetSubPanelUpDownButton.php


示例8: prepSlots

 function prepSlots()
 {
     $this->parseCols($this->curText);
     global $image_path;
     $view = $this->curText;
     $counter = 0;
     $midpoint = floor(count($this->cols)) / 2 - 2;
     foreach ($this->cols as $col) {
         $explode = explode($col[0], $view, 2);
         if ($this->positionCount($col[0]) > 0 && $this->rowCount($col[2] . '</tr>') == 0) {
             if ($counter <= $midpoint) {
                 $view = $explode[0] . "<td class='tabDetailViewDF' nowrap><a href='javascript:void(0);' onclick='addNewColToView(\"studiocol{$counter}\", {$counter})' >" . get_image($image_path . "plus_inline", "border='0' alt='Add Row'") . "</a>&nbsp;<a href='javascript:void(0);' onclick='deleteColFromView(\"studiocol{$counter}\", {$counter})' >" . get_image($image_path . "minus_inline", "border='0' alt='Remove col'") . "</a></td>";
                 $view .= $col[1] . " id='studiocol{$counter}' >";
             } else {
                 $view = $explode[0] . '<td>&nbsp;</td>' . $col[1] . " id='studiocol{$counter}b' >";
             }
             $view .= $col[2] . $col[3] . $explode[1];
             $this->addSlotToForm($counter);
             $counter++;
         } else {
             $view = $explode[0] . $col[0] . $explode[1];
         }
     }
     $this->slotCount = $counter;
     return $view;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:26,代码来源:SubpanelColParser.php


示例9: pd_is_archived

function pd_is_archived($post_id, $field = NULL)
{
    // check if there are any custom fields
    $meta = get_post_custom($post_id);
    if ($meta) {
        if (isset($meta['_cp_id'])) {
            $meta['_cp_id'] = get_cp_id($meta['_cp_id']);
        }
        if (isset($meta['_author'])) {
            $meta['_author'] = get_author($meta['_author']);
        }
        if (isset($meta['_author_position'])) {
            $meta['_author_position'] = get_author_position($meta['_author_position']);
        }
        if (isset($meta['_image1'])) {
            $meta['_image1'] = get_image($meta['_image1']);
        }
        if (isset($meta['_legacy_id'])) {
            $meta['_legacy_id'] = get_legacy_id($meta['_legacy_id']);
        }
        if ($field == '_image1') {
            return $meta['_image1'];
        }
        if ($field == '_author') {
            if (isset($meta['_author'])) {
                return $meta['_author'];
            }
            return false;
        }
        return $meta;
    }
    // the article is not from the archives
    return false;
}
开发者ID:wsander3,项目名称:Pipe-Dream,代码行数:34,代码来源:is-archived.php


示例10: display_counting_problem

function display_counting_problem($argument1)
{
    $img = get_image('+');
    $randimg = $img[rand(0, count($img) - 1)];
    if ($randimg == '') {
        $randimg = 'blank.gif';
    }
    echo "<table width=440px border=0 valign=top cellpadding=0 cellspacing=0>\n\t<tr valign=top>";
    echo "<td > ";
    if ($argument1 == 0) {
        echo "<img src='img/blank.gif'>";
    }
    for ($i = 0; $i < $argument1; $i++) {
        echo "<img src='img/add/{$randimg}' >";
        if ($argument1 < 20) {
            if ($i !== 0 && ($i + 1) % 5 == 0) {
                echo "<br/>";
            }
        } else {
            if ($i !== 0 && ($i + 1) % 10 == 0) {
                echo "<br/>";
            }
        }
    }
    echo "</td>";
    echo "</tr><tr><td><input type=hidden name=argument1 value={$argument1}>How Manay ? <input type=text name='result' value='' size='5'> </td></tr></table><input type=submit value='submit'>";
}
开发者ID:ebrowne7,项目名称:MyMathSkilz,代码行数:27,代码来源:counting.php


示例11: testGetImageFunctionWithAllParameters

 public function testGetImageFunctionWithAllParameters()
 {
     try {
         $this->assertNotNull(get_image("select", '', null, null, ".gif", "test alt text"));
     } catch (Exception $e) {
         $this->fail('Call to get_image function with all parameters causes exception:  ' . $e->getMessage());
     }
 }
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:8,代码来源:Bug50285Test.php


示例12: thumbnail_tag

function thumbnail_tag($img, $size, $resize = null, $classes = '')
{
    $img = get_image($img);
    if (null == $resize) {
        $resize = $size;
    }
    $img_url = thumbnail_url($img, $size);
    return "<img class='" . $classes . "' itemprop='image' src='" . $img_url . "' alt='thumbail of " . $img['image_name'] . "' width='" . $resize . "' height='" . $resize . "' title='" . $img['image_name'] . "'/>";
}
开发者ID:toni-leigh,项目名称:shlinks,代码行数:9,代码来源:image_helper.php


示例13: getInfo

 public function getInfo()
 {
     $link = "http://www.pbase.com/wongtsushi/image/80484674&exif=Y";
     $link = "http://www.pbase.com/ingotkfr/image/132082042";
     $link = "http://www.pbase.com/ingotkfr/image/93124337";
     $link = "http://www.pbase.com/wongtsushi/image/80273259";
     //$url = "http://www.pbase.com/ingotkfr/image/102977507&exif=Y";
     $url = $link . "&exif=Y";
     $data = array();
     $ele = explode("/", $url);
     $data['author'] = $ele[3];
     $data['url_context'] = $link;
     $data['url_md5'] = md5($data['url_context']);
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_PROXY, 'proxy.int.world.socgen:8080');
     curl_setopt($ch, CURLOPT_PROXYUSERPWD, "aurelien.lequoy:Zeb33tln1\$");
     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0");
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ch, CURLOPT_URL, $url);
     $content = curl_exec($ch);
     curl_close($ch);
     $tab = Grabber::getTagContent($content, '<table width=0 border=0 align="center" class="imagetable">', true);
     $img = Grabber::getTagContent($tab, '<IMG');
     $elem = explode('"', $img);
     $data['url_found'] = $elem[3];
     $img_name = pathinfo($data['url_found']);
     $data['name'] = $img_name['basename'];
     get_image($data['url_found'], $data['name']);
     $info = getimagesize($data['name']);
     $data['width'] = $info[0];
     $data['height'] = $info[1];
     $data['md5'] = md5_file($data['name']);
     $title = Grabber::getTagContent($content, '<h3 class="title"', true);
     $data['title'] = trim(strip_tags($title));
     $location = Grabber::getTagContent($content, '<h3 class="location"', true);
     $data['location'] = trim(strip_tags($location));
     $legend = Grabber::getTagContent($content, '<div id="imagecaption" class="imagecaption">', true);
     $data['legend'] = trim(strip_tags($legend));
     $exif = Grabber::getTagContent($content, '<div id="techinfo" class="techinfo">', true);
     $camera = Grabber::getTagContent($exif, '<span class="camera">', true);
     $data['camera'] = trim(strip_tags($camera));
     $data_exif = Grabber::getTagContents($exif, '<tr', true);
     $hh = array();
     foreach ($data_exif as $line) {
         $dd = Grabber::getTagContents($line, '<td class=lid', true);
         if ($dd == false) {
             continue;
         }
         $hh[$dd[0]] = $dd[1];
     }
     $data['exif'] = $hh;
     echo "<pre>";
     print_r($data);
     echo "</pre>";
 }
开发者ID:glial,项目名称:glial,代码行数:55,代码来源:Pbase.php


示例14: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     global $current_language, $theme;
     $mod_strings = return_module_language($current_language, "ZuckerQueryTemplate");
     $this->action_module = $this->module_dir;
     $this->type_desc = $mod_strings["LBL_QUERY"];
     $this->image_html = get_image("themes/" . $theme . "/images/ZuckerQueryTemplate", "alt=\"ZuckerQueryTemplate\"");
     $this->image_module = "ZuckerQueryTemplate";
     $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
     $this->team_name = SimpleTeams::get_assigned_team_name($this);
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:11,代码来源:QueryTemplate.php


示例15: displayList

 function displayList(&$layout_def)
 {
     global $app_strings;
     global $image_path;
     $edit_icon_html = get_image($image_path . 'edit_inline', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"');
     if ($layout_def['EditView']) {
         return "<a href='#' onClick=\"javascript:quickEditItem('" . $layout_def['fields']['ID'] . "');\"" . ' class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_EDIT'] . '</a>&nbsp;';
     } else {
         return '';
     }
 }
开发者ID:pixprod,项目名称:Regoluna-Invoices-for-SugarCRM,代码行数:11,代码来源:SugarWidgetSubPanelQuickItem.php


示例16: displayList

 function displayList(&$layout_def)
 {
     global $app_strings;
     global $image_path;
     $parent_record_id = $_REQUEST['record'];
     $parent_module = $_REQUEST['module'];
     $action = 'DeleteRelationship';
     $record = $layout_def['fields']['ID'];
     $return_module = $_REQUEST['module'];
     $return_action = 'SubPanelViewer';
     $subpanel = $layout_def['subpanel_id'];
     $return_id = $_REQUEST['record'];
     if ($return_module == 'Calls') {
         require_once 'modules/Calls/Call.php';
         $focus = new Call();
     } else {
         if ($return_module == 'Meetings') {
             require_once 'modules/Meetings/Meeting.php';
             $focus = new Meeting();
         } else {
             if ($return_module == 'MySettings') {
                 global $beanList, $beanFiles;
                 $return_module = $_REQUEST['loadModule'];
                 $class = $beanList[$return_module];
                 require_once $beanFiles[$class];
                 $focus = new $class();
             }
         }
     }
     $focus->retrieve($return_id);
     if ($focus->assigned_user_id == $record) {
         return '';
     }
     if (isset($layout_def['linked_field_set']) && !empty($layout_def['linked_field_set'])) {
         $linked_field = $layout_def['linked_field_set'];
     } else {
         $linked_field = $layout_def['linked_field'];
     }
     $refresh_page = 0;
     if (!empty($layout_def['refresh_page'])) {
         $refresh_page = 1;
     }
     $return_url = "index.php?module={$return_module}&action={$return_action}&subpanel={$subpanel}&record={$return_id}&sugar_body_only=1";
     $icon_remove_text = $app_strings['LNK_REMOVE'];
     $icon_remove_html = get_image($image_path . 'delete_inline', 'align="absmiddle" alt="' . $icon_remove_text . '" border="0"');
     $remove_url = $layout_def['start_link_wrapper'] . "index.php?module={$parent_module}" . "&action={$action}" . "&record={$parent_record_id}" . "&linked_field={$linked_field}" . "&linked_id={$record}" . "&return_url=" . urlencode(urlencode($return_url)) . "&refresh_page={$refresh_page}" . $layout_def['end_link_wrapper'];
     $remove_confirmation_text = $app_strings['NTC_REMOVE_CONFIRMATION'];
     //based on listview since that lets you select records
     if ($layout_def['ListView']) {
         return '<a href="' . $remove_url . '"' . ' class="listViewTdToolsS1"' . " onclick=\"return confirm('{$remove_confirmation_text}');\"" . ">{$icon_remove_html}&nbsp;{$icon_remove_text}</a>";
     } else {
         return '';
     }
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:54,代码来源:SugarWidgetSubPanelRemoveButtonMeetings.php


示例17: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     global $current_language, $theme;
     global $png_support;
     $mod_strings = return_module_language($current_language, "ZuckerListingTemplate");
     $this->action_module = $this->module_dir;
     $this->type_desc = $mod_strings["LBL_LISTING"];
     $this->image_html = get_image("themes/" . $theme . "/images/" . $this->mainmodule, $this->mainmodule);
     $this->image_module = $this->mainmodule;
     $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
     $this->team_name = SimpleTeams::get_assigned_team_name($this);
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:12,代码来源:ListingTemplate.php


示例18: displayList

 function displayList(&$layout_def)
 {
     global $app_strings;
     global $image_path;
     $href = 'index.php?module=' . 'Documents' . '&action=' . 'EditView' . '&record=' . $layout_def['fields']['ID'] . '&return_module=' . $_REQUEST['module'] . '&return_action=' . 'DetailView' . '&return_id=' . $_REQUEST['record'] . '&load_signed_id=' . $layout_def['fields']['LINKED_ID'] . '&parent_id=' . $_REQUEST['record'] . '&parent_name=' . $layout_def['fields']['CONTRACT_NAME'] . '&parent_type=' . $_REQUEST['module'] . '&selected_revision_id=' . $layout_def['fields']['SELECTED_REVISION_ID'];
     $edit_icon_html = get_image($image_path . 'loadSignedDocument', 'align="absmiddle" alt="' . $app_strings['LNK_LOAD_SIGNED'] . '" border="0"');
     //if the contract state is executed or document is not a template hide this action.
     if (!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS'] == 'executed' or empty($layout_def['fields']['IS_TEMPLATE']) or $layout_def['fields']['IS_TEMPLATE'] == 0) {
         return "";
     }
     return '<a href="' . $href . '"' . "title ='" . $app_strings['LNK_LOAD_SIGNED_TOOLTIP'] . "'" . 'class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_LOAD_SIGNED'] . '</a>&nbsp;';
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:12,代码来源:SugarWidgetSubPanelLoadSignedButton.php


示例19: displayList

 function displayList(&$layout_def)
 {
     global $app_strings;
     global $image_path;
     $href = 'index.php?module=' . $layout_def['module'] . '&action=' . 'EditView' . '&record=' . $layout_def['fields']['ID'] . '&return_module=' . $_REQUEST['module'] . '&return_action=' . 'DetailView' . '&return_id=' . $_REQUEST['record'];
     $edit_icon_html = get_image($image_path . 'edit_inline', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"');
     if ($layout_def['EditView']) {
         return '<a href="' . $href . '"' . 'class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_EDIT'] . '</a>&nbsp;';
     } else {
         return '';
     }
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:12,代码来源:SugarWidgetSubPanelEditButton.php


示例20: get_edit_view

 function get_edit_view()
 {
     global $image_path;
     $view = $this->contents;
     $counter = 0;
     $module_name = $_SESSION['dyn_layout_module'];
     foreach ($this->slots as $slot) {
         $explode = explode($slot[0], $view, 2);
         $view = $explode[0] . "<a href='#' onclick='window.frames[\"labeleditor\"].document.location=\"index.php?module=LabelEditor&action=EditView&style=popup&sugar_body_only=1&refresh_parent=1&module_name={$module_name}&record=" . $slot[1] . "\"'>" . get_image($image_path . 'edit_inline', 'border="0" align="absmiddle"') . "</a>&nbsp;<a href='#' onclick='window.frames[\"labeleditor\"].document.location=\"index.php?module=LabelEditor&action=EditView&style=popup&sugar_body_only=1&refresh_parent=1&module_name={$module_name}&record=" . $slot[1] . "\"'>" . $slot[0] . "</a>" . $explode[1];
         $counter++;
     }
     return $view;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:13,代码来源:LabelParser.php



注:本文中的get_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_image_by_imageid函数代码示例发布时间:2022-05-15
下一篇:
PHP get_ids函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap