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


PHP Documents::checkReassigmentPossibility方法代码示例

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


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

示例1: foreach

        foreach ($userInfo->clients as $client) {
            $clientsList .= "<li style='min-height: 22px; min-width: 120px; text-align: left; padding-left: 2px;'><span class='user_client_id'>" . $client->Client_ID . "</span> / <span class='user_client_name'>" . CHtml::encode($client->company->Company_Name) . "</span></li>";
        }

        $userProjectsHtml = array();
        foreach ($userProjects as $clientId => $projects) {
            $projectsList = '';
            foreach ($projects as $projectID => $projectName) {
                $projectsList .= "<li style='min-height: 22px; min-width: 120px; text-align: left; padding-left: 2px;'><span class='user_project_id'>" . $projectID . "</span> / <span class='user_project_name'>" . CHtml::encode($projectName) . "</span></li>";
            }
            $userProjectsHtml[$clientId] = $projectsList;
        };

        foreach ($userDocuments as $document) {
            echo '<tr id="doc' . $document->Document_ID . '">';
            if (Documents::checkReassigmentPossibility($document)) {
                echo '<td class="width70">' . Helper::convertDate($document->Created) .  '</td>
              <td class="width110">' . Helper::cutText(15, 100, 14,  $document->image->File_Name) .  '</td>

                  <td class="dropdown_cell width110" id="doc_client" data="' . $document->Client_ID . '">
                      <div class="dropdown_cell_ul">
                          <span class="dropdown_cell_value">' . $document->Client_ID . ' / ' . ($document->client ? CHtml::encode($document->client->company->Company_Name) : '') . '</span>
                          <ul>' . $clientsList . '</ul>
                      </div>
                  </td>
                  <td class="dropdown_cell" id="doc_project">
                      <div class="dropdown_cell_ul">
                          <span class="dropdown_cell_value">' . $document->Project_ID . ' / ' . (isset($userProjects[$document->Client_ID][$document->Project_ID]) ? CHtml::encode($userProjects[$document->Client_ID][$document->Project_ID]) : 'No Project') . '</span>
                          <ul>' . (isset($userProjectsHtml[$document->Client_ID]) ? $userProjectsHtml[$document->Client_ID] : '') . '</ul>
                      </div>
                  </td>';
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:filtered_documents_list.php


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