PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Templates/trash.htm

#
HTML | 43 lines | 42 code | 1 blank | 0 comment | 0 complexity | 2dd34c42ab2b25f45a0d51c8d6a56ab3 MD5 | raw file
 1{#if $T.d.length == 0}
 2<script type="text/javascript">
 3$("#recyclebin a").removeClass("full");
 4$("#recyclebin a").addClass("empty");
 5</script>
 6<div class="info" style="margin-top: 10px">
 7    Trash is empty.
 8</div>
 9{#else}
10<table id="TrashTable" class="beTable rounded">
11  <thead>
12    <tr>
13	  <th width="20"><input type="checkbox" id="selectall" onclick="toggleAllChecks(this)" /></th>
14      <th width="auto">Title</th>
15      <th width="160">Type</th>
16	  <th width="160">Created on</th>
17      <th width="80">&nbsp;</th>
18	  <th width="80">&nbsp;</th>
19    </tr>
20  </thead>
21  <tbody>
22    {#foreach $T.d as item}
23	<tr id="{$T.item.ObjectType}:{$T.item.Id}" class="{#cycle values=['','alt']}">
24	  <td><input type="checkbox" name="chk"{$T.item.Id} class="chk"/></td>
25      <td>{$T.item.Title}</td>
26      <td>{$T.item.ObjectType}</td>
27      <td class="editable">{$T.item.Date} {$T.item.Time}</td>
28	  <td align="center" style="vertical-align:middle"><a class="deleteAction" href="#" onclick="return ProcessTrash('Purge', '{$T.item.ObjectType}:{$T.item.Id}')">Purge</a></td>
29	  <td align="center" style="vertical-align:middle"><a class="approveAction" href="#" onclick="return ProcessTrash('Restore', '{$T.item.ObjectType}:{$T.item.Id}')">Restore</a></td>
30    </tr>
31    {#/for}
32  </tbody>
33</table>
34{#/if}
35
36{#if $T.d.length > 0}
37<div class="action_buttons">
38    <input type="submit" id="btnRestoreSelected" class="btn" value="Restore Selected" onclick="return ProcessTrash('Restore', 'Selected');" />&nbsp;
39    <input type="submit" id="btnPurgeSelected" class="btn" value="Purge Selected" onclick="return ProcessTrash('Purge', 'Selected');" />&nbsp;&nbsp;
40    <input type="submit" id="btnPurgeAll" class="btn" value="Purge All" onclick="return ProcessTrash('Purge', 'All');" />&nbsp;
41    <span id="AjaxLoader">&nbsp;</span>
42</div>
43{#else}