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

PHP html_image函数代码示例

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

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



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

示例1: parse

 public function parse($value)
 {
     $images = is_array($value) ? $value : cmsModel::yamlToArray($value);
     $html = '';
     $small_preset = false;
     $a_class = '';
     foreach ($images as $key => $paths) {
         if (!isset($paths[$this->getOption('size_full')])) {
             continue;
         }
         $title = empty($this->item['title']) ? $this->name : $this->item['title'];
         if ($this->getOption('first_image_emphasize') && !$small_preset) {
             $small_preset = $this->getOption('size_full');
             $a_class = 'first_type_images';
         } else {
             $small_preset = $this->getOption('size_small');
             $a_class = 'second_type_images';
         }
         if (!empty($paths['original']) && strtolower(pathinfo($paths['original'], PATHINFO_EXTENSION)) === 'gif') {
             $html .= html_gif_image($paths, 'small', $title . ' ' . $key, array('class' => 'img-' . $this->getName()));
         } else {
             $html .= '<a title="' . htmlspecialchars($title) . '" class="img-' . $this->getName() . ' ' . $a_class . '" href="' . html_image_src($paths, $this->getOption('size_full'), true) . '">' . html_image($paths, $small_preset, $title . ' ' . $key) . '</a>';
         }
     }
     if ($html) {
         $html .= '<script>$(function() { icms.modal.bindGallery(".img-' . $this->getName() . '"); });</script>';
     }
     return $html;
 }
开发者ID:Val-Git,项目名称:icms2,代码行数:29,代码来源:images.php


示例2: printnode

function printnode($nodeid, $text, $delete_ok = false)
{
    global $Language;
    // print current node, then all subnodes
    print '<BR>';
    for ($i = 0; $i < $GLOBALS['depth']; $i++) {
        print "&nbsp; &nbsp; ";
    }
    html_image('ic/cfolder15.png', array());
    print '&nbsp; ' . $text . " ";
    if ($nodeid != 0) {
        print '&nbsp; <A href="trove_cat_edit.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'edit') . ']</A> ';
    }
    if ($delete_ok) {
        print '&nbsp; <A href="trove_cat_delete.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'delete') . ']</A> ';
    }
    if ($nodeid != 0) {
        print '&nbsp;' . help_button('trove_cat', $nodeid) . "\n";
    }
    $GLOBALS["depth"]++;
    $res_child = db_query("SELECT trove_cat_id,fullname,parent FROM trove_cat " . "WHERE parent='{$nodeid}' ORDER BY fullpath");
    while ($row_child = db_fetch_array($res_child)) {
        $delete_ok = $row_child["parent"] != 0;
        printnode($row_child["trove_cat_id"], $row_child["fullname"], $delete_ok);
    }
    $GLOBALS["depth"]--;
}
开发者ID:nterray,项目名称:tuleap,代码行数:27,代码来源:trove_cat_list.php


示例3: printnode

function printnode($nodeid, $text, $depth = 0, $delete_ok = false)
{
    global $Language;
    $purifier = Codendi_HTMLPurifier::instance();
    // print current node, then all subnodes
    print '<BR>';
    for ($i = 0; $i < $depth; $i++) {
        print "&nbsp; &nbsp; ";
    }
    html_image('ic/cfolder15.png', array());
    print '&nbsp; ' . $purifier->purify($text) . " ";
    if ($nodeid != 0) {
        print '&nbsp; <A href="trove_cat_edit.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'edit') . ']</A> ';
    }
    if ($delete_ok) {
        print '&nbsp; <A href="trove_cat_delete.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'delete') . ']</A> ';
    }
    if ($nodeid != 0) {
        print '&nbsp;' . help_button('trove_cat', $nodeid) . "\n";
    }
    $res_child = db_query("SELECT trove_cat_id,fullname,parent FROM trove_cat " . "WHERE parent='" . db_ei($nodeid) . "' ORDER BY fullpath");
    while ($row_child = db_fetch_array($res_child)) {
        $delete_ok = $row_child["parent"] != 0;
        printnode($row_child["trove_cat_id"], $row_child["fullname"], $depth + 1, $delete_ok);
    }
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:26,代码来源:trove_cat_list.php


示例4: PrintAdminMessageOptions

 /**
  *  PrintAdminMessageOptions - prints the different administrator options for a message
  *
  *	@param   integer	The Message ID
  *	@param   integer	The Group ID
  *	@param   integer	The Thread ID : to return to the message if the user cancels (forumhtml only, not message.php)
  *	@param   integer	The Forum ID : to return to the message if the user cancels (forumhtml only, not message.php)
  *	@return  The HTML output
  */
 function PrintAdminMessageOptions($msg_id, $group_id, $thread_id = 0, $forum_id = 0)
 {
     global $HTML;
     $return = '<a href="admin/index.php?editmsg=' . $msg_id . '&group_id=' . $group_id . '&thread_id=' . $thread_id . '&forum_id=' . $forum_id . '">' . html_image('ic/forum_edit.gif', '37', '15', array('alt' => "Edit")) . "</a>";
     $return .= '    <a href="admin/index.php?deletemsg=' . $msg_id . '&group_id=' . $group_id . '&thread_id=' . $thread_id . '&forum_id=' . $forum_id . '">' . html_image('ic/forum_delete.gif', '16', '18', array('alt' => "Delete")) . "</a>";
     $return .= "<br>";
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:17,代码来源:ForumAdmin.class.php


示例5: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td width="40%"><a href="' . util_make_url_u(db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'user_name') . '</a></td>' . '<td width="60%">' . db_result($result, $i, 'realname') . '</td>' . '</tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:15,代码来源:PeopleHtmlSearchRenderer.class.php


示例6: parse

 public function parse($value)
 {
     $paths = is_array($value) ? $value : cmsModel::yamlToArray($value);
     if (!$paths && $this->hasDefaultValue()) {
         $paths = $this->parseDefaultPaths();
     }
     if (!$paths || !isset($paths[$this->getOption('size_full')])) {
         return '';
     }
     return html_image($paths, $this->getOption('size_full'), empty($this->item['title']) ? $this->name : $this->item['title']);
 }
开发者ID:asphix,项目名称:icms2,代码行数:11,代码来源:image.php


示例7: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td width="50%"><a href="' . util_make_url('/forum/message.php?msg_id=' . db_result($result, $i, 'msg_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'subject') . '</a></td>' . '<td width="30%">' . db_result($result, $i, 'realname') . '</td>' . '<td width="20%">' . date($dateFormat, db_result($result, $i, 'post_date')) . '</td></tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:16,代码来源:ForumHtmlSearchRenderer.class.php


示例8: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $groupId = $this->groupId;
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td>' . db_result($result, $i, 'artifact_id') . '</td>' . '<td><a href="' . util_make_url('/tracker/?group_id=' . $groupId . '&amp;atid=' . db_result($result, $i, 'group_artifact_id') . '&amp;func=detail&aid=' . db_result($result, $i, 'artifact_id')) . '"> ' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'summary') . '</a></td>' . '<td>' . db_result($result, $i, 'realname') . "</td>" . '<td>' . date($dateFormat, db_result($result, $i, 'open_date')) . '</td></tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:17,代码来源:ArtifactHtmlSearchRenderer.class.php


示例9: parseTeaser

 public function parseTeaser($value)
 {
     $paths = is_array($value) ? $value : cmsModel::yamlToArray($value);
     if (!$paths && $this->hasDefaultValue()) {
         $paths = $this->parseDefaultPaths();
     }
     if (!$paths || !isset($paths[$this->getOption('size_teaser')])) {
         return '';
     }
     $url = $this->teaser_url ? $this->teaser_url : href_to($this->item['ctype']['name'], $this->item['slug'] . ".html");
     return '<a href="' . $url . '">' . html_image($paths, $this->getOption('size_teaser'), empty($this->item['title']) ? $this->name : $this->item['title']) . '</a>';
 }
开发者ID:Val-Git,项目名称:icms2,代码行数:12,代码来源:image.php


示例10: html_dbimage

function html_dbimage($id)
{
    if (!$id || $id == 100) {
        return '';
    }
    $sql = "SELECT width,height " . "FROM db_images WHERE id='{$id}'";
    $result = db_query($sql);
    $rows = db_numrows($result);
    if (!$result || $rows < 1) {
        return db_error();
    } else {
        return html_image('dbimage.php?id=' . $id, db_result($result, 0, 'width'), db_result($result, 0, 'height'), array());
    }
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:14,代码来源:html.php


示例11: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $return = '';
     for ($i = 0; $i < $rowsCount; $i++) {
         if (db_result($result, $i, 'type') == 2) {
             $what = 'foundry';
         } else {
             $what = 'projects';
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td width="30%"><a href="' . util_make_url('/' . $what . '/' . db_result($result, $i, 'unix_group_name') . '/') . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . $this->highlightTargetWords(db_result($result, $i, 'group_name')) . '</a></td>' . '<td width="70%">' . $this->highlightTargetWords(db_result($result, $i, 'short_description')) . '</td></tr>';
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:20,代码来源:ProjectHtmlSearchRenderer.class.php


示例12: parse

 public function parse($value)
 {
     $images = is_array($value) ? $value : cmsModel::yamlToArray($value);
     $html = '';
     foreach ($images as $key => $paths) {
         if (!isset($paths[$this->getOption('size_full')])) {
             continue;
         }
         $html .= '<a class="img-' . $this->getName() . '" href="' . html_image_src($paths, $this->getOption('size_full'), true) . '">' . html_image($paths, 'small', (empty($this->item['title']) ? $this->name : $this->item['title']) . ' ' . $key) . '</a>';
     }
     if ($html) {
         $html .= '<script>$(document).ready(function() { icms.modal.bindGallery(".img-' . $this->getName() . '"); });</script>';
     }
     return $html;
 }
开发者ID:asphix,项目名称:icms2,代码行数:15,代码来源:images.php


示例13: run

 public function run()
 {
     $ctypes = $this->model->getContentTypes();
     $sources = array_collection_to_list($ctypes, 'name', 'title');
     foreach ($sources as $name => $title) {
         $sources[$name] = $title;
     }
     // по каким полям поиск
     $match_fields = array();
     // какие поля получать
     $select_fields = array();
     // из каких таблиц выборка
     $table_names = array();
     // какие поля точно нужны
     $default_fields = array('id', 'slug', 'date_pub');
     foreach ($ctypes as $ctype) {
         $fields = $this->model->getContentFields($ctype['name']);
         $table_names[$ctype['name']] = $this->model->getContentTypeTableName($ctype['name']);
         $select_fields[$ctype['name']] = $default_fields;
         foreach ($fields as $field) {
             // индексы создаются только на поля типа caption, text, html
             // в настройках полей должно быть включено их участие в индексе
             $is_text = in_array($field['type'], array('caption', 'text', 'html')) && $field['handler']->getOption('in_fulltext_search');
             if ($is_text && !$field['is_private'] && (!$field['groups_read'] || $this->cms_user->isInGroups($field['groups_read']))) {
                 $match_fields[$ctype['name']][] = $field['name'];
                 $select_fields[$ctype['name']][] = $field['name'];
             }
             if ($field['type'] == 'image' && !$field['is_private'] && (!$field['groups_read'] || $this->cms_user->isInGroups($field['groups_read']))) {
                 $select_fields[$ctype['name']]['image'] = $field['name'];
             }
         }
         $filters[$ctype['name']] = array(array('condition' => '=', 'value' => 1, 'field' => 'is_pub'), array('condition' => '=', 'value' => 1, 'field' => 'is_approved'), array('condition' => 'IS', 'value' => NULL, 'field' => 'is_parent_hidden'));
         $_ctypes[$ctype['name']] = $ctype;
     }
     return array('name' => $this->name, 'sources' => $sources, 'table_names' => $table_names, 'match_fields' => $match_fields, 'select_fields' => $select_fields, 'filters' => $filters, 'item_callback' => function ($item, $model, $sources_name, $match_fields, $select_fields) use($_ctypes) {
         $fields = array();
         foreach ($match_fields as $match_field) {
             if ($match_field == 'title') {
                 continue;
             }
             $fields[$match_field] = $item[$match_field];
         }
         return array_merge($item, array('url' => href_to($sources_name, $item['slug'] . '.html'), 'ctype' => $_ctypes[$sources_name], 'title' => $item['title'], 'fields' => $fields, 'date_pub' => $item['date_pub'], 'image' => !empty($select_fields['image']) ? html_image($item[$select_fields['image']], 'small', strip_tags($item['title'])) : ''));
     });
 }
开发者ID:Val-Git,项目名称:icms2,代码行数:45,代码来源:fulltext_search.php


示例14: printnode

function printnode($nodeid, $text)
{
    // print current node, then all subnodes
    print '<BR>';
    for ($i = 0; $i < $GLOBALS[depth]; $i++) {
        print "&nbsp; &nbsp; ";
    }
    print html_image('images/ic/cfolder15.png', '15', '13', array());
    print '&nbsp; ' . $text . " ";
    print '<A href="trove_cat_edit.php?trove_cat_id=' . $nodeid . '">[Edit]</A> ';
    print help_button('trove_cat', $nodeid) . "\n";
    $GLOBALS["depth"]++;
    $res_child = db_query("SELECT trove_cat_id,fullname FROM trove_cat " . "WHERE parent='{$nodeid}'");
    while ($row_child = db_fetch_array($res_child)) {
        printnode($row_child["trove_cat_id"], $row_child["fullname"]);
    }
    $GLOBALS["depth"]--;
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:18,代码来源:trove_cat_list.php


示例15: getRows

    /**
     * getRows - get the html output for result rows
     *
     * @return string html output
     */
    function getRows()
    {
        $rowsCount = $this->searchQuery->getRowsCount();
        $result =& $this->searchQuery->getResult();
        $dateFormat = _('Y-m-d H:i');
        $group = group_get_object($this->groupId);
        $group_name = $group->getUnixName();
        $data = unserialize(db_result($result, 0, 'versiondata'));
        $return = '';
        for ($i = 0; $i < $rowsCount; $i++) {
            $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td>';
            $return .= util_make_link('/wiki/g/' . $group_name . '/' . db_result($result, $i, 'pagename'), html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'pagename'));
            $return .= '</td>
				<td width="15%">' . $data['author'] . '</td>
				<td width="15%">' . date($dateFormat, db_result($result, $i, 'mtime')) . '</td></tr>';
        }
        return $return;
    }
开发者ID:neymanna,项目名称:fusionforge,代码行数:23,代码来源:WikiHtmlSearchRenderer.class.php


示例16: module_last_months

function module_last_months($arguments)
{
    global $lvc_nb_last_months;
    global $lvc_site_opening_month;
    global $lvc_site_opening_year;
    global $lvm_month, $lvm_archived, $lvm_arr_months;
    $buffer = '';
    $month = date('n');
    $year = date('Y');
    $finished = false;
    $buffer .= "<TABLE CELLSPACING=0 BORDER=0>\n";
    for ($count = 1; $count <= $lvc_nb_last_months; $count++) {
        $buffer .= "<TR><TD>&nbsp;";
        if ($finished) {
            $archive = '';
        } else {
            $data = archive_month($month, $year, 'code');
            if ($data[0] == NO_ARCHIVE) {
                $archive = '';
            } elseif ($data[0] == DB_ERROR) {
                $archive = '<A CLASS="archived">[?]</A>';
            } else {
                $archive = '<A CLASS="archived">[' . $lvm_archived . ']</A>';
            }
        }
        if (!$finished) {
            $finished = $month == $lvc_site_opening_month && $year == $lvc_site_opening_year;
            $the_month = $month < 10 ? "0" . $month : $month;
            $link = "./?view=month&year=" . $year . "&month=" . $the_month;
            $buffer .= '&nbsp;' . html_link($link, html_image('images/' . ICON_PUCE)) . '&nbsp;';
            $buffer .= "<A HREF='" . $link . "'>";
            $buffer .= $lvm_arr_months[$month];
            $buffer .= " " . $year;
            $buffer .= "</A>";
            $month = $month == 1 ? 12 : $month - 1;
            $year = $month == 12 ? $year - 1 : $year;
        }
        $buffer .= "&nbsp;</TD><TD ALIGN='center'>&nbsp;";
        $buffer .= $archive;
        $buffer .= "&nbsp;</TD></TR>";
    }
    $buffer .= "</TABLE>";
    return $buffer;
}
开发者ID:nldfr219,项目名称:zhi,代码行数:44,代码来源:last_months.module.php


示例17: parse

 public function parse($value)
 {
     $images = is_array($value) ? $value : cmsModel::yamlToArray($value);
     $html = '';
     foreach ($images as $key => $paths) {
         if (!isset($paths[$this->getOption('size_full')])) {
             continue;
         }
         if (!empty($paths['original']) && strtolower(pathinfo($paths['original'], PATHINFO_EXTENSION)) === 'gif') {
             $html .= html_gif_image($paths, 'small', (empty($this->item['title']) ? $this->name : $this->item['title']) . ' ' . $key, array('class' => 'img-' . $this->getName()));
         } else {
             $html .= '<a class="img-' . $this->getName() . '" href="' . html_image_src($paths, $this->getOption('size_full'), true) . '">' . html_image($paths, 'small', (empty($this->item['title']) ? $this->name : $this->item['title']) . ' ' . $key) . '</a>';
         }
     }
     if ($html) {
         $html .= '<script>$(function() { icms.modal.bindGallery(".img-' . $this->getName() . '"); });</script>';
     }
     return $html;
 }
开发者ID:uralmax89,项目名称:icms2,代码行数:19,代码来源:images.php


示例18: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $rowColor = 0;
     $lastTracker = null;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentTracker = db_result($result, $i, 'name');
         if ($lastTracker != $currentTracker) {
             $return .= '<tr><td colspan="5">' . $currentTracker . '</td></tr>';
             $lastTracker = $currentTracker;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . '<td width="5%">&nbsp;</td>' . '<td>' . db_result($result, $i, 'artifact_id') . '</td>' . '<td>' . '<a href="' . util_make_url('/tracker/?func=detail&group_id=' . $this->groupId . '&aid=' . db_result($result, $i, 'artifact_id') . '&atid=' . db_result($result, $i, 'group_artifact_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'summary') . '</a></td>' . '<td width="15%">' . db_result($result, $i, 'realname') . '</td>' . '<td width="15%">' . date($dateFormat, db_result($result, $i, 'open_date')) . '</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:TrackersHtmlSearchRenderer.class.php


示例19: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $lastDocGroup = null;
     $rowColor = 0;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentDocGroup = db_result($result, $i, 'groupname');
         if ($lastDocGroup != $currentDocGroup) {
             $return .= '<tr><td colspan="4">' . $currentDocGroup . '</td></tr>';
             $lastDocGroup = $currentDocGroup;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . '<td width="5%">&nbsp;</td>' . '<td>' . db_result($result, $i, 'docid') . '</td>' . '<td><a href="' . util_make_url('/docman/view.php/' . $this->groupId . '/' . db_result($result, $i, 'docid') . '/' . db_result($result, $i, 'title')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'title') . '</a></td>' . '<td>' . db_result($result, $i, 'description') . '</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:DocsHtmlSearchRenderer.class.php


示例20: getRows

 /**
  * getRows - get the html output for result rows
  *
  * @return string html output
  */
 function getRows()
 {
     $rowsCount = $this->searchQuery->getRowsCount();
     $result =& $this->searchQuery->getResult();
     $dateFormat = _('Y-m-d H:i');
     $return = '';
     $rowColor = 0;
     $lastProjectName = null;
     for ($i = 0; $i < $rowsCount; $i++) {
         //section changed
         $currentProjectName = db_result($result, $i, 'project_name');
         if ($lastProjectName != $currentProjectName) {
             $return .= '<tr><td colspan="7">' . $currentProjectName . '</td></tr>';
             $lastProjectName = $currentProjectName;
             $rowColor = 0;
         }
         $return .= '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($rowColor) . '>' . ' <td width="5%">&nbsp;</td>' . ' <td>' . db_result($result, $i, 'project_task_id') . '</td>' . ' <td>' . '<a href="' . util_make_url('/pm/task.php?func=detailtask&project_task_id=' . db_result($result, $i, 'project_task_id') . '&group_id=' . $this->groupId . '&group_project_id=' . db_result($result, $i, 'group_project_id')) . '">' . html_image('ic/msg.png', '10', '12', array('border' => '0')) . ' ' . db_result($result, $i, 'summary') . '</a></td>' . ' <td width="15%">' . date($dateFormat, db_result($result, $i, 'start_date')) . '</td>' . ' <td width="15%">' . date($dateFormat, db_result($result, $i, 'end_date')) . '</td>' . ' <td width="15%">' . db_result($result, $i, 'realname') . '</td>' . ' <td width="8%">' . db_result($result, $i, 'percent_complete') . ' %</td></tr>';
         $rowColor++;
     }
     return $return;
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:TasksHtmlSearchRenderer.class.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP html_img函数代码示例发布时间:2022-05-15
下一篇:
PHP html_icon函数代码示例发布时间: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