Changeset 11729 for branches/comu/html/mypage/history.php
- Timestamp:
- 2007/03/10 21:35:02 (20 years ago)
- File:
-
- 1 edited
-
branches/comu/html/mypage/history.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/html/mypage/history.php
r15 r11729 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.
