Ignore:
Timestamp:
Apr 17, 2011, 10:42:21 PM (13 years ago)
Author:
LucMorizur
Message:

Improve HTML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_entries.tpl

    r8956 r10456  
    1010    {'Help banner'|@translate} 
    1111    <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');">
    12       <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"/>
     12      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1">
    1313      {'Show'|@translate}
    1414    </label>
    1515    &nbsp;
    1616    <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');">
    17       <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"/>
     17      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0">
    1818      {'Hide'|@translate}
    1919    </label>
    20     &nbsp;&#151;&nbsp;
     20    &nbsp;&nbsp;
    2121  </span>
    2222  {if $ec_ap_ok}
     
    3333</div><span id = "ec_help_ban"></span>
    3434
    35 <br />
     35<br>
    3636
    3737{* <!-- Form to view codes --> *}
    3838<form class = "filter" method = "post" name = "ec_view_codes" action = "">
    39   <input type = "hidden" id = "ec_act1_id" name = "ec_act1" />
    40   <input type = "radio" name = "ec_entry_sel" value = "-1" id = "selection--1" style = "display:none;"/>
    4139 
    4240  <div style = "text-align:center; font-weight:bold; font-size:120%;">
     41    <input type = "hidden" id = "ec_act1_id" name = "ec_act1">
     42    <input type = "radio" name = "ec_entry_sel" value = "-1" id = "selection--1" style = "display:none;">
    4343    <a href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}">
    4444      <!--[if !IE]> <--> <label> <!--> <![endif]-->
     
    4646      <!--[if !IE]> <--> </label> <!--> <![endif]-->
    4747      <!-- What we're able to do for our "prefered" browser |-( ...!  -->
    48     </a><br />
    49   </div><br />
     48    </a><br>
     49  </div>
    5050 
    5151  {* <!-- Table to show codes present in MySQL table --> *}
    52   <table class = "table2" width = "97%">
    53     <thead>
    54       <tr class = "throw">
    55         <td>{'Entry'|@translate}</td>
    56         <td>{'Code'|@translate}</td>
    57         <td>{'Username'|@translate}</td>
    58         <td>{'Identification'|@translate}</td>
    59         <td>{'Displayed page'|@translate}</td>
    60         <td>{'Tools'|@translate}</td>
    61       </tr>
    62     </thead>
    63    
    64     {foreach from=$code_list item=code_line name=code_loop}
    65       <tr class = "{if $smarty.foreach.code_loop.index is odd}row1{else}row2{/if}">
    66         <td>
    67           <input type = "radio" name = "ec_entry_sel" value = "{$code_line.id}" id = "selection-{$code_line.id}"
    68            onclick = "ec_mark_line({$code_line.id});"
    69           />
    70           <label for = "selection-{$code_line.id}">{$code_line.id}</label>
    71           <a id = "ec_url_id_{$code_line.id}" style = "display:none;" href = "{$code_line.code_URL}"></a>
    72         </td>
    73         <td>
    74           <label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}"
    75              {if $comment_tooltip} title = "{$code_line.Comment}" {/if}
    76           >
    77             {$code_line.Code}
    78             {if !$comment_tooltip and $code_line.Comment != ''}<br />{$code_line.Comment}{/if}
    79           </label>
    80         </td>
    81         <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td>
    82         <td><label for = "selection-{$code_line.id}">{$code_line.Action}</label></td>
    83         <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
    84         <td>
    85           {if $code_line.log_OK}
    86             <a href = "javascript:void(0);" onclick = "ec_check_ds({$code_line.id});">
    87               <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button"
    88                alt = "{'Outdate entry ttip'|@translate}" title = "{'Outdate entry ttip'|@translate}" />
    89             </a>
    90             {if $code_line.Forced == 'true'}
    91               <a href = "javascript:void(0);" title = "{'Unforce display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
    92                 <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png"
    93                  alt = "{'Unforce display ttip'|@translate}" title = "{'Unforce display ttip'|@translate}"
    94                 />
     52  <p>
     53    <table class = "table2" width = "97%">
     54      <thead>
     55        <tr class = "throw">
     56          <td>{'Entry'|@translate}</td>
     57          <td>{'Code'|@translate}</td>
     58          <td>{'Username'|@translate}</td>
     59          <td>{'Identification'|@translate}</td>
     60          <td>{'Displayed page'|@translate}</td>
     61          <td>{'Tools'|@translate}</td>
     62        </tr>
     63      </thead>
     64     
     65      {foreach from=$code_list item=code_line name=code_loop}
     66        <tr class = "{if $smarty.foreach.code_loop.index is odd}row1{else}row2{/if}">
     67          <td>
     68            <input type = "radio" name = "ec_entry_sel" value = "{$code_line.id}" id = "selection-{$code_line.id}"
     69             onclick = "ec_mark_line({$code_line.id});"
     70            >
     71            <label for = "selection-{$code_line.id}">{$code_line.id}</label>
     72            <a id = "ec_url_id_{$code_line.id}" style = "display:none;" href = "{$code_line.code_URL}"></a>
     73          </td>
     74          <td>
     75            <label for = "selection-{$code_line.id}" id = "ec_table_code_{$code_line.id}"
     76               {if $comment_tooltip} title = "{$code_line.Comment}" {/if}
     77            >
     78              {$code_line.Code}
     79              {if !$comment_tooltip and $code_line.Comment != ''}<br>{$code_line.Comment}{/if}
     80            </label>
     81          </td>
     82          <td><label for = "selection-{$code_line.id}" id = "ec_table_usr_{$code_line.id}">{$code_line.Username}</label></td>
     83          <td><label for = "selection-{$code_line.id}">{$code_line.Action}</label></td>
     84          <td><label for = "selection-{$code_line.id}">{$code_line.Arg1}</label></td>
     85          <td>
     86            {if $code_line.log_OK}
     87              <a href = "javascript:void(0);" onclick = "ec_check_ds({$code_line.id});">
     88                <img src = "{$EVNTCATS_URLS.ROOT}icon/disable.png" class = "button"
     89                 alt = "{'Outdate entry ttip'|@translate}" title = "{'Outdate entry ttip'|@translate}">
    9590              </a>
    96             {else}
    97               <a href = "javascript:void(0);" title = "{'Force display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
    98                 <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
    99                  alt = "{'Force display ttip'|@translate}" title = "{'Force display ttip'|@translate}"/>
    100               </a>
    101               <a href = "javascript:void(0);" title = "{'Duplicate entry ttip'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});">
    102                 <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none"
    103                  alt = "{'Duplicate entry ttip'|@translate}" title = "{'Duplicate entry ttip'|@translate}" />
    104               </a>
     91              {if $code_line.Forced == 'true'}
     92                <a href = "javascript:void(0);" title = "{'Unforce display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, false);">
     93                  <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/forced.png"
     94                   alt = "{'Unforce display ttip'|@translate}" title = "{'Unforce display ttip'|@translate}"
     95                  >
     96                </a>
     97              {else}
     98                <a href = "javascript:void(0);" title = "{'Force display ttip'|@translate}" onclick = "ec_toggle_forced({$code_line.id}, true);">
     99                  <img class = "button" src = "{$EVNTCATS_URLS.ROOT}icon/nforced.png"
     100                   alt = "{'Force display ttip'|@translate}" title = "{'Force display ttip'|@translate}">
     101                </a>
     102                <a href = "javascript:void(0);" title = "{'Duplicate entry ttip'|@translate}" onclick = "ec_duplicate_entry({$code_line.id});">
     103                  <img src = "{$EVNTCATS_URLS.ROOT}icon/duplicate.png" class = "button" style = "border:none"
     104                   alt = "{'Duplicate entry ttip'|@translate}" title = "{'Duplicate entry ttip'|@translate}">
     105                </a>
     106              {/if}
    105107            {/if}
    106           {/if}
    107         </td>
    108       </tr>
    109     {/foreach}
    110   </table>
     108          </td>
     109        </tr>
     110      {/foreach}
     111    </table>
     112  </p>
    111113 
    112114  {* <!-- This is not really a table, looks like a unique cell at the end of previous table,
     
    120122        <label title = "{'Copy URL ttip'|@translate}">
    121123          {'URL'|@translate}
    122           <input type = "text" id = "ec_show_URL" size = "100%" title = "{'Copy URL ttip'|@translate}" readonly = "readonly" />
    123         </label><br />
    124         <br />
     124          <input type = "text" id = "ec_show_URL" size = "100%" title = "{'Copy URL ttip'|@translate}" readonly = "readonly">
     125        </label><br>
     126        <br>
    125127        <a
    126          href = "javascript:void(0);" title = "{'Test URL ttip'|@translate}" alt = "{'Test URL ttip'|@translate}"
     128         href = "javascript:void(0);" title = "{'Test URL ttip'|@translate}"
    127129         id = "ec_table_URL" onclick = "return ec_check_tst();" class = "ec_lower_tools"
    128         />
    129           <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button"/>
     130        >
     131          <img src = "{$EVNTCATS_URLS.ROOT}icon/url2.png" class = "button" alt = "{'Test URL ttip'|@translate}">
    130132          {'Test'|@translate}
    131133        </a>
    132134        &nbsp;&nbsp;
    133135        <a href = "javascript:void(0);" onclick = "ec_check_dl();" id = "ec_del_link_id" class = "ec_lower_tools"
    134          alt = "{'Delete entry ttip'|@translate}" title = "{'Delete entry ttip'|@translate}"
     136         title = "{'Delete entry ttip'|@translate}"
    135137        >
    136           <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button"/>
     138          <img src = "{$EVNTCATS_URLS.ROOT}icon/delete.png" class = "button" alt = "{'Delete entry ttip'|@translate}">
    137139          {'Delete'|@translate}
    138140        </a>
    139141        &nbsp;&nbsp;
    140142        <a href = "javascript:void(0);" onclick = "ec_check_m();" id = "ec_mod_link_id" class = "ec_lower_tools"
    141          alt = "{'Modify entry ttip'|@translate}" title = "{'Modify entry ttip'|@translate}"
     143         title = "{'Modify entry ttip'|@translate}"
    142144        >
    143           <img src = "{$EVNTCATS_URLS.ROOT}icon/modify.png" class = "button"/>
     145          <img src = "{$EVNTCATS_URLS.ROOT}icon/modify.png" class = "button" alt = "{'Modify entry ttip'|@translate}">
    144146          {'Modify'|@translate}
    145147        </a>
    146148      </td>
    147149    </tr>
    148   </table><br />
     150  </table>
    149151</form>
    150152
     
    160162</script>
    161163
    162 {include file=$FooterIncTPL}
     164<p>
     165  {include file=$FooterIncTPL}
     166</p>
Note: See TracChangeset for help on using the changeset viewer.