Changeset 15298


Ignore:
Timestamp:
2007/08/16 21:56:20 (13 years ago)
Author:
nanasess
Message:

クラス化対応

Location:
branches/feature-module-update
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/admin/basis/payment.php

    r15080 r15298  
    55 * http://www.lockon.co.jp/ 
    66 */ 
     7 
     8// {{{ requires 
    79require_once("../require.php"); 
     10require_once(CLASS_PATH . "page_extends/admin/basis/LC_Page_Admin_Basis_Payment_Ex.php"); 
    811 
    9 class LC_Page { 
    10     var $arrSession; 
    11     var $tpl_mode; 
    12     function LC_Page() { 
    13         $this->tpl_mainpage = 'basis/payment.tpl'; 
    14         $this->tpl_subnavi = 'basis/subnavi.tpl'; 
    15         $this->tpl_mainno = 'basis'; 
    16         $this->tpl_subno = 'payment'; 
    17         $this->tpl_subtitle = '支払方法設定'; 
    18     } 
    19 } 
    20 $conn = new SC_DBConn(); 
    21 $objPage = new LC_Page(); 
    22 $objView = new SC_AdminView(); 
    23 $objSess = new SC_Session(); 
     12// }}} 
     13// {{{ generate page 
    2414 
    25 // 認証可否の判定 
    26 sfIsSuccess($objSess); 
    27  
    28 switch($_POST['mode']) { 
    29     case 'delete': 
    30     // ランク付きレコードの削除 
    31     sfDeleteRankRecord("dtb_payment", "payment_id", $_POST['payment_id']); 
    32     // 再表示 
    33     sfReload(); 
    34     break; 
    35 case 'up': 
    36     sfRankUp("dtb_payment", "payment_id", $_POST['payment_id']); 
    37     // 再表示 
    38     sfReload(); 
    39     break; 
    40 case 'down': 
    41     sfRankDown("dtb_payment", "payment_id", $_POST['payment_id']); 
    42     // 再表示 
    43     sfReload(); 
    44     break; 
    45 } 
    46  
    47 $objPage->arrDelivList = sfGetIDValueList("dtb_deliv", "deliv_id", "service_name"); 
    48 $objPage->arrPaymentListFree = lfGetPaymentList(2); 
    49  
    50 $objView->assignobj($objPage); 
    51 $objView->display(MAIN_FRAME); 
    52 //----------------------------------------------------------------------------------------------------------------------------------- 
    53 // 配送業者一覧の取得 
    54 function lfGetPaymentList($fix = 1) { 
    55     $objQuery = new SC_Query(); 
    56     // 配送業者一覧の取得 
    57     $col = "payment_id, payment_method, charge, rule, upper_rule, note, deliv_id, fix, charge_flg"; 
    58     $where = "del_flg = 0"; 
    59 //  $where .= " AND fix = ?"; 
    60     $table = "dtb_payment"; 
    61     $objQuery->setorder("rank DESC"); 
    62     $arrRet = $objQuery->select($col, $table, $where); 
    63     return $arrRet; 
    64 } 
    65  
     15$objPage = new LC_Page_Admin_Basis_Payment_Ex(); 
     16$objPage->init(); 
     17$objPage->process(); 
     18register_shutdown_function(array($objPage, "destroy")); 
    6619?> 
Note: See TracChangeset for help on using the changeset viewer.