2008-02-28 02:41:48 +00:00
|
|
|
{* $Id$ *}
|
|
|
|
<h2>{'title_categories'|@translate}</h2>
|
2005-08-19 21:22:34 +00:00
|
|
|
|
2008-02-28 02:41:48 +00:00
|
|
|
<h3>{$CATEGORIES_NAV}</h3>
|
2005-08-19 21:22:34 +00:00
|
|
|
|
2008-02-28 02:41:48 +00:00
|
|
|
<form id="addVirtual" action="{$F_ACTION}" method="post">
|
2007-01-10 18:43:44 +00:00
|
|
|
<p>
|
2008-02-28 02:41:48 +00:00
|
|
|
{'cat_add'|@translate} : <input type="text" name="virtual_name" />
|
2008-03-08 12:38:09 +00:00
|
|
|
<input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED} />
|
2008-02-28 02:41:48 +00:00
|
|
|
{if count($categories)>9 }
|
2008-03-08 12:38:09 +00:00
|
|
|
<a href="#EoP" class="button"><img src="{$themeconf.icon_dir}/page_end.png" class="button" alt="page_end" /></a>
|
2008-02-28 02:41:48 +00:00
|
|
|
{/if}
|
2007-01-10 18:43:44 +00:00
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
|
2008-02-28 02:41:48 +00:00
|
|
|
{if count($categories) }
|
|
|
|
<form id="categoryOrdering" action="{$F_ACTION}" method="post">
|
2007-02-04 18:42:37 +00:00
|
|
|
<p>
|
2008-02-28 02:41:48 +00:00
|
|
|
<input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
|
|
|
|
<input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
|
2007-02-04 18:42:37 +00:00
|
|
|
</p>
|
2005-10-20 19:06:17 +00:00
|
|
|
<ul class="categoryUl">
|
2005-08-19 21:22:34 +00:00
|
|
|
|
2008-02-28 02:41:48 +00:00
|
|
|
{foreach from=$categories item=category}
|
|
|
|
<li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}">
|
|
|
|
<!-- category {$category.ID} -->
|
2005-08-19 21:22:34 +00:00
|
|
|
<ul class="categoryActions">
|
2008-02-28 02:41:48 +00:00
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
{if isset($category.U_MANAGE_ELEMENTS) }
|
|
|
|
<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>
|
|
|
|
{/if}
|
|
|
|
<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>
|
|
|
|
{if isset($category.U_MANAGE_PERMISSIONS) }
|
|
|
|
<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>
|
|
|
|
{/if}
|
|
|
|
{if isset($category.U_DELETE) }
|
|
|
|
<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>
|
|
|
|
{/if}
|
2005-08-19 21:22:34 +00:00
|
|
|
</ul>
|
|
|
|
|
2007-01-25 07:26:28 +00:00
|
|
|
<p>
|
2008-02-28 02:41:48 +00:00
|
|
|
<strong><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}">{$category.NAME}</a></strong>
|
|
|
|
{if $category.IS_VIRTUAL}
|
|
|
|
<img src="{$themeconf.icon_dir}/virt_category.png" class="button" alt="{'virtual_category'|@translate}" />
|
|
|
|
{/if}
|
2007-01-25 07:26:28 +00:00
|
|
|
</p>
|
2005-08-19 21:22:34 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<label>
|
2008-02-28 02:41:48 +00:00
|
|
|
{'Position'|@translate} :
|
|
|
|
<input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}" />
|
2005-08-19 21:22:34 +00:00
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</li>
|
2008-02-28 02:41:48 +00:00
|
|
|
{/foreach}
|
2005-10-20 19:06:17 +00:00
|
|
|
</ul>
|
2006-03-06 23:28:51 +00:00
|
|
|
<p>
|
2008-02-28 02:41:48 +00:00
|
|
|
<input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
|
|
|
|
<input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
|
2006-03-06 23:28:51 +00:00
|
|
|
</p>
|
2005-08-19 21:22:34 +00:00
|
|
|
|
|
|
|
</form>
|
2008-02-28 02:41:48 +00:00
|
|
|
{/if}
|