Source for file LC_Page_Admin_Order_Edit.php
Documentation is available at LC_Page_Admin_Order_Edit.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
if (file_exists(MODULE_PATH .
'mdl_gmopg/inc/include.php') ===
TRUE) {
require_once(MODULE_PATH .
'mdl_gmopg/inc/include.php');
if (file_exists(MODULE_PATH .
'mdl_paygent/include.php') ===
TRUE) {
require_once(MODULE_PATH .
'mdl_paygent/include.php');
if (file_exists(MODULE_PATH.
'mdl_fregi/LC_Page_Mdl_Fregi_Config.php') ===
TRUE) {
require_once(MODULE_PATH.
'mdl_fregi/LC_Page_Mdl_Fregi_Config.php');
if (file_exists(MODULE_PATH .
'mdl_sps/request.php') ===
TRUE) {
require_once(MODULE_PATH .
'mdl_sps/request.php');
* @author LOCKON CO.,LTD.
$this->tpl_subnavi =
'order/subnavi.tpl';
$this->tpl_subno =
'index';
$this->tpl_subtitle =
'受注管理';
if (empty($_GET['order_id']) &&
empty($_POST['order_id'])) {
$this->tpl_subno =
'add';
$this->tpl_subtitle =
'新規受注入力';
$this->arrPref =
$masterData->getMasterData("mtb_pref",
array("pref_id", "pref_name", "rank"));
$this->arrORDERSTATUS =
$masterData->getMasterData("mtb_order_status");
$this->arrFormKind =
sfPaygentOrderPage();
if (file_exists(MODULE_PATH.
'mdl_fregi/LC_Page_Mdl_Fregi_Config.php') ===
TRUE) {
$this->arrFregiPayment =
$arrFregiPayment;
global $arrFregiDispKind;
$this->arrFregiDispKind =
$arrFregiDispKind;
$arrInfo =
$objSiteInfo->data;
foreach ($_POST as $key =>
$val) {
if (ereg("^search_", $key)) {
$this->arrSearchHidden[$key] =
$val;
if(isset
($_GET['order_id']) &&
$order_id =
$_GET['order_id'];
$order_id =
$_POST['order_id'];
$this->tpl_order_id =
$order_id;
$this->objFormParam->setParam($_POST);
$this->objFormParam->convParam();
$this->arrErr =
$this->lfCheek($arrInfo);
if(count($this->arrErr) ==
0) {
#if(count($this->arrErr) == 0) {
if ($_POST['mode'] ==
'add') {
$text =
"'新規受注を登録しました。'";
$text =
"'受注履歴を編集しました。'";
$this->objFormParam->setParam($_POST);
$this->objFormParam->convParam();
#if(count($this->arrErr) == 0) {
$this->arrErr =
$this->lfCheek($arrInfo);
$this->paygent_return =
sfPaygentOrder($_POST['paygent_type'], $order_id);
$objFregiConfig =
new LC_Page_Mdl_Fregi_Config();
$this->fregi_err =
$objFregiConfig->getSaleInfo($order_id, $this->arrDisp);
$objFregiConfig =
new LC_Page_Mdl_Fregi_Config();
$this->fregi_card_err =
$objFregiConfig->setCardInfo($_POST['card_status'], $order_id, $this->arrDisp);
$objErr->doFunc(array("年","sps_year"), array('EXIST_CHECK'));
$objErr->doFunc(array("月","sps_month"), array('EXIST_CHECK'));
$objErr->doFunc(array("日","sps_date"), array('EXIST_CHECK'));
$objErr->doFunc(array("売上・返金日", "sps_year", "sps_month", "sps_date"), array("CHECK_DATE"));
$this->arrErr =
$objErr->arrErr;
$sps_return =
sfSpsRequest( $order_id, $_POST['request_type'] );
$this->tpl_onload =
"window.alert('".
$sps_return.
"');";
require_once(MODULE_PATH .
'mdl_gmopg/class/LC_Mdl_GMOPG_OrderEdit.php');
$objGMOOrderEdit =
new LC_MDL_GMOPG_OrderEdit;
$this->gmopg_order_edit_result =
$objGMOOrderEdit->proccess();
$delete_no =
$_POST['delete_no'];
foreach ($_POST AS $key=>
$val) {
foreach ($val AS $k=>
$v) {
// 商品追加ポップアップより商品選択後、商品情報取得
case 'select_product_detail':
$this->objFormParam->setParam($_POST);
if (!empty($_POST['add_product_id'])) {
$this->lfInsertProduct($_POST['add_product_id'], $_POST['add_classcategory_id1'], $_POST['add_classcategory_id2']);
} elseif (!empty($_POST['edit_product_id'])) {
$this->lfUpdateProduct($_POST['edit_product_id'], $_POST['edit_classcategory_id1'], $_POST['edit_classcategory_id2'], $_POST['no']);
foreach ($this->arrForm AS $key=>
$val) {
$arrData[$key] =
$this->arrForm[$key]['value'];
$this->arrPayment =
$objDb->sfGetIDValueList("dtb_payment", "payment_id", "payment_method");
$arrRet =
$objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id'));
$this->arrDelivTime =
SC_Utils_Ex::sfArrKeyValue($arrRet, 'time_id', 'deliv_time');
$this->arrForm =
$this->objFormParam->getFormParamList();
$this->product_count =
count($this->arrForm['quantity']['value']);
if (isset
($_POST['anchor_key']) &&
!empty($_POST['anchor_key'])) {
$anchor_hash =
"location.hash='#" .
$_POST['anchor_key'] .
"'";
$this->arrInfo =
$arrInfo;
if (file_exists(MODULE_PATH .
'mdl_sps/request.php') ===
TRUE) {
$this->paymentType =
$objQuery->getall("SELECT module_code, memo03 FROM dtb_payment WHERE payment_id = ? ", array($this->arrForm["payment_id"]['value']));
$objDate->setStartYear(RELEASE_YEAR);
$this->arrYear =
$objDate->getYear();
$this->arrMonth =
$objDate->getMonth();
$this->arrDay =
$objDate->getDay();
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
$objView->display('order/disp.tpl');
$this->objFormParam->addParam("顧客名1", "order_name01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("顧客名2", "order_name02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("顧客名カナ1", "order_kana01", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("顧客名カナ2", "order_kana02", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("メールアドレス", "order_email", MTEXT_LEN, "KVCa", array("NO_SPTAB", "EMAIL_CHECK", "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("郵便番号1", "order_zip01", ZIP01_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK"));
$this->objFormParam->addParam("郵便番号2", "order_zip02", ZIP02_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK"));
$this->objFormParam->addParam("都道府県", "order_pref", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("住所1", "order_addr01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("住所2", "order_addr02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("電話番号1", "order_tel01", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
$this->objFormParam->addParam("電話番号2", "order_tel02", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
$this->objFormParam->addParam("電話番号3", "order_tel03", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
$this->objFormParam->addParam("お名前1", "deliv_name01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("お名前2", "deliv_name02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("フリガナ1", "deliv_kana01", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("フリガナ2", "deliv_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("郵便番号1", "deliv_zip01", ZIP01_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK"));
$this->objFormParam->addParam("郵便番号2", "deliv_zip02", ZIP02_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK"));
$this->objFormParam->addParam("都道府県", "deliv_pref", INT_LEN, "n", array( "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("住所1", "deliv_addr01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("住所2", "deliv_addr02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("電話番号1", "deliv_tel01", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
$this->objFormParam->addParam("電話番号2", "deliv_tel02", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
$this->objFormParam->addParam("電話番号3", "deliv_tel03", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK"));
$this->objFormParam->addParam("値引き", "discount", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0');
$this->objFormParam->addParam("送料", "deliv_fee", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("手数料", "charge", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("利用ポイント", "use_point", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("お支払い方法", "payment_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("配送時間ID", "deliv_time_id", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("対応状況", "status", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("配達日", "deliv_date", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("お支払方法名称", "payment_method");
$this->objFormParam->addParam("配送時間", "deliv_time");
$this->objFormParam->addParam("単価", "price", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0');
$this->objFormParam->addParam("数量", "quantity", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0');
$this->objFormParam->addParam("商品ID", "product_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0');
$this->objFormParam->addParam("ポイント付与率", "point_rate");
$this->objFormParam->addParam("商品コード", "product_code");
$this->objFormParam->addParam("商品名", "product_name");
$this->objFormParam->addParam("規格1", "classcategory_id1");
$this->objFormParam->addParam("規格2", "classcategory_id2");
$this->objFormParam->addParam("規格名1", "classcategory_name1");
$this->objFormParam->addParam("規格名2", "classcategory_name2");
$this->objFormParam->addParam("メモ", "note", MTEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));
$this->objFormParam->addParam("小計", "subtotal");
$this->objFormParam->addParam("合計", "total");
$this->objFormParam->addParam("支払い合計", "payment_total");
$this->objFormParam->addParam("加算ポイント", "add_point");
$this->objFormParam->addParam("お誕生日ポイント", "birth_point");
$this->objFormParam->addParam("消費税合計", "tax");
$this->objFormParam->addParam("最終保持ポイント", "total_point");
$this->objFormParam->addParam("顧客ID", "customer_id");
$this->objFormParam->addParam("現在のポイント", "point");
$this->objFormParam->addParam("受注番号", "order_id");
$this->objFormParam->addParam("受注日", "create_date");
$arrRet =
$objQuery->select("*", "dtb_order", $where, array($order_id));
$this->objFormParam->setParam($arrRet[0]);
list
($point, $total_point) =
$objDb->sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']);
$this->objFormParam->setValue('total_point', $total_point);
$this->objFormParam->setValue('point', $point);
$this->arrForm =
$arrRet[0];
$this->objFormParam->setParam($arrRet);
if($this->arrForm["memo02"] !=
"") $this->arrForm["payment_info"] =
unserialize($this->arrForm["memo02"]);
if($this->arrForm["memo01"] ==
PAYMENT_CREDIT_ID){
$this->arrForm["payment_type"] =
"クレジット決済";
}elseif($this->arrForm["memo01"] ==
PAYMENT_CONVENIENCE_ID){
$this->arrForm["payment_type"] =
"コンビニ決済";
$this->arrForm["payment_type"] =
"お支払い";
$col =
"product_id, classcategory_id1, classcategory_id2, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate";
$objQuery->setorder("classcategory_id1, classcategory_id2");
$arrRet =
$objQuery->select($col, "dtb_order_detail", $where, array($order_id));
$arrRet =
$this->objFormParam->getHashArray();
$objErr->arrErr =
$this->objFormParam->checkError();
$arrVal =
$this->objFormParam->getHashArray();
$max =
count($arrVal['quantity']);
for($i =
0; $i <
$max; $i++
) {
$subtotal +=
SC_Utils_Ex::sfPreTax($arrVal['price'][$i], $arrInfo['tax'], $arrInfo['tax_rule']) *
$arrVal['quantity'][$i];
$totaltax +=
SC_Utils_Ex::sfTax($arrVal['price'][$i], $arrInfo['tax'], $arrInfo['tax_rule']) *
$arrVal['quantity'][$i];
$totalpoint +=
SC_Utils_Ex::sfPrePoint($arrVal['price'][$i], $arrVal['point_rate'][$i]) *
$arrVal['quantity'][$i];
$arrVal['tax'] =
$totaltax;
$arrVal['subtotal'] =
$subtotal;
$arrVal['total'] =
$subtotal -
$arrVal['discount'] +
$arrVal['deliv_fee'] +
$arrVal['charge'];
$arrVal['payment_total'] =
$arrVal['total'] -
($arrVal['use_point'] *
POINT_VALUE);
$arrVal['add_point'] =
SC_Utils_Ex::sfGetAddPoint($totalpoint, $arrVal['use_point'], $arrInfo);
list
($arrVal['point'], $arrVal['total_point']) =
$objDb->sfGetCustomerPoint($_POST['order_id'], $arrVal['use_point'], $arrVal['add_point']);
if($arrVal['total'] <
0) {
$arrErr['total'] =
'合計額がマイナス表示にならないように調整して下さい。<br />';
if($arrVal['payment_total'] <
0) {
$arrErr['payment_total'] =
'お支払い合計額がマイナス表示にならないように調整して下さい。<br />';
if($arrVal['total_point'] <
0) {
$arrErr['total_point'] =
'最終保持ポイントがマイナス表示にならないように調整して下さい。<br />';
$this->objFormParam->setParam($arrVal);
$this->objFormParam->setParam($arrData);
$this->objFormParam->convParam();
#if(count($this->arrErr) == 0) {
$this->arrErr =
$this->lfCheek($arrInfo);
$arrRet =
$this->objFormParam->getHashArray();
foreach($arrRet as $key =>
$val) {
unset
($sqlval['total_point']);
if ($sqlval['status'] ==
ODERSTATUS_COMMIT) {
$addcol['commit_date'] =
"Now()";
$customer_id =
$sqlval['customer_id'];
$add_point =
$sqlval['add_point'];
if($customer_id !=
"" &&
$customer_id >=
1) {
$arrRet =
$objQuery->select("point", 'dtb_customer', 'customer_id = ?', array($customer_id));
$arrRet[0]['point']+=
$add_point;
$sqlval2['point'] =
$arrRet[0]['point'];
$objQuery->update('dtb_customer', $sqlval2, 'customer_id = ?', array($customer_id));
* XXX 本来なら配列だが, update 関数を string として
if (!isset
($addcol)) $addcol =
"";
$objQuery->update("dtb_order", $sqlval, $where, array($order_id), $addcol);
$sql .=
" payment_method = (SELECT payment_method FROM dtb_payment WHERE payment_id = ?)";
$sql .=
" ,deliv_time = (SELECT deliv_time FROM dtb_delivtime WHERE time_id = ? AND deliv_id = (SELECT deliv_id FROM dtb_payment WHERE payment_id = ? ))";
$sql .=
" WHERE order_id = ?";
if ($arrRet['deliv_time_id'] ==
"") {
$deliv_time_id =
$arrRet['deliv_time_id'];
$arrUpdData =
array($arrRet['payment_id'], $deliv_time_id, $arrRet['payment_id'], $order_id);
$objQuery->query($sql, $arrUpdData);
$arrDetail =
$this->objFormParam->getSwapArray(array("product_id", "product_code", "product_name", "price", "quantity", "point_rate", "classcategory_id1", "classcategory_id2", "classcategory_name1", "classcategory_name2"));
$objQuery->delete("dtb_order_detail", $where, array($order_id));
$max =
count($arrDetail);
for($i =
0; $i <
$max; $i++
) {
$sqlval['order_id'] =
$order_id;
$sqlval['product_id'] =
$arrDetail[$i]['product_id'];
$sqlval['product_code'] =
$arrDetail[$i]['product_code'];
$sqlval['product_name'] =
$arrDetail[$i]['product_name'];
$sqlval['price'] =
$arrDetail[$i]['price'];
$sqlval['quantity'] =
$arrDetail[$i]['quantity'];
$sqlval['point_rate'] =
$arrDetail[$i]['point_rate'];
$sqlval['classcategory_id1'] =
$arrDetail[$i]['classcategory_id1'];
$sqlval['classcategory_id2'] =
$arrDetail[$i]['classcategory_id2'];
$sqlval['classcategory_name1'] =
$arrDetail[$i]['classcategory_name1'];
$sqlval['classcategory_name2'] =
$arrDetail[$i]['classcategory_name2'];
$objQuery->insert("dtb_order_detail", $sqlval);
$arrRet =
$this->objFormParam->getHashArray();
foreach($arrRet as $key =>
$val) {
$sqlval['create_date'] =
"Now()";
// 注文ステータス:指定が無ければ新規受付に設定
if($sqlval["status"] ==
""){
if($sqlval["customer_id"] ==
""){
$sqlval['customer_id'] =
'0';
unset
($sqlval['order_id']);
unset
($sqlval['total_point']);
if ($sqlval['status'] ==
ODERSTATUS_COMMIT) {
$sqlval['commit_date'] =
"Now()";
$customer_id =
$sqlval['customer_id'];
$add_point =
$sqlval['add_point'];
if($customer_id !=
"" &&
$customer_id >=
1) {
$arrRet =
$objQuery->select("point", 'dtb_customer', 'customer_id = ?', array($customer_id));
$arrRet[0]['point']+=
$add_point;
$sqlval2['point'] =
$arrRet[0]['point'];
$objQuery->update('dtb_customer', $sqlval2, 'customer_id = ?', array($customer_id));
$objQuery->insert("dtb_order", $sqlval);
$order_id =
$objQuery->currval('dtb_order', 'order_id');
$sql .=
" payment_method = (SELECT payment_method FROM dtb_payment WHERE payment_id = ?)";
$sql .=
" ,deliv_time = (SELECT deliv_time FROM dtb_delivtime WHERE time_id = ? AND deliv_id = (SELECT deliv_id FROM dtb_payment WHERE payment_id = ? ))";
$sql .=
" WHERE order_id = ?";
if ($arrRet['deliv_time_id'] ==
"") {
$deliv_time_id =
$arrRet['deliv_time_id'];
$arrUpdData =
array($arrRet['payment_id'], $deliv_time_id, $arrRet['payment_id'], $order_id);
$objQuery->query($sql, $arrUpdData);
$arrDetail =
$this->objFormParam->getSwapArray(array("product_id", "product_code", "product_name", "price", "quantity", "point_rate", "classcategory_id1", "classcategory_id2", "classcategory_name1", "classcategory_name2"));
$objQuery->delete("dtb_order_detail", $where, array($order_id));
$max =
count($arrDetail);
for($i =
0; $i <
$max; $i++
) {
$sqlval['order_id'] =
$order_id;
$sqlval['product_id'] =
$arrDetail[$i]['product_id'];
$sqlval['product_code'] =
$arrDetail[$i]['product_code'];
$sqlval['product_name'] =
$arrDetail[$i]['product_name'];
$sqlval['price'] =
$arrDetail[$i]['price'];
$sqlval['quantity'] =
$arrDetail[$i]['quantity'];
$sqlval['point_rate'] =
$arrDetail[$i]['point_rate'];
$sqlval['classcategory_id1'] =
$arrDetail[$i]['classcategory_id1'];
$sqlval['classcategory_id2'] =
$arrDetail[$i]['classcategory_id2'];
$sqlval['classcategory_name1'] =
$arrDetail[$i]['classcategory_name1'];
$sqlval['classcategory_name2'] =
$arrDetail[$i]['classcategory_name2'];
$objQuery->insert("dtb_order_detail", $sqlval);
function lfInsertProduct($product_id, $classcategory_id1, $classcategory_id2) {
$arrProduct =
$this->lfGetProductsClass($product_id, $classcategory_id1, $classcategory_id2);
$this->arrForm =
$this->objFormParam->getFormParamList();
function lfUpdateProduct($product_id, $classcategory_id1, $classcategory_id2, $no) {
$arrProduct =
$this->lfGetProductsClass($product_id, $classcategory_id1, $classcategory_id2);
$this->arrForm =
$this->objFormParam->getFormParamList();
foreach ($arrProduct AS $key=>
$val) {
if (!is_array($this->arrForm[$key]['value'])) {
unset
($this->arrForm[$key]['value']);
$this->arrForm[$key]['value'][] =
$arrProduct[$key];
$this->arrForm[$key]['value'][$no] =
$arrProduct[$key];
$arrClassCatName =
$objDb->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
$arrRet =
$objDb->sfGetProductsClass(array($product_id, $classcategory_id1, $classcategory_id2));
$arrProduct['price'] =
$arrRet['price02'];
$arrProduct['quantity'] =
1;
$arrProduct['product_id'] =
$arrRet['product_id'];
$arrProduct['point_rate'] =
$arrRet['point_rate'];
$arrProduct['product_code'] =
$arrRet['product_code'];
$arrProduct['product_name'] =
$arrRet['name'];
$arrProduct['classcategory_id1'] =
$arrRet['classcategory_id1'];
$arrProduct['classcategory_id2'] =
$arrRet['classcategory_id2'];
$arrProduct['classcategory_name1'] =
$arrClassCatName[$arrRet['classcategory_id1']];
$arrProduct['classcategory_name2'] =
$arrClassCatName[$arrRet['classcategory_id2']];
Documentation generated on Tue, 28 Apr 2009 18:11:24 +0900 by phpDocumentor 1.4.2