source: extensions/Ajax_Thumbnailer/admin/thumbnailer_admin.tpl @ 4549

Revision 4549, 2.8 KB checked in by Dsls, 10 years ago (diff)

Ajax_Thumbnailer 0.3

Line 
1<script type="text/javascript">
2        var path="{$plugin.path}";
3</script>
4<script type="text/javascript" src="{$plugin.path}/admin/js/jquery.ajaxmanager.js"></script>
5<script type="text/javascript" src="{$plugin.path}/admin/js/thumbnailer.js"></script>
6
7<div class="titrePage">
8  <h2>{'title_thumbnails'|@translate}</h2>
9</div>
10
11
12{if isset($params) }
13<form method="post" action="{$params.F_ACTION}" class="properties">
14
15  <fieldset>
16    <legend>{'tn_params_title'|@translate}</legend>
17
18    <ul>
19      <li>
20        <span class="property">{'tn_params_GD'|@translate}</span>
21        <label>
22          <input type="radio" name="gd" value="2" {if $params.GD_SELECTED==2}checked="checked"{/if}>2.x
23        </label>
24        <label>
25          <input type="radio" name="gd" value="1" {if $params.GD_SELECTED==1}checked="checked"{/if}>1.x
26        </label>
27      </li>
28
29      <li>
30        <span class="property">
31          <label for="width">{'maximum width'|@translate}</label>
32        </span>
33        <input type="text" id="width" name="width" value="{$params.WIDTH_TN}">
34      </li>
35
36      <li>
37        <span class="property">
38          <label for="height">{'maximum height'|@translate}</label>
39        </span>
40        <input type="text" id="height" name="height" value="{$params.HEIGHT_TN}">
41      </li>
42    </ul>
43  </fieldset>
44
45  <p><input type="button" name="submit" id="proceed" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
46  <input type="button" class="nodisable" name="submit" id="cancel" value="{'Cancel'|@translate}" {$TAG_INPUT_ENABLED}>
47  <input type="button" class="nodisable" name="submit" id="clear" value="{'clear_success'|@translate}" {$TAG_INPUT_ENABLED}>
48 
49  </p>
50</form>
51{/if} {*isset params*}
52
53{if !empty($wo_thumbnails) }
54<div class="admin">{$TOTAL_NB_REMAINING} {'tn_alone_title'|@translate}</div>
55<table style="width:100%;">
56  <tr class="throw">
57    <td>&nbsp;</td>
58    <td style="width:60%;">{'Path'|@translate}</td>
59    <td>{'filesize'|@translate}</td>
60    <td>{'Dimensions'|@translate}</td>
61    <td>{'thumbnail'|@translate}</td>
62    <td>{'tn_results_gen_time'|@translate}</td>
63    <td>{'filesize'|@translate}</td>
64    <td>{'Dimensions'|@translate}</td>
65  </tr>
66  {foreach from=$wo_thumbnails item=elt name=remain_loop}
67  <tr class="{if $smarty.foreach.remain_loop.index is odd}row1{else}row2{/if} nothumb item" id="th_{$smarty.foreach.remain_loop.iteration}">
68    <td>{$smarty.foreach.remain_loop.iteration}</td>
69    <td class="filepath">{$elt.PATH}</div></td>
70    <td>{$elt.FILESIZE_IMG}</div></td>
71    <td>{$elt.WIDTH_IMG} x {$elt.HEIGHT_IMG}</td>
72        <td class="thumbpic">&nbsp;</td>
73        <td class="thumbgentime">&nbsp;</td>
74        <td class="thumbsize">&nbsp;</td>
75        <td class="thumbdim">&nbsp;</td>
76  </tr>
77  {/foreach}
78</table>
79{else}
80<div style="text-align:center;font-weight:bold;margin:10px;"> [ {'tn_no_missing'|@translate} ]</div>
81{/if}
Note: See TracBrowser for help on using the repository browser.