[2531] | 1 | <div class="titrePage"> |
---|
[5021] | 2 | <h2>{'Thumbnail creation'|@translate}</h2> |
---|
[2531] | 3 | </div> |
---|
| 4 | |
---|
| 5 | {if isset($results) } |
---|
[5021] | 6 | <div class="admin">{'Results of miniaturization'|@translate}</div> |
---|
[2531] | 7 | <table style="width:100%;"> |
---|
| 8 | <tr class="throw"> |
---|
[2944] | 9 | <td>{'Path'|@translate}</td> |
---|
[5021] | 10 | <td>{'Thumbnail'|@translate}</td> |
---|
| 11 | <td>{'generated in'|@translate}</td> |
---|
| 12 | <td>{'Filesize'|@translate}</td> |
---|
[2531] | 13 | <td>{'Dimensions'|@translate}</td> |
---|
| 14 | </tr> |
---|
| 15 | {foreach from=$results.elements item=elt} |
---|
| 16 | <tr> |
---|
| 17 | <td>{$elt.PATH}</td> |
---|
[3185] | 18 | <td><img src="{$elt.TN_FILE_IMG}"></td> |
---|
[2531] | 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"> |
---|
[5021] | 28 | <td colspan="2">{'General statistics'|@translate}</td> |
---|
[2531] | 29 | </tr> |
---|
| 30 | <tr> |
---|
[5021] | 31 | <td>{'number of miniaturized pictures'|@translate}</td> |
---|
[2531] | 32 | <td style="text-align:center;">{$results.TN_NB}</td> |
---|
| 33 | </tr> |
---|
| 34 | <tr> |
---|
[5021] | 35 | <td>{'total time'|@translate}</td> |
---|
[2531] | 36 | <td style="text-align:right;">{$results.TN_TOTAL}</td> |
---|
| 37 | </tr> |
---|
| 38 | <tr> |
---|
[5021] | 39 | <td>{'max time'|@translate}</td> |
---|
[2531] | 40 | <td style="text-align:right;">{$results.TN_MAX}</td> |
---|
| 41 | </tr> |
---|
| 42 | <tr> |
---|
[5021] | 43 | <td>{'min time'|@translate}</td> |
---|
[2531] | 44 | <td style="text-align:right;">{$results.TN_MIN}</td> |
---|
| 45 | </tr> |
---|
| 46 | <tr> |
---|
[5021] | 47 | <td>{'average time'|@translate}</td> |
---|
[2531] | 48 | <td style="text-align:right;">{$results.TN_AVERAGE}</td> |
---|
| 49 | </tr> |
---|
| 50 | </table> |
---|
[3185] | 51 | <br> |
---|
[2531] | 52 | {/if} |
---|
| 53 | |
---|
| 54 | {if isset($params) } |
---|
| 55 | <form method="post" action="{$params.F_ACTION}" class="properties"> |
---|
| 56 | |
---|
| 57 | <fieldset> |
---|
[5021] | 58 | <legend>{'Miniaturization parameters'|@translate}</legend> |
---|
[2531] | 59 | |
---|
| 60 | <ul> |
---|
| 61 | <li> |
---|
[5021] | 62 | <span class="property">{'GD version'|@translate}</span> |
---|
[2531] | 63 | <label> |
---|
[3185] | 64 | <input type="radio" name="gd" value="2" {if $params.GD_SELECTED==2}checked="checked"{/if}>2.x |
---|
[2531] | 65 | </label> |
---|
| 66 | <label> |
---|
[3185] | 67 | <input type="radio" name="gd" value="1" {if $params.GD_SELECTED==1}checked="checked"{/if}>1.x |
---|
[2531] | 68 | </label> |
---|
| 69 | </li> |
---|
| 70 | |
---|
| 71 | <li> |
---|
| 72 | <span class="property"> |
---|
| 73 | <label for="width">{'maximum width'|@translate}</label> |
---|
| 74 | </span> |
---|
[3185] | 75 | <input type="text" id="width" name="width" value="{$params.WIDTH_TN}"> |
---|
[2531] | 76 | </li> |
---|
| 77 | |
---|
| 78 | <li> |
---|
| 79 | <span class="property"> |
---|
| 80 | <label for="height">{'maximum height'|@translate}</label> |
---|
| 81 | </span> |
---|
[3185] | 82 | <input type="text" id="height" name="height" value="{$params.HEIGHT_TN}"> |
---|
[2531] | 83 | </li> |
---|
| 84 | |
---|
| 85 | <li> |
---|
| 86 | <span class="property">{'Number of thumbnails to create'|@translate}</span> |
---|
[3185] | 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> |
---|
[5021] | 90 | <label><input type="radio" name="n" value="all" {if $params.N_SELECTED=='all'}checked="checked"{/if}> {'all'|@translate}</label> |
---|
[2531] | 91 | </li> |
---|
| 92 | </ul> |
---|
| 93 | </fieldset> |
---|
| 94 | |
---|
[3185] | 95 | <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}></p> |
---|
[2531] | 96 | </form> |
---|
| 97 | {/if} {*isset params*} |
---|
| 98 | |
---|
| 99 | {if !empty($remainings) } |
---|
[5021] | 100 | <div class="admin">{$TOTAL_NB_REMAINING} {'pictures without thumbnail (jpeg and png only)'|@translate}</div> |
---|
[2531] | 101 | <table style="width:100%;"> |
---|
| 102 | <tr class="throw"> |
---|
| 103 | <td> </td> |
---|
[2944] | 104 | <td style="width:60%;">{'Path'|@translate}</td> |
---|
[5021] | 105 | <td>{'Filesize'|@translate}</td> |
---|
[2531] | 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} |
---|
[5021] | 118 | <div style="text-align:center;font-weight:bold;margin:10px;"> [ {'No missing thumbnail'|@translate} ]</div> |
---|
[2531] | 119 | {/if} |
---|