1 | <div class="titrePage"> |
---|
2 | <h2>{'Permalinks'|@translate}</h2> |
---|
3 | </div> |
---|
4 | |
---|
5 | <form method="post" action=""> |
---|
6 | <fieldset><legend>{'Add/delete a permalink'|@translate}</legend> |
---|
7 | <label>{'Category'|@translate}: |
---|
8 | <select name="cat_id"> |
---|
9 | <option value="0">------</option> |
---|
10 | {html_options options=$categories selected=$categories_selected} |
---|
11 | </select> |
---|
12 | </label> |
---|
13 | |
---|
14 | <label>{'Permalink'|@translate}: |
---|
15 | <input name="permalink"> |
---|
16 | </label> |
---|
17 | |
---|
18 | <label>{'Save to permalink history'|@translate}: |
---|
19 | <input type="checkbox" name="save" checked="checked"> |
---|
20 | </label> |
---|
21 | |
---|
22 | <p> |
---|
23 | <input type="submit" class="submit" name="set_permalink" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> |
---|
24 | </p> |
---|
25 | </fieldset> |
---|
26 | </form> |
---|
27 | |
---|
28 | <h3>{'Permalinks'|@translate}</h3> |
---|
29 | <table class="table2"> |
---|
30 | <tr class="throw"> |
---|
31 | <td>Id {$SORT_ID}</td> |
---|
32 | <td>{'Category'|@translate} {$SORT_NAME}</td> |
---|
33 | <td>{'Permalink'|@translate} {$SORT_PERMALINK}</td> |
---|
34 | </tr> |
---|
35 | {foreach from=$permalinks item=permalink name="permalink_loop"} |
---|
36 | <tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}" style="line-height:1.5em;"> |
---|
37 | <td style="text-align:center;">{$permalink.id}</td> |
---|
38 | <td>{$permalink.name}</td> |
---|
39 | <td>{$permalink.permalink}</td> |
---|
40 | </tr> |
---|
41 | {/foreach} |
---|
42 | </table> |
---|
43 | |
---|
44 | <h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3> |
---|
45 | <table class="table2"> |
---|
46 | <tr class="throw"> |
---|
47 | <td>Id {$SORT_OLD_CAT_ID}</td> |
---|
48 | <td>{'Category'|@translate}</td> |
---|
49 | <td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td> |
---|
50 | <td>{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}</td> |
---|
51 | <td>{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}</td> |
---|
52 | <td style="width:20px;">{'Hit'|@translate} {$SORT_OLD_HIT}</td> |
---|
53 | <td style="width:5px;"></td> |
---|
54 | </tr> |
---|
55 | {foreach from=$deleted_permalinks item=permalink} |
---|
56 | <tr style="line-height:1.5em;"> |
---|
57 | <td style="text-align:center;">{$permalink.cat_id}</td> |
---|
58 | <td>{$permalink.name}</td> |
---|
59 | <td>{$permalink.permalink}</td> |
---|
60 | <td>{$permalink.date_deleted}</td> |
---|
61 | <td>{$permalink.last_hit}</td> |
---|
62 | <td>{$permalink.hit}</td> |
---|
63 | <td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" alt="[{'Delete'|@translate}]" class="button"></a></td> |
---|
64 | </tr> |
---|
65 | {/foreach} |
---|
66 | </table> |
---|