source: extensions/LCAS/trunk/admin/template/global.tpl @ 9158

Last change on this file since 9158 was 9158, checked in by LucMorizur, 13 years ago

LCAS takes completely care for case sensitivity: $confinsensitive_case_logon set to false by LCAS

File size: 9.7 KB
Line 
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">
15var Personalized_not_allowed = {if $Personalized_not_allowed}true{else}false{/if};
16{literal}
17jQuery().ready(function(){
18  jQuery('.cluetip').cluetip(
19  {
20    width: 550,
21    splitTitle: '|'
22  });
23});
24
25function 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}
35jQuery(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);
46function 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<div id="currentPWGConfig" class="instructionBlock" >
130
131  <div id="currentPWGConfig_header" class="instructionBlockHeader">
132    <span class="cluetip" title="{'LCAS_currentPWGConfigTitle'|translate}|{'LCAS_currentPWGConfigTitle_d'|translate}">
133      {'LCAS_currentPWGConfigHeader'|@translate}
134    </span>
135  </div>
136
137  <div id="Config2" class="instructionBlockContent" style="display:block">
138    <fieldset>
139      <ul>
140        <li>
141          <label class="cluetip" title="{'LCAS_currentPWGConfig'|translate}|{'LCAS_currentPWGConfig_d'|translate}">
142            $conf['insensitive_case_logon'] =
143{if $PWG_insensitive_case_logon}
144        <span style="color: green;">true</span>;
145{else}
146        <span style="color: red;">false</span>;
147{/if}
148          </label>
149          <br><br>
150        </li>
151      </ul>
152    </fieldset>
153  </div>
154</div>
155
156<br><br>
157
158<div id="usersToBeUpdated" class="instructionBlock" >
159
160  <div id="usersToBeUpdated_header" class="instructionBlockHeader">
161    <span class="cluetip" title="{'LCAS_userlistTitle'|translate}|{'LCAS_userlistTitle_d'|translate}">
162      {'LCAS_UserList_Title'|@translate}
163    </span>
164  </div>
165  <div id="Config2" class="instructionBlockContent" style="display:block">
166                <fieldset>
167                  <form method="post" name="UserList" id="UserList" action="" class="general">
168                        <input type="hidden" id="UserToUpdate" name="UserToUpdate" value="-1">
169                {if count($users) > 0}
170                      <table id="sorting" class="table2" width="97%" summary="">
171                                        <thead>
172                                        <tr class="throw">
173                                        <th>{'Username'|@translate}</th>
174                            <th>{'Profile'|@translate}</th>
175                                        <th>{'Email address'|@translate}</th>
176                                        <th>{'LCAS_Compare_value_h'|@translate}</th>
177                            <th>{'LCAS_Update_h'|@translate}</th>
178                                        </tr>
179                                        </thead>
180                        <tbody>
181                        {foreach from=$users item=user name=users_loop}
182                          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
183                            <td><input class="LCAS_textfields" type="text" name="user-{$user.ID}" id="user-{$user.ID}" value="{$user.USERNAME}"></td>
184                            <td style="text-align:center;"><a href="./admin.php?page=profile&amp;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>
185                            <td>{$user.EMAIL}</td>
186                {if $user.DISPLAY == 'orange'}
187                            <td style="color:orange;text-align:center;">{$user.COMPARE}</td>
188                {else}
189                            <td style="text-align:center;">{$user.COMPARE}</td>
190                {/if}
191                            <td style="text-align:center;"><a href="javascript:UpdateAUser({$user.ID});">{'LCAS_Update_User'|@translate}</a></td>
192                            {foreach from=$user.plugin_columns item=data}
193                              <td>{$data}</td>
194                            {/foreach}                         
195                          </tr>
196                        {/foreach}
197                        </tbody>
198                      </table>
199                <div id="pager" class="pager">
200                        <form>
201                                <img src="{$LCAS_PATH}admin/template/icon/first.png" class="first">
202                                <img src="{$LCAS_PATH}admin/template/icon/prev.png" class="prev">
203                                <input type="text" class="pagedisplay">
204                                <img src="{$LCAS_PATH}admin/template/icon/next.png" class="next">
205                                <img src="{$LCAS_PATH}admin/template/icon/last.png" class="last">
206                                <select class="pagesize">
207                                        <option  value="10">10</option>
208                                        <option selected="selected" value="20">20</option>
209                                        <option value="30">30</option>
210                                        <option value="40">40</option>
211                                </select>
212                        </form>
213                </div>
214                        <br>
215                {else}
216                <div>
217                        {'LCAS_No_User'|@translate}
218                </div>
219                {/if}
220                </form>
221                </fieldset>
222
223  </div>
224</div>
225
226<br><br>
227
228<div id="PluginSupport" class="instructionBlock" >
229  <div id="PluginSupport_header" class="instructionBlockHeader">
230    <span>
231      {'LCAS_PluginSupport'|@translate}
232    </span>
233  </div>
234  <div id="Config2" class="instructionBlockContent" style="display:block">
235    <fieldset>
236      {'LCAS_Support_txt'|@translate}
237    </fieldset>
238  </div>
239</div>
240
241<script type="text/javascript">
242  var n1=document.getElementById("nb_para").value;
243  var n2=document.getElementById("nb_para2").value;
244   LCAS_blockToggleDisplay(n1,n2);
245</script>
Note: See TracBrowser for help on using the repository browser.