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