本文整理匯總了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>';