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