Changeset 7285 for extensions/event_cats


Ignore:
Timestamp:
Oct 20, 2010, 12:21:08 AM (14 years ago)
Author:
LucMorizur
Message:

Cleaning of autolog_new.tpl thanks to HTMLvalidator (remains quite such cleaning to do...)

Location:
extensions/event_cats
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r7099 r7285  
    408408$template->assign('U_HELP', get_root_url().'popuphelp.php?page=help');
    409409
    410 if (isset($conf['ec_debug1'])) $template->assign('ec_debug1', array(
     410if (isset($conf['ec_debug1']) and $conf['ec_debug1'])
     411 $template->assign('ec_debug1', array(
    411412  'POST'      => str_from_var($_POST),
    412413  'ec_debug'  => (isset($ec_debug)) ? str_from_var($ec_debug) : '(unset)',
  • extensions/event_cats/admin/template/autolog_new.tpl

    r7166 r7285  
    33{* <!-- Keeps file coded in UTF-8 without BOM : é --> *}
    44
    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}
    715
    816{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
     
    1927      {'Hide'|@translate}
    2028    </label>
    21     &nbsp;&#151;&nbsp;
     29    &nbsp;&nbsp;
    2230  </span>
    2331  {if $ec_ap_ok}
    2432    {'Additional Pages active'|@translate}
    2533    <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};
    2735    </script>
    2836  {else}
     
    3947{* <!-- Parameters list --> *}
    4048<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>
    4353 
    4454  {* <!-- Page title. Can be "New entry" or "Entry modification" --> *}
     
    7181    </legend>
    7282   
     83    <ul>
    7384      {if $ec_is_creation}
    7485        <li>
    7586          {* <!-- New code (to create) --> *}
    7687          <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"/>
    7889            {'New code'|@translate}
    7990          </label>
     
    8697          {'Auto code mid'|@translate}
    8798          <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}
    89100              <option value = "{$ec_item}">
    90101                {$ec_item}
    91                 {if $smarty.foreach.listloop.index == 0}
     102                {if $smarty.foreach.listloop.index  == 0}
    92103                  {'Auto code min'|@translate}
    93104                {/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}
    95106                  {'Auto code max'|@translate}
    96107                {/if}
     
    99110          </select>
    100111          {'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             &nbsp;&#151;&nbsp;
    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           </li>
     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          &nbsp;—&nbsp;
     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>
    113124        </li>
    114125       
     
    116127          {* <!-- Known code --> *}
    117128          <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" />
    119130            {'Existing code'|@translate}
    120131          </label>
    121132          <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}
    123134              <option value = "{$ec_val.id}">
    124135                {$ec_key}
    125136                {if $ec_val.comment != ''}
    126                   &nbsp;&#151;&nbsp;{$ec_val.comment}
     137                  &nbsp;&nbsp;{$ec_val.comment}
    127138                {/if}
    128139              </option>
     
    137148          {* <!-- Entry choice --> *}
    138149          <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}
    140151              <option value = "{$ec_val.id}">
    141152                {$ec_val.id} : {$ec_val.code}
    142153                {if $ec_val.comment != ''}
    143                   &nbsp;&#151;&nbsp;{$ec_val.comment}
     154                  &nbsp;&nbsp;{$ec_val.comment}
    144155                {/if}
    145156              </option>
    146157            {/foreach}
    147158          </select>
    148           &nbsp;&#151;&nbsp;
     159          &nbsp;&nbsp;
    149160            <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}">
    150161              <span style = "font-weight:bold;  font-style:italic;">{'Comment'|@translate}</span>
     
    156167       
    157168      {/if}
     169    </ul>
    158170   
    159171  </fieldset>
     
    165177      <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br />
    166178    </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       
    169191        <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} >&nbsp;</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} >&nbsp;</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>
    190204        <li style = "padding-left: 30px;">
    191205          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br />
     
    212226             size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;"
    213227            />
    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">&nbsp;</span>
     256        </label>
    216257      </li>
    217258     
    218259      <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>
    223269        </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">&nbsp;</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}
    229309      </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">&nbsp;</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">&nbsp;</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>
    295311   
    296312  </fieldset>
     
    298314  <fieldset style = "float:right;">
    299315    <legend style = "font-weight:bold;">Validité</legend>
    300     <span style = "font-weight:bold;">Date de validité&nbsp;: </span>
     316    Date de validité&nbsp;: <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 />
    301321    <select id = "date_creation_day" name = "date_creation_day">
    302322      <option value = "0">--</option>
     
    333353      <option value = "31" >31</option>
    334354    </select>
    335 
     355   
    336356    <select id = "date_creation_month" name = "date_creation_month">
    337357      <option label = "------------" value = "0">------------</option>
     
    349369      <option label = "Décembre"     value = "12">Décembre</option>
    350370    </select>
    351 
     371   
    352372    <input id = "date_creation_year" name = "date_creation_year" type = "text" size = "4" maxlength = "4" value = "2010">
    353373    {* <!-- date_creation_linked_date représente la date indiquée par les listes déroulantes, et permet de limiter
     
    357377      pwg_initialization_datepicker("#date_creation_day", "#date_creation_month",
    358378       "#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&nbsp;:&nbsp;&nbsp;
     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
    360406  </fieldset>
    361407 
     
    391437  ec_auto_code_digits_nb                  = "{$ec_def_auto_code_dg_nb}";
    392438  {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}
    394440      ec_duplic_codes[{$ec_key}] = {$ec_val};
    395441    {/foreach}
    396442  {/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}]  =
    399445     "{$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}";
    400446  {/foreach}
     
    403449//--></script>
    404450
    405 {include file=$FooterIncTPL}
     451{include file = $FooterIncTPL}
  • extensions/event_cats/admin/template/footer.inc.tpl

    r5058 r7285  
    1010    ec_help_banner_in_foot = true;
    1111  //--></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;">
    1413    <div id = "ec_help_banner1" style = "text-align:left; display:block;"></div>
    15     <hr width = 100% size = 1 />
    1614  </div>
    1715{else}
  • extensions/event_cats/admin/template/header.inc.tpl

    r6269 r7285  
    2828{* <!-- Help banner --> *}
    2929{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;">
    3332      {'Help banner'|@translate}&nbsp;
    3433      <label for = "ec_help_banner_1" onclick = "ec_mark_help('ec_help_banner_1');">
     
    4241      </label>
    4342    </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>
    4745{/if}
    4846
  • extensions/event_cats/include/evntcats_main_funcs.inc.php

    r7099 r7285  
    8888 * str_from_var($var)
    8989 * 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 />" ;
    9292 *   _ all spaces are replaced by "&nbsp;".
    9393 *
     
    9999function str_from_var($var) {
    100100  return
    101    '<p align="left">'.
     101   '<p style = "text-align:left;">'.
    102102   str_replace(
    103     chr(10),'<br>',
     103    chr(10),'<br />',
    104104    str_replace(' ','&nbsp;', print_r /* var_dump */ ($var,true))
    105105   ).
Note: See TracChangeset for help on using the changeset viewer.