Source for file LC_Page_Admin_Order.php

Documentation is available at LC_Page_Admin_Order.php

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

Documentation generated on Tue, 28 Apr 2009 18:11:21 +0900 by phpDocumentor 1.4.2