source: branches/version-2_12-multilang/data/Smarty/templates/admin/total/index.tpl @ 22288

Revision 22288, 12.8 KB checked in by h_yoshimoto, 11 years ago (diff)

#1890 一部テキストを切り出し・英文化

  • 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-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<script type="text/javascript">
26$(function(){
27   
28    $( "#datepickersearch_start_m" ).datepicker({
29    beforeShowDay: function(date) {
30        if(date.getDay() == 0) {
31            return [true,"date-sunday"];
32        } else if(date.getDay() == 6){
33            return [true,"date-saturday"];
34        } else {
35            return [true];
36        }
37    },changeMonth: 'true'
38    ,changeYear: 'true'
39    ,onSelect: function(dateText, inst){
40        setDatesearch_start_m(dateText);
41    },
42    showButtonPanel: true,
43    beforeShow: showAdditionalButtonsearch_start_m,       
44    onChangeMonthYear: showAdditionalButtonsearch_start_m
45    });
46   
47    $("#datepickersearch_start_m").blur( function() {
48        var dateText = $(this).val();
49        setDatesearch_start_m(dateText);
50    });
51   
52    $( "#datepickersearch_start" ).datepicker({
53    beforeShowDay: function(date) {
54        if(date.getDay() == 0) {
55            return [true,"date-sunday"];
56        } else if(date.getDay() == 6){
57            return [true,"date-saturday"];
58        } else {
59            return [true];
60        }
61    },changeMonth: 'true'
62    ,changeYear: 'true'
63    ,onSelect: function(dateText, inst){
64        setDatesearch_start(dateText);
65    },
66    showButtonPanel: true,
67    beforeShow: showAdditionalButtonsearch_start,       
68    onChangeMonthYear: showAdditionalButtonsearch_start
69    });
70   
71    $("#datepickersearch_start").blur( function() {
72        var dateText = $(this).val();
73        setDatesearch_start(dateText);
74    });
75   
76    $( "#datepickersearch_end" ).datepicker({
77    beforeShowDay: function(date) {
78        if(date.getDay() == 0) {
79            return [true,"date-sunday"];
80        } else if(date.getDay() == 6){
81            return [true,"date-saturday"];
82        } else {
83            return [true];
84        }
85    },changeMonth: 'true'
86    ,changeYear: 'true'
87    ,onSelect: function(dateText, inst){
88        setDatesearch_end(dateText);
89    },
90    showButtonPanel: true,
91    beforeShow: showAdditionalButtonsearch_end,       
92    onChangeMonthYear: showAdditionalButtonsearch_end
93    });
94   
95    $("#datepickersearch_end").blur( function() {
96        var dateText = $(this).val();
97        setDatesearch_end(dateText);
98    });
99
100});
101
102var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>');
103
104var showAdditionalButtonsearch_start_m = function (input) {
105    setTimeout(function () {
106        var buttonPane = $(input)
107                 .datepicker("widget")
108                 .find(".ui-datepicker-buttonpane");
109        btn
110                .unbind("click")
111                .bind("click", function () {
112                    $.datepicker._clearDate(input);
113                    $("*[name=search_startyear_m]").val("");
114                    $("*[name=search_startmonth_m]").val("");
115                });
116        btn.appendTo(buttonPane);
117    }, 1);
118};
119
120var showAdditionalButtonsearch_start = function (input) {
121    setTimeout(function () {
122        var buttonPane = $(input)
123                 .datepicker("widget")
124                 .find(".ui-datepicker-buttonpane");
125        btn
126                .unbind("click")
127                .bind("click", function () {
128                    $.datepicker._clearDate(input);
129                    $("*[name=search_startyear]").val("");
130                    $("*[name=search_startmonth]").val("");
131                    $("*[name=search_startday]").val("");
132                });
133        btn.appendTo(buttonPane);
134    }, 1);
135};
136
137var showAdditionalButtonsearch_end = function (input) {
138    setTimeout(function () {
139        var buttonPane = $(input)
140                 .datepicker("widget")
141                 .find(".ui-datepicker-buttonpane");
142        btn
143                .unbind("click")
144                .bind("click", function () {
145                    $.datepicker._clearDate(input);
146                    $("*[name=search_endyear]").val("");
147                    $("*[name=search_endmonth]").val("");
148                    $("*[name=search_endday]").val("");
149                });
150        btn.appendTo(buttonPane);
151    }, 1);
152};
153
154function setDatesearch_start_m(dateText){
155var dates = dateText.split('/');
156$("*[name=search_startyear_m]").val(dates[0]);
157$("*[name=search_startmonth_m]").val(dates[1]);
158}
159
160function setDatesearch_start(dateText){
161var dates = dateText.split('/');
162$("*[name=search_startyear]").val(dates[0]);
163$("*[name=search_startmonth]").val(dates[1]);
164$("*[name=search_startday]").val(dates[2]);
165}
166
167function setDatesearch_end(dateText){
168var dates = dateText.split('/');
169$("*[name=search_endyear]").val(dates[0]);
170$("*[name=search_endmonth]").val(dates[1]);
171$("*[name=search_endday]").val(dates[2]);
172}
173
174</script>
175
176<div id="total" class="contents-main">
177    <!--{* 検索条件設定テーブルここから *}-->
178    <table summary="Search condition settings" class="input-form form">
179        <tr>
180            <th><!--{t string="tpl_687"}--></th>
181            <td>
182                <form name="search_form1" id="search_form1" method="post" action="?">
183                    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
184                    <input type="hidden" name="mode" value="search" />
185                    <input type="hidden" name="search_form" value="1" />
186                    <input type="hidden" name="page" value="<!--{$arrForm.page.value|h}-->" />
187                    <input type="hidden" name="type" value="<!--{$smarty.post.type|h}-->" />
188                    <!--{if $arrErr.search_startyear_m || $arrErr.search_startmonth_m}-->
189                        <span class="attention"><!--{$arrErr.search_startyear_m}--></span>
190                        <span class="attention"><!--{$arrErr.search_startmonth_m}--></span>
191                    <!--{/if}-->
192                    <input id="datepickersearch_start_m" type="text" value="<!--{if $arrForm.search_startyear_m.value != "" && $arrForm.search_startmonth_m.value != ""}--><!--{$arrForm.search_startyear_m.value|h}-->/<!--{$arrForm.search_startmonth_m.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_startyear_m != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
193                    <!--{if $smarty.const.CLOSE_DAY == 31}-->
194                        <!--{t string="tpl_802"}-->
195                    <!--{else}-->
196                        <!--{t string="tpl_803" T_FIELD=$smarty.const.CLOSE_DAY}-->
197                    <!--{/if}-->
198                    <input type="hidden" name="search_startyear_m" value="<!--{$arrForm.search_startyear_m.value}-->" />
199                    <input type="hidden" name="search_startmonth_m" value="<!--{$arrForm.search_startmonth_m.value}-->" />
200                    <a class="btn-normal" href="javascript:;" onclick="fnFormModeSubmit('search_form1', 'search', '', ''); return false;" name="subm"><!--{t string="tpl_688"}--></a>
201                </form>
202            </td>
203        </tr>
204        <tr>
205            <th><!--{t string="tpl_689"}--></th>
206            <td>
207                <form name="search_form2" id="search_form2" method="post" action="?">
208                    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
209                    <input type="hidden" name="mode" value="search" />
210                    <input type="hidden" name="search_form" value="2" />
211                    <input type="hidden" name="page" value="<!--{$arrForm.page.value|h}-->" />
212                    <input type="hidden" name="type" value="<!--{$smarty.post.type|h}-->" />
213                    <!--{if $arrErr.search_startyear || $arrErr.search_endyear}-->
214                        <span class="attention"><!--{$arrErr.search_startyear}--></span>
215                        <span class="attention"><!--{$arrErr.search_endyear}--></span>
216                    <!--{/if}-->
217                    <input id="datepickersearch_start" type="text" value="<!--{if $arrForm.search_startyear.value != "" && $arrForm.search_startmonth.value != "" && $arrForm.search_startday.value != ""}--><!--{$arrForm.search_startyear.value|h}-->/<!--{$arrForm.search_startmonth.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_startday.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_startyear != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
218                    <input type="hidden" name="search_startyear" value="<!--{$arrForm.search_startyear.value}-->" />
219                    <input type="hidden" name="search_startmonth" value="<!--{$arrForm.search_startmonth.value}-->" />
220                    <input type="hidden" name="search_startday" value="<!--{$arrForm.search_startday.value}-->" />
221                    <!--{t string="-"}-->
222                    <input id="datepickersearch_end" type="text" value="<!--{if $arrForm.search_endyear.value != "" && $arrForm.search_endmonth.value != "" && $arrForm.search_endday.value != ""}--><!--{$arrForm.search_endyear.value|h}-->/<!--{$arrForm.search_endmonth.value|h|string_format:'%02d'}-->/<!--{$arrForm.search_endday.value|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_endyear != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
223                    <input type="hidden" name="search_endyear" value="<!--{$arrForm.search_endyear.value}-->" />
224                    <input type="hidden" name="search_endmonth" value="<!--{$arrForm.search_endmonth.value}-->" />
225                    <input type="hidden" name="search_endday" value="<!--{$arrForm.search_endday.value}-->" />
226                    <a class="btn-normal" href="javascript:;" onclick="fnFormModeSubmit('search_form2', 'search', '', ''); return false;" name="subm"><!--{t string="tpl_690"}--></a>
227                </form>
228            </td>
229        </tr>
230    </table>
231    <!--{* 検索条件設定テーブルここまで *}-->
232
233
234    <!--{* 検索結果一覧ここから *}-->
235    <!--{if count($arrResults) > 0}-->
236        <form name="form1" id="form1" method="post" action="?">
237        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
238        <input type="hidden" name="mode" value="search" />
239        <input type="hidden" name="type" value="<!--{$arrForm.type.value|h}-->" />
240        <input type="hidden" name="page" value="<!--{$arrForm.page.value|h}-->" />
241        <!--{foreach key=key item=item from=$arrHidden}-->
242            <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
243        <!--{/foreach}-->
244
245            <!--検索結果表示テーブル-->
246            <h2><!--{include file=$tpl_graphsubtitle}--></h2>
247
248            <div class="btn">
249                <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><span><!--{t string="tpl_254"}--></span></a>
250            </div>
251
252            <!--{* グラフ表示 *}-->
253                <!--{if $install_GD}-->
254                <div id="graph-image">
255                    <!--{* <img src="<!--{$tpl_image}-->?<!--{$cashtime}-->" alt="Graph"> *}-->
256                    <img src="?draw_image=true&amp;type=<!--{$smarty.post.type|h}-->&amp;mode=search&amp;search_form=<!--{$smarty.post.search_form|h}-->&amp;page=<!--{$smarty.post.page|h}-->&amp;search_startyear_m=<!--{$smarty.post.search_startyear_m|h}-->&amp;search_startmonth_m=<!--{$smarty.post.search_startmonth_m|h}-->&amp;search_startyear=<!--{$smarty.post.search_startyear|h}-->&amp;search_startmonth=<!--{$smarty.post.search_startmonth|h}-->&amp;search_startday=<!--{$smarty.post.search_startday|h}-->&amp;search_endyear=<!--{$smarty.post.search_endyear|h}-->&amp;search_endmonth=<!--{$smarty.post.search_endmonth|h}-->&amp;search_endday=<!--{$smarty.post.search_endday|h}-->" alt="Graph" />
257                </div>
258                <!--{/if}-->
259            <!--{* グラフ表示 *}-->
260
261            <!--{* ▼検索結果テーブルここから *}-->
262            <!--{include file=$tpl_page_type}-->
263            <!--{* ▲検索結果テーブルここまで *}-->
264            <!--検索結果表示テーブル-->
265        </form>
266    <!--{else}-->
267        <!--{if $smarty.post.mode == 'search'}-->
268            <form name="form1" id="form1" method="post" action="?">
269            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
270            <input type="hidden" name="mode" value="search" />
271            <input type="hidden" name="type" value="<!--{$arrForm.type.value|h}-->" />
272            <input type="hidden" name="page" value="<!--{$arrForm.page.value|h}-->" />
273            <!--{foreach key=key item=item from=$arrHidden}-->
274                <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
275            <!--{/foreach}-->
276            <!--検索結果表示テーブル-->
277            <h2><!--{include file=$tpl_graphsubtitle}--></h2>
278            <div class="message">
279                <!--{t string="tpl_437"}-->
280            </div>
281            <!--検索結果表示テーブル-->
282            </form>
283        <!--{/if}-->
284    <!--{/if}-->
285    <!--{* 検索結果一覧ここまで *}-->
286</div>
Note: See TracBrowser for help on using the repository browser.