Changeset 4371
- Timestamp:
- Nov 26, 2009, 11:08:34 PM (14 years ago)
- Location:
- extensions/event_cats
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/evntcats_theme.css
r4329 r4371 29 29 text-align:left; 30 30 margin-right: 1em; 31 } 32 33 form.filter fieldset label span, form.filter fieldset label input{ 34 display:inline; 35 vertical-align:middle; 36 } 37 38 form.filter fieldset span{ 39 display:inline; 31 40 } 32 41 … … 76 85 text-align:center; 77 86 } 87 88 select.categoryList { 89 height:12em; 90 } -
extensions/event_cats/admin/template/autolog_new.tpl
r4329 r4371 40 40 id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/> 41 41 {/if} 42 </div><br /> 43 44 {* <!-- Table (borders not visible) with 3 rows for parameters adjustment --> *} 45 <table style = "border-spacing:15px" width = "97%"> 46 47 <tr> 48 49 {* <!-- [ [New / existing code] / [Existing entry] ] selection --> *} 50 <td style = "vertical-align:top; font-weight:bold;"> 51 {if $ec_is_creation} 52 {'Code'|@translate} 53 {else} 54 {'Selected entry'|@translate} 55 {/if} 56 </td> 57 <td> 58 {if $ec_is_creation} 59 <li> 60 {* <!-- New code (to create) --> *} 61 <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} > 62 <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new" id = "ec_sel_code_new"/> 63 {'New code'|@translate} 64 </label> 65 <span {$ec_hidden_when_no_code} > </span> 66 <label for = "ec_in_up_code_id" style = "margin:0;"> 67 <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'Auto code button'|@translate}" 68 id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;" 69 /> 70 </label> 71 {'Auto code mid'|@translate} 72 <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;"> 73 {foreach from=$ec_auto_code_dg_nb item=ec_item name=listloop} 74 <option value = "{$ec_item}"> 75 {$ec_item} 76 {if $smarty.foreach.listloop.index == 0} 77 {'Auto code min'|@translate} 78 {/if} 79 {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1} 80 {'Auto code max'|@translate} 81 {/if} 82 </option> 83 {/foreach} 84 </select> 85 {'Auto code end'|@translate}<br /> 86 <ul><li> 87 <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" 88 id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" 89 /> 90 </li></ul> 42 </div> 43 44 {* <!-- [ [New / existing code] / [Existing entry] ] selection --> *} 45 <fieldset> 46 <legend style = "font-weight:bold;"> 47 {if $ec_is_creation} 48 {'Code'|@translate} 49 {else} 50 {'Selected entry'|@translate} 51 {/if} 52 </legend> 53 54 {if $ec_is_creation} 55 <li> 56 {* <!-- New code (to create) --> *} 57 <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} > 58 <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new" id = "ec_sel_code_new"/> 59 {'New code'|@translate} 60 </label> 61 <span {$ec_hidden_when_no_code} > </span> 62 <label for = "ec_in_up_code_id" style = "margin:0;"> 63 <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'Auto code button'|@translate}" 64 id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;" 65 /> 66 </label> 67 {'Auto code mid'|@translate} 68 <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;"> 69 {foreach from=$ec_auto_code_dg_nb item=ec_item name=listloop} 70 <option value = "{$ec_item}"> 71 {$ec_item} 72 {if $smarty.foreach.listloop.index == 0} 73 {'Auto code min'|@translate} 74 {/if} 75 {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1} 76 {'Auto code max'|@translate} 77 {/if} 78 </option> 79 {/foreach} 80 </select> 81 {'Auto code end'|@translate}<br /> 82 <li style = "padding-left: 30px;"> 83 <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" 84 id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" 85 /> 91 86 </li> 92 93 <li> 94 {* <!-- Known code --> *} 95 <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}> 96 <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old" /> 97 {'Existing code'|@translate} 98 </label> 99 <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} > 100 {foreach from=$ec_lists.duplicable_codes.codes key=ec_key item=ec_val} 101 <option value = "{$ec_val.id}">{$ec_key}</option> 102 {/foreach} 103 </select><br /> 104 </li> 105 106 {else} 107 108 {* <!-- Existing entry selection --> *} 109 <li> 110 {* <!-- Entry choice --> *} 111 <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);"> 112 {foreach from=$ec_lists.ec_table item=ec_val} 113 <option value = "{$ec_val.id}">{$ec_val.id} : {$ec_val.code}</option> 114 {/foreach} 115 </select> 116 </li> 117 118 {/if} 119 </td> 120 </tr> 121 122 {* <!-- User to identify --> *} 123 <tr> 124 <td style = "vertical-align:top; font-weight:bold;"> 125 {'Identified user'|@translate}<br /> 126 <br /> 127 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br /> 128 </td> 129 <td> 130 {if !$ec_is_creation} 131 <li> 132 {* <!-- None --> *} 133 <label onclick = "return ec_mark_user('ec_sel_user_none');"> 134 <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" /> 135 {'No user'|@translate} 136 </label><br /> 137 </li> 138 {/if} 139 140 <li> 141 {* <!-- New user (to create) --> *} 142 <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > 143 <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} /> 144 {'New generic user'|@translate} 145 </label> 146 <span {$ec_hidden_when_no_user} > </span> 147 <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> 148 <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}" 149 id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" 150 /> 151 </label><br /> 152 <ul><li> 153 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br /> 154 <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50" 155 size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();" 156 /> 157 </label> 158 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br /> 159 <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32" 160 size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();" 161 /> 162 </label> 163 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br /> 164 <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/> 165 </label> 166 <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id"> 167 <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id" 168 onchange = "ec_selected_old_group = (this.checked != '');" 169 /> 170 <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;"> 171 {'New group'|@translate} 172 </span><br /> 173 <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32" 174 size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;" 175 /> 176 </label> 177 </li></ul><br /> 178 </li> 179 180 <li> 181 {* <!-- Known user --> *} 182 <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > 183 <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" /> 184 {'Existing user'|@translate} 185 </label> 186 <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onchange = "ec_change_user_list(this.value);" {$ec_hidden_when_no_user} > 187 {foreach from=$ec_lists.user_ids key=ec_key item=ec_val} 188 <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> 87 </li> 88 89 <li> 90 {* <!-- Known code --> *} 91 <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}> 92 <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old" /> 93 {'Existing code'|@translate} 94 </label> 95 <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} > 96 {foreach from=$ec_lists.duplicable_codes.codes key=ec_key item=ec_val} 97 <option value = "{$ec_val.id}">{$ec_key}</option> 189 98 {/foreach} 190 99 </select><br /> 191 100 </li> 192 </td> 193 </tr> 194 195 {* <!-- Page to display --> *} 196 <tr> 197 <td style = "vertical-align:top;"> 198 <span style = "font-weight:bold;">{'Displayed page'|@translate}</span><br /> 199 <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> 200 <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> 201 <span id = "ec_style_forced_id"> </span> 101 102 {else} 103 104 {* <!-- Existing entry selection --> *} 105 <li> 106 {* <!-- Entry choice --> *} 107 <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);"> 108 {foreach from=$ec_lists.ec_table item=ec_val} 109 <option value = "{$ec_val.id}">{$ec_val.id} : {$ec_val.code}</option> 110 {/foreach} 111 </select> 112 </li> 113 114 {/if} 115 116 </fieldset> 117 118 {* <!-- User to identify --> *} 119 <fieldset> 120 <legend style = "font-weight:bold;"> 121 {'Identified user'|@translate} 122 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br /> 123 </legend> 124 125 {if !$ec_is_creation} 126 <li> 127 {* <!-- None --> *} 128 <label onclick = "return ec_mark_user('ec_sel_user_none');"> 129 <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" /> 130 {'No user'|@translate} 131 </label><br /> 132 </li> 133 {/if} 134 135 <li> 136 {* <!-- New user (to create) --> *} 137 <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > 138 <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} /> 139 {'New generic user'|@translate} 202 140 </label> 203 </td> 204 205 <td> 206 <li> 207 {* <!-- Index page --> *} 208 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> 209 <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" /> 210 {'Home'|@translate} 211 </label> 212 213 {* <!-- Access denied page (only when modifying an entry) --> *} 214 {if !$ec_is_creation} 215 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> 216 <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" /> 217 {'Access denied'|@translate} 218 </label> 219 {/if} 220 221 {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} 222 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" 223 {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} 224 > 225 <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" /> 226 {'Image id'|@translate}<br /> 227 <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" 228 size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" 229 /> 230 <span id = "ec_in_up_imgs_warn"></span> 231 </label> 232 </li> 233 234 <li> 235 {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} 236 <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" 237 {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} 238 > 239 <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" /> 240 {'Additional Page'|@translate}<br /> 241 <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > 242 {html_options options=$ec_lists.add_pages} 243 </select> 244 </label> 245 246 {* <!-- Category, provided at least one category is available --> *} 247 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" 248 {if count($ec_lists.categories) == 0} style = "display:none;" {/if} 249 > 250 <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id" 251 onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" 252 /> 253 <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br /> 254 <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> 255 {html_options options=$ec_lists.categories} 256 </select> 257 </label> 258 </li> 259 </td> 260 </tr> 261 </table> 141 <span {$ec_hidden_when_no_user} > </span> 142 <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> 143 <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}" 144 id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" 145 /> 146 </label><br /> 147 <li style = "padding-left: 30px;"> 148 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br /> 149 <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50" 150 size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();" 151 /> 152 </label> 153 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br /> 154 <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32" 155 size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();" 156 /> 157 </label> 158 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br /> 159 <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/> 160 </label> 161 <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id"> 162 <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id" 163 onchange = "ec_selected_old_group = (this.checked != '');" 164 /> 165 <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;"> 166 {'New group'|@translate} 167 </span><br /> 168 <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32" 169 size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;" 170 /> 171 </label> 172 </li><br /> 173 </li> 174 175 <li> 176 {* <!-- Known user --> *} 177 <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > 178 <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" /> 179 {'Existing user'|@translate} 180 </label> 181 <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onchange = "ec_change_user_list(this.value);" {$ec_hidden_when_no_user} > 182 {foreach from=$ec_lists.user_ids key=ec_key item=ec_val} 183 <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> 184 {/foreach} 185 </select><br /> 186 </li> 187 188 </fieldset> 189 190 {* <!-- Page to display --> *} 191 <fieldset> 192 <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> 193 194 <li> 195 <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> 196 <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> 197 <span id = "ec_style_forced_id"> </span> 198 </label> 199 </li> 200 201 <li> 202 {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} 203 <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" 204 {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} 205 > 206 <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" /> 207 {'Additional Page'|@translate}<br /> 208 <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > 209 {html_options options=$ec_lists.add_pages} 210 </select> 211 </label> 212 213 {* <!-- Category, provided at least one category is available --> *} 214 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" 215 {if count($ec_lists.categories) == 0} style = "display:none;" {/if} 216 > 217 <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id" 218 onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" 219 /> 220 <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br /> 221 <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> 222 {html_options options=$ec_lists.categories} 223 </select> 224 </label> 225 226 {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} 227 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" 228 {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} 229 > 230 <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" /> 231 {'Image id'|@translate}<br /> 232 <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" 233 size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" 234 /><br /> 235 <span id = "ec_in_up_imgs_warn"></span> 236 </label> 237 238 {* <!-- Index page --> *} 239 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> 240 <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" /> 241 {'Home'|@translate} 242 </label> 243 244 {* <!-- Access denied page (only when modifying an entry) --> *} 245 {if !$ec_is_creation} 246 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> 247 <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" /> 248 {'Access denied'|@translate} 249 </label> 250 {/if} 251 </li> 252 253 </fieldset> 254 262 255 <p> 263 256 <input class = "submit" type = "submit" value = "{'Submit'|@translate}"/> -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4342 r4371 417 417 * $append_tpl : tells if $template must be appended with built arrays 418 418 * @return 419 * (no return value)419 * array of all the user ids allowed to duplicate 420 420 */ 421 421 function build_dup_arrays($append_tpl = false) { -
extensions/event_cats/language/fr_FR/ec_help_ent.html
r4336 r4371 1 <h 2>Event Cats</h2>1 <h1>Event Cats</h1> 2 2 3 < p>Identifier un compte sur un seul URL</p>3 <h2>Identifier un compte sur un seul URL ; dupliquer un compte</h2> 4 4 5 <h3>Onglet "Entrées autolog"</h3> 5 <h3>Autres pages d'aide</h3> 6 <p> 7 <a href = "ec_help_top.html" title = "Connaître les principes de ce plugin" alt = "Connaître les principes de ce plugin">Principes</a><br /> 8 Onglets : 9 <u>entrées autolog</u> ; 10 <a href = "popuphelp.php?page=ec_help_mod.html">modification autolog</a> ; 11 <a href = "ec_help_new.html">création autolog</a> ; 12 <a href = "ec_help_dup.html">duplication</a> ; 13 <a href = "ec_help_cfg.html">configuration générale</a>. 14 </p> 6 15 7 <!-- 8 <p>Pour pouvoir fonctionner correctement javascript doit être activé sur 9 votre navigateur.</p> 16 <h3>Autres pages d'aide</h3> 17 <p> 18 <a href = "ec_help_top.html" title = "Connaître les principes de ce plugin" alt = "Connaître les principes de ce plugin">Principes</a><br /> 19 </p> 10 20 11 <h3>Utilisation</h3>12 13 <p>Pour télécharger les images de votre choix il faut les séléctionner en cochant14 la case sous la vignette, ou bien cliquer sur le bouton <span class="pwgScreen">Tout cocher</span>.15 Ensuite il faut cliquer sur le bouton <span class="pwgScreen">Ajouter au panier</span>. Un message16 apparait en bas de la page :17 <blockquote>Vous avez actuelement 10 image(s) dans votre panier.18 Merci de vider le panier avant de commencer une nouvelle sélection.</blockquote></p>19 20 <p>Pour voir le contenu de votre panier, cliquer sur le bouton <span class="pwgScreen">Voir le panier</span>.21 Depuis cet écran vous pouvez connaitre le type d'images dans votre panier et en supprimer (une à une) en22 cliquant sur la croix rouge.</p>23 24 <p>Pour télécharger votre panier, cliquer sur le bouton <span class="pwgScreen">Télécharger le panier</span>.25 Il vous est demandez de préciser un préfixe pour les fichiers zip, vous pouvez laissé celui par défaut.26 Pour passer à l'étape suivante cliquer sur le bouton <span class="pwgScreen">Envoyer</span>. Une liste de fichier27 apparait. Pour récupérer les fichiers archives il suffit de cliquer sur le nom des fichiers, votre navigateur28 vous proposera une action. Depuis cet écran vous pouvez supprimer les archives zip. Soit vous sélectionner toute29 les archives en cliquant sur le bouton <span class="pwgSreen">Sélectioner</span>, ou alors fichier par fichier en30 cochant la case à côté du nom du fichier. Ensuite cliquer sur le bouton <span class="pwgScreen">Supprimer</span> pour31 supprimer les fichiers sélectionner.</p>32 --> -
extensions/event_cats/language/fr_FR/plugin.lang.php
r4329 r4371 22 22 // Autolog page 23 23 $lang['Additional Pages active'] = 'Plugin Additional Pages : actif'; 24 $lang['Additional Pages inactive'] = 'Plugin '.$t_ap2.' : inactif';24 $lang['Additional Pages inactive'] = 'Plugin '.$t_ap2.' (page de texte uniquement) : inactif'; 25 25 $lang['Autolog entries'] = 'Entrées du paramètre "autolog"'; 26 26 $lang['Place title on top ttip'] = 'Placer ce titre en haut de la page'; … … 50 50 $lang['Modify entry title'] = 'Modification d\'une entrée du paramètre "autolog"'; 51 51 $lang['New entry'] = 'Nouvelle entrée'; 52 $lang['Full auto'] = 'Tout automatique : nouveau code, nouvel utilisateur et nouveau groupe d\'après page à afficher ci-dessous';52 $lang['Full auto'] = 'Tout automatique (sélectionnez d\'abord une page à afficher)'; 53 53 $lang['New code'] = 'Nouveau code :'; 54 54 $lang['Auto code button'] = 'Générer un code automatiquement'; … … 119 119 $lang['ec_user_already_exists'] = "Ce nom d'utilisateur existe déjà."; 120 120 $lang['ec_conf_pwd_dont_match'] = "Le mot de passe n'est pas correctement confirmé."; 121 $lang['ec_new_pwd_gen'] = "Pensez à NOTER <br />le mot de passe !";121 $lang['ec_new_pwd_gen'] = "Pensez à NOTER le mot de passe !"; 122 122 $lang['ec_act_cat_miss'] = "Catégorie ?"; 123 123 -
extensions/event_cats/main.inc.php
r4342 r4371 84 84 function ec_popup_help_content($popup_help_content, $page) { 85 85 return ( 86 $help_content = (is_admin() and in_array($page, array( 87 'ec_help_new', 'ec_help_mod', 'ec_help_ent', 'ec_help_cfg', 'ec_help_dup' 88 ))) ? 86 $help_content = (is_admin() and $page = '') ? 89 87 load_language($page.'.html', EVNTCATS_PATH, array('return' => true)) : false 90 88 ) ? $popup_help_content.$help_content : $popup_help_content; … … 178 176 else { 179 177 if ( 180 read_ec_conf('unknown_code') == 2and178 read_ec_conf('unknown_code') == '2' and 181 179 array_key_exists( 182 180 read_ec_conf('unknown_code_ap_id'), $ec_lists['add_pages'] … … 188 186 ); 189 187 } 190 elseif (read_ec_conf('unknown_code') == 1or191 read_ec_conf('unknown_code') == 2) {188 elseif (read_ec_conf('unknown_code') == '1' or 189 read_ec_conf('unknown_code') == '2') { 192 190 access_denied(); 193 191 } … … 211 209 add_event_handler('register_user', 'assign_perm_for_new_user'); 212 210 213 function assign_perm_for_new_user($new_user) 214 { 211 function assign_perm_for_new_user($new_user) { 215 212 global $user; 216 213 217 if (!is_a_guest() and !is_admin()) 218 { 214 if (!is_a_guest() and !is_admin()) if ( 215 read_ec_conf('dup_allow') == '1' or ( 216 read_ec_conf('dup_allow') == '2' and 217 dup_allowed($user['id']) 218 ) 219 ) { 219 220 // User access 220 $query = 'SELECT cat_id FROM '.USER_ACCESS_TABLE.' WHERE user_id = '.$user['id'].';'; 221 $result = pwg_query($query); 221 $result = pwg_query(" 222 SELECT `cat_id` 223 FROM `".USER_ACCESS_TABLE."` 224 WHERE `user_id` = ".$user['id']."; 225 "); 222 226 $insert = array(); 223 227 while ($row = mysql_fetch_assoc($result)) 224 { 225 $insert[] = '('.$new_user['id'].','.$row['cat_id'].')'; 226 } 227 if (!empty($insert)) 228 { 229 pwg_query('INSERT INTO '.USER_ACCESS_TABLE.' VALUES '.implode(',', $insert).';'); 230 } 228 $insert[] = "(".$new_user['id'].",".$row['cat_id'].")"; 229 if (!empty($insert)) pwg_query(" 230 INSERT INTO `".USER_ACCESS_TABLE."` 231 VALUES ".implode(',', $insert)."; 232 "); 231 233 232 234 // User groups 233 $query = 'SELECT group_id FROM '.USER_GROUP_TABLE.' WHERE user_id = '.$user['id'].';'; 234 $result = pwg_query($query); 235 $result = pwg_query(" 236 SELECT `group_id` 237 FROM `".USER_GROUP_TABLE."` 238 WHERE `user_id` = ".$user['id']."; 239 "); 235 240 $insert = array(); 236 241 while ($row = mysql_fetch_assoc($result)) 237 { 238 $insert[] = '('.$new_user['id'].','.$row['group_id'].')'; 239 } 240 if (!empty($insert)) 241 { 242 pwg_query('INSERT INTO '.USER_GROUP_TABLE.' VALUES '.implode(',', $insert).';'); 243 } 242 $insert[] = "(".$new_user['id'].",".$row['group_id'].")"; 243 if (!empty($insert)) pwg_query(" 244 INSERT INTO `".USER_GROUP_TABLE."` 245 VALUES ".implode(',', $insert)."; 246 "); 244 247 245 248 // User infos 246 $query = 'SELECT level FROM '.USER_INFOS_TABLE.' WHERE user_id = '.$user['id'].';'; 247 $result = pwg_query($query); 249 $result = pwg_query(" 250 SELECT `level` 251 FROM `".USER_INFOS_TABLE."` 252 WHERE `user_id` = ".$user['id']."; 253 "); 248 254 $insert = array(); 249 255 while ($row = mysql_fetch_assoc($result)) 250 { 251 $insert[] = '('.$new_user['id'].','.$row['level'].')'; 252 } 253 if (!empty($insert)) 254 { 255 $query = 'UPDATE '.USER_INFOS_TABLE.' SET level = '.$user['level'].' WHERE user_id = '.$new_user['id'].';'; 256 pwg_query($query); 257 } 256 $insert[] = "(".$new_user['id'].",".$row['level'].")"; 257 if (!empty($insert)) pwg_query(" 258 UPDATE `".USER_INFOS_TABLE."` 259 SET `level` = ".$user['level']." 260 WHERE `user_id` = ".$new_user['id']."; 261 "); 258 262 } 259 263 }
Note: See TracChangeset
for help on using the changeset viewer.