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