source: extensions/event_cats/admin/template/autolog_new.tpl @ 4027

Last change on this file since 4027 was 4027, checked in by LucMorizur, 15 years ago

[Event Cats] Modify template/autolog_new.tpl

File size: 11.7 KB
Line 
1{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
2
3{* <!-- Page title --> *}
4<div class = "titrePage" style="margin-top: -20px;">
5  <h2>{'ec_admin_page_title'|@translate} {$EVNTCATS_VERSION}</h2>
6</div>
7
8{* <!-- JavaScript warning message --> *}
9<div id = "ec_js_warn">
10  {'ec_javascript_needed'|@translate}<br><br>
11</div>
12<script type = "text/javascript"><!-- // Removes JavaScript warning message
13  document.getElementById('ec_js_warn').innerHTML = ''; //-->
14</script>
15
16{* <!-- EC Presentation --> *}
17{if $ec_howto}
18  <div>
19    {'ec_admin_page_howto'|@translate}
20  </div>
21{/if}
22
23<p>
24  <hr width = 75% size = 3 />
25</p>
26
27{* <!-- Whether plugin Additionnal Pages is active or not --> *}
28<div style = "text-align:right; font-style:italic;">
29  {if $ec_ap_ok}
30    {'ec_plugin_ap_ok'|@translate}
31    <script type = "text/javascript"><!--
32      var ec_ap_ok = true; //-->
33    </script>
34  {else}
35    {'ec_plugin_ap_nok'|@translate}
36    <script type = "text/javascript"><!--
37      var ec_ap_ok = false; //-->
38    </script>
39  {/if}
40</div>
41
42{* <!-- Parameters list --> *}
43<form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();">
44  <input type = "hidden" id = "ec_act1_id" name = "ec_act1" />
45 
46  <div style = "text-align:center;">
47    <a href = "#ec_top" name = "ec_top">
48      <span style = "font-weight:bold; font-size:120%;" title = "{'ec_top_title'|@translate}">{'ec_new_entry_table_title'|@translate}</span>
49    </a><br>
50    <br>
51    <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'ec_new_full_auto'|@translate}"
52     id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/>
53  </div><br>
54 
55  <table style = "border-spacing:15px" width = "97%">
56   
57    {* <!-- Code selection --> *}
58    <tr>
59      <td style = "vertical-align:top;"><strong>{'ec_new_entry'|@translate}</strong></td>
60      <td>
61        <li>
62          {* <!-- New code (to create) --> *}
63          <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');">
64            <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new"
65             id = "ec_sel_code_new" onclick = "ec_mark_code('ec_sel_code_new');"
66            />
67            {'ec_up_code_lbl_code_new'|@translate}
68          </label>
69          &nbsp;
70          <label for = "ec_in_up_code_id" style = "margin:0;">
71            <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'ec_new_entry_button'|@translate}"
72             id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;"
73            />
74          </label>
75          {'ec_gen_code_nb_pre'|@translate}
76          <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;">
77            <option value = "4">4</option>
78            <option value = "5">5</option>
79            <option value = "8">8</option>
80            <option value = "10">10</option>
81            <option value = "12">12</option>
82            <option value = "15">15</option>
83            <option value = "16">16</option>
84            <option value = "20">20</option>
85            <option value = "24">24</option>
86            <option value = "25">25</option>
87            <option value = "30">30</option>
88            <option value = "32">32{'ec_gen_code_nb_max'|@translate}</option>
89          </select>
90          {'ec_gen_code_nb_end'|@translate}<br>
91          <ul><li>
92            <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40"
93             id = "ec_in_up_code_id" onblur = "ec_check_code_text();"
94            />
95          </li></ul>
96        </li>
97       
98        <li>
99          {* <!-- Known code --> *}
100          <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');">
101            <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id"
102             value = "old" id = "ec_sel_code_old" onclick = "ec_mark_code('ec_sel_code_old');"
103            />
104            {'ec_up_code_lbl_code_old'|@translate}
105          </label>
106          <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');"
107           onchange = "ec_selected_old_code = this.value;"
108          >
109            <option label = "------------" value = "-1" id = "ec_old_code_-1">------------</option>
110            {foreach from=$ec_lists.duplicable_codes key=ec_key item=ec_val}
111              <option label = "{$ec_val}" value = "{$ec_key}" id = "ec_old_code_{$ec_key}">{$ec_key}</option>
112            {/foreach}
113          </select><br>
114        </li>
115      </td>
116    </tr>
117   
118    {* <!-- User to identify --> *}
119    <tr>
120      <td style = "vertical-align:top;"><strong>{'ec_up_code_lbl_user'|@translate}</strong></td>
121      <td>
122        <li>
123          {* <!-- New user (to create) --> *}
124          <label for = "ec_in_up_usr_txt_id" onclick = "ec_mark_user('ec_sel_user_new');">
125            <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new"
126             id = "ec_sel_user_new" onclick = "ec_mark_user('ec_sel_user_new');"
127            />
128            {'ec_up_code_lbl_user_new'|@translate}
129          </label>
130          &nbsp;
131          <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'ec_up_code_lbl_gen_user'|@translate}"
132           id = "ec_submit_gen_user_id" onclick = "ec_gen_user();"
133          /><br>
134          <ul><li>
135            <label class = "ec_block">{'ec_new_user_name'|@translate}<br>
136              <input type = "text" name = "ec_in_up_usr_txt" id = "ec_in_up_usr_txt_id" maxlength = "32"
137               size = "20" onclick = "ec_mark_user('ec_sel_user_new');" onblur = "ec_new_user_text = this.value;"
138              />
139            </label>
140            <label class = "ec_block">{'ec_new_user_pswd'|@translate}<br>
141              <input type = "text" name = "ec_in_up_psd_txt" id = "ec_in_up_psd_txt_id" maxlength = "32"
142               size = "20" onclick = "ec_mark_user('ec_sel_user_new');" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();"
143              />
144            </label>
145            <label class = "ec_block">&nbsp;<br>
146              <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span>
147            </label>
148           
149          </li></ul><br>
150        </li>
151       
152        <li>
153          {* <!-- Known user --> *}
154          <label for = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');">
155            <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id"
156             value = "old" id = "ec_sel_user_old" onclick = "ec_mark_user('ec_sel_user_old');"
157            />
158            {'ec_up_code_lbl_user_old'|@translate}
159          </label>
160          <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');"
161           onchange = "ec_selected_old_user = this.value;"
162          >
163            <option label = "------------" value = "-1" id = "ec_old_user_-1">------------</option>
164            {foreach from=$ec_lists.user_ids key=ec_key item=ec_val}
165              <option label = "{$ec_val}" value = "{$ec_key}" id = "ec_old_user_{$ec_key}">{$ec_val}</option>
166            {/foreach}
167          </select><br>
168        </li>
169      </td>
170    </tr>
171   
172    {* <!-- Page to display --> *}
173    <tr>
174      <td style = "vertical-align:top;"><strong>{'ec_up_code_lbl_action'|@translate}</strong></td>
175      <td>
176       
177        {* <!-- Additionnal Page, provided the plugin is activated --> *}
178        <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "ec_mark_action('ec_input_action_add_p');"
179         {if !$ec_ap_ok}style = "display:none;"{/if}
180        >
181          <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id"
182           onclick = "ec_mark_action('ec_input_action_add_p');"
183          />
184          {'ec_up_code_lbl_aps'|@translate}<br>
185          <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id"
186           onclick = "ec_mark_action('ec_input_action_add_p');" onchange = "ec_selected_AP = this.value;"
187          >
188            <option label = "------------" value = "-1" style = "display:none;">------------</option>
189            {html_options options=$ec_lists.add_pages}
190          </select>
191        </label>
192       
193        {* <!-- Category --> *}
194        <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "ec_mark_action('ec_input_action_cat');">
195          <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id"
196           onclick = "ec_mark_action('ec_input_action_cat');"
197          />
198          {'ec_up_code_lbl_cats'|@translate}<br>
199          <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id"
200           onclick = "ec_mark_action('ec_input_action_cat');" onchange = "ec_selected_cat = this.value;"
201          >
202            <option label = "------------" value = "-1" style = "display:none;">------------</option>
203            {html_options options=$ec_lists.categories}
204          </select>
205        </label>
206       
207        {* <!-- Image --> *}
208        <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "ec_mark_action('ec_input_action_img');">
209          <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id"
210           onclick = "ec_mark_action('ec_input_action_img');"
211          />
212          {'ec_up_code_lbl_img'|@translate}<br>
213          <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6"
214           size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "ec_mark_action('ec_input_action_img');"
215          /><br>
216          <span id = "ec_in_up_imgs_warn">&nbsp;</span>
217        </label>
218       
219        {* <!-- Index page --> *}
220        <label class = "ec_block" onclick = "ec_mark_action('ec_input_action_home');">
221          <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home"
222           onclick = "ec_mark_action('ec_input_action_home');"
223          />
224          {'ec_up_code_lbl_home'|@translate}
225        </label>
226      </td>
227    </tr>
228  </table>
229  <p>
230    <input class = "submit" type = "submit" value = "{'Submit'|@translate}"/>
231    <input class = "submit" type = "reset" value = "{'Reset'|@translate}" onclick = "ec_init();"/>
232  </p>
233</form>
234
235{* <!-- JavaScript functions --> *}
236<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
237<script type = "text/javascript"><!--
238  ec_JS_message['ec_gen_user_act_miss']  = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
239  ec_JS_message['ec_act_cat_miss']       = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
240  ec_JS_message['ec_act_img_miss']       = "{'ec_act_img_miss'|@translate|@escape:javascript}";
241  ec_JS_message['ec_new_pwd_gen']        = "{'ec_new_pwd_gen'|@translate|@escape:javascript}";
242  ec_JS_message['ec_up_code_lbl_home']   = "{'ec_up_code_lbl_home'|@translate}";
243  ec_JS_message['ec_submit_code_miss']   = "{'ec_submit_code_miss'|@translate}";
244  ec_JS_message['ec_submit_user_miss']   = "{'ec_submit_user_miss'|@translate}";
245  ec_JS_message['ec_submit_action_miss'] = "{'ec_submit_action_miss'|@translate}";
246  ec_JS_message['ec_submit_code_bad']    = "{'ec_submit_code_bad'|@translate}";
247  ec_def_vals['code']                    = "{$ec_def_vals.code}";
248  ec_def_vals['user']                    = "{$ec_def_vals.user}";
249  ec_def_vals['act1']                    = "{$ec_def_vals.act1}";
250  ec_auto_code_digits_nb                 = "{$ec_def_vals.auto_code_dg_nb}";
251  ec_init();
252//--></script>
253
254{* <!-- {$test0tpl} --> *}
255<p>$_GET :</p>
256{$GET}
257<p>$_POST :</p>
258{$POST}
259<p>Autres :</p>
260{$test1tpl}
261{$test2tpl}
262{$test3tpl}
263
264{* <!--
265--> *}
266
Note: See TracBrowser for help on using the repository browser.