source: branches/version-2_5-dev/data/Smarty/templates/admin/total/index.tpl @ 20747

Revision 20747, 8.8 KB checked in by kotani, 13 years ago (diff)

#862 (テンプレート上のエスケープを簡単に)実装漏れ箇所

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