本文整理汇总了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>';