checkoutlisting.smarty
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SMARTY 代码 · 共 41 行
SMARTY
41 行
<h2>{i18n}Checked Out Documents{/i18n}</h2><p class="descriptiveText">{i18n}It may be necessary to override the <strong>checked-out</strong> status of a document if{/i18n}:<ul><li>{i18n}the local copy of the checked-out document has been lost{/i18n};</li><li>{i18n}the user who did the check-out is not currently available to check it back in{/i18n}.</li></ul>{i18n}Use the <strong>force checkin</strong> action in the listing below tooverride the checked-out status.{/i18n}</p><!-- FIXME set classes here for listing. -->{if (count($documents) !== 0)}<table class="listing" cellspacing="5px"> <thead> <tr> <th>{i18n}Document{/i18n}</th> <th>{i18n}Checked out by{/i18n}</th> <th>{i18n}Location{/i18n}</th> <th> </th> </tr> </thead> <tbody> {foreach item=oDocument from=$documents} <tr class="{cycle values=even,odd}"> <td>{$oDocument->getName()}</td> <td>{assign var=iUserIdvalue=$oDocument->getCheckedOutUserId()}{php}$oUser =User::get($this->_tpl_vars['iUserId']); if (!PEAR::isError($oUser)) { print$oUser->getName(); } else { print _kt("N/A"); }{/php}</td> <td class="descriptiveText">{$oDocument->getDisplayPath()}</td> <td><a href="{addQS}action=confirm&fDocumentId={$oDocument->getId()}{/addQS}">{i18n}force checkin{/i18n}</a></td> </tr> {/foreach} </tbody> <!-- FIXME do we want batching? --></table>{else} <div class="ktInfoMessage"> <span>{i18n}No documents are currently checked out.{/i18n}</span> </div>{/if}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?