/** * (non-PHPdoc) * @see \tfc\mvc\Widget::run() */ public function run() { $paginator = $this->getPaginator(); if ($paginator === null) { return null; } $urlManager = $this->getUrlManager(); $html = $this->getHtml(); $disabledAttribute = array('class' => $this->disabledClassName); $activeAttribute = array('class' => $this->activeClassName); $prevPageLabel = Text::_('CFG_SYSTEM_GLOBAL_PAGE_PREV'); $nextPageLabel = Text::_('CFG_SYSTEM_GLOBAL_PAGE_NEXT'); $url = $paginator->getUrl(); $pageVar = $paginator->getPageVar(); $pages = $paginator->getPages(); $prevLink = $html->a($prevPageLabel, $urlManager->applyParams($url, array($pageVar => $pages['prev']))); $nextLink = $html->a($nextPageLabel, $urlManager->applyParams($url, array($pageVar => $pages['next']))); $prevElement = $html->tag('li', $pages['curr'] <= 1 ? $disabledAttribute : array(), $prevLink); $nextElement = $html->tag('li', $pages['curr'] >= $pages['end'] ? $disabledAttribute : array(), $nextLink); $listElements = ''; for ($pageNo = $pages['first']; $pageNo <= $pages['last']; $pageNo++) { $listLink = $html->a($pageNo, $urlManager->applyParams($url, array($pageVar => $pageNo))); $listElements .= $html->tag('li', $pageNo === $pages['curr'] ? $activeAttribute : array(), $listLink); } echo $html->tag('ul', array('class' => $this->className), $prevElement . $listElements . $nextElement); echo '<!-- /.pagination -->'; }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { $req = Ap::getRequest(); $submitType = $req->getTrim('submit_type'); $id = $req->getInteger('id'); $columnName = $req->getTrim('column_name'); $opType = $req->getTrim('op_type'); $value = $req->getParam('value'); if ($submitType === 'save') { $mod = Model::getInstance('Members'); $ret = $mod->opAccount($columnName, $opType, $id, $value); $url = $this->applyParams($mod->getLLU(), $ret); $this->redirect($url); exit; } $loginName = $req->getTrim('login_name'); $html = Mvc::getView()->getHtml(); $title = Text::_('MOD_MEMBER_MEMBERS_OP_' . $columnName . '_' . $opType) . ': ' . $loginName . ' , ' . $value; $url = Mvc::getView()->getUrlManager()->getUrl('ajaxaccount', Mvc::$controller, Mvc::$module, array('id' => $id, 'column_name' => $columnName, 'op_type' => $opType, 'submit_type' => 'save', 'value' => '')); $body = $html->input('hidden', 'url', $url); $body .= $html->openTag('div', array('class' => 'form-group')); $body .= $html->tag('label', array('class' => 'col-lg-2 control-label'), Text::_('MOD_MEMBER_MEMBERS_OP_' . $opType)); $body .= $html->tag('div', array('class' => 'col-lg-4'), $html->input('text', 'value', '', array('class' => 'form-control input-sm'))); if ($opType === 'reduce' || $opType === 'reduce_freeze' || $opType === 'freeze') { $body .= $html->tag('span', array('class' => 'control-label'), Text::_('MOD_MEMBER_MEMBERS_OP_REDUCE_HINT')); } $body .= $html->closeTag('div'); $this->display(array('title' => $title, 'body' => $body)); }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $urlManager = Mvc::getView()->getUrlManager(); $nowTime = date('Y-m-d H:i:s'); $output = array('advert_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_ID_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_ID_HINT')), 'advert_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_NAME_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_NAME_HINT'), 'required' => true), 'type_name' => array('__tid__' => 'main', 'type' => 'string', 'label' => Text::_('MOD_ADVERT_ADVERT_TYPES_TYPE_NAME_LABEL')), 'type_key' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_TYPE_KEY_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_TYPE_KEY_HINT'), 'readonly' => true), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_ADVERT_ADVERTS_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_DESCRIPTION_HINT')), 'is_published' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_ADVERT_ADVERTS_IS_PUBLISHED_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_IS_PUBLISHED_HINT'), 'options' => DataAdverts::getIsPublishedEnum(), 'value' => DataAdverts::IS_PUBLISHED_Y), 'dt_publish_up' => array('__tid__' => 'main', 'type' => 'datetimepicker', 'label' => Text::_('MOD_ADVERT_ADVERTS_DT_PUBLISH_UP_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_DT_PUBLISH_UP_HINT'), 'value' => $nowTime), 'dt_publish_down' => array('__tid__' => 'main', 'type' => 'datetimepicker', 'label' => Text::_('MOD_ADVERT_ADVERTS_DT_PUBLISH_DOWN_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_DT_PUBLISH_DOWN_HINT')), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_SORT_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_SORT_HINT'), 'required' => true, 'value' => 1000), 'show_type' => array('__tid__' => 'advanced', 'type' => 'radio', 'label' => Text::_('MOD_ADVERT_ADVERTS_SHOW_TYPE_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_SHOW_TYPE_HINT'), 'options' => DataAdverts::getShowTypeEnum(), 'value' => DataAdverts::SHOW_TYPE_IMAGE), 'show_code' => array('__tid__' => 'advanced', 'type' => 'textarea', 'label' => Text::_('MOD_ADVERT_ADVERTS_SHOW_CODE_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_SHOW_CODE_HINT'), 'required' => true, 'rows' => 16), 'title' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_TITLE_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_TITLE_HINT'), 'required' => true), 'advert_url' => array('__tid__' => 'advanced', 'type' => 'textarea', 'label' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_URL_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_URL_HINT'), 'required' => true, 'rows' => 3), 'advert_src' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_SRC_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_SRC_HINT'), 'required' => true), 'advert_src_file' => array('__tid__' => 'advanced', 'type' => 'string', 'label' => '', 'hint' => '', 'value' => '<div id="advert_src_file" url="' . $urlManager->getUrl('ajaxupload', '', '') . '" name="upload">' . Text::_('CFG_SYSTEM_GLOBAL_UPLOAD') . '</div>'), 'advert_src2' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_SRC2_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ADVERT_SRC2_HINT')), 'advert_src2_file' => array('__tid__' => 'advanced', 'type' => 'string', 'label' => '', 'hint' => '', 'value' => '<div id="advert_src2_file" url="' . $urlManager->getUrl('ajaxupload', '', '') . '" name="upload">' . Text::_('CFG_SYSTEM_GLOBAL_UPLOAD') . '</div>'), 'attr_alt' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ATTR_ALT_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ATTR_ALT_HINT'), 'required' => true), 'attr_width' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ATTR_WIDTH_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ATTR_WIDTH_HINT'), 'value' => 0), 'attr_height' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ATTR_HEIGHT_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ATTR_HEIGHT_HINT'), 'value' => 0), 'attr_fontsize' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ATTR_FONTSIZE_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ATTR_FONTSIZE_HINT')), 'attr_target' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_ATTR_TARGET_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_ATTR_TARGET_HINT'), 'value' => '_blank'), 'dt_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_ADVERT_ADVERTS_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_ADVERT_ADVERTS_DT_CREATED_HINT'), 'disabled' => true)); return $output; }
/** * 通过主键,编辑一条记录 * @param integer $id * @param array $params * @return array */ public function modifyByPk($id, array $params = array()) { $ret = $this->callModifyMethod($this->_service, 'modifyByPk', $id, $params); if ($ret['err_no'] === ErrorNo::SUCCESS_NUM) { $ret['err_msg'] = Text::_('MOD_MEMBER_SOCIAL_MODIFY_SUCCESS_HINT'); } return $ret; }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { Text::_('MOD_MEMBER__'); $httpReferer = PageHelper::getHttpReferer(); if ($httpReferer === '' || strpos($httpReferer, '?r=member/show') !== false) { $httpReferer = 'index.php'; } $this->assign('http_referer', $httpReferer); $this->render(); }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { $errNo = ErrorNo::SUCCESS_NUM; $errMsg = Text::_('MOD_SYSTEM_SYSTEM_TOOLS_CACHECLEAR_SUCCESS'); if (!Tools::cacheclear()) { $errNo = ErrorNo::ERROR_CACHE_DELETE; $errMsg = Text::_('MOD_SYSTEM_SYSTEM_TOOLS_CACHECLEAR_FAILED'); } $data = array('err_no' => $errNo, 'err_msg' => $errMsg); $this->render($data); }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { $req = Ap::getRequest(); Text::_('MOD_MEMBER__'); $ciphertext = $req->getTrim('cipher'); $mod = Model::getInstance('Repwd', 'member'); $ret = $mod->checkCiphertext($ciphertext); if ($ret['err_no'] === DataRepwd::SUCCESS_REPWD_NUM) { $this->assign('login_name', $ret['data']['login_name']); $this->assign('cipher', $ciphertext); } $this->render($ret); }
/** * 获取美化版“是|否”选择项表单元素 * @param array $params * @return string */ public static function getSwitch(array $params = array()) { $on = isset($params['on']) ? $params['on'] : 'y'; $off = isset($params['off']) ? $params['off'] : 'n'; $id = isset($params['id']) ? (int) $params['id'] : 0; $name = isset($params['name']) ? $params['name'] : ''; $value = isset($params['value']) ? $params['value'] : $off; $href = isset($params['href']) ? $params['href'] : ''; $attributes = array('class' => 'switch', 'data-on-label' => Text::_('CFG_SYSTEM_GLOBAL_YES'), 'data-off-label' => Text::_('CFG_SYSTEM_GLOBAL_NO'), 'tbl_switch' => 'yes', 'id' => 'label_switch_' . $name . '_' . $id, 'name' => 'label_switch'); if ($href !== '') { $attributes['href'] = $href; } return Mvc::getView()->getHtml()->tag('div', $attributes, Mvc::getView()->getHtml()->checkbox($name, $value, $value === 'y')); }
/** * (non-PHPdoc) * @see \tfc\mvc\form\FormBuilder::_init() */ protected function _init() { // 初始化表单Action if (isset($this->_tplVars['action'])) { $this->action = $this->_tplVars['action']; unset($this->_tplVars['action']); } // 初始化表单元素管理类 $this->initElementsObject(); // 初始化分类标签 $this->_tabs['main']['prompt'] = Text::_('CFG_SYSTEM_GLOBAL_VIEWTAB_MAIN_PROMPT'); $this->setTabs($this->elements_object->getViewTabsRender()); parent::_init(); }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { Text::_('MOD_MEMBER__'); $mod = Model::getInstance('Social', 'member'); $row = $mod->findByPk(Identity::getUserId()); if (is_array($row) && isset($row['birth_ymd'])) { $row['birth_y'] = substr($row['birth_ymd'], 0, 4); $row['birth_m'] = substr($row['birth_ymd'], 5, 2); $row['birth_d'] = substr($row['birth_ymd'], 8, 2); } //\tfc\saf\debug_dump($row); $this->assign('sex_enum', DataSocial::getSexEnum()); $this->assign('interests_enum', DataSocial::getInterestsEnum()); $this->render($row); }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $urlManager = Mvc::getView()->getUrlManager(); $nowTime = date('Y-m-d H:i:s'); $output = array('post_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_POSTS_POSTS_POST_ID_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_POST_ID_HINT')), 'title' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_TITLE_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_TITLE_HINT'), 'required' => true), 'alias' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_ALIAS_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_ALIAS_HINT')), 'picture' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_PICTURE_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_PICTURE_HINT')), 'picture_file' => array('__tid__' => 'main', 'type' => 'string', 'label' => '', 'hint' => Text::_('MOD_POSTS_POSTS_PICTURE_HINT'), 'value' => '<div id="picture_file" url="' . $urlManager->getUrl('ajaxupload', '', '', array('from' => 'picture')) . '" name="upload">' . Text::_('CFG_SYSTEM_GLOBAL_UPLOAD') . '</div>'), 'content' => array('__tid__' => 'main', 'type' => 'ckeditor', 'id' => 'content', 'height' => '960px', 'toolbar' => 'post', 'url' => $urlManager->getUrl('ajaxupload', '', '', array('from' => 'ckeditor'))), 'keywords' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_KEYWORDS_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_KEYWORDS_HINT')), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_POSTS_POSTS_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_DESCRIPTION_HINT')), 'sort' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_SORT_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_SORT_HINT'), 'required' => true, 'value' => 10000), 'category_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_POSTS_POSTS_CATEGORY_ID_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_CATEGORY_ID_HINT')), 'category_name' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_POSTS_POSTS_CATEGORY_NAME_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_CATEGORY_NAME_HINT')), 'module_id' => array('__tid__' => 'profile', 'type' => 'select', 'label' => Text::_('MOD_POSTS_POSTS_MODULE_ID_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_MODULE_ID_HINT')), 'password' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_PASSWORD_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_PASSWORD_HINT')), 'is_head' => array('__tid__' => 'advanced', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POSTS_IS_HEAD_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_IS_HEAD_HINT'), 'options' => DataPosts::getIsHeadEnum(), 'value' => DataPosts::IS_HEAD_N), 'is_recommend' => array('__tid__' => 'advanced', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POSTS_IS_RECOMMEND_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_IS_RECOMMEND_HINT'), 'options' => DataPosts::getIsRecommendEnum(), 'value' => DataPosts::IS_RECOMMEND_N), 'is_jump' => array('__tid__' => 'advanced', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POSTS_IS_JUMP_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_IS_JUMP_HINT'), 'options' => DataPosts::getIsJumpEnum(), 'value' => DataPosts::IS_JUMP_N), 'jump_url' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_JUMP_URL_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_JUMP_URL_HINT'), 'required' => true), 'is_published' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POSTS_IS_PUBLISHED_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_IS_PUBLISHED_HINT'), 'options' => DataPosts::getIsPublishedEnum(), 'value' => DataPosts::IS_PUBLISHED_Y), 'dt_publish_up' => array('__tid__' => 'advanced', 'type' => 'datetimepicker', 'label' => Text::_('MOD_POSTS_POSTS_DT_PUBLISH_UP_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_DT_PUBLISH_UP_HINT'), 'value' => $nowTime), 'dt_publish_down' => array('__tid__' => 'advanced', 'type' => 'datetimepicker', 'label' => Text::_('MOD_POSTS_POSTS_DT_PUBLISH_DOWN_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_DT_PUBLISH_DOWN_HINT')), 'comment_status' => array('__tid__' => 'advanced', 'type' => 'radio', 'label' => Text::_('MOD_POSTS_POSTS_COMMENT_STATUS_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_COMMENT_STATUS_HINT'), 'options' => DataPosts::getCommentStatusEnum(), 'value' => DataPosts::COMMENT_STATUS_PUBLISH), 'allow_other_modify' => array('__tid__' => 'advanced', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POSTS_ALLOW_OTHER_MODIFY_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_ALLOW_OTHER_MODIFY_HINT'), 'options' => DataPosts::getAllowOtherModifyEnum(), 'value' => DataPosts::ALLOW_OTHER_MODIFY_Y), 'hits' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_HITS_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_HITS_HINT'), 'value' => 0), 'praise_count' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_PRAISE_COUNT_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_PRAISE_COUNT_HINT'), 'value' => 0), 'comment_count' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_COMMENT_COUNT_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_COMMENT_COUNT_HINT'), 'value' => 0), 'creator_id' => array('__tid__' => 'system', 'type' => 'hidden', 'label' => Text::_('MOD_POSTS_POSTS_CREATOR_ID_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_CREATOR_ID_HINT')), 'creator_name' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_CREATOR_NAME_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_CREATOR_NAME_HINT'), 'disabled' => true), 'last_modifier_id' => array('__tid__' => 'system', 'type' => 'hidden', 'label' => Text::_('MOD_POSTS_POSTS_LAST_MODIFIER_ID_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_LAST_MODIFIER_ID_HINT')), 'last_modifier_name' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_LAST_MODIFIER_NAME_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_LAST_MODIFIER_NAME_HINT'), 'disabled' => true), 'dt_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_DT_CREATED_HINT'), 'disabled' => true), 'dt_last_modified' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_DT_LAST_MODIFIED_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_DT_LAST_MODIFIED_HINT'), 'disabled' => true), 'ip_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_IP_CREATED_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_IP_CREATED_HINT'), 'disabled' => true), 'ip_last_modified' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_IP_LAST_MODIFIED_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_IP_LAST_MODIFIED_HINT'), 'disabled' => true), 'trash' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POSTS_TRASH_LABEL'), 'hint' => Text::_('MOD_POSTS_POSTS_TRASH_HINT'), 'options' => DataPosts::getTrashEnum(), 'value' => DataPosts::TRASH_N), 'order' => array('type' => 'select', 'label' => Text::_('CFG_SYSTEM_GLOBAL_ORDER'), 'options' => array('hits DESC' => Text::_('MOD_POSTS_POSTS_HITS_LABEL'), 'praise_count DESC' => Text::_('MOD_POSTS_POSTS_PRAISE_COUNT_LABEL'), 'comment_count DESC' => Text::_('MOD_POSTS_POSTS_COMMENT_COUNT_LABEL'), 'dt_created DESC' => Text::_('MOD_POSTS_POSTS_DT_CREATED_LABEL'), 'sort' => Text::_('MOD_POSTS_POSTS_SORT_LABEL'))), 'dt_created_ge' => array('type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_DT_CREATED_GE_LABEL')), 'dt_created_le' => array('type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_DT_CREATED_LE_LABEL')), 'dt_last_modified_ge' => array('type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_DT_LAST_MODIFIED_GE_LABEL')), 'dt_last_modified_le' => array('type' => 'text', 'label' => Text::_('MOD_POSTS_POSTS_DT_LAST_MODIFIED_LE_LABEL'))); if (Mvc::$action === 'modify' || Mvc::$action === 'view') { $id = Ap::getRequest()->getInteger('id'); if ($id > 0) { $fields = $this->getModuleFieldsByPostId($id); foreach ($fields as $name => $field) { $fields[$name]['__tid__'] = 'profile'; $fields[$name]['type'] = 'textarea'; } $output = array_merge($output, $fields); } } return $output; }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { $req = Ap::getRequest(); $pid = $req->getInteger('pid'); $def = $req->getInteger('def'); $srv = Service::getInstance('Regions', 'system'); $data = $srv->findPairs($pid); if ($data && $def === 1) { $id = array_shift(array_keys(array_slice($data, 0, 1, true))); $type = $srv->getRegionTypeByRegionId($id); $hint = $srv->getRegionTypeLangByRegionType($type); if ($hint === '') { $hint = Text::_('CFG_SYSTEM_GLOBAL_SELECT_HINT'); } $default = array(0 => '--' . $hint . '--'); $data = $default + $data; } $this->display($data); }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('member_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_ID_HINT')), 'login_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_HINT'), 'required' => true), 'login_type' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_HINT'), 'options' => DataPortal::getLoginTypeEnum(), 'value' => DataPortal::LOGIN_TYPE_MAIL), 'password' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_PASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_PASSWORD_HINT'), 'required' => true), 'repassword' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPASSWORD_HINT'), 'required' => true), 'salt' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_SALT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_SALT_HINT')), 'member_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_NAME_HINT')), 'member_mail' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_MAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_MAIL_HINT')), 'member_phone' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_PHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_MEMBER_PHONE_HINT')), 'relation_member_id' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_RELATION_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_RELATION_MEMBER_ID_HINT')), 'dt_registered' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_REGISTERED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_REGISTERED_HINT'), 'disabled' => true), 'dt_last_login' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_LOGIN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_LOGIN_HINT'), 'disabled' => true), 'dt_last_repwd' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_REPWD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_DT_LAST_REPWD_HINT'), 'disabled' => true), 'ip_registered' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_REGISTERED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_REGISTERED_HINT'), 'disabled' => true), 'ip_last_login' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_LOGIN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_LOGIN_HINT'), 'disabled' => true), 'ip_last_repwd' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_REPWD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_IP_LAST_REPWD_HINT'), 'disabled' => true), 'login_count' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_COUNT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_COUNT_HINT'), 'disabled' => true), 'repwd_count' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPWD_COUNT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_REPWD_COUNT_HINT'), 'disabled' => true), 'valid_mail' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_MAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_MAIL_HINT'), 'options' => DataPortal::getValidMailEnum(), 'value' => DataPortal::VALID_MAIL_N), 'valid_phone' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_PHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_VALID_PHONE_HINT'), 'options' => DataPortal::getValidPhoneEnum(), 'value' => DataPortal::VALID_PHONE_N), 'forbidden' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_FORBIDDEN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_FORBIDDEN_HINT'), 'options' => DataPortal::getForbiddenEnum(), 'value' => DataPortal::FORBIDDEN_N), 'trash' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_TRASH_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_TRASH_HINT'), 'options' => DataPortal::getTrashEnum(), 'value' => DataPortal::TRASH_N), 'dt_registered_ge' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_REGISTERED_GE_LABEL')), 'dt_registered_le' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_REGISTERED_LE_LABEL')), 'dt_last_login_ge' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_LAST_LOGIN_GE_LABEL')), 'dt_last_login_le' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_DT_LAST_LOGIN_LE_LABEL')), 'login_count_ge' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_LOGIN_COUNT_GE_LABEL')), 'login_count_le' => array('type' => 'text', 'label' => Text::_('MOD_USERS_USERS_LOGIN_COUNT_LE_LABEL'))); return $output; }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { Text::_('MOD_MEMBER__'); $this->render(); }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $urlManager = Mvc::getView()->getUrlManager(); $output = array('topic_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_TOPIC_TOPIC_TOPIC_ID_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_TOPIC_ID_HINT')), 'topic_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_TOPIC_NAME_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_TOPIC_NAME_HINT'), 'required' => true), 'topic_key' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_TOPIC_KEY_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_TOPIC_KEY_HINT'), 'required' => true), 'cover' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_COVER_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_COVER_HINT'), 'required' => true), 'cover_file' => array('__tid__' => 'main', 'type' => 'string', 'label' => '', 'hint' => '', 'value' => '<div id="cover_file" url="' . $urlManager->getUrl('ajaxupload', '', '') . '" name="upload">' . Text::_('CFG_SYSTEM_GLOBAL_UPLOAD') . '</div>'), 'meta_title' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_META_TITLE_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_META_TITLE_HINT'), 'required' => true), 'meta_keywords' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_META_KEYWORDS_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_META_KEYWORDS_HINT'), 'required' => true), 'meta_description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_TOPIC_TOPIC_META_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_META_DESCRIPTION_HINT'), 'required' => true), 'html_style' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_TOPIC_TOPIC_HTML_STYLE_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_HTML_STYLE_HINT')), 'html_script' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_TOPIC_TOPIC_HTML_SCRIPT_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_HTML_SCRIPT_HINT')), 'html_head' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_TOPIC_TOPIC_HTML_HEAD_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_HTML_HEAD_HINT')), 'html_body' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_TOPIC_TOPIC_HTML_BODY_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_HTML_BODY_HINT'), 'required' => true, 'rows' => 20), 'is_published' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_TOPIC_TOPIC_IS_PUBLISHED_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_IS_PUBLISHED_HINT'), 'options' => DataTopic::getIsPublishedEnum(), 'value' => DataTopic::IS_PUBLISHED_Y), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_SORT_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_SORT_HINT'), 'required' => true), 'use_header' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_TOPIC_TOPIC_USE_HEADER_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_USE_HEADER_HINT'), 'options' => DataTopic::getUseHeaderEnum(), 'value' => DataTopic::USE_HEADER_Y), 'use_footer' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_TOPIC_TOPIC_USE_FOOTER_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_USE_FOOTER_HINT'), 'options' => DataTopic::getUseFooterEnum(), 'value' => DataTopic::USE_FOOTER_Y), 'dt_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_TOPIC_TOPIC_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_TOPIC_TOPIC_DT_CREATED_HINT'), 'disabled' => true)); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('type_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBER_TYPES_TYPE_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_TYPES_TYPE_ID_HINT')), 'type_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_TYPES_TYPE_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_TYPES_TYPE_NAME_HINT'), 'required' => true), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_TYPES_SORT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_TYPES_SORT_HINT'), 'required' => true), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MEMBER_MEMBER_TYPES_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_TYPES_DESCRIPTION_HINT'))); return $output; }
/** * (non-PHPdoc) * @see \views\bootstrap\components\form\InputElement::_init() */ protected function _init() { $this->swOn = Text::_('CFG_SYSTEM_GLOBAL_YES'); $this->swOff = Text::_('CFG_SYSTEM_GLOBAL_NO'); parent::_init(); }
/** * 初始化表单元素 * @return \views\bootstrap\widgets\SearchBuilder */ public function initElements() { $elements = $this->elements_object->getElementsRender(); if ($elements === array()) { return $this; } $extends = isset($this->_tplVars['elements']) ? (array) $this->_tplVars['elements'] : array(); $columns = isset($this->_tplVars['columns']) ? (array) $this->_tplVars['columns'] : array(); if ($columns === array()) { return $this; } $_elements = array(); foreach ($columns as $columnName) { if (!isset($elements[$columnName])) { continue; } $element = $elements[$columnName]; if (!is_array($element)) { continue; } if (isset($extends[$columnName]) && is_array($extends[$columnName])) { $element = array_merge($element, $extends[$columnName]); } $object = isset($element['__object__']) ? $element['__object__'] : ''; $type = isset($element['type']) ? $element['type'] : 'text'; if ($object === '' && isset(self::$_typeObjectMap[$type])) { $object = self::$_typeObjectMap[$type]; } $placeholder = isset($element['placeholder']) ? $element['placeholder'] : (isset($element['label']) ? $element['label'] : ''); $options = isset($element['options']) ? (array) $element['options'] : array(); if ($options !== array() && $placeholder !== '') { $options = array('' => '--' . $placeholder . '--') + $options; } $_elements[$columnName] = array('type' => $type, '__object__' => $object, 'placeholder' => $placeholder, 'options' => $options); } // 设置查询按钮 $_elements['_button_search_'] = array('type' => 'button', '__object__' => 'views\\bootstrap\\components\\form\\ButtonElement', 'label' => Text::_('CFG_SYSTEM_GLOBAL_SEARCH'), 'glyphicon' => 'search', 'class' => 'btn btn-primary btn-block'); parent::setElements($_elements); }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('module_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_POSTS_POST_MODULES_MODULE_ID_LABEL'), 'hint' => Text::_('MOD_POSTS_POST_MODULES_MODULE_ID_HINT')), 'module_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_POSTS_POST_MODULES_MODULE_NAME_LABEL'), 'hint' => Text::_('MOD_POSTS_POST_MODULES_MODULE_NAME_HINT'), 'required' => true), 'fields' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_POSTS_POST_MODULES_FIELDS_LABEL'), 'hint' => Text::_('MOD_POSTS_POST_MODULES_FIELDS_HINT'), 'rows' => 15), 'forbidden' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_POSTS_POST_MODULES_FORBIDDEN_LABEL'), 'hint' => Text::_('MOD_POSTS_POST_MODULES_FORBIDDEN_HINT'), 'options' => DataModules::getForbiddenEnum(), 'value' => DataModules::FORBIDDEN_N), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_POSTS_POST_MODULES_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_POSTS_POST_MODULES_DESCRIPTION_HINT'))); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('address_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDRESS_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDRESS_ID_HINT')), 'address_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDRESS_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDRESS_NAME_HINT'), 'disable' => true), 'member_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_MEMBER_ID_HINT')), 'consignee' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_CONSIGNEE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_CONSIGNEE_HINT'), 'required' => true), 'mobiphone' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_MOBIPHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_MOBIPHONE_HINT')), 'telephone' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_TELEPHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_TELEPHONE_HINT')), 'email' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_EMAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_EMAIL_HINT')), 'addr_country_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_COUNTRY_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_COUNTRY_ID_HINT')), 'addr_country' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_COUNTRY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_COUNTRY_HINT')), 'addr_province_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_PROVINCE_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_PROVINCE_ID_HINT')), 'addr_province' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_PROVINCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_PROVINCE_HINT')), 'addr_city_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_CITY_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_CITY_ID_HINT')), 'addr_city' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_CITY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_CITY_HINT')), 'addr_district_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_DISTRICT_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_DISTRICT_ID_HINT')), 'addr_district' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_DISTRICT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_DISTRICT_HINT')), 'addr_street' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_STREET_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_STREET_HINT'), 'required' => true), 'addr_zipcode' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_ZIPCODE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_ADDR_ZIPCODE_HINT')), 'when' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_WHEN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_WHEN_HINT'), 'options' => DataAddresses::getWhenEnum(), 'value' => DataAddresses::WHEN_ANYONE), 'is_default' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_IS_DEFAULT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_IS_DEFAULT_HINT'), 'options' => DataAddresses::getIsDefaultEnum(), 'value' => DataAddresses::IS_DEFAULT_Y), 'dt_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_DT_CREATED_HINT'), 'disabled' => true), 'dt_last_modified' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_DT_LAST_MODIFIED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_ADDRESSES_DT_LAST_MODIFIED_HINT'), 'disabled' => true)); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('member_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBERS_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_MEMBER_ID_HINT')), 'login_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_NAME_HINT'), 'required' => true), 'login_type' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_PORTAL_LOGIN_TYPE_HINT'), 'options' => DataPortal::getLoginTypeEnum(), 'value' => DataPortal::LOGIN_TYPE_MAIL), 'p_password' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBERS_P_PASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_P_PASSWORD_HINT'), 'required' => true), 'p_repassword' => array('__tid__' => 'main', 'type' => 'password', 'label' => Text::_('MOD_MEMBER_MEMBERS_P_REPASSWORD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_P_REPASSWORD_HINT'), 'required' => true), 'type_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBERS_TYPE_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_TYPE_ID_HINT')), 'rank_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBERS_RANK_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_RANK_ID_HINT')), 'experience' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_EXPERIENCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_EXPERIENCE_HINT')), 'balance' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_HINT')), 'balance_freeze' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_FREEZE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_BALANCE_FREEZE_HINT')), 'points' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_POINTS_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_POINTS_HINT')), 'points_freeze' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_POINTS_FREEZE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_POINTS_FREEZE_HINT')), 'consum' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_CONSUM_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_CONSUM_HINT')), 'orders' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_ORDERS_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_ORDERS_HINT')), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MEMBER_MEMBERS_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_DESCRIPTION_HINT')), 'dt_last_rerank' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_DT_LAST_RERANK_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_DT_LAST_RERANK_HINT'), 'disabled' => true), 'dt_created' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBERS_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBERS_DT_CREATED_HINT'), 'disabled' => true)); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('validator_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_VALIDATOR_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_VALIDATOR_ID_HINT')), 'validator_name' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_VALIDATOR_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_VALIDATOR_NAME_HINT'), 'options' => DataValidators::getValidatorNameEnum(), 'value' => 'Integer'), 'field_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_FIELD_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_FIELD_ID_HINT')), 'field_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_NAME_LABEL'), 'readonly' => true), 'options' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_OPTIONS_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_OPTIONS_HINT')), 'option_category' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_OPTION_CATEGORY_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_OPTION_CATEGORY_HINT'), 'options' => DataValidators::getOptionCategoryEnum(), 'value' => DataValidators::OPTION_CATEGORY_INTEGER), 'message' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_MESSAGE_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_MESSAGE_HINT'), 'value' => ''), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_SORT_HINT'), 'required' => true), 'when' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_WHEN_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELD_VALIDATORS_WHEN_HINT'), 'options' => DataValidators::getWhenEnum(), 'value' => DataValidators::WHEN_ALL)); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('field_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_ID_HINT')), 'field_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FIELD_NAME_HINT'), 'required' => true), 'column_length' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_LENGTH_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_LENGTH_HINT')), 'column_auto_increment' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_AUTO_INCREMENT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_AUTO_INCREMENT_HINT'), 'options' => DataFields::getColumnAutoIncrementEnum(), 'value' => DataFields::COLUMN_AUTO_INCREMENT_N), 'column_unsigned' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_UNSIGNED_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_UNSIGNED_HINT'), 'options' => DataFields::getColumnUnsignedEnum(), 'value' => DataFields::COLUMN_UNSIGNED_N), 'column_comment' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_COMMENT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_COLUMN_COMMENT_HINT'), 'required' => true), 'builder_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_BUILDER_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_BUILDER_ID_HINT')), 'builder_name' => array('__tid__' => 'main', 'type' => 'string', 'label' => Text::_('MOD_BUILDER_BUILDERS_BUILDER_NAME_LABEL')), 'group_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_GROUP_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_GROUP_ID_HINT')), 'type_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_TYPE_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_TYPE_ID_HINT')), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_SORT_HINT'), 'required' => true), 'html_label' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_HTML_LABEL_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_HTML_LABEL_HINT'), 'required' => true), 'form_prompt' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_HINT')), 'form_prompt_examples' => array('__tid__' => 'view', 'type' => 'select', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_EXAMPLES_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_PROMPT_EXAMPLES_HINT'), 'options' => DataFields::getFormPromptExamplesEnum()), 'form_required' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_REQUIRED_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_REQUIRED_HINT'), 'options' => DataFields::getFormRequiredEnum(), 'value' => DataFields::FORM_REQUIRED_Y), 'form_modifiable' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFIABLE_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFIABLE_HINT'), 'options' => DataFields::getFormModifiableEnum(), 'value' => DataFields::FORM_MODIFIABLE_N), 'index_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SHOW_HINT'), 'options' => DataFields::getIndexShowEnum(), 'value' => DataFields::INDEX_SHOW_N), 'index_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_INDEX_SORT_HINT'), 'value' => 0, 'required' => true), 'form_create_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SHOW_HINT'), 'options' => DataFields::getFormCreateShowEnum(), 'value' => DataFields::FORM_CREATE_SHOW_N), 'form_create_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_CREATE_SORT_HINT'), 'value' => 0, 'required' => true), 'form_modify_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SHOW_HINT'), 'options' => DataFields::getFormModifyShowEnum(), 'value' => DataFields::FORM_MODIFY_SHOW_N), 'form_modify_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_MODIFY_SORT_HINT'), 'value' => 0, 'required' => true), 'form_search_show' => array('__tid__' => 'view', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SHOW_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SHOW_HINT'), 'options' => DataFields::getFormSearchShowEnum(), 'value' => DataFields::FORM_SEARCH_SHOW_N), 'form_search_sort' => array('__tid__' => 'view', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SORT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDER_FIELDS_FORM_SEARCH_SORT_HINT'), 'value' => 0, 'required' => true), 'builder_field_validators' => array('label' => Text::_('MOD_BUILDER_URLS_VALIDATORS_INDEX'))); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $urlManager = Mvc::getView()->getUrlManager(); $output = array('member_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_MEMBER_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_MEMBER_ID_HINT')), 'login_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LOGIN_NAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LOGIN_NAME_HINT'), 'required' => true), 'realname' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_REALNAME_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_REALNAME_HINT')), 'sex' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_SEX_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_SEX_HINT'), 'options' => DataSocial::getSexEnum(), 'value' => DataSocial::SEX_MALE), 'birth_ymd' => array('__tid__' => 'main', 'type' => 'datetimepicker', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_BIRTH_YMD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_BIRTH_YMD_HINT'), 'format' => 'date'), 'is_pub_birth' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_BIRTH_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_BIRTH_HINT'), 'options' => DataSocial::getIsPubBirthEnum(), 'value' => DataSocial::IS_PUB_BIRTH_Y), 'birth_md' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_BIRTH_MD_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_BIRTH_MD_HINT')), 'anniversary' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ANNIVERSARY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ANNIVERSARY_HINT')), 'is_pub_anniversary' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_ANNIVERSARY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_ANNIVERSARY_HINT'), 'options' => DataSocial::getIsPubAnniversaryEnum(), 'value' => DataSocial::IS_PUB_ANNIVERSARY_Y), 'head_portrait' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_HEAD_PORTRAIT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_HEAD_PORTRAIT_HINT')), 'head_portrait_file' => array('__tid__' => 'main', 'type' => 'string', 'label' => '', 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_HEAD_PORTRAIT_HINT'), 'value' => '<div id="head_portrait_file" url="' . $urlManager->getUrl('ajaxupload', '', '', array('from' => 'picture')) . '" name="upload">' . Text::_('CFG_SYSTEM_GLOBAL_UPLOAD') . '</div>'), 'introduce' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_INTRODUCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_INTRODUCE_HINT')), 'interests' => array('__tid__' => 'main', 'type' => 'checkbox', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_INTERESTS_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_INTERESTS_HINT'), 'options' => DataSocial::getInterestsEnum()), 'is_pub_interests' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_INTERESTS_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_INTERESTS_HINT'), 'options' => DataSocial::getIsPubInterestsEnum(), 'value' => DataSocial::IS_PUB_INTERESTS_Y), 'telephone' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_TELEPHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_TELEPHONE_HINT')), 'mobiphone' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_MOBIPHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_MOBIPHONE_HINT')), 'is_pub_mobiphone' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_MOBIPHONE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_MOBIPHONE_HINT'), 'options' => DataSocial::getIsPubMobiphoneEnum(), 'value' => DataSocial::IS_PUB_MOBIPHONE_Y), 'email' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_EMAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_EMAIL_HINT')), 'is_pub_email' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_EMAIL_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_IS_PUB_EMAIL_HINT'), 'options' => DataSocial::getIsPubEmailEnum(), 'value' => DataSocial::IS_PUB_EMAIL_Y), 'live_country_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_COUNTRY_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_COUNTRY_ID_HINT')), 'live_province_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_PROVINCE_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_PROVINCE_ID_HINT')), 'live_city_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_CITY_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_CITY_ID_HINT')), 'live_district_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_DISTRICT_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_DISTRICT_ID_HINT')), 'live_country' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_COUNTRY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_COUNTRY_HINT')), 'live_province' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_PROVINCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_PROVINCE_HINT')), 'live_city' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_CITY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_CITY_HINT')), 'live_district' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_DISTRICT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_DISTRICT_HINT')), 'live_street' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_STREET_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_STREET_HINT')), 'live_zipcode' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_ZIPCODE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_LIVE_ZIPCODE_HINT')), 'address_country_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_COUNTRY_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_COUNTRY_ID_HINT')), 'address_province_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_PROVINCE_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_PROVINCE_ID_HINT')), 'address_city_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_CITY_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_CITY_ID_HINT')), 'address_district_id' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_DISTRICT_ID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_DISTRICT_ID_HINT')), 'address_country' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_COUNTRY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_COUNTRY_HINT')), 'address_province' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_PROVINCE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_PROVINCE_HINT')), 'address_city' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_CITY_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_CITY_HINT')), 'address_district' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_DISTRICT_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_DISTRICT_HINT')), 'address_street' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_STREET_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_STREET_HINT')), 'address_zipcode' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_ZIPCODE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_ADDRESS_ZIPCODE_HINT')), 'qq' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_QQ_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_QQ_HINT')), 'msn' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_MSN_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_MSN_HINT')), 'skypeid' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_SKYPEID_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_SKYPEID_HINT')), 'wangwang' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_WANGWANG_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_WANGWANG_HINT')), 'weibo' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_WEIBO_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_WEIBO_HINT')), 'blog' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_BLOG_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_BLOG_HINT')), 'website' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_WEBSITE_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_WEBSITE_HINT')), 'fax' => array('__tid__' => 'contact', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_FAX_LABEL'), 'hint' => Text::_('MOD_MEMBER_MEMBER_SOCIAL_FAX_HINT')), 'addresses' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MEMBER_URLS_ADDRESSES_INDEX'), 'hint' => Text::_('MOD_MEMBER_URLS_ADDRESSES_CREATE'))); return $output; }
/** * 获取Icon标签 * @param array $config * @return string */ public function getIcon(array $config) { $label = isset($config['label']) ? $config['label'] : ''; return $this->getHtml()->tag('span', array('class' => 'glyphicon glyphicon-' . ComponentsConstant::GLYPHICON_CREATE . ' pull-right', 'data-toggle' => 'tooltip', 'data-placement' => 'left', 'data-original-title' => Text::_($label), 'onclick' => 'return ' . ComponentsConstant::JSFUNC_HREF . '(\'' . $this->getUrl($config) . '\')'), ''); }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('type_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_ID_LABEL'), 'hint' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_ID_HINT')), 'type_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_NAME_LABEL'), 'hint' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_NAME_HINT'), 'required' => true), 'type_key' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_KEY_LABEL'), 'hint' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_KEY_HINT'), 'required' => true), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MENUS_MENU_TYPES_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_MENUS_MENU_TYPES_DESCRIPTION_HINT')), 'menu_count' => array('label' => Text::_('MOD_MENUS_MENU_TYPES_MENU_COUNT_LABEL')), 'menus' => array('label' => Text::_('MOD_MENUS_URLS_MENUS_INDEX'))); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('site_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SITE_NAME_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SITE_NAME_HINT'), 'required' => true), 'site_url' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SITE_URL_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SITE_URL_HINT'), 'required' => true), 'tpl_dir' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_TPL_DIR_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_TPL_DIR_HINT'), 'required' => true), 'html_dir' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_HTML_DIR_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_HTML_DIR_HINT'), 'required' => true), 'meta_title' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_META_TITLE_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_META_TITLE_HINT')), 'meta_keywords' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_META_KEYWORDS_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_META_KEYWORDS_HINT')), 'meta_description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_META_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_META_DESCRIPTION_HINT')), 'powerby' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_POWERBY_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_POWERBY_HINT')), 'stat_code' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_STAT_CODE_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_STAT_CODE_HINT')), 'url_rewrite' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_URL_REWRITE_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_URL_REWRITE_HINT'), 'options' => DataOptions::getUrlRewriteEnum(), 'value' => DataOptions::URL_REWRITE_N), 'close_register' => array('__tid__' => 'register', 'type' => 'switch', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_CLOSE_REGISTER_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_CLOSE_REGISTER_HINT'), 'options' => DataOptions::getCloseRegisterEnum(), 'value' => DataOptions::CLOSE_REGISTER_N), 'close_register_reason' => array('__tid__' => 'register', 'type' => 'textarea', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_CLOSE_REGISTER_REASON_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_CLOSE_REGISTER_REASON_HINT'), 'rows' => 10), 'show_register_service_item' => array('__tid__' => 'register', 'type' => 'switch', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SHOW_REGISTER_SERVICE_ITEM_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SHOW_REGISTER_SERVICE_ITEM_HINT'), 'options' => DataOptions::getShowRegisterServiceItemEnum(), 'value' => DataOptions::SHOW_REGISTER_SERVICE_ITEM_Y), 'register_service_item' => array('__tid__' => 'register', 'type' => 'textarea', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_REGISTER_SERVICE_ITEM_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_REGISTER_SERVICE_ITEM_HINT'), 'rows' => 20), 'thumb_width' => array('__tid__' => 'picture', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_THUMB_WIDTH_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_THUMB_WIDTH_HINT')), 'thumb_height' => array('__tid__' => 'picture', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_THUMB_HEIGHT_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_THUMB_HEIGHT_HINT')), 'water_mark_type' => array('__tid__' => 'picture', 'type' => 'radio', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_TYPE_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_TYPE_HINT'), 'options' => DataOptions::getWaterMarkTypeEnum(), 'value' => DataOptions::WATER_MARK_TYPE_NONE), 'water_mark_imgdir' => array('__tid__' => 'picture', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_IMGDIR_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_IMGDIR_HINT')), 'water_mark_text' => array('__tid__' => 'picture', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_TEXT_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_TEXT_HINT')), 'water_mark_position' => array('__tid__' => 'picture', 'type' => 'radio', '__object__' => 'views\\bootstrap\\system\\WaterMarkPositionRadioElement', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_POSITION_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_POSITION_HINT'), 'options' => DataOptions::getWaterMarkPositionEnum(), 'value' => DataOptions::WATER_MARK_POSITION_9), 'water_mark_pct' => array('__tid__' => 'picture', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_PCT_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_WATER_MARK_PCT_HINT'), 'value' => 0), 'smtp_host' => array('__tid__' => 'smtp', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_HOST_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_HOST_HINT')), 'smtp_port' => array('__tid__' => 'smtp', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_PORT_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_PORT_HINT'), 'value' => 25), 'smtp_username' => array('__tid__' => 'smtp', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_USERNAME_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_USERNAME_HINT')), 'smtp_password' => array('__tid__' => 'smtp', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_PASSWORD_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_PASSWORD_HINT')), 'smtp_frommail' => array('__tid__' => 'smtp', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_FROMMAIL_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_SMTP_FROMMAIL_HINT')), 'list_rows_posts' => array('__tid__' => 'paginator', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_LIST_ROWS_POSTS_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_LIST_ROWS_POSTS_HINT')), 'list_rows_post_comments' => array('__tid__' => 'paginator', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_LIST_ROWS_POST_COMMENTS_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_LIST_ROWS_POST_COMMENTS_HINT')), 'list_rows_users' => array('__tid__' => 'paginator', 'type' => 'text', 'label' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_LIST_ROWS_USERS_LABEL'), 'hint' => Text::_('MOD_SYSTEM_SYSTEM_OPTIONS_LIST_ROWS_USERS_HINT'))); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('builder_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_BUILDER_BUILDERS_BUILDER_ID_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_BUILDER_ID_HINT')), 'builder_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_BUILDER_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_BUILDER_NAME_HINT'), 'required' => true), 'tbl_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_TBL_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_TBL_NAME_HINT'), 'required' => true), 'tbl_profile' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDERS_TBL_PROFILE_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_TBL_PROFILE_HINT'), 'options' => DataBuilders::getTblProfileEnum(), 'value' => DataBuilders::TBL_PROFILE_N), 'tbl_engine' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_BUILDER_BUILDERS_TBL_ENGINE_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_TBL_ENGINE_HINT'), 'options' => DataBuilders::getTblEngineEnum(), 'value' => DataBuilders::TBL_ENGINE_INNODB), 'tbl_charset' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_BUILDER_BUILDERS_TBL_CHARSET_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_TBL_CHARSET_HINT'), 'options' => DataBuilders::getTblCharsetEnum(), 'value' => DataBuilders::TBL_CHARSET_UTF8), 'tbl_comment' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_TBL_COMMENT_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_TBL_COMMENT_HINT'), 'required' => true), 'srv_type' => array('__tid__' => 'main', 'type' => 'radio', 'label' => Text::_('MOD_BUILDER_BUILDERS_SRV_TYPE_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_SRV_TYPE_HINT'), 'options' => DataBuilders::getSrvTypeEnum(), 'value' => DataBuilders::SRV_TYPE_NORMAL), 'srv_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_SRV_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_SRV_NAME_HINT'), 'required' => true), 'app_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_APP_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_APP_NAME_HINT'), 'required' => true), 'mod_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_MOD_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_MOD_NAME_HINT'), 'required' => true), 'cls_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_CLS_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_CLS_NAME_HINT'), 'required' => true), 'ctrl_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_CTRL_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_CTRL_NAME_HINT'), 'required' => true), 'fk_column' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_FK_COLUMN_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_FK_COLUMN_HINT')), 'act_index_name' => array('__tid__' => 'act', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_ACT_INDEX_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_ACT_INDEX_NAME_HINT'), 'value' => 'index', 'required' => true), 'act_view_name' => array('__tid__' => 'act', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_ACT_VIEW_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_ACT_VIEW_NAME_HINT'), 'value' => 'view', 'required' => true), 'act_create_name' => array('__tid__' => 'act', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_ACT_CREATE_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_ACT_CREATE_NAME_HINT'), 'value' => 'create', 'required' => true), 'act_modify_name' => array('__tid__' => 'act', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_ACT_MODIFY_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_ACT_MODIFY_NAME_HINT'), 'value' => 'modify', 'required' => true), 'act_remove_name' => array('__tid__' => 'act', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_ACT_REMOVE_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_ACT_REMOVE_NAME_HINT'), 'value' => 'remove', 'required' => true), 'index_row_btns' => array('__tid__' => 'main', 'type' => 'checkbox', 'label' => Text::_('MOD_BUILDER_BUILDERS_INDEX_ROW_BTNS_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_INDEX_ROW_BTNS_HINT'), 'options' => DataBuilders::getIndexRowBtnsEnum()), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_BUILDER_BUILDERS_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_DESCRIPTION_HINT')), 'author_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_AUTHOR_NAME_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_AUTHOR_NAME_HINT'), 'required' => true), 'author_mail' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_AUTHOR_MAIL_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_AUTHOR_MAIL_HINT'), 'required' => true), 'dt_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_DT_CREATED_HINT'), 'disabled' => true), 'dt_modified' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_BUILDER_BUILDERS_DT_MODIFIED_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_DT_MODIFIED_HINT'), 'disabled' => true), 'trash' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_BUILDER_BUILDERS_TRASH_LABEL'), 'hint' => Text::_('MOD_BUILDER_BUILDERS_TRASH_HINT'), 'options' => DataBuilders::getTrashEnum(), 'value' => DataBuilders::TRASH_Y)); return $output; }
/** * (non-PHPdoc) * @see \library\BaseModel::getElementsRender() */ public function getElementsRender() { $output = array('menu_id' => array('__tid__' => 'main', 'type' => 'hidden', 'label' => Text::_('MOD_MENUS_MENUS_MENU_ID_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_MENU_ID_HINT')), 'menu_name' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_MENU_NAME_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_MENU_NAME_HINT'), 'required' => true), 'menu_pid' => array('__tid__' => 'main', 'type' => 'select', 'label' => Text::_('MOD_MENUS_MENUS_MENU_PID_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_MENU_PID_HINT')), 'menu_url' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MENUS_MENUS_MENU_URL_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_MENU_URL_HINT'), 'required' => true, 'rows' => 3), 'type_name' => array('__tid__' => 'main', 'type' => 'string', 'label' => Text::_('MOD_MENUS_MENU_TYPES_TYPE_NAME_LABEL')), 'type_key' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_TYPE_KEY_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_TYPE_KEY_HINT'), 'readonly' => true), 'picture' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_PICTURE_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_PICTURE_HINT')), 'alias' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_ALIAS_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ALIAS_HINT')), 'description' => array('__tid__' => 'main', 'type' => 'textarea', 'label' => Text::_('MOD_MENUS_MENUS_DESCRIPTION_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_DESCRIPTION_HINT')), 'allow_unregistered' => array('__tid__' => 'advanced', 'type' => 'switch', 'label' => Text::_('MOD_MENUS_MENUS_ALLOW_UNREGISTERED_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ALLOW_UNREGISTERED_HINT'), 'options' => DataMenus::getAllowUnregisteredEnum(), 'value' => DataMenus::ALLOW_UNREGISTERED_Y), 'is_hide' => array('__tid__' => 'main', 'type' => 'switch', 'label' => Text::_('MOD_MENUS_MENUS_IS_HIDE_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_IS_HIDE_HINT'), 'options' => DataMenus::getIsHideEnum(), 'value' => DataMenus::IS_HIDE_N), 'sort' => array('__tid__' => 'main', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_SORT_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_SORT_HINT'), 'required' => true, 'value' => 1000), 'attr_target' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_ATTR_TARGET_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ATTR_TARGET_HINT')), 'attr_title' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_ATTR_TITLE_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ATTR_TITLE_HINT')), 'attr_rel' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_ATTR_REL_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ATTR_REL_HINT')), 'attr_class' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_ATTR_CLASS_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ATTR_CLASS_HINT')), 'attr_style' => array('__tid__' => 'advanced', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_ATTR_STYLE_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_ATTR_STYLE_HINT')), 'dt_created' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_DT_CREATED_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_DT_CREATED_HINT'), 'disabled' => true), 'dt_last_modified' => array('__tid__' => 'system', 'type' => 'text', 'label' => Text::_('MOD_MENUS_MENUS_DT_LAST_MODIFIED_LABEL'), 'hint' => Text::_('MOD_MENUS_MENUS_DT_LAST_MODIFIED_HINT'), 'disabled' => true)); return $output; }
/** * (non-PHPdoc) * @see \tfc\mvc\interfaces\Action::run() */ public function run() { Text::_('MOD_MEMBER__'); $this->assign('http_referer', PageHelper::getHttpReferer()); $this->render(); }