Changeset 16183
- Timestamp:
- 2007/09/30 08:54:17 (16 years ago)
- 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 52 52 $this->tpl_subnavi = 'customer/subnavi.tpl'; 53 53 $this->tpl_subno = 'index'; 54 $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';54 $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 55 55 $this->tpl_subtitle = '顧客マスタ'; 56 56 -
branches/feature-module-update/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
r15568 r16183 21 21 // TODO 22 22 var $arrSession; 23 24 25 26 27 28 29 30 31 32 33 34 35 36 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; 37 37 38 38 … … 48 48 parent::init(); 49 49 $this->tpl_mainpage = 'customer/edit.tpl'; 50 51 52 53 $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';54 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 = '顧客マスタ'; 55 55 56 56 $masterData = new SC_DB_MasterData_Ex(); 57 58 59 60 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"); 61 61 } 62 62 … … 77 77 $objDb = new SC_Helper_DB_Ex(); 78 78 $objDate = new SC_Date(1901); 79 $this->arrYear = $objDate->getYear(); 79 $this->arrYear = $objDate->getYear(); // 日付プルダウン設定 80 80 $this->arrMonth = $objDate->getMonth(); 81 81 $this->arrDay = $objDate->getDay(); … … 83 83 //---- 登録用カラム配列 84 84 $arrRegistColumn = array( 85 array( "column" => "name01", 86 array( "column" => "name02", 87 array( "column" => "kana01", 88 array( "column" => "kana02", 89 array( "column" => "zip01", 90 array( "column" => "zip02", 91 array( "column" => "pref", 92 array( "column" => "addr01", 93 array( "column" => "addr02", 94 array( "column" => "email", 95 array( "column" => "email_mobile", 96 array( "column" => "tel01", 97 array( "column" => "tel02", 98 array( "column" => "tel03", 99 array( "column" => "fax01", 100 array( "column" => "fax02", 101 array( "column" => "fax03", 102 array( "column" => "sex", 103 array( "column" => "job", 104 array( "column" => "birth", 105 array( "column" => "password", 106 array( "column" => "reminder", 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" ), 107 107 array( "column" => "reminder_answer", "convert" => "aKV" ), 108 108 array( "column" => "mailmaga_flg", "convert" => "n" ), 109 array( "column" => "note", 110 array( "column" => "point", 111 array( "column" => "status", 109 array( "column" => "note", "convert" => "aKV" ), 110 array( "column" => "point", "convert" => "n" ), 111 array( "column" => "status", "convert" => "n" ) 112 112 ); 113 113 … … 158 158 //-- POSTデータの引き継ぎ 159 159 $this->arrForm = $_POST; 160 $this->arrForm['email'] = strtolower($this->arrForm['email']); 160 $this->arrForm['email'] = strtolower($this->arrForm['email']); // emailはすべて小文字で処理 161 161 162 162 //-- 入力データの変換 … … 251 251 function lfConvertParam($array, $arrRegistColumn) { 252 252 /* 253 * 254 * 255 * 256 * 257 * 253 * 文字列の変換 254 * K : 「半角(ハンカク)片仮名」を「全角片仮名」に変換 255 * C : 「全角ひら仮名」を「全角かた仮名」に変換 256 * V : 濁点付きの文字を一文字に変換。"K","H"と共に使用します 257 * n : 「全角」数字を「半角(ハンカク)」に変換 258 258 * a : 全角英数字を半角英数字に変換する 259 259 */ … … 334 334 //購入履歴情報の取得 335 335 function lfPurchaseHistory($customer_id){ 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 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; 360 360 } 361 361 -
branches/feature-module-update/data/class/pages/admin/mail/LC_Page_Admin_Mail.php
r15651 r16183 32 32 $this->tpl_subnavi = 'mail/subnavi.tpl'; 33 33 $this->tpl_subno = "index"; 34 $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';34 $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 35 35 $this->tpl_subtitle = '配信内容設定'; 36 36 -
branches/feature-module-update/data/class/pages/admin/order/LC_Page_Admin_Order.php
r15584 r16183 32 32 $this->tpl_mainno = 'order'; 33 33 $this->tpl_subno = 'index'; 34 $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';34 $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 35 35 $this->tpl_subtitle = '受注管理'; 36 36 -
branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_Trackback.php
r15546 r16183 35 35 $this->tpl_mainno = 'products'; 36 36 $this->tpl_subno = 'trackback'; 37 $this->tpl_pager = DATA_PATH . 'Smarty/templates/admin/pager.tpl';37 $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl'; 38 38 $this->tpl_subtitle = 'トラックバック管理'; 39 39
Note: See TracChangeset
for help on using the changeset viewer.