1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | |
---|
4 | function change_selected_icon() |
---|
5 | { |
---|
6 | var doc = document.getElementById("iamm_icon"); |
---|
7 | |
---|
8 | var icon_list = Array(); |
---|
9 | |
---|
10 | {/literal} |
---|
11 | {foreach from=$datas.icons_values key=name item=icon} |
---|
12 | icon_list.push('{$icon.img}'); |
---|
13 | {/foreach} |
---|
14 | {literal} |
---|
15 | |
---|
16 | doc.style.backgroundImage='url('+icon_list[doc.options.selectedIndex]+')'; |
---|
17 | } |
---|
18 | |
---|
19 | </script> |
---|
20 | {/literal} |
---|
21 | |
---|
22 | |
---|
23 | {if isset($datas.modeedit)} |
---|
24 | |
---|
25 | <h3> |
---|
26 | {if $datas.modeedit=='create'} |
---|
27 | {'g002_createoflink'|@translate} |
---|
28 | {else} |
---|
29 | {'g002_editoflink'|@translate} |
---|
30 | {/if} |
---|
31 | / <span style="font-weight:normal"><a href="{$datas.lnk_list}">{'g002_linkslist'|@translate}</a></span></h3> |
---|
32 | </h3> |
---|
33 | |
---|
34 | <form method="post" action="" class="general"> |
---|
35 | <fieldset> |
---|
36 | <table class="formtable"> |
---|
37 | <tr> |
---|
38 | <td>{'g002_label'|@translate}<td> |
---|
39 | <td><input type='text' name="famm_label" id='iamm_label' value='{$datas.label}' maxlength=50 size=50></td> |
---|
40 | </tr> |
---|
41 | |
---|
42 | <tr> |
---|
43 | <td>{'g002_url'|@translate}<td> |
---|
44 | <td><input type='text' name="famm_url" id='iamm_url' value='{$datas.url}' maxlength=255 size=50></td> |
---|
45 | </tr> |
---|
46 | |
---|
47 | <tr> |
---|
48 | <td>{'g002_icon'|@translate}<td> |
---|
49 | <td> |
---|
50 | <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;"> |
---|
51 | {foreach from=$datas.icons_values key=name item=icon} |
---|
52 | <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> |
---|
53 | {/foreach} |
---|
54 | </select> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr> |
---|
59 | <td>{'g002_mode'|@translate}<td> |
---|
60 | <td> |
---|
61 | <select name="famm_mode" id="iamm_mode"> |
---|
62 | {html_options values=$datas.mode_values output=$datas.mode_labels selected=$datas.mode_selected} |
---|
63 | </select> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | |
---|
67 | <tr> |
---|
68 | <td>{'g002_visible'|@translate}<td> |
---|
69 | <td> |
---|
70 | <select name="famm_visible" id="iamm_visible"> |
---|
71 | {html_options values=$datas.visible_values output=$datas.visible_labels selected=$datas.visible_selected} |
---|
72 | </select> |
---|
73 | </td> |
---|
74 | </tr> |
---|
75 | |
---|
76 | </table> |
---|
77 | </fieldset> |
---|
78 | |
---|
79 | |
---|
80 | {if $datas.modeedit=='create'} |
---|
81 | <p> |
---|
82 | <input type="submit" name="famm_submit_create" id="iamm_submit_create" value="{'g002_createthelink'|@translate}" > |
---|
83 | </p> |
---|
84 | {/if} |
---|
85 | |
---|
86 | {if $datas.modeedit=='modify'} |
---|
87 | <p> |
---|
88 | <input type="submit" name="famm_submit_modify" id="iamm_submit_modify" value="{'g002_editthelink'|@translate}" > |
---|
89 | </p> |
---|
90 | {/if} |
---|
91 | |
---|
92 | <input type="hidden" name="famm_modeedit" value="{$datas.modeedit}"> |
---|
93 | <input type="hidden" name="famm_id" value="{$datas.id}"> |
---|
94 | |
---|
95 | </form> |
---|
96 | |
---|
97 | {/if} |
---|