blob: 0cf874dc2edf705886bbe1cd1844eacba4a73bb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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}
|