Changeset 15078 for branches/feature-module-update/html/mypage/history.php
- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/mypage/history.php
r12157 r15078 11 11 function LC_Page() { 12 12 $this->tpl_mainpage = USER_PATH . 'templates/mypage/history.tpl'; 13 $this->tpl_title = "MY ¥Ú¡¼¥¸/¹ØÆþÍúÎò¾ÜºÙ";13 $this->tpl_title = "MYページ/購入履歴詳細"; 14 14 $this->tpl_navi = USER_PATH . 'templates/mypage/navi.tpl'; 15 15 $this->tpl_mainno = 'mypage'; … … 24 24 $objCustomer = new SC_Customer(); 25 25 26 // ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ26 // レイアウトデザインを取得 27 27 $objPage = sfGetPageLayout($objPage, false, "mypage/index.php"); 28 28 29 // ÉÔÀµ¥¢¥¯¥»¥¹È½Äê29 //不正アクセス判定 30 30 $from = "dtb_order"; 31 31 $where = "del_flg = 0 AND customer_id = ? AND order_id = ? "; 32 32 $arrval = array($objCustomer->getValue('customer_id'), $_POST['order_id']); 33 //DB ¤Ë¾ðÊ󤬤¢¤ë¤«È½Äê33 //DBに情報があるか判定 34 34 $cnt = $objQuery->count($from, $where, $arrval); 35 // ¥í¥°¥¤¥ó¤·¤Æ¤¤¤Ê¤¤¡¢¤Þ¤¿¤ÏDB¤Ë¾ðÊó¤¬Ìµ¤¤¾ì¹ç35 //ログインしていない、またはDBに情報が無い場合 36 36 if (!$objCustomer->isLoginSuccess() || $cnt == 0){ 37 37 sfDispSiteError(CUSTOMER_ERROR); 38 38 } else { 39 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ39 //受注詳細データの取得 40 40 $objPage->arrDisp = lfGetOrderData($_POST['order_id']); 41 // »Ùʧ¤¤ÊýË¡¤Î¼èÆÀ41 // 支払い方法の取得 42 42 $objPage->arrPayment = sfGetIDValueList("dtb_payment", "payment_id", "payment_method"); 43 // ÇÛÁ÷»þ´Ö¤Î¼èÆÀ43 // 配送時間の取得 44 44 $arrRet = sfGetDelivTime($objPage->arrDisp['payment_id']); 45 45 $objPage->arrDelivTime = sfArrKeyValue($arrRet, 'time_id', 'deliv_time'); 46 46 47 // ¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ47 //マイページトップ顧客情報表示用 48 48 $objPage->CustomerName1 = $objCustomer->getvalue('name01'); 49 49 $objPage->CustomerName2 = $objCustomer->getvalue('name02'); … … 57 57 //----------------------------------------------------------------------------------------------------------------------------------- 58 58 59 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ59 //受注詳細データの取得 60 60 function lfGetOrderData($order_id) { 61 // ¼õÃíÈֹ椬¿ô»ú¤Ç¤¢¤ì¤Ð61 //受注番号が数字であれば 62 62 if(sfIsInt($order_id)) { 63 // DB ¤«¤é¼õÃí¾ðÊó¤òÆɤ߹þ¤à63 // DBから受注情報を読み込む 64 64 $objQuery = new SC_Query(); 65 65 $col = "order_id, create_date, payment_id, subtotal, tax, use_point, add_point, discount, "; … … 70 70 $arrRet = $objQuery->select($col, $from, $where, array($order_id)); 71 71 $arrOrder = $arrRet[0]; 72 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ72 // 受注詳細データの取得 73 73 $arrRet = lfGetOrderDetail($order_id); 74 74 $arrOrderDetail = sfSwapArray($arrRet); … … 78 78 } 79 79 80 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ80 // 受注詳細データの取得 81 81 function lfGetOrderDetail($order_id) { 82 82 $objQuery = new SC_Query();
Note: See TracChangeset
for help on using the changeset viewer.