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