Changeset 7285
- Timestamp:
- Oct 20, 2010, 12:21:08 AM (14 years ago)
- Location:
- extensions/event_cats
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/evntcats_admin.php
r7099 r7285 408 408 $template->assign('U_HELP', get_root_url().'popuphelp.php?page=help'); 409 409 410 if (isset($conf['ec_debug1'])) $template->assign('ec_debug1', array( 410 if (isset($conf['ec_debug1']) and $conf['ec_debug1']) 411 $template->assign('ec_debug1', array( 411 412 'POST' => str_from_var($_POST), 412 413 'ec_debug' => (isset($ec_debug)) ? str_from_var($ec_debug) : '(unset)', -
extensions/event_cats/admin/template/autolog_new.tpl
r7166 r7285 3 3 {* <!-- Keeps file coded in UTF-8 without BOM : é --> *} 4 4 5 {include file=$HeaderIncTPL} 6 {include file='include/datepicker.inc.tpl'} 5 {include file = $HeaderIncTPL} 6 {include file = 'include/datepicker.inc.tpl'} 7 8 {html_head} 9 <style type="text/css"> 10 #ui-datepicker-div {ldelim} 11 display:none; 12 } 13 </style> 14 {/html_head} 7 15 8 16 {* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *} … … 19 27 {'Hide'|@translate} 20 28 </label> 21 — 29 — 22 30 </span> 23 31 {if $ec_ap_ok} 24 32 {'Additional Pages active'|@translate} 25 33 <script type = "text/javascript"> 26 var ec_ap_ok = {if count($ec_lists.add_pages) ==0}false{else}true{/if};34 var ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if}; 27 35 </script> 28 36 {else} … … 39 47 {* <!-- Parameters list --> *} 40 48 <form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();"> 41 <input type = "hidden" id = "ec_act1_id" name = "ec_act1" /> 42 <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel" /> 49 <p> 50 <input type = "hidden" id = "ec_act1_id" name = "ec_act1" /> 51 <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel" /> 52 </p> 43 53 44 54 {* <!-- Page title. Can be "New entry" or "Entry modification" --> *} … … 71 81 </legend> 72 82 83 <ul> 73 84 {if $ec_is_creation} 74 85 <li> 75 86 {* <!-- New code (to create) --> *} 76 87 <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} > 77 <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id"value = "new" id = "ec_sel_code_new"/>88 <input type = "radio" name = "ec_sel_code" value = "new" id = "ec_sel_code_new"/> 78 89 {'New code'|@translate} 79 90 </label> … … 86 97 {'Auto code mid'|@translate} 87 98 <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;"> 88 {foreach from =$ec_auto_code_dg_nb item=ec_item name=listloop}99 {foreach from = $ec_auto_code_dg_nb item = ec_item name = listloop} 89 100 <option value = "{$ec_item}"> 90 101 {$ec_item} 91 {if $smarty.foreach.listloop.index ==0}102 {if $smarty.foreach.listloop.index == 0} 92 103 {'Auto code min'|@translate} 93 104 {/if} 94 {if $smarty.foreach.listloop.index ==count($ec_auto_code_dg_nb) - 1}105 {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1} 95 106 {'Auto code max'|@translate} 96 107 {/if} … … 99 110 </select> 100 111 {'Auto code end'|@translate}<br /> 101 <li style = "padding-left: 30px;">102 <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40"103 id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);"104 />105 — 106 <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}">107 <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span>108 <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id"109 onchange = "ec_new_comment_text = this.value;"110 />111 </label>112 </l i>112 </li> 113 <li style = "padding-left: 30px;"> 114 <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" 115 id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" 116 /> 117 — 118 <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> 119 <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> 120 <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" 121 onchange = "ec_new_comment_text = this.value;" 122 /> 123 </label> 113 124 </li> 114 125 … … 116 127 {* <!-- Known code --> *} 117 128 <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}> 118 <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" />129 <input type = "radio" name = "ec_sel_code" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old" /> 119 130 {'Existing code'|@translate} 120 131 </label> 121 132 <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} > 122 {foreach from =$ec_lists.duplicable_codes.codes key=ec_key item=ec_val}133 {foreach from = $ec_lists.duplicable_codes.codes key = ec_key item = ec_val} 123 134 <option value = "{$ec_val.id}"> 124 135 {$ec_key} 125 136 {if $ec_val.comment != ''} 126 — {$ec_val.comment}137 — {$ec_val.comment} 127 138 {/if} 128 139 </option> … … 137 148 {* <!-- Entry choice --> *} 138 149 <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);"> 139 {foreach from =$ec_lists.ec_table item=ec_val}150 {foreach from = $ec_lists.ec_table item = ec_val} 140 151 <option value = "{$ec_val.id}"> 141 152 {$ec_val.id} : {$ec_val.code} 142 153 {if $ec_val.comment != ''} 143 — {$ec_val.comment}154 — {$ec_val.comment} 144 155 {/if} 145 156 </option> 146 157 {/foreach} 147 158 </select> 148 — 159 — 149 160 <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> 150 161 <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> … … 156 167 157 168 {/if} 169 </ul> 158 170 159 171 </fieldset> … … 165 177 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br /> 166 178 </legend> 167 168 {if !$ec_is_creation} 179 180 <ul> 181 {if !$ec_is_creation} 182 <li> 183 {* <!-- None --> *} 184 <label onclick = "return ec_mark_user('ec_sel_user_none');"> 185 <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" /> 186 {'No user'|@translate} 187 </label><br /> 188 </li> 189 {/if} 190 169 191 <li> 170 {* <!-- None --> *} 171 <label onclick = "return ec_mark_user('ec_sel_user_none');"> 172 <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" /> 173 {'No user'|@translate} 174 </label><br /> 175 </li> 176 {/if} 177 178 <li> 179 {* <!-- New user (to create) --> *} 180 <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > 181 <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} /> 182 {'New generic user'|@translate} 183 </label> 184 <span {$ec_hidden_when_no_user} > </span> 185 <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> 186 <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}" 187 id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" 188 /> 189 </label> 192 {* <!-- New user (to create) --> *} 193 <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > 194 <input type = "radio" name = "ec_sel_user" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} /> 195 {'New generic user'|@translate} 196 </label> 197 <span {$ec_hidden_when_no_user} > </span> 198 <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> 199 <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}" 200 id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" 201 /> 202 </label> 203 </li> 190 204 <li style = "padding-left: 30px;"> 191 205 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br /> … … 212 226 size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;" 213 227 /> 214 </label> 215 </li><br /> 228 </label><br /> 229 </li> 230 231 <li> 232 {* <!-- Known user --> *} 233 <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > 234 <input type = "radio" name = "ec_sel_user" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" /> 235 {'Existing user'|@translate} 236 </label> 237 <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} > 238 {foreach from = $ec_lists.user_ids key = ec_key item = ec_val} 239 <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> 240 {/foreach} 241 </select><br /> 242 </li> 243 </ul> 244 245 </fieldset> 246 247 {* <!-- Page to display --> *} 248 <fieldset style = "float:left;"> 249 <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> 250 251 <ul> 252 <li> 253 <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> 254 <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> 255 <span id = "ec_style_forced_id"> </span> 256 </label> 216 257 </li> 217 258 218 259 <li> 219 {* <!-- Known user --> *} 220 <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > 221 <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" /> 222 {'Existing user'|@translate} 260 {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} 261 <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" 262 {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} 263 > 264 <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" /> 265 {'Additional Page'|@translate}<br /> 266 <select class = "categoryList" name = "ec_in_up_aps" size = "30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > 267 {html_options options = $ec_lists.add_pages} 268 </select> 223 269 </label> 224 <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} > 225 {foreach from=$ec_lists.user_ids key=ec_key item=ec_val} 226 <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> 227 {/foreach} 228 </select><br /> 270 271 {* <!-- Category, provided at least one category is available --> *} 272 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" 273 {if count($ec_lists.categories) == 0} style = "display:none;" {/if} 274 > 275 <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" 276 onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" 277 /> 278 <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br /> 279 <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> 280 {html_options options = $ec_lists.categories} 281 </select> 282 </label> 283 284 {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} 285 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" 286 {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} 287 > 288 <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" /> 289 {'Image id'|@translate}<br /> 290 <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" 291 size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" 292 /><br /> 293 <span id = "ec_in_up_imgs_warn"> </span><br /> 294 </label> 295 296 {* <!-- Index page --> *} 297 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> 298 <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" /> 299 {'Home'|@translate} 300 </label> 301 302 {* <!-- Access denied page (only when modifying an entry) --> *} 303 {if !$ec_is_creation} 304 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> 305 <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" /> 306 {'Access denied'|@translate} 307 </label> 308 {/if} 229 309 </li> 230 231 </fieldset> 232 233 {* <!-- Page to display --> *} 234 <fieldset style = "float:left;"> 235 <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> 236 237 <li> 238 <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> 239 <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> 240 <span id = "ec_style_forced_id"> </span> 241 </label> 242 </li> 243 244 <li> 245 {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} 246 <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" 247 {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} 248 > 249 <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" /> 250 {'Additional Page'|@translate}<br /> 251 <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > 252 {html_options options=$ec_lists.add_pages} 253 </select> 254 </label> 255 256 {* <!-- Category, provided at least one category is available --> *} 257 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" 258 {if count($ec_lists.categories) == 0} style = "display:none;" {/if} 259 > 260 <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id" 261 onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" 262 /> 263 <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br /> 264 <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> 265 {html_options options=$ec_lists.categories} 266 </select> 267 </label> 268 269 {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} 270 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" 271 {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} 272 > 273 <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" /> 274 {'Image id'|@translate}<br /> 275 <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" 276 size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" 277 /><br /> 278 <span id = "ec_in_up_imgs_warn"> </span><br /> 279 </label> 280 281 {* <!-- Index page --> *} 282 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> 283 <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" /> 284 {'Home'|@translate} 285 </label> 286 287 {* <!-- Access denied page (only when modifying an entry) --> *} 288 {if !$ec_is_creation} 289 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> 290 <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" /> 291 {'Access denied'|@translate} 292 </label> 293 {/if} 294 </li> 310 </ul> 295 311 296 312 </fieldset> … … 298 314 <fieldset style = "float:right;"> 299 315 <legend style = "font-weight:bold;">Validité</legend> 300 <span style = "font-weight:bold;">Date de validité : </span> 316 Date de validité : <br /> 317 <label for = "ec_valid_date_on_off_id"> 318 <input type = "checkbox" name = "ec_valid_date_on_off" id = "ec_valid_date_on_off_id"> 319 Activer 320 </label><br /><br /> 301 321 <select id = "date_creation_day" name = "date_creation_day"> 302 322 <option value = "0">--</option> … … 333 353 <option value = "31" >31</option> 334 354 </select> 335 355 336 356 <select id = "date_creation_month" name = "date_creation_month"> 337 357 <option label = "------------" value = "0">------------</option> … … 349 369 <option label = "Décembre" value = "12">Décembre</option> 350 370 </select> 351 371 352 372 <input id = "date_creation_year" name = "date_creation_year" type = "text" size = "4" maxlength = "4" value = "2010"> 353 373 {* <!-- date_creation_linked_date représente la date indiquée par les listes déroulantes, et permet de limiter … … 357 377 pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", 358 378 "#date_creation_year", "#date_creation_linked_date", null, "#date_creation_linked_date"); 359 </script> 379 </script><br /> 380 <table> 381 <tr> 382 <td style = "text-align:right; vertical-align:top; font-weight:bold;"> 383 Page à utiliser : 384 </td> 385 <td> 386 <label for = "ec_date_unknown_0_id"> 387 <input type = "radio" name = "ec_date_unknown" value = "0" id = "ec_date_unknown_0_id" /> 388 {'Home'|@translate} 389 </label><br /> 390 <label for = "ec_date_unknown_1_id"> 391 <input type = "radio" name = "ec_date_unknown" value = "1" id = "ec_date_unknown_1_id" /> 392 {'Access denied'|@translate} 393 </label><br /> 394 {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} 395 <label class = "ec_date_block" for = "ec_date_in_up_aps_id" {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} > 396 <input type = "radio" name = "ec_date_unknown" value = "2" id = "ec_date_unknown_2_id" /> 397 {'Additional Page'|@translate}<br /> 398 <select class = "categoryList" name = "ec_date_in_up_aps" size = "30" id = "ec_date_in_up_aps_id" > 399 {html_options options = $ec_lists.add_pages} 400 </select> 401 </label> 402 </td> 403 </tr> 404 </table> 405 360 406 </fieldset> 361 407 … … 391 437 ec_auto_code_digits_nb = "{$ec_def_auto_code_dg_nb}"; 392 438 {if $ec_is_creation} 393 {foreach from =$ec_lists.duplicable_codes.ids key=ec_key item=ec_val}439 {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val} 394 440 ec_duplic_codes[{$ec_key}] = {$ec_val}; 395 441 {/foreach} 396 442 {/if} 397 {foreach from =$ec_lists.ec_table item=ec_val name=listloop}398 ec_lists_temp[{$smarty.foreach.listloop.index}] =443 {foreach from = $ec_lists.ec_table item = ec_val name = listloop} 444 ec_lists_temp[{$smarty.foreach.listloop.index}] = 399 445 "{$ec_val.id};{$ec_val.code};{$ec_val.user_id};{$ec_val.action};{$ec_val.arg1};{$ec_val.arg2};{$ec_val.forced};{$ec_val.comment}"; 400 446 {/foreach} … … 403 449 //--></script> 404 450 405 {include file =$FooterIncTPL}451 {include file = $FooterIncTPL} -
extensions/event_cats/admin/template/footer.inc.tpl
r5058 r7285 10 10 ec_help_banner_in_foot = true; 11 11 //--></script> 12 <div id = "ec_help_banner0"> 13 <hr width = 100% size = 1 /> 12 <div id = "ec_help_banner0" style = "border-top: 1px solid #000000; border-bottom: 1px solid #000000;"> 14 13 <div id = "ec_help_banner1" style = "text-align:left; display:block;"></div> 15 <hr width = 100% size = 1 />16 14 </div> 17 15 {else} -
extensions/event_cats/admin/template/header.inc.tpl
r6269 r7285 28 28 {* <!-- Help banner --> *} 29 29 {if !isset($ec_help_banner_in_foot)} 30 <span id = "ec_help_banner0"> 31 <hr width = 100% size = 1 /> 32 <div style = "text-align:right; font-style:italic;"> 30 <div id = "ec_help_banner0"> 31 <div style = "text-align:right; font-style:italic; border-top: 1px solid #000000;"> 33 32 {'Help banner'|@translate} 34 33 <label for = "ec_help_banner_1" onclick = "ec_mark_help('ec_help_banner_1');"> … … 42 41 </label> 43 42 </div> 44 <span id = "ec_help_banner1" style = "text-align:left; display:block;"></span> 45 <hr width = 100% size = 1 /> 46 </span> 43 <span id = "ec_help_banner1" style = "text-align:left; display:block; border-bottom: 1px solid #000000;"></span> 44 </div> 47 45 {/if} 48 46 -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r7099 r7285 88 88 * str_from_var($var) 89 89 * returns a string easing array var informations displaying in Piwigo : 90 * _ the string return value starts with"<p align="left">" ;91 * _ all "TAB" characters (chr(10)) are replaced by "<br >" ;90 * _ the string return value starts with"<p style = "text-align:left;">" ; 91 * _ all "TAB" characters (chr(10)) are replaced by "<br />" ; 92 92 * _ all spaces are replaced by " ". 93 93 * … … 99 99 function str_from_var($var) { 100 100 return 101 '<p align="left">'.101 '<p style = "text-align:left;">'. 102 102 str_replace( 103 chr(10),'<br >',103 chr(10),'<br />', 104 104 str_replace(' ',' ', print_r /* var_dump */ ($var,true)) 105 105 ).
Note: See TracChangeset
for help on using the changeset viewer.