| 1 | <!--{* |
---|
| 2 | /* |
---|
| 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
| 5 | * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. |
---|
| 6 | * |
---|
| 7 | * http://www.lockon.co.jp/ |
---|
| 8 | * |
---|
| 9 | * This program is free software; you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU General Public License |
---|
| 11 | * as published by the Free Software Foundation; either version 2 |
---|
| 12 | * of the License, or (at your option) any later version. |
---|
| 13 | * |
---|
| 14 | * This program is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this program; if not, write to the Free Software |
---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
| 22 | */ |
---|
| 23 | *}--> |
---|
| 24 | <table id="total-age" 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}--> |
---|
| 42 | |
---|
| 43 | <tr class="<!--{$color}-->"> |
---|
| 44 | <td class="center"><!--{*年齢*}--><!--{$arrResults[cnt].age_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> |
---|
| 57 | </table> |
---|