aboutsummaryrefslogtreecommitdiffstats
path: root/template/default/admin/cat_options.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-11-23 22:31:24 +0000
committerplegall <plg@piwigo.org>2004-11-23 22:31:24 +0000
commitf0fcd1eedc26c0d36b6b0556b9f53124ba9f889f (patch)
tree0502dbd43c04199ec2ba45913985fee86793491a /template/default/admin/cat_options.tpl
parent5197779bba12db45508becc910d5886d77f3675d (diff)
- 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 git-svn-id: http://piwigo.org/svn/trunk@614 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/default/admin/cat_options.tpl')
-rw-r--r--template/default/admin/cat_options.tpl83
1 files changed, 33 insertions, 50 deletions
diff --git a/template/default/admin/cat_options.tpl b/template/default/admin/cat_options.tpl
index 148f72e0b..1a5f442ba 100644
--- a/template/default/admin/cat_options.tpl
+++ b/template/default/admin/cat_options.tpl
@@ -1,60 +1,43 @@
-<p class="confMenu">
- <a class="{UPLOAD_CLASS}" href="{U_UPLOAD}">{L_CAT_OPTIONS_MENU_UPLOAD}</a>
- <a class="{COMMENTS_CLASS}" href="{U_COMMENTS}">{L_CAT_OPTIONS_MENU_COMMENTS}</a>
- <a class="{VISIBLE_CLASS}" href="{U_VISIBLE}">{L_CAT_OPTIONS_MENU_VISIBLE}</a>
- <a class="{STATUS_CLASS}" href="{U_STATUS}">{L_CAT_OPTIONS_MENU_STATUS}</a>
-</p>
+<table width="100%" align="center">
+ <tr class="admin">
+ <th colspan="2">{L_TITLE}</th>
+ </tr>
+</table>
<form action="{F_ACTION}" method="post">
- <select style="width:500px" multiple="multiple" name="cat[]" size="20">
- <!-- BEGIN category_option -->
- <option class="{category_option.CLASS}" {category_option.SELECTED} value="{category_option.VALUE}">{category_option.OPTION}</option>
- <!-- END category_option -->
+ <table>
+ <tr>
+ <td style="text-align:center;">{L_CAT_OPTIONS_TRUE}</td>
+ <td></td>
+ <td style="text-align:center;">{L_CAT_OPTIONS_FALSE}</td>
+ </tr>
+ <tr>
+ <td>
+ <select style="width:300px" multiple="multiple" name="cat_true[]" size="20">
+ <!-- BEGIN category_option_true -->
+ <option class="{category_option_true.CLASS}" {category_option_true.SELECTED} value="{category_option_true.VALUE}">{category_option_true.OPTION}</option>
+ <!-- END category_option_true -->
</select>
+ </td>
+ <td valign="middle">
+ <input type="submit" value="&rarr;" name="falsify" style="font-size:15px;" class="bouton" />
+ <br />
+ <input type="submit" value="&larr;" name="trueify" style="font-size:15px;" class="bouton" />
+ </td>
+ <td>
+ <select style="width:300px" multiple="multiple" name="cat_false[]" size="20">
+ <!-- BEGIN category_option_false -->
+ <option class="{category_option_false.CLASS}" {category_option_false.SELECTED} value="{category_option_false.VALUE}">{category_option_false.OPTION}</option>
+ <!-- END category_option_false -->
+ </select>
+ </td>
+ </tr>
+ </table>
- <!-- BEGIN upload -->
- <p>{L_CAT_OPTIONS_UPLOAD_INFO}</p>
- <p>
- <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_UPLOAD_TRUE}</span>
- </p>
- <p>
- <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_UPLOAD_FALSE}</span>
- </p>
- <!-- END upload -->
-
- <!-- BEGIN comments -->
- <p>{L_CAT_OPTIONS_COMMENTS_INFO}</p>
- <p>
- <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_COMMENTS_TRUE}</span>
- </p>
- <p>
- <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_COMMENTS_FALSE}</span>
- </p>
- <!-- END comments -->
-
- <!-- BEGIN visible -->
- <p>{L_CAT_OPTIONS_VISIBLE_INFO}</p>
- <p>
- <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_VISIBLE_TRUE}</span>
- </p>
- <p>
- <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_VISIBLE_FALSE}</span>
- </p>
- <!-- END visible -->
-
- <!-- BEGIN status -->
- <p>{L_CAT_OPTIONS_STATUS_INFO}</p>
- <p>
- <input type="radio" name="option" value="true"/> <span class="optionTrue">{L_CAT_OPTIONS_STATUS_TRUE}</span>
- </p>
- <p>
- <input type="radio" name="option" value="false"/> <span class="optionFalse">{L_CAT_OPTIONS_STATUS_FALSE}</span>
- </p>
- <!-- END status -->
+ <p>{L_CAT_OPTIONS_INFO}</p>
<p style="text-align:center;">
- <input type="submit" value="{L_SUBMIT}" name="submit" class="bouton" />
<input type="reset" name="reset" value="{L_RESET}" class="bouton" />
</p>