aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/menubar.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
committerplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
commit14778ce673277f2df41f963aa70df1cbed427294 (patch)
tree8c723d4d9827876dbf19d2bd581405fc50910860 /admin/themes/default/template/menubar.tpl
parentc396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff)
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/menubar.tpl')
-rw-r--r--admin/themes/default/template/menubar.tpl53
1 files changed, 53 insertions, 0 deletions
diff --git a/admin/themes/default/template/menubar.tpl b/admin/themes/default/template/menubar.tpl
new file mode 100644
index 000000000..552880b45
--- /dev/null
+++ b/admin/themes/default/template/menubar.tpl
@@ -0,0 +1,53 @@
+{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
+{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" }
+{known_script id="jquery-tablednd" src=$ROOT_URL|@cat:"themes/default/js/jquery.tablednd.js"}
+
+{literal}
+<script type="text/javascript">
+$(function() {
+$('table.table2').tableDnD({
+onDrop:function(table,row) {
+var rows = table.tBodies[0].rows;
+for (var i=0; i<rows.length; i++) {
+ $(rows[i])
+ .attr('class', 'row'+i%2)
+ .find("input:text").attr('value', (i+1)*10);
+}
+}
+});
+});
+</script>
+{/literal}
+
+<div class="titrePage">
+ <h2>Menubar</h2>
+</div>
+<div id="debugArea"></div>
+<form method="post" action="{$F_ACTION}" class="properties">
+ <table class="table2" style="width:99%">
+ <thead>
+ <tr class="throw">
+ <td>Id</td>
+ <td>{'Author'|@translate}</td>
+ <td>{'Name'|@translate}</td>
+ <td>{'Position'|@translate}</td>
+ <td>{'Hide'|@translate}</td>
+ </tr>
+ </thead>
+ <tbody>
+ {foreach from=$blocks item=block name="block_loop"}
+ <tr class="{if $smarty.foreach.block_loop.index is odd}row1{else}row2{/if}">
+ <td>{$block.reg->get_id()}</td>
+ <td>{$block.reg->get_owner()}</td>
+ <td>{$block.reg->get_name()|@translate}</td>
+ <td><input type="text" name="pos_{$block.reg->get_id()}" value={math equation="abs(pos)" pos=$block.pos} size="2"></td>
+ <td><input type="checkbox" name="hide_{$block.reg->get_id()}" {if $block.pos<0}checked="checked"{/if}></td>
+ </tr>
+ {/foreach}
+ </tbody>
+ </table>
+ <p>
+ <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
+ <input type="submit" name="reset" value="{'Reset'|@translate}" {$TAG_INPUT_ENABLED}>
+ </p>
+</form>