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

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

[Event Cats] ≈ finish existing/new entries separation

File size: 10.2 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 = "">
44  <input type = "hidden" id = "ec_act1_id" name = "ec_act1" />
45 
46  <div style = "text-align:center;">
47    <span style = "font-weight:bold; font-size:120%;">{'ec_new_entry_table_title'|@translate}</span><br>
48    <br>
49    <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'ec_new_full_auto'|@translate}"
50     id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/>
51  </div>
52 
53  <table style="border-spacing:30px" width = "97%">
54   
55    {* <!-- New entry --> *}
56    {* <!--
57    <tr>
58      <td>
59        <label for = "selection--1">
60          <input type = "radio" name = "ec_entry_sel" value = "-1" id = "selection--1" />
61          <span style = "font-weight:bold; font-style:italic; font-size:120%; text-decoration:underline;">{'ec_create_modify_code'|@translate}</span>
62        </label>
63      </td>
64      <td>
65      </td>
66    </tr>
67    --> *}
68   
69    {* <!-- Code selection --> *}
70    <tr>
71      <td><strong>{'ec_new_entry'|@translate}</strong></td>
72      <td>
73        <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40"
74         id = "ec_in_up_code_id" onblur = "ec_new_code_text = this.value;"
75        />
76        &nbsp;
77        <label for = "ec_in_up_code_id" style = "margin:0;">
78          <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'ec_new_entry_button'|@translate}"
79           id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;"
80          />
81        </label>
82        {'ec_gen_code_nb_pre'|@translate}
83        <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;">
84          <option value = "4">4</option>
85          <option value = "5">5</option>
86          <option value = "8">8</option>
87          <option value = "10" selected = "selected">10</option>
88          <option value = "12">12</option>
89          <option value = "15">15</option>
90          <option value = "16">16</option>
91          <option value = "20">20</option>
92          <option value = "24">24</option>
93          <option value = "25">25</option>
94          <option value = "30">30</option>
95          <option value = "32">32{'ec_gen_code_nb_max'|@translate}</option>
96        </select>
97        {'ec_gen_code_nb_end'|@translate}
98      </td>
99    </tr>
100   
101    {* <!-- User to identify --> *}
102    <tr>
103      <td style = "vertical-align:top;"><strong>{'ec_up_code_lbl_user'|@translate}</strong></td>
104      <td>
105      <li>
106        {* <!-- None --> *}
107        <label onclick = "ec_mark_user('ec_sel_user_none');">
108          <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none"
109           onclick = "ec_mark_user('ec_sel_user_none');"
110          />
111          {'ec_up_code_lbl_user_none'|@translate}
112        </label><br>
113      </li>
114       
115      <li>
116        {* <!-- New user (to create) --> *}
117        <label for = "ec_in_up_usr_txt_id" onclick = "ec_mark_user('ec_sel_user_new');">
118          <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new"
119           id = "ec_sel_user_new" onclick = "ec_mark_user('ec_sel_user_new');"
120          />
121          {'ec_up_code_lbl_user_new'|@translate}
122        </label>
123        &nbsp;
124        <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'ec_up_code_lbl_gen_user'|@translate}"
125         id = "ec_submit_gen_user_id" onclick = "ec_gen_user();"
126        /><br>
127        <ul><li>
128          <label class = "ec_block">{'ec_new_user_name'|@translate}<br>
129            <input type = "text" name = "ec_in_up_usr_txt" id = "ec_in_up_usr_txt_id" maxlength = "32"
130             size = "20" onclick = "ec_mark_user('ec_sel_user_new');" onblur = "ec_new_user_text = this.value;"
131            />
132          </label>
133          <label class = "ec_block">{'ec_new_user_pswd'|@translate}<br>
134            <input type = "text" name = "ec_in_up_psd_txt" id = "ec_in_up_psd_txt_id" maxlength = "32"
135             size = "20" onclick = "ec_mark_user('ec_sel_user_new');" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();"
136            />
137          </label>
138          <label class = "ec_block">&nbsp;<br>
139            <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span>
140          </label>
141         
142        </li></ul><br>
143      </li>
144     
145      <li>
146        {* <!-- Known user --> *}
147        <label for = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');">
148          <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id"
149           value = "old" id = "ec_sel_user_old" onclick = "ec_mark_user('ec_sel_user_old');"
150          />
151          {'ec_up_code_lbl_user_old'|@translate}
152        </label>
153        <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');"
154         onchange = "ec_selected_old_user = this.value;"
155        >
156          <option label = "------------" value = "-1" id = "ec_old_user_-1">------------</option>
157          {foreach from=$ec_lists.user_ids key=ec_key item=ec_val name=opt_loop}
158            <option label = "{$ec_val}" value = "{$ec_key}" id = "ec_old_user_{$ec_key}">{$ec_val}</option>
159          {/foreach}
160        </select><br>
161      </li>
162      </td>
163    </tr>
164   
165    {* <!-- Page to display --> *}
166    <tr>
167      <td style = "vertical-align:top;"><strong>{'ec_up_code_lbl_action'|@translate}</strong></td>
168      <td>
169       
170        {* <!-- Additionnal Page, provided the plugin is activated --> *}
171        <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "ec_mark_action('ec_input_action_add_p');"
172         {if !$ec_ap_ok}style = "display:none;"{/if}
173        >
174          <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id"
175           onclick = "ec_mark_action('ec_input_action_add_p');"
176          />
177          {'ec_up_code_lbl_aps'|@translate}<br>
178          <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id"
179           onclick = "ec_mark_action('ec_input_action_add_p');" onchange = "ec_selected_AP = this.value;"
180          >
181            <option label = "------------" value = "-1" style = "display:none;">------------</option>
182            {html_options options=$ec_lists.add_pages}
183          </select>
184        </label>
185       
186        {* <!-- Category --> *}
187        <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "ec_mark_action('ec_input_action_cat');">
188          <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id"
189           onclick = "ec_mark_action('ec_input_action_cat');"
190          />
191          {'ec_up_code_lbl_cats'|@translate}<br>
192          <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id"
193           onclick = "ec_mark_action('ec_input_action_cat');" onchange = "ec_selected_cat = this.value;"
194          >
195            <option label = "------------" value = "-1" style = "display:none;">------------</option>
196            {html_options options=$ec_lists.categories}
197          </select>
198        </label>
199       
200        {* <!-- Image --> *}
201        <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "ec_mark_action('ec_input_action_img');">
202          <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id"
203           onclick = "ec_mark_action('ec_input_action_img');"
204          />
205          {'ec_up_code_lbl_img'|@translate}<br>
206          <input type = "text" name = "ec_in_up_imgs" id = "ec_in_up_imgs_id" maxlength = "6"
207           size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "ec_mark_action('ec_input_action_img');"
208          /><br>
209          <span id = "ec_in_up_imgs_warn">&nbsp;</span>
210        </label>
211       
212        {* <!-- Index page --> *}
213        <label class = "ec_block" onclick = "ec_mark_action('ec_input_action_home');">
214          <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home"
215           onclick = "ec_mark_action('ec_input_action_home');"
216          />
217          {'ec_up_code_lbl_home'|@translate}
218        </label>
219      </td>
220    </tr>
221  </table>
222  <p>
223    <input class = "submit" type = "submit" name = "ec_submit" value = "{'Submit'|@translate}"/>
224    <input class = "submit" type = "reset" name = "ec_reset" value = "{'Reset'|@translate}" onclick = "ec_init();"/>
225  </p>
226</form>
227
228{* <!-- JavaScript functions --> *}
229<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
230<script type = "text/javascript"><!--
231  ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
232  ec_JS_message['ec_act_cat_miss']      = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
233  ec_JS_message['ec_new_pwd_gen']       = "{'ec_new_pwd_gen'|@translate|@escape:javascript}";
234  ec_JS_message['ec_up_code_lbl_home']  = "{'ec_up_code_lbl_home'|@translate}";
235  ec_init();
236//--></script>
237
238{* <!-- {$test0tpl} --> *}
239<p>$_GET :</p>
240{$GET}
241<p>$_POST :</p>
242{$POST}
243<p>Autres :</p>
244{$test1tpl}
245{$test2tpl}
246{$test3tpl}
247
248{* <!--
249--> *}
250
Note: See TracBrowser for help on using the repository browser.