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

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

clean code and missing translation

File size: 2.9 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    {'Status'|@translate}
23    {html_options name=status options=$status_options selected=$status_selected}
24  </label>
25
26  <label>
27    {'Sort by'|@translate}
28    {html_options name=order_by options=$order_options selected=$order_selected}
29  </label>
30
31  <label>
32    {'Sort order'|@translate}
33    {html_options name=direction options=$direction_options selected=$direction_selected}
34  </label>
35
36  <label>
37    &nbsp;
38    <span><input class="submit" type="submit" name="filter" value="{'Submit'|@translate}"> <a href="{$F_FILTER_ACTION}">{'Reset'|@translate}</a></span>
39  </label>
40
41</fieldset>
42
43</form>
44
45<table class="table2" width="97%">
46  <thead>
47    <tr class="throw">
48      <td class="user">{'Username'|@translate}</td>
49      <td class="type">{'Set type'|@translate}</td>
50      <td class="date">{'Creation date'|@translate}</td>
51      <td class="size">{'Total size'|@translate}</td>
52      <td class="images">{'Number of images'|@translate}</td>
53      <td class="archives">{'Number of archives'|@translate}</td>
54      <td class="status">{'Status'|@translate}</td>
55      <td class="action">{'Actions'|@translate}</td>
56    </tr>
57  </thead>
58
59  {foreach from=$sets item=set name=sets_loop}
60  <tr class="{if $smarty.foreach.sets_loop.index is odd}row1{else}row2{/if}">
61    <td>{$set.USERNAME}</td>
62    <td>{$set.NAME}</td>
63    <td style="text-align:center;">{$set.DATE_CREATION}</td>
64    <td>{$set.TOTAL_SIZE} MB</td>
65    <td>{$set.NB_IMAGES}</td>
66    <td>{$set.NB_ARCHIVES}</td>
67    <td>
68      {$set.STATUS|@translate}
69      {if $set.STATUS == 'download'}<i style="font-size:0.8em;">({$set.LAST_ZIP}/{$set.NB_ARCHIVES})</i>{/if}
70    </td>
71    <td style="padding-left:25px;">
72      <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>
73      {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}
74    </td>
75  </tr>
76  {/foreach}
77 
78  {if not $sets}
79  <tr class="row2">
80    <td colspan="8" style="text-align:center;font-style:italic;">{'No result'|@translate}</td>
81  </tr>
82  {/if}
83</table>
84
85<form action="{$F_FILTER_ACTION}" method="post">
86<p><label><input type="checkbox" name="delete_done" value="1"> {'Remove all finished downloads'|@translate}</label>
87<input type="submit" value="{'Submit'|@translate}"></p>
88</form>
Note: See TracBrowser for help on using the repository browser.