aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AMenuManager/admin/amm_linkslist_edit.tpl
diff options
context:
space:
mode:
authorgrum <grum@piwigo.org>2008-08-03 07:48:39 +0000
committergrum <grum@piwigo.org>2008-08-03 07:48:39 +0000
commit7ebed797262c7f3371ae1b16ed455f7e9879caf0 (patch)
tree7abef8d2994ae2efa66f38e3027369c7ac0e3926 /plugins/AMenuManager/admin/amm_linkslist_edit.tpl
parentee0af5d43d607ffb969a10e6a21e9df923651d52 (diff)
Asked by rvelices on this topic
http://forum.phpwebgallery.net/viewtopic.php?pid=92097#p92097 A plugin to integrate the menu class see test_menu directory A plugin to show how to use the menu class see AMenuManager directory And common classes needed for the AMenuManager plugin see grum_plugins_classes-2 directory See topic http://forum.phpwebgallery.net/viewtopic.php?pid=92637#p92637 for more informations git-svn-id: http://piwigo.org/svn/trunk@2466 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/AMenuManager/admin/amm_linkslist_edit.tpl')
-rw-r--r--plugins/AMenuManager/admin/amm_linkslist_edit.tpl97
1 files changed, 97 insertions, 0 deletions
diff --git a/plugins/AMenuManager/admin/amm_linkslist_edit.tpl b/plugins/AMenuManager/admin/amm_linkslist_edit.tpl
new file mode 100644
index 000000000..0cf874dc2
--- /dev/null
+++ b/plugins/AMenuManager/admin/amm_linkslist_edit.tpl
@@ -0,0 +1,97 @@
+{literal}
+<script type="text/javascript">
+
+ function change_selected_icon()
+ {
+ var doc = document.getElementById("iamm_icon");
+
+ var icon_list = Array();
+
+ {/literal}
+ {foreach from=$datas.icons_values key=name item=icon}
+ icon_list.push('{$icon.img}');
+ {/foreach}
+ {literal}
+
+ doc.style.backgroundImage='url('+icon_list[doc.options.selectedIndex]+')';
+ }
+
+</script>
+{/literal}
+
+
+{if isset($datas.modeedit)}
+
+ <h3>
+ {if $datas.modeedit=='create'}
+ {'g002_createoflink'|@translate}
+ {else}
+ {'g002_editoflink'|@translate}
+ {/if}
+ / <span style="font-weight:normal"><a href="{$datas.lnk_list}">{'g002_linkslist'|@translate}</a></span></h3>
+ </h3>
+
+ <form method="post" action="" class="general">
+ <fieldset>
+ <table class="formtable">
+ <tr>
+ <td>{'g002_label'|@translate}<td>
+ <td><input type='text' name="famm_label" id='iamm_label' value='{$datas.label}' maxlength=50 size=50></td>
+ </tr>
+
+ <tr>
+ <td>{'g002_url'|@translate}<td>
+ <td><input type='text' name="famm_url" id='iamm_url' value='{$datas.url}' maxlength=255 size=50></td>
+ </tr>
+
+ <tr>
+ <td>{'g002_icon'|@translate}<td>
+ <td>
+ <select name="famm_icon" id="iamm_icon" onchange="change_selected_icon();" style="background-image:url('{$datas.icons_img}');background-position:2px 1px;background-repeat:no-repeat;padding-left:18px;">
+ {foreach from=$datas.icons_values key=name item=icon}
+ <option value="{$icon.value}" style="background: transparent url('{$icon.img}') no-repeat scroll 0px 0px;padding-left:20px;" {if $icon.value==$datas.icons_selected}selected{/if}>{$icon.label}</option>
+ {/foreach}
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td>{'g002_mode'|@translate}<td>
+ <td>
+ <select name="famm_mode" id="iamm_mode">
+ {html_options values=$datas.mode_values output=$datas.mode_labels selected=$datas.mode_selected}
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td>{'g002_visible'|@translate}<td>
+ <td>
+ <select name="famm_visible" id="iamm_visible">
+ {html_options values=$datas.visible_values output=$datas.visible_labels selected=$datas.visible_selected}
+ </select>
+ </td>
+ </tr>
+
+ </table>
+ </fieldset>
+
+
+ {if $datas.modeedit=='create'}
+ <p>
+ <input type="submit" name="famm_submit_create" id="iamm_submit_create" value="{'g002_createthelink'|@translate}" >
+ </p>
+ {/if}
+
+ {if $datas.modeedit=='modify'}
+ <p>
+ <input type="submit" name="famm_submit_modify" id="iamm_submit_modify" value="{'g002_editthelink'|@translate}" >
+ </p>
+ {/if}
+
+ <input type="hidden" name="famm_modeedit" value="{$datas.modeedit}">
+ <input type="hidden" name="famm_id" value="{$datas.id}">
+
+ </form>
+
+{/if} \ No newline at end of file