1 | <?php |
---|
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 | // {{{ requires |
---|
25 | require_once(CLASS_REALDIR . "pages/admin/LC_Page_Admin.php"); |
---|
26 | |
---|
27 | /* ペイジェント決済モジュール連携用 */ |
---|
28 | if (file_exists(MODULE_REALDIR . 'mdl_paygent/include.php') === TRUE) { |
---|
29 | require_once(MODULE_REALDIR . 'mdl_paygent/include.php'); |
---|
30 | } |
---|
31 | |
---|
32 | /** |
---|
33 | * 受注管理 のページクラス |
---|
34 | * |
---|
35 | * @package Page |
---|
36 | * @author LOCKON CO.,LTD. |
---|
37 | * @version $Id$ |
---|
38 | */ |
---|
39 | class LC_Page_Admin_Order extends LC_Page_Admin { |
---|
40 | |
---|
41 | // }}} |
---|
42 | // {{{ functions |
---|
43 | |
---|
44 | /** |
---|
45 | * Page を初期化する. |
---|
46 | * |
---|
47 | * @return void |
---|
48 | */ |
---|
49 | function init() { |
---|
50 | parent::init(); |
---|
51 | $this->tpl_mainpage = 'order/index.tpl'; |
---|
52 | $this->tpl_subnavi = 'order/subnavi.tpl'; |
---|
53 | $this->tpl_mainno = 'order'; |
---|
54 | $this->tpl_subno = 'index'; |
---|
55 | $this->tpl_pager = TEMPLATE_REALDIR . 'admin/pager.tpl'; |
---|
56 | $this->tpl_subtitle = '受注管理'; |
---|
57 | |
---|
58 | $masterData = new SC_DB_MasterData_Ex(); |
---|
59 | $this->arrORDERSTATUS = $masterData->getMasterData("mtb_order_status"); |
---|
60 | $this->arrORDERSTATUS_COLOR = $masterData->getMasterData("mtb_order_status_color"); |
---|
61 | $this->arrSex = $masterData->getMasterData("mtb_sex"); |
---|
62 | $this->arrPageMax = $masterData->getMasterData("mtb_page_max"); |
---|
63 | |
---|
64 | /* ペイジェント決済モジュール連携用 */ |
---|
65 | if(function_exists("sfPaygentOrderPage")) { |
---|
66 | $this->arrDispKind = sfPaygentOrderPage(); |
---|
67 | } |
---|
68 | $this->httpCacheControl('nocache'); |
---|
69 | } |
---|
70 | |
---|
71 | /** |
---|
72 | * Page のプロセス. |
---|
73 | * |
---|
74 | * @return void |
---|
75 | */ |
---|
76 | function process() { |
---|
77 | $this->action(); |
---|
78 | $this->sendResponse(); |
---|
79 | } |
---|
80 | |
---|
81 | /** |
---|
82 | * Page のアクション. |
---|
83 | * |
---|
84 | * @return void |
---|
85 | */ |
---|
86 | function action() { |
---|
87 | $objDb = new SC_Helper_DB_Ex(); |
---|
88 | $objSess = new SC_Session(); |
---|
89 | // パラメータ管理クラス |
---|
90 | $this->objFormParam = new SC_FormParam(); |
---|
91 | // パラメータ情報の初期化 |
---|
92 | $this->lfInitParam(); |
---|
93 | $this->objFormParam->setParam($_POST); |
---|
94 | |
---|
95 | $this->objFormParam->splitParamCheckBoxes('search_order_sex'); |
---|
96 | $this->objFormParam->splitParamCheckBoxes('search_payment_id'); |
---|
97 | |
---|
98 | // 検索ワードの引き継ぎ |
---|
99 | foreach ($_POST as $key => $val) { |
---|
100 | if (ereg("^search_", $key)) { |
---|
101 | switch($key) { |
---|
102 | case 'search_order_sex': |
---|
103 | case 'search_payment_id': |
---|
104 | $this->arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); |
---|
105 | break; |
---|
106 | default: |
---|
107 | $this->arrHidden[$key] = $val; |
---|
108 | break; |
---|
109 | } |
---|
110 | } |
---|
111 | } |
---|
112 | |
---|
113 | // ページ送り用 |
---|
114 | $this->arrHidden['search_pageno'] = |
---|
115 | isset($_POST['search_pageno']) ? $_POST['search_pageno'] : ""; |
---|
116 | |
---|
117 | // 認証可否の判定 |
---|
118 | SC_Utils_Ex::sfIsSuccess($objSess); |
---|
119 | |
---|
120 | if (!isset($arrRet)) $arrRet = array(); |
---|
121 | |
---|
122 | switch($this->getMode()) { |
---|
123 | case 'delete': |
---|
124 | if(SC_Utils_Ex::sfIsInt($_POST['order_id'])) { |
---|
125 | $objQuery = new SC_Query(); |
---|
126 | $where = "order_id = ?"; |
---|
127 | $sqlval['del_flg'] = '1'; |
---|
128 | $objQuery->update("dtb_order", $sqlval, $where, array($_POST['order_id'])); |
---|
129 | } |
---|
130 | case 'csv': |
---|
131 | case 'delete_all': |
---|
132 | case 'search': |
---|
133 | // 入力値の変換 |
---|
134 | $this->objFormParam->convParam(); |
---|
135 | $this->arrErr = $this->lfCheckError($arrRet); |
---|
136 | $arrRet = $this->objFormParam->getHashArray(); |
---|
137 | // 入力なし |
---|
138 | if (count($this->arrErr) == 0) { |
---|
139 | $where = "del_flg = 0"; |
---|
140 | foreach ($arrRet as $key => $val) { |
---|
141 | if($val == "") { |
---|
142 | continue; |
---|
143 | } |
---|
144 | |
---|
145 | $dbFactory = SC_DB_DBFactory::getInstance(); |
---|
146 | switch ($key) { |
---|
147 | |
---|
148 | case 'search_product_name': |
---|
149 | $where .= " AND (SELECT COUNT(*) FROM dtb_order_detail od WHERE od.order_id = dtb_order.order_id AND od.product_name ILIKE ?) > 0"; |
---|
150 | $nonsp_val = mb_ereg_replace("[ ]+","",$val); |
---|
151 | $arrval[] = "%$nonsp_val%"; |
---|
152 | break; |
---|
153 | case 'search_order_name': |
---|
154 | $where .= " AND " . $dbFactory->concatColumn(array("order_name01", "order_name02")) . " ILIKE ?"; |
---|
155 | $nonsp_val = mb_ereg_replace("[ ]+","",$val); |
---|
156 | $arrval[] = "%$nonsp_val%"; |
---|
157 | break; |
---|
158 | case 'search_order_kana': |
---|
159 | $where .= " AND " . $dbFactory->concatColumn(array("order_kana01", "order_kana02")) . " ILIKE ?"; |
---|
160 | $nonsp_val = mb_ereg_replace("[ ]+","",$val); |
---|
161 | $arrval[] = "%$nonsp_val%"; |
---|
162 | break; |
---|
163 | case 'search_order_id1': |
---|
164 | $where .= " AND order_id >= ?"; |
---|
165 | $arrval[] = $val; |
---|
166 | break; |
---|
167 | case 'search_order_id2': |
---|
168 | $where .= " AND order_id <= ?"; |
---|
169 | $arrval[] = $val; |
---|
170 | break; |
---|
171 | case 'search_order_sex': |
---|
172 | $tmp_where = ""; |
---|
173 | foreach($val as $element) { |
---|
174 | if($element != "") { |
---|
175 | if($tmp_where == "") { |
---|
176 | $tmp_where .= " AND (order_sex = ?"; |
---|
177 | } else { |
---|
178 | $tmp_where .= " OR order_sex = ?"; |
---|
179 | } |
---|
180 | $arrval[] = $element; |
---|
181 | } |
---|
182 | } |
---|
183 | |
---|
184 | if($tmp_where != "") { |
---|
185 | $tmp_where .= ")"; |
---|
186 | $where .= " $tmp_where "; |
---|
187 | } |
---|
188 | break; |
---|
189 | case 'search_order_tel': |
---|
190 | $where .= " AND (" . $dbFactory->concatColumn(array("order_tel01", "order_tel02", "order_tel03")) . " ILIKE ?)"; |
---|
191 | $nonmark_val = ereg_replace("[()-]+","",$val); |
---|
192 | $arrval[] = "%$nonmark_val%"; |
---|
193 | break; |
---|
194 | case 'search_order_email': |
---|
195 | $where .= " AND order_email ILIKE ?"; |
---|
196 | $arrval[] = "%$val%"; |
---|
197 | break; |
---|
198 | case 'search_payment_id': |
---|
199 | $tmp_where = ""; |
---|
200 | foreach($val as $element) { |
---|
201 | if($element != "") { |
---|
202 | if($tmp_where == "") { |
---|
203 | $tmp_where .= " AND (payment_id = ?"; |
---|
204 | } else { |
---|
205 | $tmp_where .= " OR payment_id = ?"; |
---|
206 | } |
---|
207 | $arrval[] = $element; |
---|
208 | } |
---|
209 | } |
---|
210 | |
---|
211 | if($tmp_where != "") { |
---|
212 | $tmp_where .= ")"; |
---|
213 | $where .= " $tmp_where "; |
---|
214 | } |
---|
215 | break; |
---|
216 | case 'search_total1': |
---|
217 | $where .= " AND total >= ?"; |
---|
218 | $arrval[] = $val; |
---|
219 | break; |
---|
220 | case 'search_total2': |
---|
221 | $where .= " AND total <= ?"; |
---|
222 | $arrval[] = $val; |
---|
223 | break; |
---|
224 | case 'search_sorderyear': |
---|
225 | $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_sorderyear'], $_POST['search_sordermonth'], $_POST['search_sorderday']); |
---|
226 | $where.= " AND create_date >= ?"; |
---|
227 | $arrval[] = $date; |
---|
228 | break; |
---|
229 | case 'search_eorderyear': |
---|
230 | $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_eorderyear'], $_POST['search_eordermonth'], $_POST['search_eorderday'], true); |
---|
231 | $where.= " AND create_date <= ?"; |
---|
232 | $arrval[] = $date; |
---|
233 | break; |
---|
234 | case 'search_supdateyear': |
---|
235 | $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_supdateyear'], $_POST['search_supdatemonth'], $_POST['search_supdateday']); |
---|
236 | $where.= " AND update_date >= ?"; |
---|
237 | $arrval[] = $date; |
---|
238 | break; |
---|
239 | case 'search_eupdateyear': |
---|
240 | $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_eupdateyear'], $_POST['search_eupdatemonth'], $_POST['search_eupdateday'], true); |
---|
241 | $where.= " AND update_date <= ?"; |
---|
242 | $arrval[] = $date; |
---|
243 | break; |
---|
244 | case 'search_sbirthyear': |
---|
245 | $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_sbirthyear'], $_POST['search_sbirthmonth'], $_POST['search_sbirthday']); |
---|
246 | $where.= " AND order_birth >= ?"; |
---|
247 | $arrval[] = $date; |
---|
248 | break; |
---|
249 | case 'search_ebirthyear': |
---|
250 | $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_ebirthyear'], $_POST['search_ebirthmonth'], $_POST['search_ebirthday'], true); |
---|
251 | $where.= " AND order_birth <= ?"; |
---|
252 | $arrval[] = $date; |
---|
253 | break; |
---|
254 | case 'search_order_status': |
---|
255 | $where.= " AND status = ?"; |
---|
256 | $arrval[] = $val; |
---|
257 | break; |
---|
258 | default: |
---|
259 | if (!isset($arrval)) $arrval = array(); |
---|
260 | break; |
---|
261 | } |
---|
262 | } |
---|
263 | |
---|
264 | $order = "update_date DESC"; |
---|
265 | //TODO 要リファクタリング(MODE 入れ子switch) |
---|
266 | switch($this->getMode()) { |
---|
267 | case 'csv': |
---|
268 | |
---|
269 | require_once(CLASS_EX_REALDIR . "helper_extends/SC_Helper_CSV_Ex.php"); |
---|
270 | $objCSV = new SC_Helper_CSV_Ex(); |
---|
271 | // オプションの指定 |
---|
272 | $option = "ORDER BY $order"; |
---|
273 | |
---|
274 | // CSV出力タイトル行の作成 |
---|
275 | $arrCsvOutput = SC_Utils_Ex::sfSwapArray($objCSV->sfGetCsvOutput(3, 'status = 1')); |
---|
276 | |
---|
277 | if (count($arrCsvOutput) <= 0) break; |
---|
278 | |
---|
279 | $arrCsvOutputCols = $arrCsvOutput['col']; |
---|
280 | $arrCsvOutputConvs = $arrCsvOutput['conv']; |
---|
281 | $arrCsvOutputTitle = $arrCsvOutput['disp_name']; |
---|
282 | $head = SC_Utils_Ex::sfGetCSVList($arrCsvOutputTitle); |
---|
283 | $data = $objCSV->lfGetCSV("dtb_order", $where, $option, $arrval, $arrCsvOutputCols, $arrCsvOutputConvs); |
---|
284 | |
---|
285 | // CSVを送信する。 |
---|
286 | list($fime_name, $data) = SC_Utils_Ex::sfGetCSVData($head.$data); |
---|
287 | $this->sendResponseCSV($fime_name, $data); |
---|
288 | exit; |
---|
289 | break; |
---|
290 | case 'delete_all': |
---|
291 | // 検索結果をすべて削除 |
---|
292 | $sqlval['del_flg'] = 1; |
---|
293 | $objQuery = new SC_Query(); |
---|
294 | $objQuery->update("dtb_order", $sqlval, $where, $arrval); |
---|
295 | break; |
---|
296 | default: |
---|
297 | // 読み込む列とテーブルの指定 |
---|
298 | $col = "*"; |
---|
299 | $from = "dtb_order"; |
---|
300 | |
---|
301 | $objQuery = new SC_Query(); |
---|
302 | // 行数の取得 |
---|
303 | $linemax = $objQuery->count($from, $where, $arrval); |
---|
304 | $this->tpl_linemax = $linemax; // 何件が該当しました。表示用 |
---|
305 | // ページ送りの処理 |
---|
306 | if(is_numeric($_POST['search_page_max'])) { |
---|
307 | $page_max = $_POST['search_page_max']; |
---|
308 | } else { |
---|
309 | $page_max = SEARCH_PMAX; |
---|
310 | } |
---|
311 | |
---|
312 | // ページ送りの取得 |
---|
313 | $objNavi = new SC_PageNavi($this->arrHidden['search_pageno'], |
---|
314 | $linemax, $page_max, |
---|
315 | "fnNaviSearchPage", NAVI_PMAX); |
---|
316 | $startno = $objNavi->start_row; |
---|
317 | $this->arrPagenavi = $objNavi->arrPagenavi; |
---|
318 | |
---|
319 | // 取得範囲の指定(開始行番号、行数のセット) |
---|
320 | $objQuery->setLimitOffset($page_max, $startno); |
---|
321 | // 表示順序 |
---|
322 | $objQuery->setOrder($order); |
---|
323 | // 検索結果の取得 |
---|
324 | $this->arrResults = $objQuery->select($col, $from, $where, $arrval); |
---|
325 | } |
---|
326 | } |
---|
327 | break; |
---|
328 | |
---|
329 | default: |
---|
330 | break; |
---|
331 | } |
---|
332 | |
---|
333 | $objDate = new SC_Date(); |
---|
334 | // 登録・更新日検索用 |
---|
335 | $objDate->setStartYear(RELEASE_YEAR); |
---|
336 | $objDate->setEndYear(DATE("Y")); |
---|
337 | $this->arrRegistYear = $objDate->getYear(); |
---|
338 | // 生年月日検索用 |
---|
339 | $objDate->setStartYear(BIRTH_YEAR); |
---|
340 | $objDate->setEndYear(DATE("Y")); |
---|
341 | $this->arrBirthYear = $objDate->getYear(); |
---|
342 | // 月日の設定 |
---|
343 | $this->arrMonth = $objDate->getMonth(); |
---|
344 | $this->arrDay = $objDate->getDay(); |
---|
345 | |
---|
346 | // 入力値の取得 |
---|
347 | $this->arrForm = $this->objFormParam->getFormParamList(); |
---|
348 | // 支払い方法の取得 |
---|
349 | $arrRet = $objDb->sfGetPayment(); |
---|
350 | $this->arrPayment = SC_Utils_Ex::sfArrKeyValue($arrRet, 'payment_id', 'payment_method'); |
---|
351 | } |
---|
352 | |
---|
353 | /** |
---|
354 | * デストラクタ. |
---|
355 | * |
---|
356 | * @return void |
---|
357 | */ |
---|
358 | function destroy() { |
---|
359 | parent::destroy(); |
---|
360 | } |
---|
361 | |
---|
362 | /* パラメータ情報の初期化 */ |
---|
363 | function lfInitParam() { |
---|
364 | $this->objFormParam->addParam("注文番号1", "search_order_id1", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
365 | $this->objFormParam->addParam("注文番号2", "search_order_id2", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
366 | $this->objFormParam->addParam("対応状況", "search_order_status", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
367 | $this->objFormParam->addParam("顧客名", "search_order_name", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK")); |
---|
368 | $this->objFormParam->addParam("顧客名(カナ)", "search_order_kana", STEXT_LEN, "KVCa", array("KANA_CHECK","MAX_LENGTH_CHECK")); |
---|
369 | $this->objFormParam->addParam("性別", "search_order_sex", INT_LEN, "n", array("MAX_LENGTH_CHECK")); |
---|
370 | $this->objFormParam->addParam("年齢1", "search_age1", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
371 | $this->objFormParam->addParam("年齢2", "search_age2", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
372 | $this->objFormParam->addParam("メールアドレス", "search_order_email", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK")); |
---|
373 | $this->objFormParam->addParam("TEL", "search_order_tel", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK")); |
---|
374 | $this->objFormParam->addParam("支払い方法", "search_payment_id", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
375 | $this->objFormParam->addParam("購入金額1", "search_total1", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
376 | $this->objFormParam->addParam("購入金額2", "search_total2", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
377 | $this->objFormParam->addParam("表示件数", "search_page_max", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
378 | // 受注日 |
---|
379 | $this->objFormParam->addParam("開始年", "search_sorderyear", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
380 | $this->objFormParam->addParam("開始月", "search_sordermonth", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
381 | $this->objFormParam->addParam("開始日", "search_sorderday", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
382 | $this->objFormParam->addParam("終了年", "search_eorderyear", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
383 | $this->objFormParam->addParam("終了月", "search_eordermonth", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
384 | $this->objFormParam->addParam("終了日", "search_eorderday", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
385 | // 更新日 |
---|
386 | $this->objFormParam->addParam("開始年", "search_supdateyear", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
387 | $this->objFormParam->addParam("開始月", "search_supdatemonth", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
388 | $this->objFormParam->addParam("開始日", "search_supdateday", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
389 | $this->objFormParam->addParam("終了年", "search_eupdateyear", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
390 | $this->objFormParam->addParam("終了月", "search_eupdatemonth", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
391 | $this->objFormParam->addParam("終了日", "search_eupdateday", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
392 | // 生年月日 |
---|
393 | $this->objFormParam->addParam("開始年", "search_sbirthyear", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
394 | $this->objFormParam->addParam("開始月", "search_sbirthmonth", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
395 | $this->objFormParam->addParam("開始日", "search_sbirthday", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
396 | $this->objFormParam->addParam("終了年", "search_ebirthyear", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
397 | $this->objFormParam->addParam("終了月", "search_ebirthmonth", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
398 | $this->objFormParam->addParam("終了日", "search_ebirthday", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); |
---|
399 | $this->objFormParam->addParam("購入商品","search_product_name",STEXT_LEN,"KVa",array("MAX_LENGTH_CHECK")); |
---|
400 | |
---|
401 | } |
---|
402 | |
---|
403 | /* 入力内容のチェック */ |
---|
404 | function lfCheckError() { |
---|
405 | // 入力データを渡す。 |
---|
406 | $arrRet = $this->objFormParam->getHashArray(); |
---|
407 | $objErr = new SC_CheckError($arrRet); |
---|
408 | $objErr->arrErr = $this->objFormParam->checkError(); |
---|
409 | |
---|
410 | // 特殊項目チェック |
---|
411 | $objErr->doFunc(array("注文番号1", "注文番号2", "search_order_id1", "search_order_id2"), array("GREATER_CHECK")); |
---|
412 | $objErr->doFunc(array("年齢1", "年齢2", "search_age1", "search_age2"), array("GREATER_CHECK")); |
---|
413 | $objErr->doFunc(array("購入金額1", "購入金額2", "search_total1", "search_total2"), array("GREATER_CHECK")); |
---|
414 | // 受注日 |
---|
415 | $objErr->doFunc(array("開始", "search_sorderyear", "search_sordermonth", "search_sorderday"), array("CHECK_DATE")); |
---|
416 | $objErr->doFunc(array("終了", "search_eorderyear", "search_eordermonth", "search_eorderday"), array("CHECK_DATE")); |
---|
417 | $objErr->doFunc(array("開始", "終了", "search_sorderyear", "search_sordermonth", "search_sorderday", "search_eorderyear", "search_eordermonth", "search_eorderday"), array("CHECK_SET_TERM")); |
---|
418 | // 更新日 |
---|
419 | $objErr->doFunc(array("開始", "search_supdateyear", "search_supdatemonth", "search_supdateday"), array("CHECK_DATE")); |
---|
420 | $objErr->doFunc(array("終了", "search_eupdateyear", "search_eupdatemonth", "search_eupdateday"), array("CHECK_DATE")); |
---|
421 | $objErr->doFunc(array("開始", "終了", "search_supdateyear", "search_supdatemonth", "search_supdateday", "search_eupdateyear", "search_eupdatemonth", "search_eupdateday"), array("CHECK_SET_TERM")); |
---|
422 | // 生年月日 |
---|
423 | $objErr->doFunc(array("開始", "search_sbirthyear", "search_sbirthmonth", "search_sbirthday"), array("CHECK_DATE")); |
---|
424 | $objErr->doFunc(array("終了", "search_ebirthyear", "search_ebirthmonth", "search_ebirthday"), array("CHECK_DATE")); |
---|
425 | $objErr->doFunc(array("開始", "終了", "search_sbirthyear", "search_sbirthmonth", "search_sbirthday", "search_ebirthyear", "search_ebirthmonth", "search_ebirthday"), array("CHECK_SET_TERM")); |
---|
426 | |
---|
427 | return $objErr->arrErr; |
---|
428 | } |
---|
429 | |
---|
430 | |
---|
431 | } |
---|
432 | ?> |
---|