Ignore:
Timestamp:
2011/03/05 12:56:14 (13 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/total/page_products.tpl

    r20116 r20515  
    2323*}--> 
    2424<table id="total-products" class="list"> 
    25   <tr> 
    26     <th>順位</th> 
    27     <th>商品コード</th> 
    28     <th>商品名</th> 
    29     <th>購入件数</th> 
    30     <th>点数</th> 
    31     <th>単価</th> 
    32     <th>金額</th> 
    33   </tr> 
    34    
    35   <!--{section name=cnt loop=$arrResults}--> 
    36   <!--{* 色分け判定 *}--> 
    37   <!--{assign var=type value="`$smarty.section.cnt.index%2`"}--> 
    38   <!--{if $type == 0}--> 
    39     <!--{* 偶数行 *}--> 
    40     <!--{assign var=color value="even"}--> 
    41   <!--{else}--> 
    42     <!--{* 奇数行 *}--> 
    43     <!--{assign var=color value="odd"}--> 
    44   <!--{/if}--> 
     25    <tr> 
     26        <th>順位</th> 
     27        <th>商品コード</th> 
     28        <th>商品名</th> 
     29        <th>購入件数</th> 
     30        <th>点数</th> 
     31        <th>単価</th> 
     32        <th>金額</th> 
     33    </tr> 
     34     
     35    <!--{section name=cnt loop=$arrResults}--> 
     36        <!--{* 色分け判定 *}--> 
     37        <!--{assign var=type value="`$smarty.section.cnt.index%2`"}--> 
     38        <!--{if $type == 0}--> 
     39            <!--{* 偶数行 *}--> 
     40            <!--{assign var=color value="even"}--> 
     41        <!--{else}--> 
     42            <!--{* 奇数行 *}--> 
     43            <!--{assign var=color value="odd"}--> 
     44        <!--{/if}--> 
    4545 
    46   <tr class="<!--{$color}-->"> 
    47     <td class="center"><!--{*順位*}--><!--{$smarty.section.cnt.iteration}--></td> 
    48     <td class="right"><!--{*商品コード*}--><!--{$arrResults[cnt].product_code|h}--></td> 
    49     <td class="left"><!--{*商品名*}--><!--{$arrResults[cnt].product_name|sfCutString:40|h}--></td> 
    50     <td class="right"><!--{*購入件数*}--><!--{$arrResults[cnt].order_count}-->件</td> 
    51     <td class="right"><!--{*点数*}--><!--{$arrResults[cnt].products_count}--></td> 
    52     <td class="right"><!--{*単価*}--><!--{$arrResults[cnt].price|number_format}-->円</td> 
    53     <td class="right"><!--{*金額*}--><!--{$arrResults[cnt].total|number_format}-->円</td> 
    54   </tr> 
    55   <!--{/section}--> 
    56    
    57   <tr> 
    58     <th>順位</th> 
    59     <th>商品コード</th> 
    60     <th>商品名</th> 
    61     <th>購入件数</th> 
    62     <th>点数</th> 
    63     <th>単価</th> 
    64     <th>金額</th> 
    65   </tr> 
     46        <tr class="<!--{$color}-->"> 
     47            <td class="center"><!--{*順位*}--><!--{$smarty.section.cnt.iteration}--></td> 
     48            <td class="right"><!--{*商品コード*}--><!--{$arrResults[cnt].product_code|h}--></td> 
     49            <td class="left"><!--{*商品名*}--><!--{$arrResults[cnt].product_name|sfCutString:40|h}--></td> 
     50            <td class="right"><!--{*購入件数*}--><!--{$arrResults[cnt].order_count}-->件</td> 
     51            <td class="right"><!--{*点数*}--><!--{$arrResults[cnt].products_count}--></td> 
     52            <td class="right"><!--{*単価*}--><!--{$arrResults[cnt].price|number_format}-->円</td> 
     53            <td class="right"><!--{*金額*}--><!--{$arrResults[cnt].total|number_format}-->円</td> 
     54        </tr> 
     55    <!--{/section}--> 
     56     
     57    <tr> 
     58        <th>順位</th> 
     59        <th>商品コード</th> 
     60        <th>商品名</th> 
     61        <th>購入件数</th> 
     62        <th>点数</th> 
     63        <th>単価</th> 
     64        <th>金額</th> 
     65    </tr> 
    6666</table> 
Note: See TracChangeset for help on using the changeset viewer.