/** * Page を初期化する. * * @return void */ function init() { parent::init(); // GDライブラリのインストール判定 $this->install_GD = function_exists('gd_info') ? true : false; $this->tpl_mainpage = 'total/index.tpl'; $this->tpl_graphsubtitle = 'total/subtitle.tpl'; $this->tpl_titleimage = ROOT_URLPATH . 'img/title/title_sale.jpg'; $this->tpl_maintitle = $this->tpl_maintitle = t('c_Sales (history)_01'); $this->tpl_mainno = 'total'; $masterData = new SC_DB_MasterData_Ex(); $this->arrWDAY = $masterData->getMasterData('mtb_wday'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrJob = $masterData->getMasterData('mtb_job'); // 登録・更新日検索用 $objDate = new SC_Date_Ex(); $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrYear = $objDate->getYear(); $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); // ページタイトル todo あとでなおす $this->arrTitle[''] = t('c_Sales by period_01'); $this->arrTitle['term'] = t('c_Sales by period_01'); $this->arrTitle['products'] = t('c_Sales by product_01'); $this->arrTitle['age'] = t('c_Sales by age group_01'); $this->arrTitle['job'] = t('c_Sales by occupation_01'); $this->arrTitle['member'] = t('c_Sales by member_01'); // 月度集計のkey名 $this->arrSearchForm1 = array('search_startyear_m', 'search_startmonth_m'); // 期間別集計のkey名 $this->arrSearchForm2 = array('search_startyear', 'search_startmonth', 'search_startday', 'search_endyear', 'search_endmonth', 'search_endday'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'products/index.tpl'; $this->tpl_mainno = 'products'; $this->tpl_subno = 'index'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = '商品管理'; $this->tpl_subtitle = '商品マスター'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPageMax = $masterData->getMasterData('mtb_page_max'); $this->arrDISP = $masterData->getMasterData('mtb_disp'); $this->arrSTATUS = $masterData->getMasterData('mtb_status'); $this->arrPRODUCTSTATUS_COLOR = $masterData->getMasterData('mtb_product_status_color'); $objDate = new SC_Date(); // 登録・更新検索開始年 $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrStartYear = $objDate->getYear(); $this->arrStartMonth = $objDate->getMonth(); $this->arrStartDay = $objDate->getDay(); // 登録・更新検索終了年 $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrEndYear = $objDate->getYear(); $this->arrEndMonth = $objDate->getMonth(); $this->arrEndDay = $objDate->getDay(); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'order/index.tpl'; $this->tpl_mainno = 'order'; $this->tpl_subno = 'index'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = t('c_Orders_01'); $this->tpl_subtitle = t('c_Order master_01'); $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'); $objDate = new SC_Date_Ex(); // 登録・更新日検索用 $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrRegistYear = $objDate->getYear(); // 生年月日検索用 $objDate->setStartYear(BIRTH_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrBirthYear = $objDate->getYear(); // 月日の設定 $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); // 支払い方法の取得 $this->arrPayments = SC_Helper_DB_Ex::sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); $this->httpCacheControl('nocache'); }
public function doAction($arrParam) { $arrRequest = $this->doInitParam($arrParam); if (!$this->isParamError()) { $masterData = new SC_DB_MasterData_Ex(); $arrSTATUS = $masterData->getMasterData('mtb_status'); $arrSTATUS_IMAGE = $masterData->getMasterData('mtb_status_image'); $objProduct = new SC_Product_Ex(); $arrSearchData = array('category_id' => $arrRequest['BrowseNode'], 'maker_name' => $arrRequest['Manufacturer'], 'name' => $arrRequest['Keywords'], 'orderby' => $arrRequest['Sort']); $arrSearchCondition = $this->getSearchCondition($arrSearchData); $disp_number = 10; $objQuery =& SC_Query_Ex::getSingletonInstance(); $objQuery->setWhere($arrSearchCondition['where_for_count']); $objProduct = new SC_Product_Ex(); $linemax = $objProduct->findProductCount($objQuery, $arrSearchCondition['arrval']); $objNavi = new SC_PageNavi_Ex($arrRequest['ItemPage'], $tpl_linemax, $disp_number); $arrProducts = $this->getProductsList($arrSearchCondition, $disp_number, $objNavi->start_row, $linemax, $objProduct); if (!SC_Utils_Ex::isBlank($arrProducts)) { $arrProducts = $this->setStatusDataTo($arrProducts, $arrSTATUS, $arrSTATUS_IMAGE); $arrProducts = $objProduct->setPriceTaxTo($arrProducts); foreach ($arrProducts as $key => $val) { $arrProducts[$key]['main_list_image'] = SC_Utils_Ex::sfNoImageMainList($val['main_list_image']); } $arrData = array(); foreach ($arrProducts as $key => $val) { $arrData[] = array('product_id' => $val['product_id'], 'DetailPageURL' => HTTP_URL . 'products/detail.php?product_id=' . $val['product_id'], 'ItemAttributes' => $val); } $this->setResponse('Item', $arrData); return true; } else { $this->addError('ItemSearch.Error', '※ 要求された情報は見つかりませんでした。'); } } return false; }
/** * コンストラクタ. */ public function __construct() { $masterData = new SC_DB_MasterData_Ex(); $this->arrMAILTPLPATH = $masterData->getMasterData('mtb_mail_tpl_path'); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrCountry = $masterData->getMasterData('mtb_country'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'products/review.tpl'; $this->tpl_mainno = 'products'; $this->tpl_subno = 'review'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = '商品管理'; $this->tpl_subtitle = 'レビュー管理'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPageMax = $masterData->getMasterData("mtb_page_max"); $this->arrRECOMMEND = $masterData->getMasterData("mtb_recommend"); $this->arrSex = $masterData->getMasterData("mtb_sex"); $objDate = new SC_Date_Ex(); // 登録・更新検索開始年 $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrStartYear = $objDate->getYear(); $this->arrStartMonth = $objDate->getMonth(); $this->arrStartDay = $objDate->getDay(); // 登録・更新検索終了年 $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrEndYear = $objDate->getYear(); $this->arrEndMonth = $objDate->getMonth(); $this->arrEndDay = $objDate->getDay(); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'mail/index.tpl'; $this->tpl_mainno = 'mail'; $this->tpl_subno = 'index'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = t('c_Mail magazine_02'); $this->tpl_subtitle = t('c_Delivery content settings_01'); $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrJob = $masterData->getMasterData('mtb_job'); $this->arrJob[t('c_Unknown_01')] = t('c_Unknown_01'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrPageRows = $masterData->getMasterData('mtb_page_max'); $this->arrHtmlmail = array('' => t('c_Both_01'), 1 => t('c_HTML_01'), 2 => t('c_TEXT_02')); $this->arrMailType = $masterData->getMasterData('mtb_mail_type'); // 日付プルダウン設定 $objDate = new SC_Date_Ex(BIRTH_YEAR); $this->arrBirthYear = $objDate->getYear(); $this->arrRegistYear = $objDate->getYear(); $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); $this->objDate = $objDate; // カテゴリ一覧設定 $objDb = new SC_Helper_DB_Ex(); $this->arrCatList = $objDb->sfGetCategoryList(); // テンプレート一覧設定 $this->arrTemplate = $this->lfGetMailTemplateList(SC_Helper_Mail_Ex::sfGetMailmagaTemplate()); $this->httpCacheControl('nocache'); }
/** * 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; } }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'mail/index.tpl'; $this->tpl_mainno = 'mail'; $this->tpl_subno = 'index'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = 'メルマガ管理'; $this->tpl_subtitle = '配信内容設定'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrJob = $masterData->getMasterData('mtb_job'); $this->arrJob['不明'] = '不明'; $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrPageRows = $masterData->getMasterData('mtb_page_max'); $this->arrHtmlmail = array('' => '両方', 1 => 'HTML', 2 => 'TEXT'); $this->arrMailType = $masterData->getMasterData('mtb_mail_type'); // 日付プルダウン設定 $objDate = new SC_Date_Ex(BIRTH_YEAR); $this->arrBirthYear = $objDate->getYear(); $this->arrRegistYear = $objDate->getYear(); $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); $this->objDate = $objDate; // カテゴリ一覧設定 $objDb = new SC_Helper_DB_Ex(); $this->arrCatList = $objDb->sfGetCategoryList(); // テンプレート一覧設定 $this->arrTemplate = $this->lfGetMailTemplateList(SC_Helper_Mail_Ex::sfGetMailmagaTemplate()); $this->httpCacheControl('nocache'); }
/** * デフォルトコンストラクタ. */ function SC_Helper_CSV() { $this->init(); $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank")); $this->arrSex = $masterData->getMasterData("mtb_sex"); $this->arrDISP = $masterData->getMasterData("mtb_disp"); $this->arrRECOMMEND = $masterData->getMasterData("mtb_recommend"); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrCountry = $masterData->getMasterData('mtb_country'); $this->tpl_title = 'お届け先の指定'; $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'products/review.tpl'; $masterData = new SC_DB_MasterData_Ex(); $this->arrRECOMMEND = $masterData->getMasterData("mtb_recommend"); $this->arrSex = $masterData->getMasterData("mtb_sex"); $this->arrReviewDenyURL = $masterData->getMasterData("mtb_review_deny_url"); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $masterData = new SC_DB_MasterData_Ex(); $this->arrSTATUS = $masterData->getMasterData('mtb_status'); $this->arrSTATUS_IMAGE = $masterData->getMasterData('mtb_status_image'); $this->arrDELIVERYDATE = $masterData->getMasterData('mtb_delivery_date'); $this->arrRECOMMEND = $masterData->getMasterData('mtb_recommend'); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $masterData = new SC_DB_MasterData_Ex(); $this->arrSTATUS = $masterData->getMasterData('mtb_status'); $this->arrSTATUS_IMAGE = $masterData->getMasterData('mtb_status_image'); $this->arrDELIVERYDATE = $masterData->getMasterData('mtb_delivery_date'); $this->arrPRODUCTLISTMAX = $masterData->getMasterData('mtb_product_list_max'); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_subtitle = 'お届け先追加・変更'; $this->tpl_mypageno = 'delivery'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrCountry = $masterData->getMasterData('mtb_country'); $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $masterData = new SC_DB_MasterData_Ex(); $this->arrRECOMMEND = $masterData->getMasterData('mtb_recommend'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrReviewDenyURL = $masterData->getMasterData('mtb_review_deny_url'); $this->tpl_mainpage = 'products/review.tpl'; $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'system/input.tpl'; // マスターデータから権限配列を取得 $masterData = new SC_DB_MasterData_Ex(); $this->arrAUTHORITY = $masterData->getMasterData('mtb_authority'); $this->arrWORK = $masterData->getMasterData('mtb_work'); $this->tpl_subtitle = 'メンバー登録/編集'; $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ public function init() { $this->skip_load_page_layout = true; parent::init(); $this->tpl_title = 'お届け先の追加・変更'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrCountry = $masterData->getMasterData('mtb_country'); $this->httpCacheControl('nocache'); $this->validUrl = array(MYPAGE_DELIVADDR_URLPATH, DELIV_URLPATH, MULTIPLE_URLPATH); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'shopping/complete.tpl'; $this->tpl_title = "ご注文完了"; $this->tpl_column_num = 1; $masterData = new SC_DB_MasterData_Ex(); $this->arrCONVENIENCE = $masterData->getMasterData("mtb_convenience"); $this->arrCONVENIMESSAGE = $masterData->getMasterData("mtb_conveni_message"); $this->allowClientCache(); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'basis/delivery.tpl'; $this->tpl_subno = 'delivery'; $this->tpl_mainno = 'basis'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrTAXRULE = $masterData->getMasterData('mtb_taxrule'); $this->tpl_maintitle = '基本情報管理'; $this->tpl_subtitle = '配送方法設定'; }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'basis/seo.tpl'; $this->tpl_subnavi = 'basis/subnavi.tpl'; $this->tpl_subno = 'seo'; $this->tpl_mainno = 'basis'; $this->tpl_subtitle = 'SEO管理'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank")); $this->arrTAXRULE = $masterData->getMasterData("mtb_taxrule"); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'basis/tradelaw.tpl'; $this->tpl_subno = 'tradelaw'; $this->tpl_mainno = 'basis'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrTAXRULE = $masterData->getMasterData('mtb_taxrule'); $this->tpl_maintitle = t('c_Basic information_01'); $this->tpl_subtitle = t('c_Transaction rules_01'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_title = 'ご入力内容のご確認'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrMAILMAGATYPE = $masterData->getMasterData('mtb_mail_magazine_type'); $this->arrReminder = $masterData->getMasterData('mtb_reminder'); $this->arrDeliv = SC_Helper_DB_Ex::sfGetIDValueList('dtb_deliv', 'deliv_id', 'service_name'); $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'basis/delivery.tpl'; $this->tpl_subno = 'delivery'; $this->tpl_mainno = 'basis'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrTAXRULE = $masterData->getMasterData('mtb_taxrule'); $this->tpl_maintitle = t('c_Basic information_01'); $this->tpl_subtitle = t('c_Delivery method settings_01'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'design/index.tpl'; $this->tpl_subno = 'layout'; $this->tpl_mainno = 'design'; $this->tpl_maintitle = 'デザイン管理'; $this->tpl_subtitle = 'レイアウト設定'; $masterData = new SC_DB_MasterData_Ex(); $this->arrTarget = $masterData->getMasterData('mtb_target'); $this->arrDeviceType = $masterData->getMasterData('mtb_device_type'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'products/review_edit.tpl'; $this->tpl_subnavi = 'products/subnavi.tpl'; $this->tpl_mainno = 'products'; $this->tpl_subno = 'review'; $masterData = new SC_DB_MasterData_Ex(); $this->arrRECOMMEND = $masterData->getMasterData("mtb_recommend"); $this->tpl_subtitle = 'レビュー管理'; $this->arrSex = $masterData->getMasterData("mtb_sex"); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'design/index.tpl'; $this->tpl_subno = 'layout'; $this->tpl_mainno = 'design'; $this->tpl_maintitle = t('c_Design_01'); $this->tpl_subtitle = t('c_Layout settings_01'); $masterData = new SC_DB_MasterData_Ex(); $this->arrTarget = $masterData->getMasterData('mtb_target'); $this->arrDeviceType = $masterData->getMasterData('mtb_device_type'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mypageno = 'index'; $this->tpl_subtitle = '購入履歴詳細'; $this->httpCacheControl('nocache'); $masterData = new SC_DB_MasterData_Ex(); $this->arrMAILTEMPLATE = $masterData->getMasterData('mtb_mail_template'); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrWDAY = $masterData->getMasterData('mtb_wday'); $this->arrProductType = $masterData->getMasterData('mtb_product_type'); }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'basis/tradelaw.tpl'; $this->tpl_subno = 'tradelaw'; $this->tpl_mainno = 'basis'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrTAXRULE = $masterData->getMasterData("mtb_taxrule"); $this->tpl_maintitle = '基本情報管理'; $this->tpl_subtitle = '特定商取引法'; }
/** * Page を初期化する. * * @return void */ function init() { parent::init(); $masterData = new SC_DB_MasterData_Ex(); $this->arrSTATUS = $masterData->getMasterData("mtb_status"); $this->arrSTATUS_IMAGE = $masterData->getMasterData("mtb_status_image"); $this->arrDELIVERYDATE = $masterData->getMasterData("mtb_delivery_date"); $this->arrPRODUCTLISTMAX = $masterData->getMasterData("mtb_product_list_max"); $this->tpl_class_name1 = array(); $this->tpl_class_name2 = array(); $this->allowClientCache(); }