Changeset 22100 for branches/version-2_12-multilang/data/class/pages/admin/design/LC_Page_Admin_Design_Template.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_Template.php
r22067 r22100 46 46 $this->tpl_subno = 'template'; 47 47 $this->tpl_mainno = 'design'; 48 $this->tpl_maintitle = SC_I18n_Ex::t('TPL_MAINTITLE_003');49 $this->tpl_subtitle = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_002');48 $this->tpl_maintitle = t('TPL_MAINTITLE_003'); 49 $this->tpl_subtitle = t('LC_Page_Admin_Design_Template_002'); 50 50 $this->arrErr = array(); 51 51 $this->arrForm = array(); … … 89 89 if ($this->doRegister($template_code, $this->device_type_id)) { 90 90 $this->tpl_select = $template_code; 91 $this->tpl_onload = "alert('" . SC_I18n_Ex::t('ALERT_004') . "');";91 $this->tpl_onload = "alert('" . t('ALERT_004') . "');"; 92 92 } 93 93 } … … 102 102 if (SC_Utils_Ex::isBlank($this->arrErr)) { 103 103 if ($this->doDelete($template_code, $this->device_type_id)) { 104 $this->tpl_onload = "alert('" . SC_I18n_Ex::t('ALERT_011') . "');";104 $this->tpl_onload = "alert('" . t('ALERT_011') . "');"; 105 105 } 106 106 } … … 149 149 */ 150 150 function lfInitParam(&$objFormParam) { 151 $objFormParam->addParam( SC_I18n_Ex::t('PARAM_LABEL_DEVICE_TYPE_ID'), 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));152 $objFormParam->addParam( SC_I18n_Ex::t('PARAM_LABEL_TPL_CODE'), 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK'));151 $objFormParam->addParam(t('PARAM_LABEL_DEVICE_TYPE_ID'), 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 152 $objFormParam->addParam(t('PARAM_LABEL_TPL_CODE'), 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK')); 153 153 } 154 154 … … 222 222 if ($template_code == $this->getTemplateName($device_type_id) 223 223 || $template_code == $this->getTemplateName($device_type_id, true)) { 224 $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_003');224 $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_003'); 225 225 return false; 226 226 } else { … … 230 230 array($template_code, $device_type_id)); 231 231 232 $error = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_004');232 $error = t('LC_Page_Admin_Design_Template_004'); 233 233 // テンプレート削除 234 234 $templates_dir = SMARTY_TEMPLATES_REALDIR . $template_code. '/'; … … 271 271 $tpl_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 272 272 if (!is_dir($tpl_dir)) { 273 $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_005', array('T_FIELD' => $tpl_dir));273 $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_005', array('T_FIELD' => $tpl_dir)); 274 274 return false; 275 275 } … … 301 301 $to_dir = SMARTY_TEMPLATES_REALDIR . $template_code . '/_packages/'; 302 302 if (SC_Utils_Ex::recursiveMkdir($to_dir) === false) { 303 $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_006');303 $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_006'); 304 304 return false; 305 305 } 306 306 SC_Utils_Ex::sfCopyDir($from_dir, $to_dir); 307 307 if (SC_Helper_FileManager_Ex::downloadArchiveFiles(SMARTY_TEMPLATES_REALDIR . $template_code, $template_code) === false) { 308 $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_007');308 $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_007'); 309 309 return false; 310 310 }
Note: See TracChangeset
for help on using the changeset viewer.