Changeset 15294


Ignore:
Timestamp:
2007/08/16 19:41:41 (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/delivery.php

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