1 | {* $Id: cat_list.tpl 2531 2008-09-14 12:25:34Z vdigital $ *} |
---|
2 | <h2>{'title_categories'|@translate}</h2> |
---|
3 | |
---|
4 | <h3>{$CATEGORIES_NAV}</h3> |
---|
5 | |
---|
6 | <form id="addVirtual" action="{$F_ACTION}" method="post"> |
---|
7 | <p> |
---|
8 | {'cat_add'|@translate} : <input type="text" name="virtual_name" /> |
---|
9 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED} /> |
---|
10 | {if count($categories)>9 } |
---|
11 | <a href="#EoP" class="button"><img src="{$themeconf.icon_dir}/page_end.png" class="button" alt="page_end" /></a> |
---|
12 | {/if} |
---|
13 | </p> |
---|
14 | </form> |
---|
15 | |
---|
16 | {if count($categories) } |
---|
17 | <form id="categoryOrdering" action="{$F_ACTION}" method="post"> |
---|
18 | <p> |
---|
19 | <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} /> |
---|
20 | <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} /> |
---|
21 | </p> |
---|
22 | <ul class="categoryUl"> |
---|
23 | |
---|
24 | {foreach from=$categories item=category} |
---|
25 | <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}"> |
---|
26 | <!-- category {$category.ID} --> |
---|
27 | <ul class="categoryActions"> |
---|
28 | <li><a href="{$category.U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li> |
---|
29 | <li><a href="{$category.U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li> |
---|
30 | {if isset($category.U_MANAGE_ELEMENTS) } |
---|
31 | <li><a href="{$category.U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$themeconf.icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li> |
---|
32 | {/if} |
---|
33 | <li><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$themeconf.icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li> |
---|
34 | {if isset($category.U_MANAGE_PERMISSIONS) } |
---|
35 | <li><a href="{$category.U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$themeconf.icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li> |
---|
36 | {/if} |
---|
37 | {if isset($category.U_DELETE) } |
---|
38 | <li><a href="{$category.U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li> |
---|
39 | {/if} |
---|
40 | </ul> |
---|
41 | |
---|
42 | <p> |
---|
43 | <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}">{$category.NAME}</a></strong> |
---|
44 | {if $category.IS_VIRTUAL} |
---|
45 | <img src="{$themeconf.icon_dir}/virt_category.png" class="button" alt="{'virtual_category'|@translate}" /> |
---|
46 | {/if} |
---|
47 | </p> |
---|
48 | |
---|
49 | <p> |
---|
50 | <label> |
---|
51 | {'Position'|@translate} : |
---|
52 | <input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}" /> |
---|
53 | </label> |
---|
54 | </p> |
---|
55 | |
---|
56 | </li> |
---|
57 | {/foreach} |
---|
58 | </ul> |
---|
59 | <p> |
---|
60 | <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} /> |
---|
61 | <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} /> |
---|
62 | </p> |
---|
63 | |
---|
64 | </form> |
---|
65 | {/if} |
---|