1 | {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} |
---|
2 | {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} |
---|
3 | {known_script id="jquery.tablesorter" src=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} |
---|
4 | {known_script id="jquery.tablesorter.pager" src=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} |
---|
5 | {* |
---|
6 | {combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"} |
---|
7 | {combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} |
---|
8 | {combine_script id="jquery.tablesorter" path=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} |
---|
9 | {combine_script id="jquery.tablesorter.pager" path=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} |
---|
10 | *} |
---|
11 | |
---|
12 | {html_head}<link rel="stylesheet" type="text/css" href="{$LCAS_PATH}admin/template/lcas.css">{/html_head} |
---|
13 | |
---|
14 | <script type="text/javascript"> |
---|
15 | var Personalized_not_allowed = {if $Personalized_not_allowed}true{else}false{/if}; |
---|
16 | {literal} |
---|
17 | jQuery().ready(function(){ |
---|
18 | jQuery('.cluetip').cluetip( |
---|
19 | { |
---|
20 | width: 550, |
---|
21 | splitTitle: '|' |
---|
22 | }); |
---|
23 | }); |
---|
24 | |
---|
25 | function LCAS_blockToggleDisplay( headerId, contentId ) |
---|
26 | { |
---|
27 | if (typeof(headerId)=='string') |
---|
28 | { |
---|
29 | if ( headerId.length> 1) |
---|
30 | blockToggleDisplay(headerId, contentId) ; |
---|
31 | document.getElementById("nb_para").value =headerId ; |
---|
32 | document.getElementById("nb_para2").value =contentId; |
---|
33 | } |
---|
34 | } |
---|
35 | jQuery(document).ready(function() |
---|
36 | { |
---|
37 | jQuery("#sorting") |
---|
38 | .tablesorter({sortList:[[3,0]], headers: { 1: { sorter: false }, 4: { sorter: false }, 5: { sorter: false } } }) |
---|
39 | .tablesorterPager({container: jQuery("#pager"), positionFixed: false, size: 20, totalPages: 0}); |
---|
40 | if (Personalized_not_allowed) { |
---|
41 | jQuery('#LCAS_id_Option0').attr('disabled', 'disabled'); |
---|
42 | jQuery('#LCAS_id_Opt0').attr("title", "{/literal}{'Personalized not allowed tooltip'|@translate}{literal}"); |
---|
43 | } |
---|
44 | } |
---|
45 | ); |
---|
46 | function UpdateAUser(UserId) { |
---|
47 | document.UserList.UserToUpdate.value=UserId;document.UserList.submit(); |
---|
48 | } |
---|
49 | {/literal} |
---|
50 | </script> |
---|
51 | |
---|
52 | <div class="titrePage"> |
---|
53 | <h2>{'LCAS_Title_Tab'|@translate} {$LCAS_VERSION}<br>{'LCAS_SubTitle_Global'|@translate}</h2> |
---|
54 | </div> |
---|
55 | |
---|
56 | <form method="post" action="" class="general"> |
---|
57 | |
---|
58 | <input name="nb_para" id="nb_para" type="text" value="{$nb_para}" style="display:none"> |
---|
59 | <input name="nb_para2" id="nb_para2" type="text" value="{$nb_para2}" style="display:none"> |
---|
60 | |
---|
61 | <div id="instructionConfig2" class="instructionBlock" > |
---|
62 | |
---|
63 | <div id="config2_header" class="instructionBlockHeader"> |
---|
64 | <span class="cluetip" title="{'LCAS_sensitiveTitle'|translate}|{'LCAS_sensitiveTitle_d'|translate}"> |
---|
65 | {'LCAS_Title_Global'|@translate} |
---|
66 | </span> |
---|
67 | </div> |
---|
68 | |
---|
69 | <div id="Config2" class="instructionBlockContent" style="display:block"> |
---|
70 | <fieldset> |
---|
71 | <ul> |
---|
72 | <li> |
---|
73 | <label class="cluetip" title="{'LCAS_caseSensitiveTitle'|translate}|{'LCAS_caseSensitiveTitle_d'|translate}"> |
---|
74 | {'LCAS option'|@translate} |
---|
75 | </label> |
---|
76 | <br><br> |
---|
77 | <label for = "LCAS_id_Option1" id ="LCAS_id_Opt1"> |
---|
78 | <input type="radio" value="1" {if $LCAS_Option == '1'}checked="checked"{/if} id="LCAS_id_Option1" name="LCAS_Option"> |
---|
79 | {'LCAS_Option1'|@translate}<br> |
---|
80 | </label> |
---|
81 | <label for = "LCAS_id_Option2" id ="LCAS_id_Opt2"> |
---|
82 | <input type="radio" value="2" {if $LCAS_Option == '2'}checked="checked"{/if} id="LCAS_id_Option2" name="LCAS_Option"> |
---|
83 | {'LCAS_Option2'|@translate}<br> |
---|
84 | </label> |
---|
85 | <label for = "LCAS_id_Option3" id ="LCAS_id_Opt3"> |
---|
86 | <input type="radio" value="3" {if $LCAS_Option == '3'}checked="checked"{/if} id="LCAS_id_Option3" name="LCAS_Option"> |
---|
87 | {'LCAS_Option3'|@translate}<br> |
---|
88 | </label> |
---|
89 | {* <!-- Shall be implemented later |
---|
90 | <label for = "LCAS_id_Option0" id ="LCAS_id_Opt0"> |
---|
91 | <input type="radio" value="0" {if $LCAS_Option == '0'}checked="checked"{/if} id="LCAS_id_Option0" name="LCAS_Option"> |
---|
92 | {'LCAS_Option0'|@translate}<br>{if $Personalized_not_allowed}{'Personalized not allowed explanation'|@translate}{/if}<br> |
---|
93 | </label> |
---|
94 | --> *} |
---|
95 | <br><br> |
---|
96 | </li> |
---|
97 | |
---|
98 | <li> |
---|
99 | <label class="cluetip" title="{'LCAS_MailTitle'|translate}|{'LCAS_MailTitle_d'|translate}"> |
---|
100 | {'LCAS_Mail'|@translate} |
---|
101 | </label> |
---|
102 | <br><br> |
---|
103 | <input type="radio" value="false" {$LCAS_MAIL_FALSE} name="LCAS_Mail"> |
---|
104 | {'LCAS_DisableOption'|@translate}<br> |
---|
105 | <input type="radio" value="true" {$LCAS_MAIL_TRUE} name="LCAS_Mail"> |
---|
106 | {'LCAS_EnableOption'|@translate}<br> |
---|
107 | <br><br> |
---|
108 | |
---|
109 | <ul> |
---|
110 | <li> |
---|
111 | <label class="cluetip" title="{'LCAS_Email_Customization'|translate}|{'LCAS_Email_Customization_d'|translate}"> |
---|
112 | {'LCAS_MailText'|@translate} |
---|
113 | </label> |
---|
114 | <br><br> |
---|
115 | <textarea class="LCAS_Mailtextfields" name="LCAS_MailText" id="LCAS_MailText" rows="10" {$TAG_INPUT_ENABLED}>{$LCAS_MAILTEXT}</textarea> |
---|
116 | <br><br> |
---|
117 | </li> |
---|
118 | </ul> |
---|
119 | </li> |
---|
120 | </ul> |
---|
121 | </fieldset> |
---|
122 | <div style="text-align: center;"><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}></div> |
---|
123 | </div> |
---|
124 | </div> |
---|
125 | |
---|
126 | </form> |
---|
127 | |
---|
128 | <br><br> |
---|
129 | |
---|
130 | <div id="usersToBeUpdated" class="instructionBlock" > |
---|
131 | |
---|
132 | <div id="usersToBeUpdated_header" class="instructionBlockHeader"> |
---|
133 | <span class="cluetip" title="{'LCAS_userlistTitle'|translate}|{'LCAS_userlistTitle_d'|translate}"> |
---|
134 | {'LCAS_UserList_Title'|@translate} |
---|
135 | </span> |
---|
136 | </div> |
---|
137 | <div id="Config2" class="instructionBlockContent" style="display:block"> |
---|
138 | <fieldset> |
---|
139 | <form method="post" name="UserList" id="UserList" action="" class="general"> |
---|
140 | <input type="hidden" id="UserToUpdate" name="UserToUpdate" value="-1"> |
---|
141 | {if count($users) > 0} |
---|
142 | <table id="sorting" class="table2" width="97%" summary=""> |
---|
143 | <thead> |
---|
144 | <tr class="throw"> |
---|
145 | <th>{'Username'|@translate}</th> |
---|
146 | <th>{'Profile'|@translate}</th> |
---|
147 | <th>{'Email address'|@translate}</th> |
---|
148 | <th>{'LCAS_Compare_value_h'|@translate}</th> |
---|
149 | <th>{'LCAS_Update_h'|@translate}</th> |
---|
150 | </tr> |
---|
151 | </thead> |
---|
152 | <tbody> |
---|
153 | {foreach from=$users item=user name=users_loop} |
---|
154 | <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}"> |
---|
155 | <td><input class="LCAS_textfields" type="text" name="user-{$user.ID}" id="user-{$user.ID}" value="{$user.USERNAME}"></td> |
---|
156 | <td style="text-align:center;"><a href="./admin.php?page=profile&user_id={$user.ID}" title="{'Profile'|@translate}" onclick="window.open(this.href); return false;"><img src="{$LCAS_PATH}admin/template/icon/edit_s.png"></a></td> |
---|
157 | <td>{$user.EMAIL}</td> |
---|
158 | {if $user.DISPLAY == 'orange'} |
---|
159 | <td style="color:orange;text-align:center;">{$user.COMPARE}</td> |
---|
160 | {else} |
---|
161 | <td style="text-align:center;">{$user.COMPARE}</td> |
---|
162 | {/if} |
---|
163 | <td style="text-align:center;"><a href="javascript:UpdateAUser({$user.ID});">{'LCAS_Update_User'|@translate}</a></td> |
---|
164 | {foreach from=$user.plugin_columns item=data} |
---|
165 | <td>{$data}</td> |
---|
166 | {/foreach} |
---|
167 | </tr> |
---|
168 | {/foreach} |
---|
169 | </tbody> |
---|
170 | </table> |
---|
171 | <div id="pager" class="pager"> |
---|
172 | <form> |
---|
173 | <img src="{$LCAS_PATH}admin/template/icon/first.png" class="first"> |
---|
174 | <img src="{$LCAS_PATH}admin/template/icon/prev.png" class="prev"> |
---|
175 | <input type="text" class="pagedisplay"> |
---|
176 | <img src="{$LCAS_PATH}admin/template/icon/next.png" class="next"> |
---|
177 | <img src="{$LCAS_PATH}admin/template/icon/last.png" class="last"> |
---|
178 | <select class="pagesize"> |
---|
179 | <option value="10">10</option> |
---|
180 | <option selected="selected" value="20">20</option> |
---|
181 | <option value="30">30</option> |
---|
182 | <option value="40">40</option> |
---|
183 | </select> |
---|
184 | </form> |
---|
185 | </div> |
---|
186 | <br> |
---|
187 | {else} |
---|
188 | <div> |
---|
189 | {'LCAS_No_User'|@translate} |
---|
190 | </div> |
---|
191 | {/if} |
---|
192 | </form> |
---|
193 | </fieldset> |
---|
194 | |
---|
195 | </div> |
---|
196 | </div> |
---|
197 | |
---|
198 | <br><br> |
---|
199 | |
---|
200 | <div id="PluginSupport" class="instructionBlock" > |
---|
201 | <div id="PluginSupport_header" class="instructionBlockHeader"> |
---|
202 | <span> |
---|
203 | {'LCAS_PluginSupport'|@translate} |
---|
204 | </span> |
---|
205 | </div> |
---|
206 | <div id="Config2" class="instructionBlockContent" style="display:block"> |
---|
207 | <fieldset> |
---|
208 | {'LCAS_Support_txt'|@translate} |
---|
209 | </fieldset> |
---|
210 | </div> |
---|
211 | </div> |
---|
212 | |
---|
213 | <script type="text/javascript"> |
---|
214 | var n1=document.getElementById("nb_para").value; |
---|
215 | var n2=document.getElementById("nb_para2").value; |
---|
216 | LCAS_blockToggleDisplay(n1,n2); |
---|
217 | </script> |
---|