source: extensions/LCAS/branch/2.2/admin/template/global.tpl @ 10692

Last change on this file since 10692 was 10692, checked in by Eric, 13 years ago

merged from trunk to branch 2.2

File size: 8.2 KB
Line 
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<script type="text/javascript">
10var Personalized_not_allowed = {if $Personalized_not_allowed}true{else}false{/if};
11{literal}
12jQuery().ready(function(){
13  jQuery('.cluetip').cluetip(
14  {
15    width: 550,
16    splitTitle: '|'
17  });
18});
19
20function 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}
30jQuery(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);
41function 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              <input type="radio" value="false" {$LCAS_MAIL_FALSE} name="LCAS_Mail">
103                {'LCAS_DisableOption'|@translate}<br>
104              <input type="radio" value="true" {$LCAS_MAIL_TRUE} name="LCAS_Mail">
105                {'LCAS_EnableOption'|@translate}<br>
106              <br><br>
107
108              <ul>
109                <li>
110                  <label class="cluetip" title="{'LCAS_Email_Customization'|translate}|{'LCAS_Email_Customization_d'|translate}">
111                    {'LCAS_MailText'|@translate}
112                  </label>
113                <br><br>
114                  <textarea class="LCAS_Mailtextfields" name="LCAS_MailText" id="LCAS_MailText" rows="10" {$TAG_INPUT_ENABLED}>{$LCAS_MAILTEXT}</textarea>
115                <br><br>
116                </li>
117              </ul>
118          </li>
119        </ul>
120      </fieldset>
121            <div style="text-align: center;"><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}></div>
122    </div>
123  </div>
124
125</form>
126
127<br><br>
128
129<div id="usersToBeUpdated" class="instructionBlock" >
130
131  <div id="usersToBeUpdated_header" class="instructionBlockHeader">
132    <span class="cluetip" title="{'LCAS_userlistTitle'|translate}|{'LCAS_userlistTitle_d'|translate}">
133      {'LCAS_UserList_Title'|@translate}
134    </span>
135  </div>
136  <div id="Config2" class="instructionBlockContent" style="display:block">
137                <fieldset>
138                  <form method="post" name="UserList" id="UserList" action="" class="general">
139                        <input type="hidden" id="UserToUpdate" name="UserToUpdate" value="-1">
140                {if count($users) > 0}
141                      <table id="sorting" class="table2" width="97%" summary="">
142                                        <thead>
143                                        <tr class="throw">
144                                        <th>{'Username'|@translate}</th>
145                            <th>{'Profile'|@translate}</th>
146                                        <th>{'Email address'|@translate}</th>
147                                        <th>{'LCAS_Compare_value_h'|@translate}</th>
148                            <th>{'LCAS_Update_h'|@translate}</th>
149                                        </tr>
150                                        </thead>
151                        <tbody>
152                        {foreach from=$users item=user name=users_loop}
153                          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
154                            <td><input class="LCAS_textfields" type="text" name="user-{$user.ID}" id="user-{$user.ID}" value="{$user.USERNAME}"></td>
155                            <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>
156                            <td>{$user.EMAIL}</td>
157                {if $user.DISPLAY == 'orange'}
158                            <td style="color:orange;text-align:center;">{$user.COMPARE}</td>
159                {else}
160                            <td style="text-align:center;">{$user.COMPARE}</td>
161                {/if}
162                            <td style="text-align:center;"><a href="javascript:UpdateAUser({$user.ID});">{'LCAS_Update_User'|@translate}</a></td>
163                            {foreach from=$user.plugin_columns item=data}
164                              <td>{$data}</td>
165                            {/foreach}                         
166                          </tr>
167                        {/foreach}
168                        </tbody>
169                      </table>
170                <div id="pager" class="pager">
171                        <form>
172                                <img src="{$LCAS_PATH}admin/template/icon/first.png" class="first">
173                                <img src="{$LCAS_PATH}admin/template/icon/prev.png" class="prev">
174                                <input type="text" class="pagedisplay">
175                                <img src="{$LCAS_PATH}admin/template/icon/next.png" class="next">
176                                <img src="{$LCAS_PATH}admin/template/icon/last.png" class="last">
177                                <select class="pagesize">
178                                        <option  value="10">10</option>
179                                        <option selected="selected" value="20">20</option>
180                                        <option value="30">30</option>
181                                        <option value="40">40</option>
182                                </select>
183                        </form>
184                </div>
185                        <br>
186                {else}
187                <div>
188                        {'LCAS_No_User'|@translate}
189                </div>
190                {/if}
191                </form>
192                </fieldset>
193
194  </div>
195</div>
196
197<br><br>
198
199<div id="PluginSupport" class="instructionBlock" >
200  <div id="PluginSupport_header" class="instructionBlockHeader">
201    <span>
202      {'LCAS_PluginSupport'|@translate}
203    </span>
204  </div>
205  <div id="Config2" class="instructionBlockContent" style="display:block">
206    <fieldset>
207      {'LCAS_Support_txt'|@translate}
208    </fieldset>
209  </div>
210</div>
211
212<script type="text/javascript">
213  var n1=document.getElementById("nb_para").value;
214  var n2=document.getElementById("nb_para2").value;
215   LCAS_blockToggleDisplay(n1,n2);
216</script>
Note: See TracBrowser for help on using the repository browser.