source: trunk/admin/themes/default/template/thumbnail.tpl @ 5219

Last change on this file since 5219 was 5123, checked in by plg, 15 years ago

feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

  • Property svn:eol-style set to LF
File size: 4.0 KB
Line 
1<div class="titrePage">
2  <h2>{'Thumbnail creation'|@translate}</h2>
3</div>
4
5{if isset($results) }
6<div class="admin">{'Results of miniaturization'|@translate}</div>
7<table style="width:100%;">
8  <tr class="throw">
9    <td>{'Path'|@translate}</td>
10    <td>{'Thumbnail'|@translate}</td>
11    <td>{'generated in'|@translate}</td>
12    <td>{'Filesize'|@translate}</td>
13    <td>{'Dimensions'|@translate}</td>
14  </tr>
15  {foreach from=$results.elements item=elt}
16  <tr>
17    <td>{$elt.PATH}</td>
18    <td><img src="{$elt.TN_FILE_IMG}"></td>
19    <td style="text-align:right;">{$elt.GEN_TIME}</td>
20    <td style="text-align:right;">{$elt.TN_FILESIZE_IMG}</td>
21    <td style="text-align:right;">{$elt.TN_WIDTH_IMG} x {$elt.TN_HEIGHT_IMG}</td>
22  </tr>
23  {/foreach}
24</table>
25
26<table class="table2">
27  <tr class="throw">
28    <td colspan="2">{'General statistics'|@translate}</td>
29  </tr>
30  <tr>
31    <td>{'number of miniaturized pictures'|@translate}</td>
32    <td style="text-align:center;">{$results.TN_NB}</td>
33  </tr>
34  <tr>
35    <td>{'total time'|@translate}</td>
36    <td style="text-align:right;">{$results.TN_TOTAL}</td>
37  </tr>
38  <tr>
39    <td>{'max time'|@translate}</td>
40    <td style="text-align:right;">{$results.TN_MAX}</td>
41  </tr>
42  <tr>
43    <td>{'min time'|@translate}</td>
44    <td style="text-align:right;">{$results.TN_MIN}</td>
45  </tr>
46  <tr>
47    <td>{'average time'|@translate}</td>
48    <td style="text-align:right;">{$results.TN_AVERAGE}</td>
49  </tr>
50</table>
51<br>
52{/if}
53
54{if isset($params) }
55<form method="post" action="{$params.F_ACTION}" class="properties">
56
57  <fieldset>
58    <legend>{'Miniaturization parameters'|@translate}</legend>
59
60    <ul>
61      <li>
62        <span class="property">{'GD version'|@translate}</span>
63        <label>
64          <input type="radio" name="gd" value="2" {if $params.GD_SELECTED==2}checked="checked"{/if}>2.x
65        </label>
66        <label>
67          <input type="radio" name="gd" value="1" {if $params.GD_SELECTED==1}checked="checked"{/if}>1.x
68        </label>
69      </li>
70
71      <li>
72        <span class="property">
73          <label for="width">{'maximum width'|@translate}</label>
74        </span>
75        <input type="text" id="width" name="width" value="{$params.WIDTH_TN}">
76      </li>
77
78      <li>
79        <span class="property">
80          <label for="height">{'maximum height'|@translate}</label>
81        </span>
82        <input type="text" id="height" name="height" value="{$params.HEIGHT_TN}">
83      </li>
84
85      <li>
86        <span class="property">{'Number of thumbnails to create'|@translate}</span>
87        <label><input type="radio" name="n" value="5"   {if $params.N_SELECTED==5}checked="checked"{/if}> 5</label>
88        <label><input type="radio" name="n" value="10"  {if $params.N_SELECTED==10}checked="checked"{/if}> 10</label>
89        <label><input type="radio" name="n" value="20"  {if $params.N_SELECTED==20}checked="checked"{/if}> 20</label>
90        <label><input type="radio" name="n" value="all" {if $params.N_SELECTED=='all'}checked="checked"{/if}> {'all'|@translate}</label>
91      </li>
92    </ul>
93  </fieldset>
94
95  <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}></p>
96</form>
97{/if} {*isset params*}
98
99{if !empty($remainings) }
100<div class="admin">{$TOTAL_NB_REMAINING} {'pictures without thumbnail (jpeg and png only)'|@translate}</div>
101<table style="width:100%;">
102  <tr class="throw">
103    <td>&nbsp;</td>
104    <td style="width:60%;">{'Path'|@translate}</td>
105    <td>{'Filesize'|@translate}</td>
106    <td>{'Dimensions'|@translate}</td>
107  </tr>
108  {foreach from=$remainings item=elt name=remain_loop}
109  <tr class="{if $smarty.foreach.remain_loop.index is odd}row1{else}row2{/if}">
110    <td>{$smarty.foreach.remain_loop.iteration}</td>
111    <td><div style="margin-left:10px;">{$elt.PATH}</div></td>
112    <td><div style="margin-left:10px;">{$elt.FILESIZE_IMG}</div></td>
113    <td><div style="margin-left:10px;">{$elt.WIDTH_IMG} x {$elt.HEIGHT_IMG}</div></td>
114  </tr>
115  {/foreach}
116</table>
117{else}
118<div style="text-align:center;font-weight:bold;margin:10px;"> [ {'No missing thumbnail'|@translate} ]</div>
119{/if}
Note: See TracBrowser for help on using the repository browser.