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_member.tpl

    r20116 r20515  
    2323*}--> 
    2424<table id="total-member" class="list"> 
    25   <tr> 
    26     <th>区分</th> 
    27     <th>購入件数</th> 
    28     <th>購入合計</th> 
    29     <th>購入平均</th> 
    30   </tr> 
    31    
    32   <!--{section name=cnt loop=$arrResults}--> 
    33   <!--{* 色分け判定 *}--> 
    34   <!--{assign var=type value="`$smarty.section.cnt.index%2`"}--> 
    35   <!--{if $type == 0}--> 
    36     <!--{* 偶数行 *}--> 
    37     <!--{assign var=color value="even"}--> 
    38   <!--{else}--> 
    39     <!--{* 奇数行 *}--> 
    40     <!--{assign var=color value="odd"}--> 
    41   <!--{/if}--> 
     25    <tr> 
     26        <th>区分</th> 
     27        <th>購入件数</th> 
     28        <th>購入合計</th> 
     29        <th>購入平均</th> 
     30    </tr> 
     31     
     32    <!--{section name=cnt loop=$arrResults}--> 
     33        <!--{* 色分け判定 *}--> 
     34        <!--{assign var=type value="`$smarty.section.cnt.index%2`"}--> 
     35        <!--{if $type == 0}--> 
     36            <!--{* 偶数行 *}--> 
     37            <!--{assign var=color value="even"}--> 
     38        <!--{else}--> 
     39            <!--{* 奇数行 *}--> 
     40            <!--{assign var=color value="odd"}--> 
     41        <!--{/if}--> 
    4242 
    43   <tr class="<!--{$color}-->"> 
    44     <td class="center"><!--{*区分*}--><!--{$arrResults[cnt].member_name}--></td> 
    45     <td class="right"><!--{*購入件数*}--><!--{$arrResults[cnt].order_count}-->件</td> 
    46     <td class="right"><!--{*購入合計*}--><!--{$arrResults[cnt].total|number_format}-->円</td> 
    47     <td class="right"><!--{*購入平均*}--><!--{$arrResults[cnt].total_average|number_format}-->円</td> 
    48   </tr> 
    49   <!--{/section}--> 
    50    
    51   <tr> 
    52     <th>区分</th> 
    53     <th>購入件数</th> 
    54     <th>購入合計</th> 
    55     <th>購入平均</th> 
    56   </tr> 
     43        <tr class="<!--{$color}-->"> 
     44            <td class="center"><!--{*区分*}--><!--{$arrResults[cnt].member_name}--></td> 
     45            <td class="right"><!--{*購入件数*}--><!--{$arrResults[cnt].order_count}-->件</td> 
     46            <td class="right"><!--{*購入合計*}--><!--{$arrResults[cnt].total|number_format}-->円</td> 
     47            <td class="right"><!--{*購入平均*}--><!--{$arrResults[cnt].total_average|number_format}-->円</td> 
     48        </tr> 
     49    <!--{/section}--> 
     50     
     51    <tr> 
     52        <th>区分</th> 
     53        <th>購入件数</th> 
     54        <th>購入合計</th> 
     55        <th>購入平均</th> 
     56    </tr> 
    5757</table> 
Note: See TracChangeset for help on using the changeset viewer.