1 | {* $Id: thumbnail.tpl 2531 2008-09-14 12:25:34Z vdigital $ *} |
---|
2 | <div class="titrePage"> |
---|
3 | <h2>{'title_thumbnails'|@translate}</h2> |
---|
4 | </div> |
---|
5 | |
---|
6 | {if isset($results) } |
---|
7 | <div class="admin">{'tn_results_title'|@translate}</div> |
---|
8 | <table style="width:100%;"> |
---|
9 | <tr class="throw"> |
---|
10 | <td>{'path'|@translate}</td> |
---|
11 | <td>{'thumbnail'|@translate}</td> |
---|
12 | <td>{'tn_results_gen_time'|@translate}</td> |
---|
13 | <td>{'filesize'|@translate}</td> |
---|
14 | <td>{'Dimensions'|@translate}</td> |
---|
15 | </tr> |
---|
16 | {foreach from=$results.elements item=elt} |
---|
17 | <tr> |
---|
18 | <td>{$elt.PATH}</td> |
---|
19 | <td><img src="{$elt.TN_FILE_IMG}" /></td> |
---|
20 | <td style="text-align:right;">{$elt.GEN_TIME}</td> |
---|
21 | <td style="text-align:right;">{$elt.TN_FILESIZE_IMG}</td> |
---|
22 | <td style="text-align:right;">{$elt.TN_WIDTH_IMG} x {$elt.TN_HEIGHT_IMG}</td> |
---|
23 | </tr> |
---|
24 | {/foreach} |
---|
25 | </table> |
---|
26 | |
---|
27 | <table class="table2"> |
---|
28 | <tr class="throw"> |
---|
29 | <td colspan="2">{'tn_stats'|@translate}</td> |
---|
30 | </tr> |
---|
31 | <tr> |
---|
32 | <td>{'tn_stats_nb'|@translate}</td> |
---|
33 | <td style="text-align:center;">{$results.TN_NB}</td> |
---|
34 | </tr> |
---|
35 | <tr> |
---|
36 | <td>{'tn_stats_total'|@translate}</td> |
---|
37 | <td style="text-align:right;">{$results.TN_TOTAL}</td> |
---|
38 | </tr> |
---|
39 | <tr> |
---|
40 | <td>{'tn_stats_max'|@translate}</td> |
---|
41 | <td style="text-align:right;">{$results.TN_MAX}</td> |
---|
42 | </tr> |
---|
43 | <tr> |
---|
44 | <td>{'tn_stats_min'|@translate}</td> |
---|
45 | <td style="text-align:right;">{$results.TN_MIN}</td> |
---|
46 | </tr> |
---|
47 | <tr> |
---|
48 | <td>{'tn_stats_mean'|@translate}</td> |
---|
49 | <td style="text-align:right;">{$results.TN_AVERAGE}</td> |
---|
50 | </tr> |
---|
51 | </table> |
---|
52 | <br /> |
---|
53 | {/if} |
---|
54 | |
---|
55 | {if isset($params) } |
---|
56 | <form method="post" action="{$params.F_ACTION}" class="properties"> |
---|
57 | |
---|
58 | <fieldset> |
---|
59 | <legend>{'tn_params_title'|@translate}</legend> |
---|
60 | |
---|
61 | <ul> |
---|
62 | <li> |
---|
63 | <span class="property">{'tn_params_GD'|@translate}</span> |
---|
64 | <label> |
---|
65 | <input type="radio" name="gd" value="2" {if $params.GD_SELECTED==2}checked="checked"{/if} />2.x |
---|
66 | </label> |
---|
67 | <label> |
---|
68 | <input type="radio" name="gd" value="1" {if $params.GD_SELECTED==1}checked="checked"{/if} />1.x |
---|
69 | </label> |
---|
70 | </li> |
---|
71 | |
---|
72 | <li> |
---|
73 | <span class="property"> |
---|
74 | <label for="width">{'maximum width'|@translate}</label> |
---|
75 | </span> |
---|
76 | <input type="text" id="width" name="width" value="{$params.WIDTH_TN}" /> |
---|
77 | </li> |
---|
78 | |
---|
79 | <li> |
---|
80 | <span class="property"> |
---|
81 | <label for="height">{'maximum height'|@translate}</label> |
---|
82 | </span> |
---|
83 | <input type="text" id="height" name="height" value="{$params.HEIGHT_TN}" /> |
---|
84 | </li> |
---|
85 | |
---|
86 | <li> |
---|
87 | <span class="property">{'Number of thumbnails to create'|@translate}</span> |
---|
88 | <label><input type="radio" name="n" value="5" {if $params.N_SELECTED==5}checked="checked"{/if} /> 5</label> |
---|
89 | <label><input type="radio" name="n" value="10" {if $params.N_SELECTED==10}checked="checked"{/if} /> 10</label> |
---|
90 | <label><input type="radio" name="n" value="20" {if $params.N_SELECTED==20}checked="checked"{/if} /> 20</label> |
---|
91 | <label><input type="radio" name="n" value="all" {if $params.N_SELECTED=='all'}checked="checked"{/if} /> {'tn_all'|@translate}</label> |
---|
92 | </li> |
---|
93 | </ul> |
---|
94 | </fieldset> |
---|
95 | |
---|
96 | <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/></p> |
---|
97 | </form> |
---|
98 | {/if} {*isset params*} |
---|
99 | |
---|
100 | {if !empty($remainings) } |
---|
101 | <div class="admin">{$TOTAL_NB_REMAINING} {'tn_alone_title'|@translate}</div> |
---|
102 | <table style="width:100%;"> |
---|
103 | <tr class="throw"> |
---|
104 | <td> </td> |
---|
105 | <td style="width:60%;">{'path'|@translate}</td> |
---|
106 | <td>{'filesize'|@translate}</td> |
---|
107 | <td>{'Dimensions'|@translate}</td> |
---|
108 | </tr> |
---|
109 | {foreach from=$remainings item=elt name=remain_loop} |
---|
110 | <tr class="{if $smarty.foreach.remain_loop.index is odd}row1{else}row2{/if}"> |
---|
111 | <td>{$smarty.foreach.remain_loop.iteration}</td> |
---|
112 | <td><div style="margin-left:10px;">{$elt.PATH}</div></td> |
---|
113 | <td><div style="margin-left:10px;">{$elt.FILESIZE_IMG}</div></td> |
---|
114 | <td><div style="margin-left:10px;">{$elt.WIDTH_IMG} x {$elt.HEIGHT_IMG}</div></td> |
---|
115 | </tr> |
---|
116 | {/foreach} |
---|
117 | </table> |
---|
118 | {else} |
---|
119 | <div style="text-align:center;font-weight:bold;margin:10px;"> [ {'tn_no_missing'|@translate} ]</div> |
---|
120 | {/if} |
---|