mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-01 11:02:43 +02:00
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
97 lines
2.9 KiB
Smarty
97 lines
2.9 KiB
Smarty
{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} |