Ignore:
Timestamp:
2007/07/20 15:58:59 (17 years ago)
Author:
nanasess
Message:

r15064 から svn cp
とりあえず暫定コミット.

  • UTF-8 に変更
  • slib.php, glib.php のクラス化
  • LC_Page の抽象化(一部)
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
  • branches/feature-module-update/html/mypage/history.php

    r12157 r15078  
    1111    function LC_Page() { 
    1212        $this->tpl_mainpage = USER_PATH . 'templates/mypage/history.tpl'; 
    13         $this->tpl_title = "MY¥Ú¡¼¥¸/¹ØÆþÍúÎò¾ÜºÙ"; 
     13        $this->tpl_title = "MYページ/購入履歴詳細"; 
    1414        $this->tpl_navi = USER_PATH . 'templates/mypage/navi.tpl'; 
    1515        $this->tpl_mainno = 'mypage'; 
     
    2424$objCustomer = new SC_Customer(); 
    2525 
    26 // ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ 
     26// レイアウトデザインを取得 
    2727$objPage = sfGetPageLayout($objPage, false, "mypage/index.php"); 
    2828 
    29 //ÉÔÀµ¥¢¥¯¥»¥¹È½Äê 
     29//不正アクセス判定 
    3030$from = "dtb_order"; 
    3131$where = "del_flg = 0 AND customer_id = ? AND order_id = ? "; 
    3232$arrval = array($objCustomer->getValue('customer_id'), $_POST['order_id']); 
    33 //DB¤Ë¾ðÊ󤬤¢¤ë¤«È½Äê 
     33//DBに情報があるか判定 
    3434$cnt = $objQuery->count($from, $where, $arrval); 
    35 //¥í¥°¥¤¥ó¤·¤Æ¤¤¤Ê¤¤¡¢¤Þ¤¿¤ÏDB¤Ë¾ðÊó¤¬Ìµ¤¤¾ì¹ç 
     35//ログインしていない、またはDBに情報が無い場合 
    3636if (!$objCustomer->isLoginSuccess() || $cnt == 0){ 
    3737    sfDispSiteError(CUSTOMER_ERROR); 
    3838} else { 
    39     //¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 
     39    //受注詳細データの取得 
    4040    $objPage->arrDisp = lfGetOrderData($_POST['order_id']); 
    41     // »Ùʧ¤¤ÊýË¡¤Î¼èÆÀ 
     41    // 支払い方法の取得 
    4242    $objPage->arrPayment = sfGetIDValueList("dtb_payment", "payment_id", "payment_method"); 
    43     // ÇÛÁ÷»þ´Ö¤Î¼èÆÀ 
     43    // 配送時間の取得 
    4444    $arrRet = sfGetDelivTime($objPage->arrDisp['payment_id']); 
    4545    $objPage->arrDelivTime = sfArrKeyValue($arrRet, 'time_id', 'deliv_time'); 
    4646 
    47     //¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ 
     47    //マイページトップ顧客情報表示用 
    4848    $objPage->CustomerName1 = $objCustomer->getvalue('name01'); 
    4949    $objPage->CustomerName2 = $objCustomer->getvalue('name02'); 
     
    5757//----------------------------------------------------------------------------------------------------------------------------------- 
    5858 
    59 //¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 
     59//受注詳細データの取得 
    6060function lfGetOrderData($order_id) { 
    61     //¼õÃíÈֹ椬¿ô»ú¤Ç¤¢¤ì¤Ð 
     61    //受注番号が数字であれば 
    6262    if(sfIsInt($order_id)) { 
    63         // DB¤«¤é¼õÃí¾ðÊó¤òÆɤ߹þ¤à 
     63        // DBから受注情報を読み込む 
    6464        $objQuery = new SC_Query(); 
    6565        $col = "order_id, create_date, payment_id, subtotal, tax, use_point, add_point, discount, "; 
     
    7070        $arrRet = $objQuery->select($col, $from, $where, array($order_id)); 
    7171        $arrOrder = $arrRet[0]; 
    72         // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 
     72        // 受注詳細データの取得 
    7373        $arrRet = lfGetOrderDetail($order_id); 
    7474        $arrOrderDetail = sfSwapArray($arrRet); 
     
    7878} 
    7979 
    80 // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 
     80// 受注詳細データの取得 
    8181function lfGetOrderDetail($order_id) { 
    8282    $objQuery = new SC_Query(); 
Note: See TracChangeset for help on using the changeset viewer.