/**
  * Page を初期化する.
  *
  * @return void
  */
 function init()
 {
     parent::init();
     $this->tpl_mainpage = 'order/edit.tpl';
     $this->tpl_subnavi = 'order/subnavi.tpl';
     $this->tpl_mainno = 'order';
     $this->tpl_subno = 'index';
     $this->tpl_subtitle = '受注管理';
     if (empty($_GET['order_id']) && empty($_POST['order_id'])) {
         $this->tpl_subno = 'add';
         $this->tpl_mode = 'add';
         $this->tpl_subtitle = '新規受注入力';
     }
     $masterData = new SC_DB_MasterData_Ex();
     $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank"));
     $this->arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
     /* ペイジェント決済モジュール連携用 */
     if (function_exists("sfPaygentOrderPage")) {
         $this->arrDispKind = sfPaygentOrderPage();
     }
     /* F-REGI決済モジュール連携用 */
     if (file_exists(MODULE_PATH . 'mdl_fregi/LC_Page_Mdl_Fregi_Config.php') === TRUE) {
         global $arrFregiPayment;
         $this->arrFregiPayment = $arrFregiPayment;
         global $arrFregiDispKind;
         $this->arrFregiDispKind = $arrFregiDispKind;
     }
 }
Exemplo n.º 2
0
 /**
  * Page を初期化する.
  *
  * @return void
  */
 function init()
 {
     parent::init();
     $this->tpl_mainpage = 'order/index.tpl';
     $this->tpl_subnavi = 'order/subnavi.tpl';
     $this->tpl_mainno = 'order';
     $this->tpl_subno = 'index';
     $this->tpl_pager = TEMPLATE_DIR . 'admin/pager.tpl';
     $this->tpl_subtitle = '受注管理';
     $masterData = new SC_DB_MasterData_Ex();
     $this->arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
     $this->arrORDERSTATUS_COLOR = $masterData->getMasterData("mtb_order_status_color");
     $this->arrSex = $masterData->getMasterData("mtb_sex");
     $this->arrPageMax = $masterData->getMasterData("mtb_page_max");
     /* ペイジェント決済モジュール連携用 */
     if (function_exists("sfPaygentOrderPage")) {
         $this->arrDispKind = sfPaygentOrderPage();
     }
 }