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 | <div id="total" class="contents-main"> |
---|
25 | <!--{* 検索条件設定テーブルここから *}--> |
---|
26 | <table summary="検索条件設定テーブル" class="input-form form"> |
---|
27 | <tr> |
---|
28 | <th>月度集計</th> |
---|
29 | <td> |
---|
30 | <form name="search_form1" id="search_form1" method="post" action="?"> |
---|
31 | <input type="hidden" name="mode" value="search" /> |
---|
32 | <input type="hidden" name="form" value="1" /> |
---|
33 | <input type="hidden" name="page" value="<!--{$arrForm.page.value}-->" /> |
---|
34 | <input type="hidden" name="type" value="<!--{$smarty.post.type}-->" /> |
---|
35 | <!--{if $arrErr.search_startyear_m || $arrErr.search_endyear_m}--> |
---|
36 | <span class="attention"><!--{$arrErr.search_startyear_m}--></span> |
---|
37 | <span class="attention"><!--{$arrErr.search_endyear_m}--></span> |
---|
38 | <!--{/if}--> |
---|
39 | <select name="search_startyear_m" style="<!--{$arrErr.search_startyear_m|sfGetErrorColor}-->"> |
---|
40 | <!--{html_options options=$arrYear selected=$arrForm.search_startyear_m.value}--> |
---|
41 | </select>年 |
---|
42 | <select name="search_startmonth_m" style="<!--{$arrErr.search_startyear_m|sfGetErrorColor}-->"> |
---|
43 | <!--{html_options options=$arrMonth selected=$arrForm.search_startmonth_m.value}--> |
---|
44 | </select>月度 (<!--{if $smarty.const.CLOSE_DAY == 31}-->末<!--{else}--><!--{$smarty.const.CLOSE_DAY}--><!--{/if}-->日締め) |
---|
45 | <a class="btn_normal" href="javascript:;" onclick="fnFormModeSubmit('search_form1', 'search', '', '');" name="subm">月度で集計する</a> |
---|
46 | </form> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | <tr> |
---|
50 | <th>期間集計</th> |
---|
51 | <td> |
---|
52 | <form name="search_form2" id="search_form2" method="post" action="?"> |
---|
53 | <input type="hidden" name="mode" value="search" /> |
---|
54 | <input type="hidden" name="form" value="2" /> |
---|
55 | <input type="hidden" name="page" value="<!--{$arrForm.page.value}-->" /> |
---|
56 | <input type="hidden" name="type" value="<!--{$smarty.post.type}-->" /> |
---|
57 | <!--{if $arrErr.search_startyear || $arrErr.search_endyear}--> |
---|
58 | <span class="attention"><!--{$arrErr.search_startyear}--></span> |
---|
59 | <span class="attention"><!--{$arrErr.search_endyear}--></span> |
---|
60 | <!--{/if}--> |
---|
61 | <select name="search_startyear" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
62 | <option value="">----</option> |
---|
63 | <!--{html_options options=$arrYear selected=$arrForm.search_startyear.value}--> |
---|
64 | </select>年 |
---|
65 | <select name="search_startmonth" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
66 | <option value="">--</option> |
---|
67 | <!--{html_options options=$arrMonth selected=$arrForm.search_startmonth.value}--> |
---|
68 | </select>月 |
---|
69 | <select name="search_startday" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
70 | <option value="">--</option> |
---|
71 | <!--{html_options options=$arrDay selected=$arrForm.search_startday.value}--> |
---|
72 | </select>日~ |
---|
73 | <select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
74 | <option value="">----</option> |
---|
75 | <!--{html_options options=$arrYear selected=$arrForm.search_endyear.value}--> |
---|
76 | </select>年 |
---|
77 | <select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
78 | <option value="">--</option> |
---|
79 | <!--{html_options options=$arrMonth selected=$arrForm.search_endmonth.value}--> |
---|
80 | </select>月 |
---|
81 | <select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
82 | <option value="">--</option> |
---|
83 | <!--{html_options options=$arrDay selected=$arrForm.search_endday.value}--> |
---|
84 | </select>日 |
---|
85 | <a class="btn_normal" href="javascript:;" onclick="fnFormModeSubmit('search_form2', 'search', '', '');" name="subm">期間で集計する</a> |
---|
86 | </form> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | </table> |
---|
90 | <!--{* 検索条件設定テーブルここまで *}--> |
---|
91 | |
---|
92 | |
---|
93 | <!--{* 検索結果一覧ここから *}--> |
---|
94 | <!--{if count($arrResults) > 0}--> |
---|
95 | <form name="form1" id="form1" method="post" action="?"> |
---|
96 | <input type="hidden" name="mode" value="search" /> |
---|
97 | <input type="hidden" name="type" value="<!--{$arrForm.type.value}-->" /> |
---|
98 | <input type="hidden" name="page" value="<!--{$arrForm.page.value}-->" /> |
---|
99 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
100 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" /> |
---|
101 | <!--{/foreach}--> |
---|
102 | |
---|
103 | <!--検索結果表示テーブル--> |
---|
104 | <h2><!--{include file=$tpl_graphsubtitle}--></h2> |
---|
105 | |
---|
106 | <div class="btn"> |
---|
107 | <a class="btn_normal" href="javascript:;" onclick="fnModeSubmit('csv','','');"><span>CSVダウンロード</span></a> |
---|
108 | </div> |
---|
109 | |
---|
110 | <!--{* グラフ表示 *}--> |
---|
111 | <!--{if $install_GD}--> |
---|
112 | <div id="graph-image"> |
---|
113 | <!--{* <img src="<!--{$tpl_image}-->?<!--{$cashtime}-->" alt="グラフ"> *}--> |
---|
114 | <img src="<!--{$smarty.server.PHP_SELF|escape}-->?draw_image=true&type=<!--{$smarty.post.type}-->&mode=search&page=<!--{$smarty.post.page}-->&search_startyear_m=<!--{$smarty.post.search_startyear_m}-->&search_startmonth_m=<!--{$smarty.post.search_startmonth_m}-->&search_startyear=<!--{$smarty.post.search_startyear}-->&search_startmonth=<!--{$smarty.post.search_startmonth}-->&search_startday=<!--{$smarty.post.search_startday}-->&search_endyear=<!--{$smarty.post.search_endyear}-->&search_endmonth=<!--{$smarty.post.search_endmonth}-->&search_endday=<!--{$smarty.post.search_endday}-->" alt="グラフ" /> |
---|
115 | </div> |
---|
116 | <!--{/if}--> |
---|
117 | <!--{* グラフ表示 *}--> |
---|
118 | |
---|
119 | <!--{* ▼検索結果テーブルここから *}--> |
---|
120 | <!--{include file=$tpl_page_type}--> |
---|
121 | <!--{* ▲検索結果テーブルここまで *}--> |
---|
122 | <!--検索結果表示テーブル--> |
---|
123 | </form> |
---|
124 | <!--{else}--> |
---|
125 | <!--{if $smarty.post.mode == 'search'}--> |
---|
126 | <form name="form1" id="form1" method="post" action="?"> |
---|
127 | <input type="hidden" name="mode" value="search" /> |
---|
128 | <input type="hidden" name="type" value="<!--{$arrForm.type.value}-->" /> |
---|
129 | <input type="hidden" name="page" value="<!--{$arrForm.page.value}-->" /> |
---|
130 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
131 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" /> |
---|
132 | <!--{/foreach}--> |
---|
133 | <!--検索結果表示テーブル--> |
---|
134 | <h2><!--{include file=$tpl_graphsubtitle}--></h2> |
---|
135 | <div class="message"> |
---|
136 | 該当するデータはありません。 |
---|
137 | </div> |
---|
138 | <!--検索結果表示テーブル--> |
---|
139 | </form> |
---|
140 | <!--{/if}--> |
---|
141 | <!--{/if}--> |
---|
142 | <!--{* 検索結果一覧ここまで *}--> |
---|
143 | </div> |
---|