Changeset 22100 for branches/version-2_12-multilang/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php
- Timestamp:
- 2012/11/16 14:56:04 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php
r22067 r22100 49 49 $this->tpl_subno = 'header'; 50 50 $this->tpl_mainno = 'design'; 51 $this->tpl_maintitle = SC_I18n_Ex::t('TPL_MAINTITLE_003');52 $this->tpl_subtitle = SC_I18n_Ex::t('LC_Page_Admin_Design_Header_002');51 $this->tpl_maintitle = t('TPL_MAINTITLE_003'); 52 $this->tpl_subtitle = t('LC_Page_Admin_Design_Header_002'); 53 53 $masterData = new SC_DB_MasterData_Ex(); 54 54 $this->arrDeviceType = $masterData->getMasterData('mtb_device_type'); … … 87 87 if (SC_Utils_Ex::isBlank($this->arrErr)) { 88 88 if ($this->doRegister($objFormParam)) { 89 $this->tpl_onload = "alert('" . SC_I18n_Ex::t('ALERT_004') . "');";89 $this->tpl_onload = "alert('" . t('ALERT_004') . "');"; 90 90 } 91 91 } … … 101 101 $footer_path = $this->getTemplatePath($this->device_type_id, 'footer'); 102 102 if ($header_path === false || $footer_path === false) { 103 $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Header_003');103 $this->arrErr['err'] = t('LC_Page_Admin_Design_Header_003'); 104 104 } else { 105 105 $this->header_data = file_get_contents($header_path); … … 132 132 */ 133 133 function lfInitParam(&$objFormParam) { 134 $objFormParam->addParam( SC_I18n_Ex::t('PARAM_LABEL_DEVICE_TYPE_ID'), 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));135 $objFormParam->addParam( SC_I18n_Ex::t('PARAM_LABEL_DIVISION_ALP'), 'division', STEXT_LEN, 'a', array('MAX_LENGTH_CHECK'));136 $objFormParam->addParam( SC_I18n_Ex::t('PARAM_LABEL_HEADER_DATA'), 'header');137 $objFormParam->addParam( SC_I18n_Ex::t('PARAM_LABEL_FOOTER_DATA'), 'footer');134 $objFormParam->addParam(t('PARAM_LABEL_DEVICE_TYPE_ID'), 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 135 $objFormParam->addParam(t('PARAM_LABEL_DIVISION_ALP'), 'division', STEXT_LEN, 'a', array('MAX_LENGTH_CHECK')); 136 $objFormParam->addParam(t('PARAM_LABEL_HEADER_DATA'), 'header'); 137 $objFormParam->addParam(t('PARAM_LABEL_FOOTER_DATA'), 'footer'); 138 138 } 139 139 … … 148 148 $objErr = new SC_CheckError_Ex($arrParams); 149 149 $objErr->arrErr =& $arrErr; 150 $objErr->doFunc(array( SC_I18n_Ex::t('PARAM_LABEL_DIVISION_ALP'), 'division', STEXT_LEN), array('EXIST_CHECK'));150 $objErr->doFunc(array(t('PARAM_LABEL_DIVISION_ALP'), 'division', STEXT_LEN), array('EXIST_CHECK')); 151 151 return $objErr->arrErr; 152 152 } … … 166 166 if ($tpl_path === false 167 167 || !SC_Helper_FileManager_Ex::sfWriteFile($tpl_path, $contents)) { 168 $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Header_004');168 $this->arrErr['err'] = t('LC_Page_Admin_Design_Header_004'); 169 169 return false; 170 170 }
Note: See TracChangeset
for help on using the changeset viewer.