Changeset 11730 for branches/comu/html/mypage/history.php
- Timestamp:
- 2007/03/11 06:27:25 (19 years ago)
- File:
-
- 1 edited
-
branches/comu/html/mypage/history.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/html/mypage/history.php
r11729 r11730 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'); … … 55 55 //----------------------------------------------------------------------------------------------------------------------------------- 56 56 57 // 受注詳細データの取得57 //¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 58 58 function lfGetOrderData($order_id) { 59 // 受注番号が数字であれば59 //¼õÃíÈֹ椬¿ô»ú¤Ç¤¢¤ì¤Ð 60 60 if(sfIsInt($order_id)) { 61 // DB から受注情報を読み込む61 // DB¤«¤é¼õÃí¾ðÊó¤òÆÉ¤ß¹þ¤à 62 62 $objQuery = new SC_Query(); 63 63 $col = "order_id, create_date, payment_id, subtotal, tax, use_point, add_point, discount, "; … … 68 68 $arrRet = $objQuery->select($col, $from, $where, array($order_id)); 69 69 $arrOrder = $arrRet[0]; 70 // 受注詳細データの取得70 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 71 71 $arrRet = lfGetOrderDetail($order_id); 72 72 $arrOrderDetail = sfSwapArray($arrRet); … … 76 76 } 77 77 78 // 受注詳細データの取得78 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 79 79 function lfGetOrderDetail($order_id) { 80 80 $objQuery = new SC_Query();
Note: See TracChangeset
for help on using the changeset viewer.
