1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | var ulm; |
---|
4 | |
---|
5 | $(window).load( |
---|
6 | function () |
---|
7 | { |
---|
8 | ulm=new userLinksManage( |
---|
9 | {}, |
---|
10 | { |
---|
11 | g002_ok:"{/literal}{'g002_ok'|@translate}{literal}", |
---|
12 | g002_cancel:"{/literal}{'g002_cancel'|@translate}{literal}", |
---|
13 | g002_loading:"{/literal}{'g002_loading'|@translate}{literal}", |
---|
14 | g002_editoflink:"{/literal}{'g002_editoflink'|@translate}{literal}", |
---|
15 | g002_createoflink:"{/literal}{'g002_createoflink'|@translate}{literal}" |
---|
16 | }, |
---|
17 | '{/literal}{$token}{literal}' |
---|
18 | ); |
---|
19 | } |
---|
20 | ); |
---|
21 | </script> |
---|
22 | {/literal} |
---|
23 | |
---|
24 | |
---|
25 | <div class='addLink'> |
---|
26 | <a onclick="ulm.edit('');">{'g002_addlink'|@translate}</a> |
---|
27 | </div> |
---|
28 | <br> |
---|
29 | |
---|
30 | <ul id='iList' class='menuUl'> |
---|
31 | </ul> |
---|
32 | |
---|
33 | <div id='iListOrderButtons' style='display:none;'> |
---|
34 | <input id='iBtValid' type='button' value="{'g002_valid_order'|@translate}" onclick='ulm.doUpdateOrder();'> |
---|
35 | <input id='iBtReset' type='button' value="{'g002_reset_order'|@translate}" onclick='ulm.load();'> |
---|
36 | </div> |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | <div id="iDialogDelete"> |
---|
42 | </div> |
---|
43 | |
---|
44 | |
---|
45 | <div id="iDialogEdit" dialogTitle="{'g002_editLink'|@translate}"> |
---|
46 | <div id='iBDProcessing' style="display:none;position:absolute;width:100%;height:100%;background:#000000;opacity:0.75"> |
---|
47 | <img src="plugins/GrumPluginClasses/icons/processing.gif" style="margin-top:100px;"> |
---|
48 | </div> |
---|
49 | |
---|
50 | <table class="formtable"> |
---|
51 | <tr> |
---|
52 | <td>{'g002_label'|@translate}</td> |
---|
53 | <td><div id='iamm_label'></div></td> |
---|
54 | </tr> |
---|
55 | |
---|
56 | <tr> |
---|
57 | <td>{'g002_url'|@translate}</td> |
---|
58 | <td><div id='iamm_url'></div></td> |
---|
59 | </tr> |
---|
60 | |
---|
61 | <tr> |
---|
62 | <td>{'g002_icon'|@translate}</td> |
---|
63 | <td> |
---|
64 | <div id="iamm_icon" style='display:none;'> |
---|
65 | [ |
---|
66 | {foreach from=$datas.iconsValues key=name item=icon name=items} |
---|
67 | {ldelim}"value":"{$icon.value}","cols":["<img src='{$icon.img}'>", "{$icon.label}"]{rdelim}{if !$smarty.foreach.items.last},{/if} |
---|
68 | {/foreach} |
---|
69 | ] |
---|
70 | </div> |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr> |
---|
75 | <td>{'g002_mode'|@translate}</td> |
---|
76 | <td> |
---|
77 | <div id="iamm_mode" style='display:none;'> |
---|
78 | [ |
---|
79 | {foreach from=$datas.modesValues key=name item=mode name=items} |
---|
80 | {ldelim}"value":"{$mode.value}","cols":["{$mode.label}"]{rdelim}{if !$smarty.foreach.items.last},{/if} |
---|
81 | {/foreach} |
---|
82 | ] |
---|
83 | </div> |
---|
84 | </td> |
---|
85 | </tr> |
---|
86 | |
---|
87 | <tr> |
---|
88 | <td>{'g002_visible'|@translate}</td> |
---|
89 | <td> |
---|
90 | <div id="iamm_visible"> |
---|
91 | <label><input type="radio" value="y"> {'g002_yesno_y'|@translate}<br></label> |
---|
92 | <label><input type="radio" value="n"> {'g002_yesno_n'|@translate}</label> |
---|
93 | </div> |
---|
94 | </td> |
---|
95 | </tr> |
---|
96 | |
---|
97 | <tr> |
---|
98 | <td>{'g002_accessibility'|@translate}</td> |
---|
99 | <td style='min-width:475px;'> |
---|
100 | <div id="iamm_access"> |
---|
101 | <table> |
---|
102 | <tr> |
---|
103 | <td style='width:50%;font-weight:bold;'>{'User'|@translate}</td> |
---|
104 | <td style='width:50%;font-weight:bold;'>{'Group'|@translate}</td> |
---|
105 | </tr> |
---|
106 | <tr> |
---|
107 | <td> |
---|
108 | <div id='iamm_access_users'> |
---|
109 | {foreach from=$datas.access.users item=values} |
---|
110 | <label><input type="checkbox" value="{$values.id}" class='visibilityUser' /> {$values.name}</label><br/> |
---|
111 | {/foreach} |
---|
112 | </div> |
---|
113 | </td> |
---|
114 | <td> |
---|
115 | <div id='iamm_access_groups'> |
---|
116 | {foreach from=$datas.access.groups item=values} |
---|
117 | <label><input type="checkbox" value="{$values.id}" class='visibilityGroup' /> {$values.name}</label><br/> |
---|
118 | {/foreach} |
---|
119 | </div> |
---|
120 | </td> |
---|
121 | </tr> |
---|
122 | </table> |
---|
123 | |
---|
124 | |
---|
125 | </div> |
---|
126 | </td> |
---|
127 | </tr> |
---|
128 | |
---|
129 | </table> |
---|
130 | |
---|
131 | </div> |
---|
132 | |
---|