source: extensions/BatchDownloader/admin/template/sets.tpl @ 23318

Last change on this file since 23318 was 23318, checked in by mistic100, 11 years ago

it's late! some corrections, code cleaning & filter by size on admin page

File size: 3.2 KB
Line 
1{combine_css path=$BATCH_DOWNLOAD_PATH|@cat:"admin/template/style.css"}
2
3<div class="titrePage">
4        <h2>Batch Downloader</h2>
5</div>
6
7<form class="filter" method="post" name="filter" action="{$F_FILTER_ACTION}">
8<fieldset>
9  <legend>{'Filter'|@translate}</legend>
10
11  <label>
12    {'Username'|@translate}
13    <input type="text" name="username" value="{$F_USERNAME}">
14  </label>
15
16  <label>
17    {'Set type'|@translate}
18    {html_options name=type options=$type_options selected=$type_selected}
19  </label>
20 
21  <label>
22    {'Photo sizes'|@translate}
23    {html_options name=size options=$size_options selected=$size_selected}
24  </label>
25 
26  <label>
27    {'Status'|@translate}
28    {html_options name=status options=$status_options selected=$status_selected}
29  </label>
30
31  <label>
32    {'Sort by'|@translate}
33    {html_options name=order_by options=$order_options selected=$order_selected}
34  </label>
35
36  <label>
37    {'Sort order'|@translate}
38    {html_options name=direction options=$direction_options selected=$direction_selected}
39  </label>
40
41  <label>
42    &nbsp;
43    <span><input class="submit" type="submit" name="filter" value="{'Submit'|@translate}"> <a href="{$F_FILTER_ACTION}">{'Reset'|@translate}</a></span>
44  </label>
45
46</fieldset>
47
48</form>
49
50<table class="table2" width="97%">
51  <thead>
52    <tr class="throw">
53      <td class="user">{'Username'|@translate}</td>
54      <td class="type">{'Set type'|@translate}</td>
55      <td class="date">{'Creation date'|@translate}</td>
56      <td class="img_size">{'Photo sizes'|@translate}</td>
57      <td class="images">{'Number of images'|@translate}</td>
58      <td class="archives">{'Number of archives'|@translate}</td>
59      <td class="size">{'Total size'|@translate}</td>
60      <td class="status">{'Status'|@translate}</td>
61      <td class="action">{'Actions'|@translate}</td>
62    </tr>
63  </thead>
64
65  {foreach from=$sets item=set name=sets_loop}
66  <tr class="{if $smarty.foreach.sets_loop.index is odd}row1{else}row2{/if}">
67    <td>{$set.USERNAME}</td>
68    <td>{$set.NAME}</td>
69    <td style="text-align:center;">{$set.DATE_CREATION}</td>
70    <td>{if $set.SIZE=='original'}{'Original'|@translate}{else}{$set.SIZE|@translate}{/if}</td>
71    <td>{$set.NB_IMAGES}</td>
72    <td>{$set.NB_ARCHIVES}</td>
73    <td>{$set.TOTAL_SIZE}</td>
74    <td>
75      {$set.STATUS|@translate}
76      {if $set.STATUS == 'download'}<i style="font-size:0.8em;">({$set.LAST_ZIP}/{$set.NB_ARCHIVES})</i>{/if}
77    </td>
78    <td style="padding-left:25px;">
79      <a href="{$set.U_DELETE}" title="{'Delete this set'|@translate}" onClick="return confirm('{'Are your sure?'|@translate}');"><img src="{$themeconf.admin_icon_dir}/delete.png"></a>
80      {if $set.STATUS != 'done'}<a href="{$set.U_CANCEL}" title="{'Cancel this set'|@translate}" onClick="return confirm('{'Are your sure?'|@translate}');"><img src="{$themeconf.admin_icon_dir}/permissions.png"></a>{/if}
81    </td>
82  </tr>
83  {/foreach}
84 
85  {if not $sets}
86  <tr class="row2">
87    <td colspan="8" style="text-align:center;font-style:italic;">{'No result'|@translate}</td>
88  </tr>
89  {/if}
90</table>
91
92<form action="{$F_FILTER_ACTION}" method="post">
93<p><label><input type="checkbox" name="delete_done" value="1"> {'Remove all finished downloads'|@translate}</label>
94<input type="submit" value="{'Submit'|@translate}"></p>
95</form>
Note: See TracBrowser for help on using the repository browser.