deletedlist.smarty

来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SMARTY 代码 · 共 70 行

SMARTY
70
字号
{$context->oPage->requireJSResource('resources/js/toggleselect.js')}{$context->oPage->requireJSResource('resources/js/expungeList.js')}<h2>{i18n}Deleted Documents{/i18n}</h2><p class="descriptiveText">{i18n}Documents which are deleted by users are hidden from viewbut still available for restoration.  Since "soft deletes" consume system resources, itis possible to <strong>expunge</strong> these documents.  Alternatively, youcan <strong>restore</strong> them as necessary.{/i18n}</p>{if (!empty($documents))}<form action="{$smarty.server.PHP_SELF}" method="POST"><input type="hidden" name="action" value="branchConfirm" />{foreach item=oFDoc from=$fullList}	<input type="hidden" name="docIds[]" value="{$oFDoc->getId()}">{/foreach}<div id="tableoutput"><table class="kt_collection">  <thead>    <tr>      <th style="width:2em"><input type="checkbox" onclick="toggleSelectFor(this, 'selected_docs')" title="toggle all"/></th>      <th>{i18n}Document Name{/i18n}</th>{*      <th>{i18n}Document Path{/i18n}</th> *}      <th>{i18n}Last Modification{/i18n}</th>      <th>{i18n}Deletion Comment{/i18n}</th>    </tr>  </thead>  <tbody id="output">    {foreach item=oDoc from=$documents}    <tr>      <td><input type="checkbox" name="selected_docs[]" value="{$oDoc->getId()}"/></td>      <td>{$oDoc->getName()|sanitize}</td>{*      <td>{getCrumbStringForDocument document=$oDoc}</td> *}      <td>{$oDoc->getLastModifiedDate()}</td>      <td>{$oDoc->getLastDeletionComment()}</td>    </tr>    {/foreach}  </tbody>  <tfoot>  	<tr>  		<td colspan="4">  			<span style="float: left">{$itemcount} {i18n}items, 10 per page{/i18n}</span>  		</td>  	</tr>  	<tr>  		<td colspan="4">  			<div align="center">	  			{foreach item=page from=$pagelist}					<a href="#" onclick="buildList(this.innerHTML)">{$page}</a>				{/foreach}			</div>		</td>  	</tr>  </tfoot></table></div><div class="form_actions">   <input type="submit" name="submit[expunge]" value="{i18n}Expunge{/i18n}" />   <input type="submit" name="submit[restore]" value="{i18n}Restore{/i18n}" />   <input type="submit" name="submit[expungeall]" value="{i18n}Expunge All{/i18n}"</div></form>{else}<div class="ktInfoMessage"><span>{i18n}No documents are marked as deleted.{/i18n}</span></div>{/if}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?