Changeset 1347 for branches


Ignore:
Timestamp:
Jun 13, 2006, 10:38:21 PM (18 years ago)
Author:
plg
Message:

bug 402 fixed: invalid empty HTML list when no categories to list.

Location:
branches/branch-1_6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/admin/cat_list.php

    r1224 r1347  
    250250    $categories[$row['id_uppercat']]['nb_subcats'] = $row['nb_subcats'];
    251251  }
     252
     253  $template->assign_block_vars('categories', array());
    252254}
    253255
     
    268270
    269271  $template->assign_block_vars(
    270     'category',
     272    'categories.category',
    271273    array(
    272274      'NAME'       => $category['name'],
     
    289291  {
    290292    $template->assign_block_vars(
    291       'category.delete',
     293      'categories.category.delete',
    292294      array(
    293295        'URL'=>$self_url.'&delete='.$category['id']
     
    299301  {
    300302    $template->assign_block_vars(
    301       'category.elements',
     303      'categories.category.elements',
    302304      array(
    303305        'URL'=>$base_url.'element_set&cat='.$category['id']
  • branches/branch-1_6/template/yoga/admin/cat_list.tpl

    r1124 r1347  
    44<h3>{CATEGORIES_NAV}</h3>
    55
     6<!-- BEGIN categories -->
    67<form id="categoryOrdering" action="{F_ACTION}" method="post">
    78
     
    1213
    1314      <ul class="categoryActions">
    14         <li><a href="{category.U_JUMPTO}" title="{lang:jump to category}"><img src="{themeconf:icon_dir}/category_jump-to.png" class="button" alt="{lang:jump to}" /></a></li>
    15         <li><a href="{category.U_EDIT}" title="{lang:edit category informations}"><img src="{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li>
     15        <li><a href="{categories.category.U_JUMPTO}" title="{lang:jump to category}"><img src="{themeconf:icon_dir}/category_jump-to.png" class="button" alt="{lang:jump to}" /></a></li>
     16        <li><a href="{categories.category.U_EDIT}" title="{lang:edit category informations}"><img src="{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li>
    1617        <!-- BEGIN elements -->
    17         <li><a href="{category.elements.URL}" title="{lang:manage category elements}"><img src="{themeconf:icon_dir}/category_elements.png" class="button" alt="{lang:elements}" /></a></li>
     18        <li><a href="{categories.category.elements.URL}" title="{lang:manage category elements}"><img src="{themeconf:icon_dir}/category_elements.png" class="button" alt="{lang:elements}" /></a></li>
    1819        <!-- END elements -->
    19         <li><a href="{category.U_CHILDREN}" title="{lang:manage sub-categories}"><img src="{themeconf:icon_dir}/category_children.png" class="button" alt="{lang:sub-categories}" /></a></li>
     20        <li><a href="{categories.category.U_CHILDREN}" title="{lang:manage sub-categories}"><img src="{themeconf:icon_dir}/category_children.png" class="button" alt="{lang:sub-categories}" /></a></li>
    2021        <!-- BEGIN permissions -->
    21         <li><a href="{category.permissions.URL}" title="{lang:edit category permissions}" ><img src="{themeconf:icon_dir}/category_permissions.png" class="button" alt="{lang:permissions}" /></a></li>
     22        <li><a href="{categories.category.permissions.URL}" title="{lang:edit category permissions}" ><img src="{themeconf:icon_dir}/category_permissions.png" class="button" alt="{lang:permissions}" /></a></li>
    2223        <!-- END permissions -->
    2324        <!-- BEGIN delete -->
    24         <li><a href="{category.delete.URL}" title="{lang:delete category}" onclick="return confirm('{lang:Are you sure?}');"><img src="{themeconf:icon_dir}/category_delete.png" class="button" alt="{lang:delete}" /></a></li>
     25        <li><a href="{categories.category.delete.URL}" title="{lang:delete category}" onclick="return confirm('{lang:Are you sure?}');"><img src="{themeconf:icon_dir}/category_delete.png" class="button" alt="{lang:delete}" /></a></li>
    2526        <!-- END delete -->
    2627      </ul>
    2728
    28       <p><strong><a href="{category.U_CHILDREN}" title="{lang:manage sub-categories}">{category.NAME}</a></strong></p>
     29      <p><strong><a href="{categories.category.U_CHILDREN}" title="{lang:manage sub-categories}">{categories.category.NAME}</a></strong></p>
    2930
    3031      <p>
    3132        <label>
    3233          {lang:Position} :
    33           <input type="text" size="4" name="catOrd[{category.ID}]" maxlength="4" value="{category.RANK}" />
     34          <input type="text" size="4" name="catOrd[{categories.category.ID}]" maxlength="4" value="{categories.category.RANK}" />
    3435        </label>
    3536      </p>
     
    4546
    4647</form>
     48<!-- END categories -->
    4749
    4850<form id="addVirtual" action="{F_ACTION}" method="post">
Note: See TracChangeset for help on using the changeset viewer.