本文整理汇总了PHP中common::printIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP common::printIcon方法的具体用法?PHP common::printIcon怎么用?PHP common::printIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common
的用法示例。
在下文中一共展示了common::printIcon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
'><?php
echo $lang->story->statusList[$story->status];
?>
</td>
<td><?php
echo $lang->story->stageList[$story->stage];
?>
</td>
<td class='text-right'>
<?php
common::printIcon('story', 'change', "storyID={$story->id}", $story, 'list', 'random');
common::printIcon('story', 'review', "storyID={$story->id}", $story, 'list', 'search');
common::printIcon('story', 'close', "storyID={$story->id}", $story, 'list', 'off', '', 'text-danger');
common::printIcon('story', 'edit', "storyID={$story->id}", $story, 'list', 'pencil');
common::printIcon('story', 'createCase', "productID={$story->product}&moduleID=0&from=¶m=0&storyID={$story->id}", '', 'list', 'sitemap');
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan='10'>
<div class='table-actions clearfix'>
<?php
if (count($stories)) {
if ($canBatchEdit or $canBatchRun) {
echo "<div class='btn-group'>" . html::selectButton() . '</div>';
示例2: elseif
</table>
<?php
include '../../common/view/action.html.php';
?>
</div>
<div class='actions'>
<div class='btn-group'>
<?php
if ($this->session->effortList) {
$browseLink = $this->session->effortList;
} elseif ($effort->account == $app->user->account) {
$browseLink = $this->createLink('my', 'effort');
} else {
$browseLink = $this->createLink('user', 'effort', "account={$effort->account}");
}
if ($effort->account == $app->user->account) {
common::printIcon('effort', 'edit', "effortID={$effort->id}");
common::printIcon('effort', 'delete', "effortID={$effort->id}", '', 'button', '', 'hiddenwin');
}
?>
</div>
<div class='btn-group'>
<?php
common::printRPN($browseLink);
?>
</div>
</div>
</div>
</div>
<?php
include '../../common/view/footer.html.php';
示例3: elseif
if (isset($times[$todo->end])) {
echo ' ~ ' . $times[$todo->end];
}
?>
</td>
</tr>
</table>
<div class='a-center f-16px strong pb-10px'>
<?php
if ($this->session->todoList) {
$browseLink = $this->session->todoList;
} elseif ($todo->account == $app->user->account) {
$browseLink = $this->createLink('my', 'todo');
} else {
$browseLink = $this->createLink('user', 'todo', "account={$todo->account}");
}
common::printIcon('todo', 'finish', "id={$todo->id}", $todo, 'list', '', 'hiddenwin');
if ($todo->account == $app->user->account) {
common::printIcon('todo', 'edit', "todoID={$todo->id}");
common::printIcon('todo', 'delete', "todoID={$todo->id}", '', 'button', '', 'hiddenwin');
}
common::printRPN($browseLink);
?>
</div>
<?php
$actionTheme = 'table';
include '../../common/view/action.html.php';
} else {
echo $lang->todo->thisIsPrivate;
}
include '../../common/view/footer.html.php';
示例4: inlink
<div class='actions'>
<?php
$browseLink = $this->session->productPlanList ? $this->session->productPlanList : inlink('browse', "planID={$plan->id}");
if (!$plan->deleted) {
ob_start();
echo "<div class='btn-group'>";
if (common::hasPriv('productplan', 'linkStory')) {
echo html::a(inlink('view', "planID={$plan->id}&type=story&orderBy=id_desc&link=true"), '<i class="icon-link"></i> ' . $lang->productplan->linkStory, '', "class='btn'");
}
if (common::hasPriv('productplan', 'linkBug')) {
echo html::a(inlink('view', "planID={$plan->id}&type=bug&orderBy=id_desc&link=true"), '<i class="icon-bug"></i> ' . $lang->productplan->linkBug, '', "class='btn'");
}
echo '</div>';
echo "<div class='btn-group'>";
common::printIcon('productplan', 'edit', "planID={$plan->id}");
common::printIcon('productplan', 'delete', "planID={$plan->id}", '', 'button', '', 'hiddenwin');
echo '</div>';
$actionLinks = ob_get_contents();
ob_end_clean();
echo $actionLinks;
}
common::printRPN($browseLink);
?>
</div>
</div>
<div class='row-table'>
<div class='col-main'>
<div class='main'>
<div class='tabs'>
<ul class='nav nav-tabs'>
<li class='<?php
示例5: ob_start
echo $case->id . $lang->colon . $case->title;
?>
</div>
<div>
<?php
$browseLink = $app->session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID={$case->product}");
if (!$case->deleted) {
ob_start();
common::printIcon('testtask', 'runCase', "runID=0&caseID={$case->id}&version={$case->currentVersion}");
common::printIcon('testtask', 'results', "runID=0&caseID={$case->id}&version={$case->version}");
common::printIcon('testcase', 'createBug', "product={$case->product}&extra=caseID={$case->id},version={$case->version},runID=", '', 'button', 'createBug');
common::printDivider();
common::printIcon('testcase', 'edit', "caseID={$case->id}");
common::printCommentIcon('testcase');
common::printIcon('testcase', 'create', "productID={$case->product}&moduleID={$case->module}&from=testcase¶m={$case->id}", '', 'button', 'copy');
common::printIcon('testcase', 'delete', "caseID={$case->id}", '', 'button', '', 'hiddenwin');
common::printDivider();
common::printRPN($browseLink, $preAndNext);
$actionLinks = ob_get_contents();
ob_clean();
echo $actionLinks;
}
?>
</div>
</div>
<table class='cont-rt5'>
<tr valign='top'>
<td>
<fieldset>
<legend><?php
示例6:
echo $users[$task->owner];
?>
</td>
<td><?php
echo $task->begin;
?>
</td>
<td><?php
echo $task->end;
?>
</td>
<td><?php
echo $lang->testtask->statusList[$task->status];
?>
</td>
<td class='a-center'>
<?php
common::printIcon('testtask', 'cases', "taskID={$task->id}", '', 'list');
common::printIcon('testtask', 'linkCase', "taskID={$task->id}", '', 'list');
common::printIcon('testtask', 'edit', "taskID={$task->id}", '', 'list');
common::printIcon('testtask', 'delete', "taskID={$task->id}", '', 'list', '', 'hiddenwin');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
include '../../common/view/footer.html.php';
示例7:
?>
</td>
<td class='text-left nobr'><nobr><?php
echo html::a($viewLink, $doc->title);
?>
</nobr></td>
<td><?php
echo $users[$doc->addedBy];
?>
</td>
<td><?php
echo $doc->addedDate;
?>
</td>
<td>
<?php
common::printIcon('doc', 'edit', "doc={$doc->id}", '', 'list');
if (common::hasPriv('doc', 'delete')) {
$deleteURL = $this->createLink('doc', 'delete', "docID={$doc->id}&confirm=yes");
echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"docList\",confirmDelete)", '<i class="icon-remove"></i>', '', "class='btn-icon' title='{$lang->doc->delete}'");
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
include '../../common/view/footer.html.php';
示例8:
echo $lang->task->estimate;
?>
</th>
<td><?php
echo html::input('estimate', $task->estimate, "class='form-control'");
?>
</td>
</tr>
<tr>
<th><?php
echo $lang->task->consumed;
?>
</th>
<td><?php
echo $task->consumed . ' ';
common::printIcon('task', 'recordEstimate', "taskID={$task->id}", $task, 'list', '', '', 'iframe', true);
?>
</td>
</tr>
<tr>
<th><?php
echo $lang->task->left;
?>
</th>
<td><?php
echo html::input('left', $task->left, "class='form-control'");
?>
</td>
</tr>
</table>
</fieldset>
示例9:
'><?php
echo $lang->task->statusList[$task->status];
?>
</td>
<td><?php
echo $users[$task->openedBy];
?>
</td>
<td class='text-right'>
<?php
common::printIcon('task', 'assignTo', "projectID={$task->project}&taskID={$task->id}", $task, 'list', 'hand-right', '', 'iframe', true);
common::printIcon('task', 'start', "taskID={$task->id}", $task, 'list', 'play', '', 'iframe', true);
common::printIcon('task', 'recordEstimate', "taskID={$task->id}", $task, 'list', 'time', '', 'iframe', true);
common::printIcon('task', 'finish', "taskID={$task->id}", $task, 'list', 'ok-sign', '', 'iframe', true);
common::printIcon('task', 'close', "taskID={$task->id}", $task, 'list', 'off', '', 'iframe', true);
common::printIcon('task', 'edit', "taskID={$task->id}", '', 'list', 'pencil');
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan='13'>
<?php
if (count($tasks)) {
?>
<div class='table-actions clearfix'>
<?php
示例10: isset
<ul class='dropdown-menu' id='exportActionMenu'>
<?php
$misc = common::hasPriv('testcase', 'export') ? "class='export'" : "class=disabled";
$link = common::hasPriv('testcase', 'export') ? $this->createLink('testcase', 'export', "productID={$productID}&orderBy={$orderBy}") : '#';
echo "<li>" . html::a($link, $lang->testcase->export, '', $misc) . "</li>";
$misc = common::hasPriv('testcase', 'exportTemplet') ? "class='export'" : "class=disabled";
$link = common::hasPriv('testcase', 'exportTemplet') ? $this->createLink('testcase', 'exportTemplet', "productID={$productID}") : '#';
echo "<li>" . html::a($link, $lang->testcase->exportTemplet, '', $misc) . "</li>";
?>
</ul>
</div>
<?php
common::printIcon('testcase', 'import', "productID={$productID}", '', 'button', '', '', 'export cboxElement iframe');
$initModule = isset($moduleID) ? (int) $moduleID : 0;
common::printIcon('testcase', 'batchCreate', "productID={$productID}&moduleID={$initModule}");
common::printIcon('testcase', 'create', "productID={$productID}&moduleID={$initModule}");
?>
</div>
</div>
<div id='querybox' class='<?php
if ($browseType == 'bysearch') {
echo 'show';
}
?>
'></div>
</div>
<?php
foreach (glob(dirname(dirname(__FILE__)) . "/ext/view/featurebar.*.html.hook.php") as $fileName) {
include_once $fileName;
}
示例11:
?>
</a></li>
<li <?php
if ($type == 'leftBug') {
echo "class='active'";
}
?>
><a href='#leftBugs' data-toggle='tab'><?php
echo html::icon($lang->icons['bug'], 'red') . ' ' . $lang->release->generatedBugs;
?>
</a></li>
<?php
if ($countStories or $countBugs or $countLeftBugs) {
?>
<li class='pull-right'><?php
common::printIcon('release', 'export', '', '', 'button', '', '', "export");
?>
</li>
<?php
}
?>
</ul>
<div class='tab-content'>
<div class='tab-pane <?php
if ($type == 'story') {
echo 'active';
}
?>
' id='stories'>
<?php
if (common::hasPriv('release', 'linkStory')) {
示例12:
<td class='<?php
echo $run->status;
?>
'><?php
echo $run->version < $run->caseVersion ? "<span class='warning'>{$lang->testcase->changed}</span>" : $lang->testtask->statusList[$run->status];
?>
</td>
<td class='text-center'>
<?php
common::printIcon('testtask', 'runCase', "id={$run->id}", '', 'list', '', '', 'runCase iframe');
common::printIcon('testtask', 'results', "id={$run->id}", '', 'list', '', '', 'iframe');
if (common::hasPriv('testtask', 'unlinkCase')) {
$unlinkURL = $this->createLink('testtask', 'unlinkCase', "caseID={$run->id}&confirm=yes");
echo html::a("javascript:ajaxDelete(\"{$unlinkURL}\",\"caseList\",confirmUnlink)", '<i class="icon-unlink"></i>', '', "title='{$lang->testtask->unlinkCase}' class='btn-icon'");
}
common::printIcon('testcase', 'createBug', "product={$productID}&extra=projectID={$task->project},buildID={$task->build},caseID={$run->case},version={$run->version},runID={$run->id},testtask={$taskID}", $run, 'list', 'bug', '', 'iframe');
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan='10'>
<?php
if ($runs) {
?>
<div class='table-actions clearfix'>
示例13:
</td>
<td><?php
echo $user->visits;
?>
</td>
<td class='text-right'>
<?php
common::printIcon('user', 'edit', "userID={$user->id}&from=company", '', 'list');
if (strpos($this->app->company->admins, ",{$user->account},") === false and common::hasPriv('user', 'delete')) {
$deleteURL = $this->createLink('user', 'delete', "userID={$user->id}&confirm=yes");
echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"userList\",confirmDelete)", '<i class="icon-remove"></i>', '', "title='{$lang->user->delete}' class='btn-icon'");
}
if (strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked) < $this->config->user->lockMinutes * 60) {
common::printIcon('user', 'unlock', "userID={$user->account}", '', 'list', '', "hiddenwin");
} else {
common::printIcon('kevinlogin', 'userLock', "userID={$user->account}", '', 'list', 'lock', "hiddenwin");
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan='12'>
<div class='table-actions clearfix'>
<?php
if ($canBatchEdit or $canManageContacts) {
echo "<div class='btn-group'>" . html::selectButton() . '</div>';
示例14: count
</div>
<div class='actions'>
<?php
$browseLink = $this->session->buildList ? $this->session->buildList : $this->createLink('project', 'build', "projectID={$build->project}");
if (!$build->deleted) {
echo "<div class='btn-group'>";
if (common::hasPriv('build', 'linkStory')) {
echo html::a(inlink('view', "buildID={$build->id}&type=story&link=true"), '<i class="icon-link"></i> ' . $lang->build->linkStory, '', "class='btn'");
}
if (common::hasPriv('build', 'linkBug')) {
echo html::a(inlink('view', "buildID={$build->id}&type=bug&link=true"), '<i class="icon-bug"></i> ' . $lang->build->linkBug, '', "class='btn'");
}
echo '</div>';
echo "<div class='btn-group'>";
common::printIcon('build', 'edit', "buildID={$build->id}");
common::printIcon('build', 'delete', "buildID={$build->id}", '', 'button', '', 'hiddenwin');
echo '</div>';
}
echo common::printRPN($browseLink);
?>
</div>
</div>
<div class='row-table'>
<div class='col-main'>
<div class='main'>
<div class='tabs'>
<?php
$countStories = count($stories);
$countBugs = count($bugs);
$countNewBugs = count($generatedBugs);
?>
示例15: substr
?>
<td><?php
echo substr($bug->resolvedDate, 5, 11);
?>
</td>
<?php
}
?>
<td class='a-right'>
<?php
$params = "bugID={$bug->id}";
common::printIcon('bug', 'resolve', $params, $bug, 'list');
common::printIcon('bug', 'close', $params, $bug, 'list');
common::printIcon('bug', 'edit', $params, $bug, 'list');
common::printIcon('bug', 'create', "product={$bug->product}&extra=bugID={$bug->id}", $bug, 'list', 'copy');
?>
</td>
<?php
}
?>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<?php
$columns = $this->cookie->windowWidth >= $this->config->wideSize ? 12 : 9;
?>