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

Last change on this file since 9384 was 9384, checked in by Eric, 13 years ago
  • Add option 0 in $conf_LCAS[0] to avoid problems when no sensitivity is set (ex : at plugin installation)
  • Fix "PHP Notice: Undefined offset: 0" on index page and registration page when no sensitivity is set
  • 1st step for localisation files update
File size: 8.9 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_Option0" id ="LCAS_id_Opt0">
78              <input type="radio" value="0" {if $LCAS_Option == '0'}checked="checked"{/if} id="LCAS_id_Option0" name="LCAS_Option">
79              {'LCAS_Option0'|@translate}<br>
80            </label>
81            <label for = "LCAS_id_Option1" id ="LCAS_id_Opt1">
82              <input type="radio" value="1" {if $LCAS_Option == '1'}checked="checked"{/if} id="LCAS_id_Option1" name="LCAS_Option">
83              {'LCAS_Option1'|@translate}<br>
84            </label>
85            <label for = "LCAS_id_Option2" id ="LCAS_id_Opt2">
86              <input type="radio" value="2" {if $LCAS_Option == '2'}checked="checked"{/if} id="LCAS_id_Option2" name="LCAS_Option">
87              {'LCAS_Option2'|@translate}<br>
88            </label>
89            <label for = "LCAS_id_Option3" id ="LCAS_id_Opt3">
90              <input type="radio" value="3" {if $LCAS_Option == '3'}checked="checked"{/if} id="LCAS_id_Option3" name="LCAS_Option">
91              {'LCAS_Option3'|@translate}<br>
92            </label>
93            {* <!-- Shall be implemented later
94            <label for = "LCAS_id_Option4" id ="LCAS_id_Opt4">
95              <input type="radio" value="4" {if $LCAS_Option == '4'}checked="checked"{/if} id="LCAS_id_Option4" name="LCAS_Option">
96              {'LCAS_Option4'|@translate}<br>{if $Personalized_not_allowed}{'Personalized not allowed explanation'|@translate}{/if}<br>
97            </label>
98            --> *}
99            <br><br>
100          </li>
101
102          <li>
103            <label class="cluetip" title="{'LCAS_MailTitle'|translate}|{'LCAS_MailTitle_d'|translate}">
104              {'LCAS_Mail'|@translate}
105            </label>
106            <br><br>
107              <input type="radio" value="false" {$LCAS_MAIL_FALSE} name="LCAS_Mail">
108                {'LCAS_DisableOption'|@translate}<br>
109              <input type="radio" value="true" {$LCAS_MAIL_TRUE} name="LCAS_Mail">
110                {'LCAS_EnableOption'|@translate}<br>
111              <br><br>
112
113              <ul>
114                <li>
115                  <label class="cluetip" title="{'LCAS_Email_Customization'|translate}|{'LCAS_Email_Customization_d'|translate}">
116                    {'LCAS_MailText'|@translate}
117                  </label>
118                <br><br>
119                  <textarea class="LCAS_Mailtextfields" name="LCAS_MailText" id="LCAS_MailText" rows="10" {$TAG_INPUT_ENABLED}>{$LCAS_MAILTEXT}</textarea>
120                <br><br>
121                </li>
122              </ul>
123          </li>
124        </ul>
125      </fieldset>
126            <div style="text-align: center;"><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}></div>
127    </div>
128  </div>
129
130</form>
131
132<br><br>
133
134<div id="usersToBeUpdated" class="instructionBlock" >
135
136  <div id="usersToBeUpdated_header" class="instructionBlockHeader">
137    <span class="cluetip" title="{'LCAS_userlistTitle'|translate}|{'LCAS_userlistTitle_d'|translate}">
138      {'LCAS_UserList_Title'|@translate}
139    </span>
140  </div>
141  <div id="Config2" class="instructionBlockContent" style="display:block">
142                <fieldset>
143                  <form method="post" name="UserList" id="UserList" action="" class="general">
144                        <input type="hidden" id="UserToUpdate" name="UserToUpdate" value="-1">
145                {if count($users) > 0}
146                      <table id="sorting" class="table2" width="97%" summary="">
147                                        <thead>
148                                        <tr class="throw">
149                                        <th>{'Username'|@translate}</th>
150                            <th>{'Profile'|@translate}</th>
151                                        <th>{'Email address'|@translate}</th>
152                                        <th>{'LCAS_Compare_value_h'|@translate}</th>
153                            <th>{'LCAS_Update_h'|@translate}</th>
154                                        </tr>
155                                        </thead>
156                        <tbody>
157                        {foreach from=$users item=user name=users_loop}
158                          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
159                            <td><input class="LCAS_textfields" type="text" name="user-{$user.ID}" id="user-{$user.ID}" value="{$user.USERNAME}"></td>
160                            <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>
161                            <td>{$user.EMAIL}</td>
162                {if $user.DISPLAY == 'orange'}
163                            <td style="color:orange;text-align:center;">{$user.COMPARE}</td>
164                {else}
165                            <td style="text-align:center;">{$user.COMPARE}</td>
166                {/if}
167                            <td style="text-align:center;"><a href="javascript:UpdateAUser({$user.ID});">{'LCAS_Update_User'|@translate}</a></td>
168                            {foreach from=$user.plugin_columns item=data}
169                              <td>{$data}</td>
170                            {/foreach}                         
171                          </tr>
172                        {/foreach}
173                        </tbody>
174                      </table>
175                <div id="pager" class="pager">
176                        <form>
177                                <img src="{$LCAS_PATH}admin/template/icon/first.png" class="first">
178                                <img src="{$LCAS_PATH}admin/template/icon/prev.png" class="prev">
179                                <input type="text" class="pagedisplay">
180                                <img src="{$LCAS_PATH}admin/template/icon/next.png" class="next">
181                                <img src="{$LCAS_PATH}admin/template/icon/last.png" class="last">
182                                <select class="pagesize">
183                                        <option  value="10">10</option>
184                                        <option selected="selected" value="20">20</option>
185                                        <option value="30">30</option>
186                                        <option value="40">40</option>
187                                </select>
188                        </form>
189                </div>
190                        <br>
191                {else}
192                <div>
193                        {'LCAS_No_User'|@translate}
194                </div>
195                {/if}
196                </form>
197                </fieldset>
198
199  </div>
200</div>
201
202<br><br>
203
204<div id="PluginSupport" class="instructionBlock" >
205  <div id="PluginSupport_header" class="instructionBlockHeader">
206    <span>
207      {'LCAS_PluginSupport'|@translate}
208    </span>
209  </div>
210  <div id="Config2" class="instructionBlockContent" style="display:block">
211    <fieldset>
212      {'LCAS_Support_txt'|@translate}
213    </fieldset>
214  </div>
215</div>
216
217<script type="text/javascript">
218  var n1=document.getElementById("nb_para").value;
219  var n2=document.getElementById("nb_para2").value;
220   LCAS_blockToggleDisplay(n1,n2);
221</script>
Note: See TracBrowser for help on using the repository browser.