public function getAddresses($data) { $params = array('member_id' => $data['member_id']); $indexIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_INDEX, 'url' => $this->urlManager->getUrl('index', 'addresses', $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_MEMBER_URLS_ADDRESSES_INDEX)); $createIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_CREATE, 'url' => $this->urlManager->getUrl('create', 'addresses', $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_MEMBER_URLS_ADDRESSES_CREATE)); $output = $indexIcon . $createIcon; return $output; }
public function getPointsFreeze($data) { $params = array('id' => $data['member_id'], 'login_name' => $data['login_name'], 'column_name' => 'points', 'value' => $data['points'] . ' , ' . $data['points_freeze']); $freezeIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_CREATE, 'url' => $this->urlManager->getUrl('ajaxaccount', $this->controller, $this->module, $params + array('op_type' => 'freeze')), 'jsfunc' => ComponentsConstant::JSFUNC_DIALOGAJAXVIEW, 'title' => $this->view->CFG_SYSTEM_GLOBAL_FREEZE_BALANCE)); $unfreezeIcon = ComponentsBuilder::getGlyphicon(array('type' => 'minus-sign', 'url' => $this->urlManager->getUrl('ajaxaccount', $this->controller, $this->module, $params + array('op_type' => 'unfreeze')), 'jsfunc' => ComponentsConstant::JSFUNC_DIALOGAJAXVIEW, 'title' => $this->view->CFG_SYSTEM_GLOBAL_UNFREEZE_BALANCE)); $output = $data['points_freeze'] . ' ' . $freezeIcon . $unfreezeIcon; return $output; }
public function getMenus($data) { $params = array('type_key' => $data['type_key']); $indexIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_INDEX, 'url' => $this->urlManager->getUrl('index', 'menus', $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_MENUS_URLS_MENUS_INDEX)); $createIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_CREATE, 'url' => $this->urlManager->getUrl('create', 'menus', $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_MENUS_URLS_MENUS_CREATE)); // $output = $indexIcon . $createIcon; $output = $indexIcon; return $output; }
public function getBuilderFieldValidators($data) { $params = array('field_id' => $data['field_id']); $indexIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_INDEX, 'url' => $this->urlManager->getUrl('index', 'validators', $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_BUILDER_URLS_VALIDATORS_INDEX)); $createIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_CREATE, 'url' => $this->urlManager->getUrl('create', 'validators', $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_BUILDER_URLS_VALIDATORS_CREATE)); // $output = $indexIcon . $createIcon; $output = $indexIcon; return $output; }
public function getOperate($data) { $params = array('id' => $data['builder_id']); $modifyIcon = $this->getModifyIcon($params); $trashIcon = $this->getTrashIcon($params); // 生成代码按钮 $gcIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_TOOL, 'url' => $this->urlManager->getUrl('gc', $this->controller, $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_BUILDER_BUILDERS_GC_LABEL)); $output = $modifyIcon . $trashIcon . $gcIcon; return $output; }
public function getOperate($data) { if (!$this->elements_object->isMod($data['category'])) { return ''; } $params = array('id' => $data['amca_id']); $modifyIcon = $this->getModifyIcon($params); $removeIcon = $this->getRemoveIcon($params); $synchIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_TOOL, 'url' => $this->urlManager->getUrl('synch', $this->controller, $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_USERS_URLS_AMCAS_CTRLSYNCH)); $output = $modifyIcon . $removeIcon . $synchIcon; return $output; }
public function getOperate($data) { $params = array('tbl_name' => $data['tbl_name']); return ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_TOOL, 'url' => $this->urlManager->getUrl('gb', $this->controller, $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->MOD_BUILDER_URLS_TBLNAMES_GB)); }
public function getIsPublished($data) { $params = array('id' => $data['advert_id'], 'column_name' => 'is_published'); $output = ComponentsBuilder::getSwitch(array('id' => $data['advert_id'], 'name' => 'is_published', 'value' => $data['is_published'], 'href' => $this->urlManager->getUrl('singlemodify', $this->controller, $this->module, $params))); return $output; }
public function getUseFooter($data) { $params = array('id' => $data['topic_id'], 'column_name' => 'use_footer'); $output = ComponentsBuilder::getSwitch(array('id' => $data['topic_id'], 'name' => 'use_footer', 'value' => $data['use_footer'], 'href' => $this->urlManager->getUrl('singlemodify', $this->controller, $this->module, $params))); return $output; }
/** * 获取“预览”图标 * @param array $params * @return array */ public function getPreviewIcon(array $params) { return ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_LINK, 'url' => $params['url'], 'jsfunc' => ComponentsConstant::JSFUNC_BHREF, 'title' => $this->view->CFG_SYSTEM_GLOBAL_PREVIEW)); }
public function getPermission($data) { $params = array('id' => $data['group_id']); $modifyIcon = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_MODIFY, 'url' => $this->urlManager->getUrl('permissionmodify', $this->controller, $this->module, $params), 'jsfunc' => ComponentsConstant::JSFUNC_HREF, 'title' => $this->view->CFG_SYSTEM_GLOBAL_MODIFY)); return $modifyIcon; }
public function getForbidden($data) { $params = array('id' => $data['module_id'], 'column_name' => 'forbidden'); $output = ComponentsBuilder::getSwitch(array('id' => $data['module_id'], 'name' => 'forbidden', 'value' => $data['forbidden'], 'href' => $this->urlManager->getUrl('singlemodify', $this->controller, $this->module, $params))); return $output; }
public function getOperate($data) { $output = ComponentsBuilder::getGlyphicon(array('type' => ComponentsConstant::GLYPHICON_LINK, 'jsfunc' => 'System.textCopy(\'' . $data['picture_url'] . '\');', 'title' => $this->view->MOD_SYSTEM_SYSTEM_PICTURES_COPY_PICTURE_URL)); return $output; }