aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-03-25 22:10:55 +0000
committerplegall <plg@piwigo.org>2005-03-25 22:10:55 +0000
commitef080278bf4d0e073daa5f6a6f6d3b8ae4c29d9c (patch)
tree243d94d5b810325c43ea9e6998b7929319bc1e3e /template
parent333d44c398e31dd7f24efbcf50d53c1ce2a754ba (diff)
- new feature : caddie. The purpose is batch management, especially
concerning elements to categories associations. This is the very first release, needs many improvements. - new function : array_from_query. Firstly used by "caddie" feature, it may be useful in many cases. git-svn-id: http://piwigo.org/svn/trunk@755 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/default/admin.tpl1
-rw-r--r--template/default/admin/element_set_global.tpl44
-rw-r--r--template/default/category.tpl1
3 files changed, 46 insertions, 0 deletions
diff --git a/template/default/admin.tpl b/template/default/admin.tpl
index 50e2e581a..953e15f80 100644
--- a/template/default/admin.tpl
+++ b/template/default/admin.tpl
@@ -49,6 +49,7 @@
<li><a class="adminMenu" href="{U_WAITING}">{L_WAITING}</a></li>
<li><a class="adminMenu" href="{U_THUMBNAILS}">{L_THUMBNAILS}</a></li>
<li><a class="adminMenu" href="{U_COMMENTS}">{L_COMMENTS}</a></li>
+ <li><a class="adminMenu" href="{U_SET}">Caddie</a></li>
</ul>
</div>
<div class="titreMenu">{L_IDENTIFY}</div>
diff --git a/template/default/admin/element_set_global.tpl b/template/default/admin/element_set_global.tpl
new file mode 100644
index 000000000..c693ff53a
--- /dev/null
+++ b/template/default/admin/element_set_global.tpl
@@ -0,0 +1,44 @@
+<p style="text-align:center"><a href="{U_EMPTY_CADDIE}">Empty caddie</a></p>
+
+<form action="{F_ACTION}" method="post">
+
+ associate to
+ <select style="width:400px" name="associate" size="1">
+ <!-- BEGIN associate_option -->
+ <option {associate_option.SELECTED} value="{associate_option.VALUE}">{associate_option.OPTION}</option>
+ <!-- END associate_option -->
+ </select>
+
+ <br />dissociate from
+ <select style="width:400px" name="dissociate" size="1">
+ <!-- BEGIN dissociate_option -->
+ <option {dissociate_option.SELECTED} value="{dissociate_option.VALUE}">{dissociate_option.OPTION}</option>
+ <!-- END dissociate_option -->
+ </select>
+
+ <br />target
+ <input type="radio" name="target" value="all" /> all
+ <input type="radio" name="target" value="selection" /> selection
+
+ <br /><input type="submit" value="{L_SUBMIT}" name="submit" class="bouton" />
+
+ <!-- BEGIN thumbnails -->
+ <table valign="top" align="center" class="thumbnail">
+ <!-- BEGIN line -->
+ <tr>
+ <!-- BEGIN thumbnail -->
+ <td class="thumbnail"
+ onmousedown="document.getElementById('selection_{thumbnails.line.thumbnail.ID}').checked = (document.getElementById('selection_{thumbnails.line.thumbnail.ID}').checked ? false : true);">
+ <img src="{thumbnails.line.thumbnail.SRC}"
+ alt="{thumbnails.line.thumbnail.ALT}"
+ title="{thumbnails.line.thumbnail.TITLE}"
+ class="thumbLink" />
+ <br /><input type="checkbox" name="selection[]" value="{thumbnails.line.thumbnail.ID}" id="selection_{thumbnails.line.thumbnail.ID}" />
+ </td>
+ <!-- END thumbnail -->
+ </tr>
+ <!-- END line -->
+ </table>
+ <!-- END thumbnails -->
+
+</form>
diff --git a/template/default/category.tpl b/template/default/category.tpl
index 00f95181d..0f503b0af 100644
--- a/template/default/category.tpl
+++ b/template/default/category.tpl
@@ -93,6 +93,7 @@
</table>
<!-- END thumbnails -->
<br />
+ <div class="navigationBar"><a href="{U_CADDIE}">add to caddie</a></div>
<!-- BEGIN cat_infos -->
<!-- BEGIN navigation -->
<div class="navigationBar">{cat_infos.navigation.NAV_BAR}</div>