Changeset 16183


Ignore:
Timestamp:
2007/09/30 08:54:17 (16 years ago)
Author:
nanasess
Message:

tpl_pager のパス修正

Location:
branches/feature-module-update/data/class/pages/admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r15568 r16183  
    5252        $this->tpl_subnavi = 'customer/subnavi.tpl'; 
    5353        $this->tpl_subno = 'index'; 
    54         $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl'; 
     54        $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 
    5555        $this->tpl_subtitle = '顧客マスタ'; 
    5656 
  • branches/feature-module-update/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php

    r15568 r16183  
    2121    // TODO 
    2222    var $arrSession; 
    23     var $tpl_mode; 
    24     var $list_data; 
    25  
    26     var $arrErr; 
    27     var $arrYear; 
    28     var $arrMonth; 
    29     var $arrDay; 
    30     var $arrPref; 
    31     var $arrJob; 
    32     var $arrSex; 
    33     var $arrReminder; 
    34     var $count; 
    35  
    36     var $tpl_strnavi; 
     23    var $tpl_mode; 
     24    var $list_data; 
     25 
     26    var $arrErr; 
     27    var $arrYear; 
     28    var $arrMonth; 
     29    var $arrDay; 
     30    var $arrPref; 
     31    var $arrJob; 
     32    var $arrSex; 
     33    var $arrReminder; 
     34    var $count; 
     35 
     36    var $tpl_strnavi; 
    3737 
    3838 
     
    4848        parent::init(); 
    4949        $this->tpl_mainpage = 'customer/edit.tpl'; 
    50         $this->tpl_mainno = 'customer'; 
    51         $this->tpl_subnavi = 'customer/subnavi.tpl'; 
    52         $this->tpl_subno = 'index'; 
    53         $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl'; 
    54         $this->tpl_subtitle = '顧客マスタ'; 
     50        $this->tpl_mainno = 'customer'; 
     51        $this->tpl_subnavi = 'customer/subnavi.tpl'; 
     52        $this->tpl_subno = 'index'; 
     53        $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 
     54        $this->tpl_subtitle = '顧客マスタ'; 
    5555 
    5656        $masterData = new SC_DB_MasterData_Ex(); 
    57         $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank")); 
    58         $this->arrJob = $masterData->getMasterData("mtb_job"); 
    59         $this->arrSex = $masterData->getMasterData("mtb_sex"); 
    60         $this->arrReminder = $masterData->getMasterData("mtb_reminder"); 
     57        $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank")); 
     58        $this->arrJob = $masterData->getMasterData("mtb_job"); 
     59        $this->arrSex = $masterData->getMasterData("mtb_sex"); 
     60        $this->arrReminder = $masterData->getMasterData("mtb_reminder"); 
    6161    } 
    6262 
     
    7777        $objDb = new SC_Helper_DB_Ex(); 
    7878        $objDate = new SC_Date(1901); 
    79         $this->arrYear = $objDate->getYear();   // 日付プルダウン設定 
     79        $this->arrYear = $objDate->getYear();    // 日付プルダウン設定 
    8080        $this->arrMonth = $objDate->getMonth(); 
    8181        $this->arrDay = $objDate->getDay(); 
     
    8383        //---- 登録用カラム配列 
    8484        $arrRegistColumn = array( 
    85                                  array(  "column" => "name01",      "convert" => "aKV" ), 
    86                                  array(  "column" => "name02",      "convert" => "aKV" ), 
    87                                  array(  "column" => "kana01",      "convert" => "CKV" ), 
    88                                  array(  "column" => "kana02",      "convert" => "CKV" ), 
    89                                  array(  "column" => "zip01",       "convert" => "n" ), 
    90                                  array(  "column" => "zip02",       "convert" => "n" ), 
    91                                  array(  "column" => "pref",        "convert" => "n" ), 
    92                                  array(  "column" => "addr01",      "convert" => "aKV" ), 
    93                                  array(  "column" => "addr02",      "convert" => "aKV" ), 
    94                                  array(  "column" => "email",       "convert" => "a" ), 
    95                                  array(  "column" => "email_mobile",    "convert" => "a" ), 
    96                                  array(  "column" => "tel01",       "convert" => "n" ), 
    97                                  array(  "column" => "tel02",       "convert" => "n" ), 
    98                                  array(  "column" => "tel03",       "convert" => "n" ), 
    99                                  array(  "column" => "fax01",       "convert" => "n" ), 
    100                                  array(  "column" => "fax02",       "convert" => "n" ), 
    101                                  array(  "column" => "fax03",       "convert" => "n" ), 
    102                                  array(  "column" => "sex",         "convert" => "n" ), 
    103                                  array(  "column" => "job",         "convert" => "n" ), 
    104                                  array(  "column" => "birth",       "convert" => "n" ), 
    105                                  array(  "column" => "password",    "convert" => "a" ), 
    106                                  array(  "column" => "reminder",    "convert" => "n" ), 
     85                                 array(  "column" => "name01",        "convert" => "aKV" ), 
     86                                 array(  "column" => "name02",        "convert" => "aKV" ), 
     87                                 array(  "column" => "kana01",        "convert" => "CKV" ), 
     88                                 array(  "column" => "kana02",        "convert" => "CKV" ), 
     89                                 array(  "column" => "zip01",        "convert" => "n" ), 
     90                                 array(  "column" => "zip02",        "convert" => "n" ), 
     91                                 array(  "column" => "pref",        "convert" => "n" ), 
     92                                 array(  "column" => "addr01",        "convert" => "aKV" ), 
     93                                 array(  "column" => "addr02",        "convert" => "aKV" ), 
     94                                 array(  "column" => "email",        "convert" => "a" ), 
     95                                 array(  "column" => "email_mobile",    "convert" => "a" ), 
     96                                 array(  "column" => "tel01",        "convert" => "n" ), 
     97                                 array(  "column" => "tel02",        "convert" => "n" ), 
     98                                 array(  "column" => "tel03",        "convert" => "n" ), 
     99                                 array(  "column" => "fax01",        "convert" => "n" ), 
     100                                 array(  "column" => "fax02",        "convert" => "n" ), 
     101                                 array(  "column" => "fax03",        "convert" => "n" ), 
     102                                 array(  "column" => "sex",            "convert" => "n" ), 
     103                                 array(  "column" => "job",            "convert" => "n" ), 
     104                                 array(  "column" => "birth",        "convert" => "n" ), 
     105                                 array(  "column" => "password",    "convert" => "a" ), 
     106                                 array(  "column" => "reminder",    "convert" => "n" ), 
    107107                                 array(  "column" => "reminder_answer", "convert" => "aKV" ), 
    108108                                 array(  "column" => "mailmaga_flg", "convert" => "n" ), 
    109                                  array(  "column" => "note",        "convert" => "aKV" ), 
    110                                  array(  "column" => "point",       "convert" => "n" ), 
    111                                  array(  "column" => "status",      "convert" => "n" ) 
     109                                 array(  "column" => "note",        "convert" => "aKV" ), 
     110                                 array(  "column" => "point",        "convert" => "n" ), 
     111                                 array(  "column" => "status",        "convert" => "n" ) 
    112112                                 ); 
    113113 
     
    158158            //-- POSTデータの引き継ぎ 
    159159            $this->arrForm = $_POST; 
    160             $this->arrForm['email'] = strtolower($this->arrForm['email']);      // emailはすべて小文字で処理 
     160            $this->arrForm['email'] = strtolower($this->arrForm['email']);        // emailはすべて小文字で処理 
    161161 
    162162            //-- 入力データの変換 
     
    251251    function lfConvertParam($array, $arrRegistColumn) { 
    252252        /* 
    253          *  文字列の変換 
    254          *  K :  「半角(ハンカク)片仮名」を「全角片仮名」に変換 
    255          *  C :  「全角ひら仮名」を「全角かた仮名」に変換 
    256          *  V :  濁点付きの文字を一文字に変換。"K","H"と共に使用します 
    257          *  n :  「全角」数字を「半角(ハンカク)」に変換 
     253         *    文字列の変換 
     254         *    K :  「半角(ハンカク)片仮名」を「全角片仮名」に変換 
     255         *    C :  「全角ひら仮名」を「全角かた仮名」に変換 
     256         *    V :  濁点付きの文字を一文字に変換。"K","H"と共に使用します 
     257         *    n :  「全角」数字を「半角(ハンカク)」に変換 
    258258         *  a :  全角英数字を半角英数字に変換する 
    259259         */ 
     
    334334    //購入履歴情報の取得 
    335335    function lfPurchaseHistory($customer_id){ 
    336         $this->tpl_pageno = $_POST['search_pageno']; 
    337         $this->edit_customer_id = $customer_id; 
    338  
    339         // ページ送りの処理 
    340         $page_max = SEARCH_PMAX; 
    341         //購入履歴の件数取得 
    342         $this->tpl_linemax = $this->objQuery->count("dtb_order","customer_id=? AND del_flg = 0 ", array($customer_id)); 
    343         $linemax = $this->tpl_linemax; 
    344  
    345         // ページ送りの取得 
    346         $objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnNaviSearchPage2", NAVI_PMAX); 
    347         $this->arrPagenavi = $objNavi->arrPagenavi; 
    348         $this->arrPagenavi['mode'] = 'edit'; 
    349         $startno = $objNavi->start_row; 
    350  
    351         // 取得範囲の指定(開始行番号、行数のセット) 
    352         $this->objQuery->setlimitoffset($page_max, $startno); 
    353         // 表示順序 
    354         $order = "order_id DESC"; 
    355         $this->objQuery->setorder($order); 
    356         //購入履歴情報の取得 
    357         $arrPurchaseHistory = $this->objQuery->select("*", "dtb_order", "customer_id=? AND del_flg = 0 ", array($customer_id)); 
    358  
    359         return $arrPurchaseHistory; 
     336        $this->tpl_pageno = $_POST['search_pageno']; 
     337        $this->edit_customer_id = $customer_id; 
     338 
     339        // ページ送りの処理 
     340        $page_max = SEARCH_PMAX; 
     341        //購入履歴の件数取得 
     342        $this->tpl_linemax = $this->objQuery->count("dtb_order","customer_id=? AND del_flg = 0 ", array($customer_id)); 
     343        $linemax = $this->tpl_linemax; 
     344 
     345        // ページ送りの取得 
     346        $objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnNaviSearchPage2", NAVI_PMAX); 
     347        $this->arrPagenavi = $objNavi->arrPagenavi; 
     348        $this->arrPagenavi['mode'] = 'edit'; 
     349        $startno = $objNavi->start_row; 
     350 
     351        // 取得範囲の指定(開始行番号、行数のセット) 
     352        $this->objQuery->setlimitoffset($page_max, $startno); 
     353        // 表示順序 
     354        $order = "order_id DESC"; 
     355        $this->objQuery->setorder($order); 
     356        //購入履歴情報の取得 
     357        $arrPurchaseHistory = $this->objQuery->select("*", "dtb_order", "customer_id=? AND del_flg = 0 ", array($customer_id)); 
     358 
     359        return $arrPurchaseHistory; 
    360360    } 
    361361 
  • branches/feature-module-update/data/class/pages/admin/mail/LC_Page_Admin_Mail.php

    r15651 r16183  
    3232        $this->tpl_subnavi = 'mail/subnavi.tpl'; 
    3333        $this->tpl_subno = "index"; 
    34         $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl'; 
     34        $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 
    3535        $this->tpl_subtitle = '配信内容設定'; 
    3636 
  • branches/feature-module-update/data/class/pages/admin/order/LC_Page_Admin_Order.php

    r15584 r16183  
    3232        $this->tpl_mainno = 'order'; 
    3333        $this->tpl_subno = 'index'; 
    34         $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl'; 
     34        $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 
    3535        $this->tpl_subtitle = '受注管理'; 
    3636 
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_Trackback.php

    r15546 r16183  
    3535        $this->tpl_mainno = 'products'; 
    3636        $this->tpl_subno = 'trackback'; 
    37         $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl'; 
     37        $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 
    3838        $this->tpl_subtitle = 'トラックバック管理'; 
    3939 
Note: See TracChangeset for help on using the changeset viewer.