Changeset 614 for trunk/template/default


Ignore:
Timestamp:
Nov 23, 2004, 11:31:24 PM (20 years ago)
Author:
plg
Message:
  • global categories' options : instead of N horizontal tabs on a single page, N options in the left menu (but the same backend)
  • categories.global_rank : new calculated field. It gives a global rank of the category among all others (updated during ordering)
  • category.php page : menu is generated faster thanks to categories.global_rank, recursivity becomes useless :-)
  • new function to display select box with a set of categories : display_select_cat_wrapper
  • cat_options : instead of using 1 multiselect for true/false items, using 1 multiselect for true, and another one for false. The form provides buttons with arrows to switch categories from one multiselect to another
  • deletion of obsolete function display_categories (working with the old template system)
  • deletion of obsolete functions get_user_plain_structure, create_user_structure, get_user_subcat_ids, update_structure, count_images : useless thanks to global_rank
Location:
trunk/template/default
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/default/admin.tpl

    r602 r614  
    3939  <li><a class="adminMenu" href="{U_CATEGORIES}">{L_MANAGE}</a></li>
    4040  <li><a class="adminMenu" href="{U_UPLOAD}">{L_UPLOAD}</a></li>
    41   <li><a class="adminMenu" href="{U_CAT_OPTIONS}">{L_CAT_OPTIONS}</a></li>
     41  <li><a class="adminMenu" href="{U_COMMENTS}">{L_COMMENTS}</a></li>
     42  <li><a class="adminMenu" href="{U_VISIBLE}">{L_VISIBLE}</a></li>
     43  <li><a class="adminMenu" href="{U_STATUS}">{L_STATUS}</a></li>
    4244</ul>
    4345</div>
  • trunk/template/default/admin/cat_options.tpl

    r604 r614  
    1 <p class="confMenu">
    2   <a class="{UPLOAD_CLASS}" href="{U_UPLOAD}">{L_CAT_OPTIONS_MENU_UPLOAD}</a>
    3   <a class="{COMMENTS_CLASS}" href="{U_COMMENTS}">{L_CAT_OPTIONS_MENU_COMMENTS}</a>
    4   <a class="{VISIBLE_CLASS}" href="{U_VISIBLE}">{L_CAT_OPTIONS_MENU_VISIBLE}</a>
    5   <a class="{STATUS_CLASS}" href="{U_STATUS}">{L_CAT_OPTIONS_MENU_STATUS}</a>
    6 </p>
     1<table width="100%" align="center">
     2  <tr class="admin">
     3    <th colspan="2">{L_TITLE}</th>
     4  </tr>
     5</table>
    76
    87<form action="{F_ACTION}" method="post">
    98
    10   <select style="width:500px" multiple="multiple" name="cat[]" size="20">
    11     <!-- BEGIN category_option -->
    12     <option class="{category_option.CLASS}" {category_option.SELECTED} value="{category_option.VALUE}">{category_option.OPTION}</option>
    13     <!-- END category_option -->
     9  <table>
     10    <tr>
     11      <td style="text-align:center;">{L_CAT_OPTIONS_TRUE}</td>
     12      <td></td>
     13      <td style="text-align:center;">{L_CAT_OPTIONS_FALSE}</td>
     14    </tr>
     15    <tr>
     16      <td>
     17  <select style="width:300px" multiple="multiple" name="cat_true[]" size="20">
     18    <!-- BEGIN category_option_true -->
     19    <option class="{category_option_true.CLASS}" {category_option_true.SELECTED} value="{category_option_true.VALUE}">{category_option_true.OPTION}</option>
     20    <!-- END category_option_true -->
    1421  </select>
     22      </td>
     23      <td valign="middle">
     24  <input type="submit" value="&rarr;" name="falsify" style="font-size:15px;" class="bouton" />
     25  <br />
     26  <input type="submit" value="&larr;" name="trueify" style="font-size:15px;" class="bouton" />
     27      </td>
     28      <td>
     29  <select style="width:300px" multiple="multiple" name="cat_false[]" size="20">
     30    <!-- BEGIN category_option_false -->
     31    <option class="{category_option_false.CLASS}" {category_option_false.SELECTED} value="{category_option_false.VALUE}">{category_option_false.OPTION}</option>
     32    <!-- END category_option_false -->
     33  </select>
     34      </td>
     35    </tr>
     36  </table>
    1537
    16   <!-- BEGIN upload -->
    17   <p>{L_CAT_OPTIONS_UPLOAD_INFO}</p>
    18   <p>
    19     <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_UPLOAD_TRUE}</span>
    20   </p>
    21   <p>
    22     <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_UPLOAD_FALSE}</span>
    23   </p>
    24   <!-- END upload -->
    25 
    26   <!-- BEGIN comments -->
    27   <p>{L_CAT_OPTIONS_COMMENTS_INFO}</p>
    28   <p>
    29     <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_COMMENTS_TRUE}</span>
    30   </p>
    31   <p>
    32     <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_COMMENTS_FALSE}</span>
    33   </p>
    34   <!-- END comments -->
    35 
    36   <!-- BEGIN visible -->
    37   <p>{L_CAT_OPTIONS_VISIBLE_INFO}</p>
    38   <p>
    39     <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_VISIBLE_TRUE}</span>
    40   </p>
    41   <p>
    42     <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_VISIBLE_FALSE}</span>
    43   </p>
    44   <!-- END visible -->
    45 
    46   <!-- BEGIN status -->
    47   <p>{L_CAT_OPTIONS_STATUS_INFO}</p>
    48   <p>
    49     <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_STATUS_TRUE}</span>
    50   </p>
    51   <p>
    52     <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_STATUS_FALSE}</span>
    53   </p>
    54   <!-- END status -->
     38  <p>{L_CAT_OPTIONS_INFO}</p>
    5539
    5640  <p style="text-align:center;">
    57     <input type="submit" value="{L_SUBMIT}" name="submit" class="bouton" />
    5841    <input type="reset" name="reset" value="{L_RESET}" class="bouton" />
    5942  </p>
  • trunk/template/default/admin/user_perm.tpl

    r539 r614  
    1313  <ul class="menu">
    1414    <!-- BEGIN category -->
    15         <li> <a href="{permission.category.CAT_URL}">{permission.category.CAT_NAME}</a>
     15        <li>
     16        <input type="radio" name="{permission.category.CAT_ID}" value="0" {permission.category.AUTH_YES}/>{L_AUTHORIZED}
     17        <input type="radio" name="{permission.category.CAT_ID}" value="1" {permission.category.AUTH_NO}/>{L_FORBIDDEN}
     18        :
     19         <a href="{permission.category.CAT_URL}">{permission.category.CAT_NAME}</a>
    1620        <!-- BEGIN parent_forbidden -->
    1721        {L_PARENT_FORBIDDEN}&nbsp;-&nbsp;
    1822        <!-- END parent_forbidden -->
    19         <input type="radio" name="{permission.category.CAT_ID}" value="0" {permission.category.AUTH_YES}/>{L_AUTHORIZED}
    20         <input type="radio" name="{permission.category.CAT_ID}" value="1" {permission.category.AUTH_NO}/>{L_FORBIDDEN}
    2123                </li>
    2224    <!-- END category -->
  • trunk/template/default/category.tpl

    r555 r614  
    88        </div>
    99        <div class="menu">
    10           <ul class="menu">
    1110            {MENU_CATEGORIES_CONTENT}
    12           </ul>
    1311        <div class="totalImages">[&nbsp;{NB_PICTURE}&nbsp;{L_TOTAL}&nbsp;]</div>
    1412                </div>
Note: See TracChangeset for help on using the changeset viewer.