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