当前位置: 首页>>代码示例>>PHP>>正文


PHP html_get_alt_row_color函数代码示例

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


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

示例1: _getReportTableContent

 /**
  *
  */
 function _getReportTableContent($reportIter, $isAdmin, &$altRowClass)
 {
     $hp = Codendi_HTMLPurifier::instance();
     $html = '';
     $reportIter->rewind();
     while ($reportIter->valid()) {
         $r = $reportIter->current();
         $trclass = html_get_alt_row_color($altRowClass++);
         $html .= '<tr class="' . $trclass . '">';
         // Name
         $rUrl = $this->defaultUrl . '&action=report_settings&report_id=' . $r->getId();
         $rName = '<a href="' . $rUrl . '">' . $hp->purify($r->getName(), CODENDI_PURIFIER_CONVERT_HTML) . '</a>';
         $html .= '<td align="left">' . $rName . '</td>';
         // Scope
         $scopeName = $GLOBALS['Language']->getText('plugin_docman', 'report_scope_' . $r->getScope());
         $html .= '<td align="center">' . $scopeName . '</td>';
         // Delete
         $trashLink = $this->defaultUrl . '&action=report_del&report_id=' . $r->getId();
         $trashWarn = $GLOBALS['Language']->getText('plugin_docman', 'report_settings_delete', $hp->purify(addslashes($r->getName()), CODENDI_PURIFIER_CONVERT_HTML));
         $trashAlt = $GLOBALS['Language']->getText('plugin_docman', 'report_settings_delete_alt', $hp->purify($r->getName(), CODENDI_PURIFIER_CONVERT_HTML));
         $delUrl = $this->defaultUrl . '&action=report_del&report_id=' . $r->getId();
         $delName = html_trash_link($trashLink, $trashWarn, $trashAlt);
         $html .= '<td align="center">' . $delName . '</td>';
         $html .= "</tr>\n";
         $reportIter->next();
     }
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:Docman_View_ReportSettings.class.php

示例2: getTable

 function getTable($params)
 {
     $this->defaultUrl = $params['default_url'];
     $content = '';
     $content .= html_build_list_table_top(array($GLOBALS['Language']->getText('plugin_docman', 'view_documenttable_title'), $GLOBALS['Language']->getText('plugin_docman', 'view_documenttable_location'), $GLOBALS['Language']->getText('plugin_docman', 'admin_lock_infos_who'), $GLOBALS['Language']->getText('plugin_docman', 'admin_lock_infos_when')));
     // Get list of all locked documents in the project.
     $dPM = Docman_PermissionsManager::instance($params['group_id']);
     $lockInfos = $dPM->getLockFactory()->getProjectLockInfos($params['group_id']);
     $uH = UserHelper::instance();
     $hp = Codendi_HTMLPurifier::instance();
     require_once dirname(__FILE__) . '/../Docman_ItemFactory.class.php';
     $dIF = new Docman_ItemFactory($params['group_id']);
     $altRowClass = 0;
     foreach ($lockInfos as $row) {
         $trclass = html_get_alt_row_color($altRowClass++);
         $item = $dIF->getItemFromDb($row['item_id']);
         $parent = $dIF->getItemFromDb($item->getParentId());
         $content .= '<tr class="' . $trclass . '">';
         $content .= '<td>' . '<a href="/plugins/docman/?group_id=' . $params['group_id'] . '&action=details&id=' . $item->getId() . '">' . $item->getTitle() . '</a></td>';
         $content .= '<td>';
         if ($dIF->isRoot($parent)) {
             $content .= '</td>';
         } else {
             $content .= '<a href="' . $this->defaultUrl . '&action=show&id=' . $parent->getId() . '">' . $parent->getTitle() . '</a></td>';
         }
         $content .= '<td>' . $hp->purify($uH->getDisplayNameFromUserId($row['user_id'])) . '</td>';
         $content .= '<td>' . format_date($GLOBALS['Language']->getText('system', 'datefmt'), $row['lock_date']) . '</td>';
         $content .= '</tr>';
     }
     $content .= '</table>';
     return $content;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:32,代码来源:Docman_View_Admin_LockInfos.class.php

示例3: fetchMappings

 private function fetchMappings()
 {
     $html = '';
     $html .= '<table class="cardwall_admin_ontop_mappings"><thead><tr valign="top">';
     $html .= '<td></td>';
     foreach ($this->config->getDashboardColumns() as $column) {
         $html .= '<th>';
         $html .= '<div class="cardwall-column-header-color" style="background-color: ' . $column->bgcolor . '; color: ' . $column->fgcolor . ';"></div>';
         $html .= $this->fetchColumnHeader($column);
         $html .= '</th>';
     }
     $html .= '<td>';
     $html .= $this->fetchAdditionalColumnHeader();
     $html .= '</td>';
     $html .= '</tr></thead>';
     $html .= '<tbody>';
     $row_number = 0;
     foreach ($this->config->getMappings() as $mapping) {
         $html .= '<tr class="' . html_get_alt_row_color(++$row_number) . '" valign="top">';
         $html .= $mapping->accept($this);
         $html .= '<td>';
         $html .= '</td>';
         $html .= '</tr>';
     }
     $html .= '</tbody></table>';
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:27,代码来源:ColumnDefinition.class.php

示例4: display_docs

function display_docs($style, $group_id)
{
    global $sys_datefmt;
    $query = "select * " . "from doc_data as d1, doc_groups as d2 " . "where d1.stateid = '" . $style . "' " . "and d2.group_id = '" . $group_id . "' " . "and d1.doc_group = d2.doc_group";
    $result = db_query($query);
    if (db_numrows($result) < 1) {
        $query = "select name " . "from doc_states " . "where stateid = " . $style . "";
        $result = db_query($query);
        $row = db_fetch_array($result);
        echo 'No ' . $row['name'] . ' docs available <p>';
    } else {
        $title_arr = array();
        $title_arr[] = 'Document ID';
        $title_arr[] = 'Name';
        $title_arr[] = 'Type';
        $title_arr[] = 'Filename';
        $title_arr[] = 'Create Date';
        $title_arr[] = 'Update Date';
        echo html_build_list_table_top($title_arr);
        $i = 0;
        while ($row = db_fetch_array($result)) {
            print "<tr bgcolor=\"" . html_get_alt_row_color($i) . "\">" . "<td>" . $row['docid'] . "</td>" . "<td><a href=\"index.php?docid=" . $row['docid'] . "&mode=docedit&group_id=" . $group_id . "\">" . $row['title'] . "</a></td>" . "<td>" . $row['type'] . "</td>" . "<td>" . $row['filename'] . "</td>" . "<td>" . date($sys_datefmt, $row['createdate']) . "</td>" . "<td>" . date($sys_datefmt, $row['updatedate']) . "</td>" . "</tr>";
            $i++;
        }
        echo '</table>';
    }
    //end else
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:28,代码来源:doc_utils.php

示例5: getContent

 function getContent()
 {
     $html = '';
     $dwItemFactory = $this->getDocmanWatermarkItemFactory();
     $watermarkingIsDisabled = $dwItemFactory->isWatermarkingDisabled($this->item->getId());
     // Status
     if ($watermarkingIsDisabled) {
         $status = '<strong>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_disabled') . '</strong>';
     } else {
         $status = $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_enabled');
     }
     $html .= '<p>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_status', array($status)) . '</p>';
     // About section
     $html .= '<h2>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_about_title') . '</h2>';
     $html .= '<p>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_disclamer_pdf') . '</p>';
     // Disable/enable section
     $user = $this->getUserManager()->getCurrentUser();
     $dPm = $this->getDocman_PermissionsManager($this->item->getGroupId());
     if ($dPm->userCanManage($user, $this->item->getId())) {
         $html .= '<h2>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_toggle_title') . '</h2>';
         $html .= '<p>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_desc') . '</p>';
         $html .= '<p>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_clicktoproceed') . '</p>';
         $html .= '<form method="post" action="' . $this->url . '&item_id=' . $this->item->getId() . '&action=docmanwatermark_toggle_item">';
         if ($watermarkingIsDisabled) {
             $html .= '<input type="submit" name="enable_watermarking" value="' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_enableit') . '" />';
         } else {
             $html .= '<input type="submit" name="disable_watermarking" value="' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_watermarking_disableit') . '" />';
         }
         $html .= '</form>';
     }
     // History
     $html .= '<h2>' . $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_history_title') . '</h2>';
     $dwLog = $this->getDocmanWatermark_Log();
     $dar = $dwLog->getLog($this->item);
     if ($dar && $dar->rowCount() > 0) {
         $uh = UserHelper::instance();
         $hp = Codendi_HTMLPurifier::instance();
         $titles = array($GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_history_when'), $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_history_who'), $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_history_what'));
         $html .= html_build_list_table_top($titles, false, false, false);
         $altColor = 0;
         foreach ($dar as $logEntry) {
             $html .= '<tr class="' . html_get_alt_row_color($altColor++) . '">';
             $html .= '<td>' . util_timestamp_to_userdateformat($logEntry['time']) . '</td>';
             $html .= '<td>' . $hp->purify($uh->getDisplayNameFromUserId($logEntry['who'])) . '</td>';
             $html .= '<td>' . ($logEntry['watermarked'] == 0 ? $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_history_desactivate') : $GLOBALS['Language']->getText('plugin_docmanwatermark', 'details_history_activate')) . '</td>';
             $html .= '</tr>';
         }
         $html .= '</table>';
     }
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:51,代码来源:DocmanWatermark_View_ItemDetailsSectionWatermarking.class.php

示例6: getMetadataTable

 /**
  * List the available metadata
  */
 function getMetadataTable($mdIter, $groupId, $defaultUrl)
 {
     $content = '';
     $mdFactory = new Docman_MetadataFactory($groupId);
     $content .= '<h3>' . $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_title') . '</h3>' . "\n";
     $content .= $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_instructions') . "\n";
     $content .= html_build_list_table_top(array($GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_name'), $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_descr'), $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_status'), $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_delete')));
     $altRowClass = 0;
     $mdIter->rewind();
     while ($mdIter->valid()) {
         $md =& $mdIter->current();
         $canDelete = false;
         if ($mdFactory->isRealMetadata($md->getLabel())) {
             $canDelete = true;
         }
         $trclass = html_get_alt_row_color($altRowClass++);
         $content .= '<tr class="' . $trclass . '">';
         $nameUrl = $this->buildUrl($defaultUrl, array('action' => 'admin_md_details', 'md' => $md->getLabel()));
         $nameHref = '<a href="' . $nameUrl . '">' . $this->hp->purify($md->getName()) . '</a>';
         $content .= '<td>' . $nameHref . '</td>';
         $content .= '<td>' . $this->hp->purify($md->getDescription()) . '</td>';
         $content .= '<td>';
         if ($md->isRequired()) {
             $content .= "-";
         } else {
             if ($md->isUsed()) {
                 $content .= "Used";
             } else {
                 $content .= "Unused";
             }
         }
         $content .= '</td>';
         $trash = '-';
         if ($canDelete) {
             $link = $this->buildUrl($defaultUrl, array('action' => 'admin_delete_metadata', 'md' => $md->getLabel()));
             $warn = $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_delete_warn', $this->hp->purify($md->getName()));
             $alt = $GLOBALS['Language']->getText('plugin_docman', 'admin_metadata_list_delete_alt', $this->hp->purify($md->getName()));
             $trash = html_trash_link($link, $warn, $alt);
         }
         $content .= '<td>' . $trash . '</td>';
         $content .= '</tr>' . "\n";
         $mdIter->next();
     }
     $content .= '</table>' . "\n";
     return $content;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:49,代码来源:Docman_View_Admin_Metadata.class.php

示例7: ShowResultsGroupSurveys

function ShowResultsGroupSurveys($result)
{
    global $group_id, $Language;
    $survey =& SurveySingleton::instance();
    $rows = db_numrows($result);
    $cols = db_numfields($result);
    $title_arr = array();
    $title_arr[] = $Language->getText('survey_index', 's_id');
    $title_arr[] = $Language->getText('survey_index', 's_tit');
    echo html_build_list_table_top($title_arr);
    for ($j = 0; $j < $rows; $j++) {
        echo "<tr class=\"" . html_get_alt_row_color($j) . "\">\n";
        echo "<TD><A HREF=\"survey.php?group_id={$group_id}&survey_id=" . db_result($result, $j, "survey_id") . "\">" . db_result($result, $j, "survey_id") . "</TD>";
        printf("<TD>%s</TD>\n", $survey->getSurveyTitle(db_result($result, $j, 'survey_title')));
        echo "</tr>";
    }
    echo "</table>";
    //</TD></TR></TABLE>");
}
开发者ID:nterray,项目名称:tuleap,代码行数:19,代码来源:index.php

示例8: getTable

 function getTable($params)
 {
     $html = '';
     // Get root
     $itemFactory = new Docman_ItemFactory($params['group_id']);
     $rootItem = $itemFactory->getRoot($params['group_id']);
     $nbItemsFound = 0;
     $itemIterator =& $itemFactory->getItemList($rootItem->getId(), $nbItemsFound, array('user' => $params['user'], 'ignore_collapse' => true, 'obsolete_only' => true));
     $table = html_build_list_table_top(array('Title', 'Obsolete date'));
     $altRowClass = 0;
     $itemIterator->rewind();
     while ($itemIterator->valid()) {
         $item =& $itemIterator->current();
         $type = $itemFactory->getItemTypeForItem($item);
         if ($type != PLUGIN_DOCMAN_ITEM_TYPE_FOLDER) {
             $trclass = html_get_alt_row_color($altRowClass++);
             $table .= "<tr class=\"" . $trclass . "\">\n";
             // Name
             $docmanIcons =& $this->_getDocmanIcons($params);
             $icon_src = $docmanIcons->getIconForItem($item, $params);
             $icon = '<img src="' . $icon_src . '" class="docman_item_icon" />';
             $table .= "<td>";
             $table .= '<span style="white-space: nowrap;">';
             $table .= $icon;
             $url = $this->buildActionUrl($params, array('action' => 'details', 'id' => $item->getId()), false, true);
             $table .= '<a href="' . $url . '">';
             $table .= htmlentities($item->getTitle(), ENT_QUOTES, 'UTF-8');
             $table .= '</a>';
             $table .= '</span>';
             $table .= "</td>\n";
             // Obsolete date
             $table .= "<td>";
             $table .= format_date("Y-m-j", $item->getObsolescenceDate());
             $table .= "</td>\n";
             $table .= "</tr>\n";
         }
         $itemIterator->next();
     }
     $table .= "</table>\n";
     $html = $table;
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:42,代码来源:Docman_View_Admin_Obsolete.class.php

示例9: ShowResultComments

 function ShowResultComments($result)
 {
     global $survey_id;
     $rows = db_numrows($result);
     $cols = db_numfields($result);
     echo "<h3>{$rows} Found</h3>";
     $title_arr = array();
     $title_arr[] = 'User ID';
     $title_arr[] = 'Response';
     echo html_build_list_table_top($title_arr);
     for ($j = 0; $j < $rows; $j++) {
         echo "<tr BGCOLOR=\"" . html_get_alt_row_color($j) . "\">\n";
         for ($i = 0; $i < $cols; $i++) {
             printf("<TD>%s</TD>\n", db_result($result, $j, $i));
         }
         echo "</tr>";
     }
     echo "</table>";
     //</TD></TR></TABLE>";
 }
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:20,代码来源:show_results_comments.php

示例10: ShowResultsGroupSurveys

 function ShowResultsGroupSurveys($result)
 {
     global $group_id;
     $rows = db_numrows($result);
     $cols = db_numfields($result);
     $title_arr = array();
     $title_arr[] = 'Survey ID';
     $title_arr[] = 'Survey Title';
     echo html_build_list_table_top($title_arr);
     for ($j = 0; $j < $rows; $j++) {
         echo "<tr BGCOLOR=\"" . html_get_alt_row_color($j) . "\">\n";
         echo "<TD><A HREF=\"survey.php?group_id={$group_id}&survey_id=" . db_result($result, $j, "survey_id") . "\">" . sprintf("%06d", db_result($result, $j, "survey_id")) . "</A></TD>";
         for ($i = 1; $i < $cols; $i++) {
             printf("<TD WIDTH=\"99%%\">%s</TD>\n", db_result($result, $j, $i));
         }
         echo "</tr>";
     }
     echo "</table>";
     //</TD></TR></TABLE>");
 }
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:20,代码来源:index.php

示例11: ShowResultsEditQuestion

 function ShowResultsEditQuestion($result)
 {
     global $group_id;
     $rows = db_numrows($result);
     $cols = db_numfields($result);
     echo "<h3>{$rows} Found</h3>";
     $title_arr = array();
     $title_arr[] = 'Question ID';
     $title_arr[] = 'Question';
     $title_arr[] = 'Type';
     echo html_build_list_table_top($title_arr);
     for ($j = 0; $j < $rows; $j++) {
         echo "<tr BGCOLOR=\"" . html_get_alt_row_color($j) . "\">\n";
         echo "<TD><A HREF=\"edit_question.php?group_id={$group_id}&question_id=" . db_result($result, $j, "question_id") . "\">" . sprintf("%06d", db_result($result, $j, "question_id")) . "</A></TD>\n";
         for ($i = 1; $i < $cols; $i++) {
             printf("<TD>%s</TD>\n", db_result($result, $j, $i));
         }
         echo "</tr>";
     }
     echo "</table>";
     //</TD></TR></TABLE>");
 }
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:22,代码来源:show_questions.php

示例12: ShowResultsEditSurvey

function ShowResultsEditSurvey($result)
{
    global $group_id, $PHP_SELF;
    $rows = db_NumRows($result);
    $cols = db_NumFields($result);
    echo "<h3>{$rows} Found</h3>";
    $title_arr = array();
    $title_arr[] = 'Survey ID';
    $title_arr[] = 'Group ID';
    $title_arr[] = 'Survey Title';
    $title_arr[] = 'Survey Questions';
    $title_arr[] = 'Is Active';
    echo html_build_list_table_top($title_arr);
    for ($j = 0; $j < $rows; $j++) {
        echo "<tr BGCOLOR=\"" . html_get_alt_row_color($j) . "\">\n";
        echo "<TD><A HREF=\"edit_survey.php?group_id={$group_id}&survey_id\n=" . db_result($result, $j, 0) . "\">" . sprintf("%06d", db_result($result, $j, 0)) . "</A></TD>";
        for ($i = 1; $i < $cols; $i++) {
            printf("<TD>%s</TD>\n", db_result($result, $j, $i));
        }
        echo "</tr>";
    }
    echo "</table>";
    //</TD></TR></TABLE>";
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:24,代码来源:survey_utils.php

示例13: getClonesHTML

 /**
  * Get the HTML output for ugroups bound to the current one
  *
  * @param Array $clones List of ugroups bound to this one
  *
  * @return String
  */
 private function getClonesHTML($clones)
 {
     $clonesHTML = '<table>';
     if (!empty($clones)) {
         $clonesHTML .= html_build_list_table_top(array($GLOBALS['Language']->getText('project_reference', 'ref_scope_P'), $GLOBALS['Language']->getText('project_ugroup_binding', 'ugroup')), false, false, false);
         $count = 0;
         $i = 0;
         foreach ($clones as $clone) {
             $project = $this->project_manager->getProject($clone['group_id']);
             if ($project->userIsAdmin()) {
                 $clonesHTML .= '<tr class="' . html_get_alt_row_color(++$i) . '"><td><a href="/projects/' . $project->getUnixName() . '" >' . $project->getPublicName() . '</a></td><td><a href="/project/admin/ugroup.php?group_id=' . $project->getID() . '" >' . $clone['cloneName'] . '</a></td></tr>';
             } else {
                 $count++;
             }
         }
         if ($count) {
             $clonesHTML .= '<tr class="' . html_get_alt_row_color(++$i) . '" colspan="2" ><td>and ' . $count . ' other ugroups you\'re not allowed to administrate</td></tr>';
         }
     } else {
         $clonesHTML .= '<tr><td>' . $GLOBALS['Language']->getText('project_ugroup_binding', 'not_source') . '</td></tr>';
     }
     $clonesHTML .= '</table>';
     return $clonesHTML;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:ShowBinding.class.php

示例14: fetchFollowUps

 /**
  * Returns HTML code to display the artifact follow-up comments
  *
  * @param PFUser $current_user the current user
  *
  * @return string The HTML code for artifact follow-up comments
  */
 private function fetchFollowUps($submitted_comment = '')
 {
     $html = '';
     $html .= $this->fetchSubmitButton();
     $classname = 'tracker_artifact_followup_comments-display_changes';
     $user_preference = $this->user->getPreference(self::USER_PREFERENCE_DISPLAY_CHANGES);
     if ($user_preference !== false && $user_preference == 0) {
         $classname = '';
     }
     $html .= '<div id="tracker_artifact_followup_comments" class="' . $classname . '">';
     $html .= '<div id="tracker_artifact_followup_comments-content">';
     $html .= '<h1 id="tracker_artifact_followups">' . $GLOBALS['Language']->getText('plugin_tracker_include_artifact', 'follow_ups') . '</h1>';
     $html .= '<ul class="tracker_artifact_followups">';
     $previous_item = null;
     $i = 0;
     foreach ($this->artifact->getFollowupsContent() as $item) {
         if ($previous_item) {
             $classnames = html_get_alt_row_color($i++) . ' tracker_artifact_followup ';
             $classnames .= $item->getFollowUpClassnames();
             $html .= '<li id="followup_' . $item->getId() . '" class="' . $classnames . '">';
             $html .= $item->fetchFollowUp();
             $html .= '</li>';
         }
         $previous_item = $item;
     }
     $html .= '<li>';
     $html .= '<div class="' . html_get_alt_row_color($i++) . '">';
     $hp = Codendi_HTMLPurifier::instance();
     if (count($responses = $this->artifact->getTracker()->getCannedResponseFactory()->getCannedResponses($this->artifact->getTracker()))) {
         $html .= '<p><b>' . $GLOBALS['Language']->getText('plugin_tracker_include_artifact', 'use_canned') . '</b>&nbsp;';
         $html .= '<select id="tracker_artifact_canned_response_sb">';
         $html .= '<option selected="selected" value="">--</option>';
         foreach ($responses as $r) {
             $html .= '<option value="' . $hp->purify($r->body, CODENDI_PURIFIER_CONVERT_HTML) . '">' . $hp->purify($r->title, CODENDI_PURIFIER_CONVERT_HTML) . '</option>';
         }
         $html .= '</select>';
         $html .= '<noscript> javascript must be enabled to use this feature! </noscript>';
         $html .= '</p>';
     }
     if ($this->artifact->userCanUpdate($this->user)) {
         $html .= '<textarea id="tracker_followup_comment_new" class="user-mention" wrap="soft" rows="8" cols="80" name="artifact_followup_comment" id="artifact_followup_comment">' . $hp->purify($submitted_comment, CODENDI_PURIFIER_CONVERT_HTML) . '</textarea>';
         $html .= $this->fetchReplyByMailHelp();
         $html .= '</div>';
     }
     $html .= '</li>';
     $html .= '</ul>';
     $html .= '</div>';
     $html .= '</div>';
     $html .= '</td></tr></table>';
     //see fetchFields
     return $html;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:59,代码来源:Edit.class.php

示例15: getTableHistory

 function getTableHistory()
 {
     $html = '';
     $uh = UserHelper::instance();
     if (is_a($this->table, 'Docman_ApprovalTableVersionned')) {
         $html .= '<h3>' . $GLOBALS['Language']->getText('plugin_docman', 'details_approval_history_title') . '</h3>';
         $html .= html_build_list_table_top(array($GLOBALS['Language']->getText('plugin_docman', 'details_approval_history_table_version'), $GLOBALS['Language']->getText('plugin_docman', 'details_approval_history_table_owner'), $GLOBALS['Language']->getText('plugin_docman', 'details_approval_history_table_status'), $GLOBALS['Language']->getText('plugin_docman', 'details_approval_history_table_date')));
         $allTables = $this->atf->getAllApprovalTable();
         $rowColorIdx = 1;
         foreach ($allTables as $table) {
             $html .= '<tr class="' . html_get_alt_row_color($rowColorIdx++) . '">';
             if ($this->table->getVersionNumber() != $table->getVersionNumber()) {
                 $url = Docman_View_View::buildUrl($this->url, array('action' => 'details', 'section' => 'approval', 'id' => $this->item->getId(), 'version' => $table->getVersionNumber()));
                 $href = '<a href="' . $url . '">' . $table->getVersionNumber() . '</a>';
             } else {
                 $href = $table->getVersionNumber();
             }
             $html .= '<td>' . $href . '</td>';
             $html .= '<td>' . $this->hp->purify($uh->getDisplayNameFromUserId($table->getOwner())) . '</td>';
             $html .= '<td>' . $GLOBALS['Language']->getText('plugin_docman', 'approval_review_state_' . $table->getApprovalState()) . '</td>';
             $html .= '<td>' . util_timestamp_to_userdateformat($table->getDate()) . '</td>';
             $html .= '</tr>';
         }
         $html .= '</table>';
     }
     return $html;
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:27,代码来源:Docman_View_ItemDetailsSectionApproval.class.php


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