Changeset 21481 for branches/version-2_12-dev/data/class/pages/mypage
- Timestamp:
- 2012/02/11 05:48:00 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class/pages/mypage
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_AbstractMypage.php
r21441 r21481 67 67 $this->tpl_login_email = $objCookie->getCookie('login_email'); 68 68 if ($this->tpl_login_email != "") { 69 $this->tpl_login_memory = "1";69 $this->tpl_login_memory = '1'; 70 70 } 71 71 -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage.php
r21441 r21481 89 89 90 90 switch ($this->getMode()) { 91 case "getList":91 case 'getList': 92 92 echo SC_Utils_Ex::jsonEncode($this->arrOrder); 93 93 exit; … … 97 97 } 98 98 // 支払い方法の取得 99 $this->arrPayment = SC_Helper_DB_Ex::sfGetIDValueList( "dtb_payment", "payment_id", "payment_method");99 $this->arrPayment = SC_Helper_DB_Ex::sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 100 100 // 1ページあたりの件数 101 101 $this->dispNumber = SEARCH_PMAX; … … 124 124 125 125 $col = "order_id, create_date, payment_id, payment_total"; 126 $from = "dtb_order";126 $from = 'dtb_order'; 127 127 $where = "del_flg = 0 AND customer_id = ?"; 128 128 $arrval = array($customer_id); -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php
r21359 r21481 48 48 49 49 $masterData = new SC_DB_MasterData_Ex(); 50 $this->arrReminder = $masterData->getMasterData( "mtb_reminder");50 $this->arrReminder = $masterData->getMasterData('mtb_reminder'); 51 51 $this->arrPref = $masterData->getMasterData('mtb_pref'); 52 $this->arrJob = $masterData->getMasterData( "mtb_job");53 $this->arrMAILMAGATYPE = $masterData->getMasterData( "mtb_mail_magazine_type");54 $this->arrSex = $masterData->getMasterData( "mtb_sex");52 $this->arrJob = $masterData->getMasterData('mtb_job'); 53 $this->arrMAILMAGATYPE = $masterData->getMasterData('mtb_mail_magazine_type'); 54 $this->arrSex = $masterData->getMasterData('mtb_sex'); 55 55 $this->httpCacheControl('nocache'); 56 56 -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php
r21480 r21481 130 130 function lfInitParam(&$objFormParam) { 131 131 $objFormParam->addParam('お届け先ID', 'other_deliv_id', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 132 $objFormParam->addParam("現在ページ", "pageno", INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), "", false);132 $objFormParam->addParam("現在ページ", 'pageno', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), "", false); 133 133 } 134 134 … … 159 159 $where = 'customer_id = ? AND other_deliv_id = ?'; 160 160 $objQuery =& SC_Query_Ex::getSingletonInstance(); 161 $objQuery->delete( "dtb_other_deliv", $where, array($customer_id, $deliv_id));161 $objQuery->delete('dtb_other_deliv', $where, array($customer_id, $deliv_id)); 162 162 } 163 163 -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
r21479 r21481 115 115 116 116 if ($objCustomer->isLoginSuccess(true)) { 117 $this->lfRegistData($objFormParam, $objCustomer->getValue( "customer_id"));117 $this->lfRegistData($objFormParam, $objCustomer->getValue('customer_id')); 118 118 } else { 119 119 $this->lfRegistDataNonMember($objFormParam); … … 133 133 134 134 if ($_GET['other_deliv_id'] != "") { 135 $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue( "customer_id"), $_SESSION['other_deliv_id']);135 $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue('customer_id'), $_SESSION['other_deliv_id']); 136 136 137 137 //不正アクセス判定 … … 172 172 function lfGetOtherDeliv($customer_id, $other_deliv_id) { 173 173 $objQuery =& SC_Query_Ex::getSingletonInstance(); 174 return $objQuery->select("*", "dtb_other_deliv", "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id));174 return $objQuery->select("*", 'dtb_other_deliv', "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id)); 175 175 } 176 176 … … 187 187 if (strlen($arrRet['other_deliv_id'] == 0)) { 188 188 // 別のお届け先登録数の取得 189 $deliv_count = $objQuery->count( "dtb_other_deliv", "customer_id = ?", array($customer_id));189 $deliv_count = $objQuery->count('dtb_other_deliv', "customer_id = ?", array($customer_id)); 190 190 // 別のお届け先最大登録数に達している場合、エラー 191 191 if ($deliv_count >= DELIV_ADDR_MAX) { … … 195 195 // 実行 196 196 $sqlval['other_deliv_id'] = $objQuery->nextVal('dtb_other_deliv_other_deliv_id'); 197 $objQuery->insert( "dtb_other_deliv", $sqlval);197 $objQuery->insert('dtb_other_deliv', $sqlval); 198 198 199 199 // 変更 200 200 } else { 201 $deliv_count = $objQuery->count( "dtb_other_deliv","customer_id = ? AND other_deliv_id = ?" ,array($customer_id, $arrRet['other_deliv_id']));201 $deliv_count = $objQuery->count('dtb_other_deliv',"customer_id = ? AND other_deliv_id = ?" ,array($customer_id, $arrRet['other_deliv_id'])); 202 202 if ($deliv_count != 1) { 203 203 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '一致する別のお届け先がありません。'); … … 205 205 206 206 // 実行 207 $objQuery->update( "dtb_other_deliv", $sqlval, "other_deliv_id = ?", array($arrRet['other_deliv_id']));207 $objQuery->update('dtb_other_deliv', $sqlval, "other_deliv_id = ?", array($arrRet['other_deliv_id'])); 208 208 } 209 209 } -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DownLoad.php
r21480 r21481 116 116 117 117 //ファイル情報が無い場合はNG 118 if ($arrForm[ "down_realfilename"] == "") {118 if ($arrForm['down_realfilename'] == "") { 119 119 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 120 120 } 121 121 //ファイルそのものが無い場合もとりあえずNG 122 $realpath = DOWN_SAVE_REALDIR . $arrForm[ "down_realfilename"];122 $realpath = DOWN_SAVE_REALDIR . $arrForm['down_realfilename']; 123 123 if (!file_exists($realpath)) { 124 124 SC_Utils_Ex::sfDispSiteError(DOWNFILE_NOT_FOUND,"",true); 125 125 } 126 126 //ファイル名をエンコードする Safariの対策はUTF-8で様子を見る 127 $encoding = "Shift_JIS";127 $encoding = 'Shift_JIS'; 128 128 if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'Safari')) { 129 129 $encoding = "UTF-8"; 130 130 } 131 $sdown_filename = mb_convert_encoding($arrForm[ "down_filename"], $encoding, 'auto');131 $sdown_filename = mb_convert_encoding($arrForm['down_filename'], $encoding, 'auto'); 132 132 133 133 // flushなどを利用しているので、現行のSC_Displayは利用できません。 … … 189 189 /* パラメーター情報の初期化 */ 190 190 function lfInitParam(&$objFormParam) { 191 $objFormParam->addParam( "customer_id", "customer_id", INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK'));192 $objFormParam->addParam( "order_id", "order_id", INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK'));193 $objFormParam->addParam( "product_id", "product_id", INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK'));194 $objFormParam->addParam( "product_class_id", "product_class_id", INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK'));191 $objFormParam->addParam('customer_id', 'customer_id', INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 192 $objFormParam->addParam('order_id', 'order_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK')); 193 $objFormParam->addParam('product_id', 'product_id', INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 194 $objFormParam->addParam('product_class_id', 'product_class_id', INT_LEN, 'n', array('EXIST_CHECK','NUM_CHECK')); 195 195 } 196 196 … … 231 231 $file_size = filesize($realpath); 232 232 //読み込み 233 $fp = fopen($realpath, "rb");233 $fp = fopen($realpath, 'rb'); 234 234 if (isset($_SERVER['HTTP_RANGE'])) { 235 235 // 二回目以降のリクエスト -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php
r21479 r21481 179 179 $objQuery =& SC_Query_Ex::getSingletonInstance(); 180 180 181 $exists = $objQuery->exists( "dtb_customer_favorite_products", "customer_id = ? AND product_id = ?", array($customer_id, $product_id));181 $exists = $objQuery->exists('dtb_customer_favorite_products', "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 182 182 183 183 if ($exists) { -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_History.php
r21441 r21481 49 49 50 50 $masterData = new SC_DB_MasterData_Ex(); 51 $this->arrMAILTEMPLATE = $masterData->getMasterData( "mtb_mail_template");51 $this->arrMAILTEMPLATE = $masterData->getMasterData('mtb_mail_template'); 52 52 $this->arrPref = $masterData->getMasterData('mtb_pref'); 53 $this->arrWDAY = $masterData->getMasterData( "mtb_wday");54 $this->arrProductType = $masterData->getMasterData( "mtb_product_type");53 $this->arrWDAY = $masterData->getMasterData('mtb_wday'); 54 $this->arrProductType = $masterData->getMasterData('mtb_product_type'); 55 55 } 56 56 … … 91 91 $this->isMultiple = count($this->arrShipping) > 1; 92 92 // 支払い方法の取得 93 $this->arrPayment = $objDb->sfGetIDValueList( "dtb_payment", "payment_id", "payment_method");93 $this->arrPayment = $objDb->sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 94 94 // 受注商品明細の取得 95 95 $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php
r21441 r21481 90 90 $objCustomer = new SC_Customer_Ex(); 91 91 //customer_idを検証 92 $customer_id = $objCustomer->getValue( "customer_id");93 $order_count = $objQuery->count( "dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id));92 $customer_id = $objCustomer->getValue('customer_id'); 93 $order_count = $objQuery->count('dtb_order', "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 94 94 if ($order_count != 1) return array(); 95 95 … … 97 97 $table = "dtb_order_detail LEFT JOIN dtb_products_class USING(product_class_id)"; 98 98 $where = "order_id = ?"; 99 $objQuery->setOrder( "order_detail_id");99 $objQuery->setOrder('order_detail_id'); 100 100 $arrOrderDetail = $objQuery->select($col, $table, $where, array($order_id)); 101 101 return $arrOrderDetail;
Note: See TracChangeset
for help on using the changeset viewer.