Dotclear


Ignore:
Timestamp:
08/25/13 09:45:43 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Categories: Add spader before URL in categories list. html/css for single category edit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/category.php

    r1553 r1571  
    191191     '<p><label for="new_cat_parent">'.__('Parent:').' '. 
    192192     '<select id="new_cat_parent" name="new_cat_parent" >'. 
    193      '<option value="0">'.__('Top level').'</option>'; 
     193     '<option value="0">'.__('(none)').'</option>'; 
    194194     while ($rs->fetch()) { 
    195195          echo '<option value="'.$rs->cat_id.'" '.(!empty($_POST['new_cat_parent']) && $_POST['new_cat_parent'] == $rs->cat_id ? 'selected="selected"' : '').'>'. 
    196           str_repeat('&nbsp;&nbsp;',$rs->level).html::escapeHTML($rs->cat_title).'</option>'; 
     196          str_repeat('&nbsp;&nbsp;',$rs->level-1).($rs->level-1 == 0 ? '' : '&bull; ').html::escapeHTML($rs->cat_title).'</option>';    
    197197     } 
    198198     echo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map