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