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


PHP Util::renderTableHeader方法代码示例

本文整理汇总了PHP中Ubirimi\Util::renderTableHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP Util::renderTableHeader方法的具体用法?PHP Util::renderTableHeader怎么用?PHP Util::renderTableHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ubirimi\Util的用法示例。


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

示例1: while

    <?php 
if (isset($issuesCount) && $issuesCount > 0) {
    ?>

        <?php 
    if ($cliMode == false) {
        ?>
            <?php 
        Util::renderPaginator($issuesCount, $issuesPerPage, $currentSearchPage, $getSearchParameters);
        ?>
        <?php 
    }
    ?>
        <table class="table table-hover table-condensed">
            <?php 
    echo Util::renderTableHeader($getSearchParameters, $columns);
    ?>
            <?php 
    while ($issue = $issues->fetch_array(MYSQLI_ASSOC)) {
        ?>
                <?php 
        $arrayIds[] = $issue['id'];
        $slaData = UbirimiContainer::get()['repository']->get(Issue::class)->updateSLAValue($issue, $clientId, $clientSettings);
        ?>
                <tr>
                    <?php 
        for ($i = 0; $i < count($columns); $i++) {
            ?>
                        <?php 
            if ($columns[$i] == 'code') {
                ?>
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:_listResult.php

示例2: renderIssueTables

 public static function renderIssueTables($params, $columns, $clientSettings)
 {
     $htmlOutput = '';
     $htmlOutput .= '<div>';
     $issues = $params['issues'];
     $atLeastOneIssueRendered = false;
     if ($issues && $issues->num_rows) {
         $htmlOutput .= '<table width="100%" id="table_list" class="table table-hover table-condensed">';
         if (isset($params['show_header']) && $params['show_header']) {
             $htmlOutput .= Util::renderTableHeader($params, $columns);
         } else {
             $htmlOutput .= '<tr></tr>';
             // hack ca sa mearga selectul pe prima linie
         }
         $disabledText = '';
         if (isset($params['checkbox_disabled']) && $params['checkbox_disabled']) {
             $disabledText = 'disabled="disabled"';
         }
         while ($issue = $issues->fetch_array(MYSQLI_ASSOC)) {
             $atLeastOneIssueRendered = true;
             $htmlOutput .= '<tr';
             if ($params['render_checkbox']) {
                 $htmlOutput .= ' id="table_row_' . $issue['id'];
             }
             $htmlOutput .= '">';
             if ($params['render_checkbox']) {
                 $htmlOutput .= '<td width="22">';
                 $checkId = 'el_check_' . $issue['id'];
                 $htmlOutput .= '<input ' . $disabledText . ' type="checkbox" value="1" id="' . $checkId . '"/>';
                 if (array_key_exists('in_backlog', $params)) {
                     $htmlOutput .= '<input type="hidden" value="1" id="backlog_' . $checkId . '"/>';
                 } else {
                     $htmlOutput .= '<input type="hidden" value="0" id="backlog_' . $checkId . '"/>';
                 }
                 $htmlOutput .= '</td>';
             }
             for ($indexColumn = 0; $indexColumn < count($columns); $indexColumn++) {
                 if ($columns[$indexColumn] == 'code') {
                     $htmlOutput .= '<td class="issuePC">';
                     $htmlOutput .= '<img title="' . $issue['type'] . ' - ' . $issue['issue_type_description'] . '" height="16px" src="/yongo/img/issue_type/' . $issue['issue_type_icon_name'] . '" /> ';
                     $htmlOutput .= '<a href="/yongo/issue/' . $issue['id'] . '">' . $issue['project_code'] . '-' . $issue['nr'] . '</a>';
                     $htmlOutput .= "</td>\n";
                 }
                 if ($columns[$indexColumn] == 'summary') {
                     $htmlOutput .= '<td class="issueSummary"><a href="/yongo/issue/' . $issue['id'] . '">' . htmlentities($issue['summary']) . "</a></td>\n";
                 }
                 if ($columns[$indexColumn] == 'priority') {
                     $htmlOutput .= '<td class="issuePriority">' . "\n";
                     $htmlOutput .= '<img title="' . $issue['priority'] . ' - ' . $issue['issue_priority_description'] . '" height="16px" src="/yongo/img/issue_priority/' . $issue['issue_priority_icon_name'] . '" />';
                     $htmlOutput .= "</td>\n";
                 }
                 if ($columns[$indexColumn] == 'status') {
                     $htmlOutput .= '<td class=" issueStatus">' . $issue['status_name'] . '</td>';
                 }
                 if ($columns[$indexColumn] == 'date_created') {
                     $htmlOutput .= '<td class="issueDC">' . Util::getFormattedDate($issue['date_created'], $clientSettings['timezone']) . "</td>\n";
                 }
                 if ($columns[$indexColumn] == 'date_updated') {
                     $htmlOutput .= '<td class="issueDU">';
                     if ($issue['date_updated']) {
                         $htmlOutput .= Util::getFormattedDate($issue['date_updated'], $clientSettings['timezone']);
                     }
                     $htmlOutput .= '</td>';
                 }
                 if ($columns[$indexColumn] == 'reporter') {
                     $htmlOutput .= '<td class="issueUR">' . LinkHelper::getUserProfileLink($issue[Field::FIELD_REPORTER_CODE], SystemProduct::SYS_PRODUCT_YONGO, $issue['ur_first_name'], $issue['ur_last_name']) . '</td>';
                 }
                 if ($columns[$indexColumn] == 'assignee') {
                     $htmlOutput .= '<td class="issueUA">' . LinkHelper::getUserProfileLink($issue[Field::FIELD_ASSIGNEE_CODE], SystemProduct::SYS_PRODUCT_YONGO, $issue['ua_first_name'], $issue['ua_last_name']) . '</td>';
                 }
                 if ($columns[$indexColumn] == 'resolution') {
                     $htmlOutput .= '<td>' . $issue['resolution_name'] . '</td>';
                 }
                 if ($columns[$indexColumn] == 'updated') {
                     $htmlOutput .= '<td>' . $issue['date_updated'] . '</td>';
                 }
                 if ($columns[$indexColumn] == 'created') {
                     $htmlOutput .= '<td>' . $issue['date_created'] . '</td>';
                 }
             }
             $htmlOutput .= '</tr>';
         }
         $htmlOutput .= '</table>';
     }
     $htmlOutput .= '</div>';
     echo $htmlOutput;
     return $atLeastOneIssueRendered;
 }
开发者ID:spiasecki,项目名称:ubirimi,代码行数:88,代码来源:Util.php


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