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