本文整理汇总了PHP中Admin\Builder\AdminConfigBuilder::display方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminConfigBuilder::display方法的具体用法?PHP AdminConfigBuilder::display怎么用?PHP AdminConfigBuilder::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin\Builder\AdminConfigBuilder
的用法示例。
在下文中一共展示了AdminConfigBuilder::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('活动基本设置')->data($data)->keyBool('NEED_VERIFY', '创建活动是否需要审核', '默认无需审核')->keyBool('SHENHE_SEND_WEIBO', '审核活动是否发新鲜事', '默认不发新鲜事')->keyDefault('SHENHE_SEND_WEIBO', 0)->group('基本配置', 'NEED_VERIFY,SHENHE_SEND_WEIBO')->groupLocalComment('本地评论配置', 'event')->buttonSubmit('', '保存');
$admin_config->display();
}
示例2: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('专辑基本设置')->keyBool('NEED_VERIFY', '投稿是否需要审核', '默认无需审核')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例3: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('群组基本设置')->keyBool('GROUP_NEED_VERIFY', '创建群组是否需要审核', '默认无需审核')->keyText('GROUP_POST_IMG_COUNT', '帖子显示图片的数量限制', '默认为10')->keyCheckBox('GROUP_SEND_WEIBO', '创建/修改群组发送微博开关', '', array('add_group' => '创建群组', 'edit_group' => '编辑群组'))->keyCheckBox('GROUP_POST_SEND_WEIBO', '创建/修改帖子发送微博开关', '', array('add_group_post' => '新增帖子', 'edit_group_post' => '编辑帖子'))->keyRadio('GROUP_LZL_REPLY_ORDER', '楼中楼排序', '', array(0 => '时间降序', 1 => '时间升序'))->keyText('GROUP_LZL_SHOW_COUNT', '楼中楼显示数量')->buttonSubmit('', '保存')->data($data)->keyDefault('GROUP_NEED_VERIFY', 0)->keyDefault('GROUP_POST_IMG_COUNT', 10)->keyDefault('GROUP_SEND_WEIBO', 'add_group,edit_group')->keyDefault('GROUP_POST_SEND_WEIBO', 'add_group_post,edit_group_post')->keyDefault('GROUP_LZL_REPLY_ORDER', 1)->keyDefault('GROUP_LZL_SHOW_COUNT', 5)->group('群组设置', 'GROUP_NEED_VERIFY,GROUP_SEND_WEIBO')->group('帖子设置', 'GROUP_POST_IMG_COUNT,GROUP_POST_SEND_WEIBO')->group('楼中楼设置', 'GROUP_LZL_REPLY_ORDER,GROUP_LZL_SHOW_COUNT');
$admin_config->display();
}
示例4: index
public function index()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$mStep = A('Ucenter/RegStep', 'Widget')->mStep;
$step = array();
foreach ($mStep as $key => $v) {
$step[] = array('data-id' => $key, 'title' => $v);
}
$default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => $step), array('data-id' => 'enable', 'title' => '启用', 'items' => array()));
//$default=array('禁用'=>$step,'启用并可跳过'=>array(),'启用但不可跳过'=>array());
$data['REG_STEP'] = $admin_config->parseKanbanArray($data['REG_STEP'], $step, $default);
empty($data['LEVEL']) && ($data['LEVEL'] = <<<str
0:Lv1 实习
50:Lv2 试用
100:Lv3 转正
200:Lv4 助理
400:Lv 5 经理
800:Lv6 董事
1600:Lv7 董事长
str
);
empty($data['OPEN_QUICK_LOGIN']) && ($data['OPEN_QUICK_LOGIN'] = 0);
$admin_config->title('用户配置')->keyCheckBox('REG_SWITCH', '注册开关', '允许使用的注册选项,全不选即为关闭注册', array('username' => '用户名', 'email' => '邮箱', 'mobile' => '手机'))->keyRadio('EMAIL_VERIFY_TYPE', '邮箱验证类型', '邮箱验证的类型', array(0 => '不验证', 1 => '注册后发送激活邮件', 2 => '注册前发送验证邮件'))->keyRadio('MOBILE_VERIFY_TYPE', '手机验证类型', '手机验证的类型', array(0 => '不验证', 1 => '注册前发送验证短信'))->keyKanban('REG_STEP', '注册步骤', '注册后需要进行的步骤')->keyCheckBox('REG_CAN_SKIP', '注册步骤是否可跳过', '勾选为可跳过,默认不可跳过', $mStep)->keyEditor('REG_EMAIL_VERIFY', '邮箱验证模版', '用于进行邮箱的验证', 'all')->keyEditor('REG_EMAIL_ACTIVATE', '邮箱激活模版', '用于进行用户的激活')->keyCheckBox('SMS_SP', '短信提供商', '可选的短信通道提供商,全不选即为关闭短信通道', array('ucpaas' => '云之讯', 'UCToo' => 'UCToo'))->keyText('SMS_HTTP', '短信平台HTTP', '短信平台HTTP')->keyText('SMS_HTTPS', '短信平台HTTPS', '短信平台HTTPS')->keyText('SMS_UID', '短信平台帐号', '短信平台帐号')->keyText('SMS_PWD', '短信平台密码', '短信平台密码')->keyText('SMS_ACCOUNTSID', '短信平台开发者ID', '短信平台开发者ID')->keyText('SMS_TOKEN', '短信平台TOKEN', '短信平台TOKEN')->keyText('SMS_APPID', '短信平台应用ID', '短信平台应用ID')->keyText('SMS_TEMPLATEID', '短信平台模板ID', '短信平台模板ID')->keyTextArea('SMS_CONTENT', '短信内容', '短信内容')->keyTextArea('LEVEL', '等级配置', '每行一条,名称和积分之间用冒号分隔')->keyRadio('OPEN_QUICK_LOGIN', '快捷登录', '默认关闭,开启后用户登录方式更换成快捷登录!', array(0 => '关闭', 1 => '开启'))->group('注册配置', 'REG_SWITCH,EMAIL_VERIFY_TYPE,MOBILE_VERIFY_TYPE,REG_STEP,REG_CAN_SKIP')->group('登录配置', 'OPEN_QUICK_LOGIN')->group('邮箱验证模版', 'REG_EMAIL_VERIFY')->group('邮箱激活模版', 'REG_EMAIL_ACTIVATE')->group('短信配置', 'SMS_SP,SMS_HTTP,SMS_HTTPS,SMS_UID,SMS_PWD,SMS_ACCOUNTSID,SMS_TOKEN,SMS_APPID,SMS_TEMPLATEID,SMS_CONTENT')->group('基础设置', 'LEVEL')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例5: config
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
$builder->title('采集设置');
$builder->display();
}
示例6: index
public function index()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$mStep = A('Ucenter/RegStep', 'Widget')->mStep;
$step = array();
foreach ($mStep as $key => $v) {
$step[] = array('data-id' => $key, 'title' => $v);
}
$default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => $step), array('data-id' => 'enable', 'title' => '启用', 'items' => array()));
//$default=array('禁用'=>$step,'启用并可跳过'=>array(),'启用但不可跳过'=>array());
$data['REG_STEP'] = $admin_config->parseKanbanArray($data['REG_STEP'], $step, $default);
empty($data['LEVEL']) && ($data['LEVEL'] = <<<str
0:Lv1 实习
50:Lv2 试用
100:Lv3 转正
200:Lv4 助理
400:Lv 5 经理
800:Lv6 董事
1600:Lv7 董事长
str
);
empty($data['OPEN_QUICK_LOGIN']) && ($data['OPEN_QUICK_LOGIN'] = 0);
$admin_config->title('用户配置')->keyCheckBox('REG_SWITCH', '注册开关', '允许使用的注册选项,全不选即为关闭注册', array('username' => '用户名', 'email' => '邮箱', 'mobile' => '手机'))->keyRadio('EMAIL_VERIFY_TYPE', '邮箱验证类型', '邮箱验证的类型', array(0 => '不验证', 1 => '注册后发送激活邮件', 2 => '注册前发送验证邮件'))->keyRadio('MOBILE_VERIFY_TYPE', '手机验证类型', '手机验证的类型', array(0 => '不验证', 1 => '注册前发送验证短信'))->keyText('NEW_USER_FOLLOW', '新用户关注', '输入用户id,多个用户以‘,’分割')->keyText('NEW_USER_FANS', '新用户粉丝', '输入用户id,多个用户以‘,’分割')->keyText('NEW_USER_FRIENDS', '新用户好友', '输入用户id,多个用户以‘,’分割')->keyKanban('REG_STEP', '注册步骤', '注册后需要进行的步骤')->keyCheckBox('REG_CAN_SKIP', '注册步骤是否可跳过', '勾选为可跳过,默认不可跳过', $mStep)->keyEditor('REG_EMAIL_VERIFY', '邮箱验证模版', '用于进行邮箱的验证', 'all')->keyEditor('REG_EMAIL_ACTIVATE', '邮箱激活模版', '用于进行用户的激活')->keyText('SMS_HTTP', '短信平台HTTP', '短信平台HTTP,可用服务商:<a href="http://www.yunsms.cn/" target="_blank">云短信</a>')->keyText('SMS_UID', '短信平台帐号', '短信平台帐号')->keyText('SMS_PWD', '短信平台密码', '短信平台密码')->keyTextArea('SMS_CONTENT', '短信内容', '短信内容')->keyTextArea('LEVEL', '等级配置', '每行一条,名称和积分之间用冒号分隔')->keyRadio('OPEN_QUICK_LOGIN', '快捷登录', '默认关闭,开启后用户登录方式更换成快捷登录!', array(0 => '关闭', 1 => '开启'))->group('注册配置', 'REG_SWITCH,EMAIL_VERIFY_TYPE,MOBILE_VERIFY_TYPE,REG_STEP,REG_CAN_SKIP,NEW_USER_FOLLOW,NEW_USER_FANS,NEW_USER_FRIENDS')->group('登录配置', 'OPEN_QUICK_LOGIN')->group('邮箱验证模版', 'REG_EMAIL_VERIFY')->group('邮箱激活模版', 'REG_EMAIL_ACTIVATE')->group('短信配置', 'SMS_HTTP,SMS_UID,SMS_PWD,SMS_CONTENT')->group('基础设置', 'LEVEL')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例7: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('微博基本设置')->keyBool('SHOW_TITLE', '是否在微博左侧显示等级')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例8: config
public function config()
{
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('活动基本设置')->keyBool('NEED_VERIFY', '创建活动是否需要审核', '默认无需审核')->group('基本配置', 'NEED_VERIFY')->groupLocalComment('本地评论配置', 'event')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例9: ssoSetting
public function ssoSetting()
{
$admin_config = new AdminConfigBuilder();
$admin_config->callback("ssoCallback");
$data = $admin_config->handleConfig();
$admin_config->title(L('_SINGLE_POINT_LOGIN_CONFIGURATION_'))->keyRadio('SSO_SWITCH_USER_CENTER', L('_SINGLE_SIGN_ON_SWITCH_'), L('_AS_THE_USER_CENTER_OF_THE_SINGLE_SIGN_ON_SWITCH_'), array(0 => L('_CLOSE_SINGLE_POINT_LOGIN_'), 1 => L('_AS_USER_CENTER_OPEN_SINGLE_SIGN_ON_')))->keyTextArea('SSO_CONFIG', L('_SINGLE_POINT_LOGIN_CONFIGURATION_'), L('_SINGLE_POINT_LOGIN_CONFIGURATION_VICE_'))->keyLabel('SSO_UC_AUTH_KEY', L('_USER_CENTER_ENCRYPTION_KEY_'), L('_THE_SYSTEM_HAS_BEEN_AUTOMATICALLY_WRITTEN_TO_THE_CONFIGURATION_FILE_'))->keyLabel('SSO_UC_DB_DSN', L('_USER_CENTER_DATA_CONNECTION_'), L('_THE_SYSTEM_HAS_BEEN_AUTOMATICALLY_WRITTEN_TO_THE_CONFIGURATION_FILE_'))->keyLabel('SSO_UC_TABLE_PREFIX', L('_USER_CENTER_TABLE_PREFIX_'), L('_THE_SYSTEM_HAS_BEEN_AUTOMATICALLY_WRITTEN_TO_THE_CONFIGURATION_FILE_'))->group(L('_CONFIGURATION_AS_USER_CENTER_'), 'SSO_SWITCH_USER_CENTER')->group(L('_AS_AN_APPLICATION_CONFIGURATION_'), 'SSO_CONFIG,SSO_UC_AUTH_KEY,SSO_UC_DB_DSN,SSO_UC_TABLE_PREFIX')->buttonSubmit('', L('_SAVE_'))->data($data);
$admin_config->display();
}
示例10: ssoSetting
public function ssoSetting()
{
$admin_config = new AdminConfigBuilder();
$admin_config->callback("ssoCallback");
$data = $admin_config->handleConfig();
$admin_config->title('单点登录配置')->keyRadio('SSO_SWITCH_USER_CENTER', '单点登录开关', '作为用户中心的单点登录开关,其他开关在登录配置里面设置', array(0 => '关闭单点登录', 1 => '作为用户中心开启单点登录'))->keyTextArea('SSO_CONFIG', '单点登录配置', '单点登录配置文件中的配置(当开关为开启单点登录时有效,不包括作为用户中心开启单点登录)')->keyLabel('SSO_UC_AUTH_KEY', '用户中心加密密钥', '系统已自动写入配置文件,如写入失败请手动复制。')->keyLabel('SSO_UC_DB_DSN', '用户中心数据连接', '系统已自动写入配置文件,如写入失败请手动复制。')->keyLabel('SSO_UC_TABLE_PREFIX', '用户中心表前缀', '系统已自动写入配置文件,如写入失败请手动复制。')->group('作为用户中心配置', 'SSO_SWITCH_USER_CENTER')->group('作为应用配置', 'SSO_CONFIG,SSO_UC_AUTH_KEY,SSO_UC_DB_DSN,SSO_UC_TABLE_PREFIX')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例11: config
public function config()
{
$admin_config = new AdminConfigBuilder();
if (IS_POST) {
S('GROUP_SHOW_DATA', null);
S('GROUP_POST_SHOW_DATA', null);
}
$data = $admin_config->handleConfig();
$admin_config->title('群组基本设置')->keyBool('GROUP_NEED_VERIFY', '创建群组是否需要审核', '默认无需审核')->keyText('GROUP_POST_IMG_COUNT', '帖子显示图片的数量限制', '默认为10')->keyCheckBox('GROUP_SEND_WEIBO', '创建/修改群组发送微博开关', '', array('add_group' => '创建群组', 'edit_group' => '编辑群组'))->keyBool('GROUP_AUDIT_SEND_WEIBO', '审核群组是否发送微博', '')->keyText('GROUP_LIMIT', '每个人允许创建的群组个数', '默认为5')->keyCheckBox('GROUP_POST_SEND_WEIBO', '创建/修改帖子发送微博开关', '', array('add_group_post' => '新增帖子', 'edit_group_post' => '编辑帖子'))->keyRadio('GROUP_LZL_REPLY_ORDER', '楼中楼排序', '', array(0 => '时间降序', 1 => '时间升序'))->keyText('GROUP_LZL_SHOW_COUNT', '楼中楼显示数量')->buttonSubmit('', '保存')->data($data)->keyDefault('GROUP_LIMIT', 5)->keyDefault('GROUP_NEED_VERIFY', 0)->keyDefault('GROUP_POST_IMG_COUNT', 10)->keyDefault('GROUP_SEND_WEIBO', 'add_group,edit_group')->keyDefault('GROUP_POST_SEND_WEIBO', 'add_group_post,edit_group_post')->keyDefault('GROUP_LZL_REPLY_ORDER', 1)->keyDefault('GROUP_LZL_SHOW_COUNT', 5)->group('群组设置', 'GROUP_NEED_VERIFY,GROUP_SEND_WEIBO,GROUP_AUDIT_SEND_WEIBO,GROUP_LIMIT')->group('帖子设置', 'GROUP_POST_IMG_COUNT,GROUP_POST_SEND_WEIBO')->group('楼中楼设置', 'GROUP_LZL_REPLY_ORDER,GROUP_LZL_SHOW_COUNT')->keyText('GROUP_SHOW_TITLE', '标题名称', '在首页展示块的标题')->keyDefault('GROUP_SHOW_TITLE', '推荐群组')->keyText('GROUP_SHOW', '显示板块', '竖线|分割,填板块ID,如1|2|3|4|5')->keyText('GROUP_SHOW_CACHE_TIME', '缓存时间', '默认600秒,以秒为单位')->keyDefault('GROUP_SHOW_CACHE_TIME', '600')->keyText('GROUP_POST_SHOW_TITLE', '标题名称', '在首页展示块的标题')->keyDefault('GROUP_POST_SHOW_TITLE', '热门群组话题')->keyText('GROUP_POST_SHOW_NUM', '贴子显示数量')->keyDefault('GROUP_POST_SHOW_NUM', 5)->keyRadio('GROUP_POST_ORDER', '贴子排序字段', '', array('create_time' => '创建时间', 'update_time' => '更新时间', 'last_reply_time' => '最后回复时间', 'view_count' => '阅读量', 'reply_count' => '回复数'))->keyDefault('GROUP_POST_ORDER', 'last_reply_time')->keyRadio('GROUP_POST_TYPE', '贴子排序方式', '', array('asc' => '升序', 'desc' => '降序'))->keyDefault('GROUP_POST_TYPE', 'desc')->keyText('GROUP_POST_CACHE_TIME', '缓存时间', '默认600秒,以秒为单位')->keyDefault('GROUP_POST_CACHE_TIME', '600')->group('首页展示板块设置', 'GROUP_SHOW_TITLE,GROUP_SHOW,GROUP_SHOW_CACHE_TIME')->group('首页展示贴子设置', 'GROUP_POST_SHOW_TITLE,GROUP_POST_SHOW_NUM,GROUP_POST_ORDER,GROUP_POST_TYPE,NEWS_SHOW_CACHE_TIME');
$admin_config->display();
}
示例12: config
public function config()
{
$builder = new AdminConfigBuilder();
$data = $builder->handleConfig();
$builder->title('基本配置');
$builder->keyText('WEBSITE_NAME', '网站名称显示')->keyEditor('COPY_RIGHT', '网站版权信息')->group('通用设置', 'WEBSITE_NAME,COPY_RIGHT');
$builder->keyTextArea('SUMMARY', '登陆页导语', '不要过长,一句话即可')->group('登陆页设置', 'SUMMARY');
$builder->buttonSubmit();
$builder->data($data);
$builder->display();
}
示例13: index
public function index()
{
$pkgList = $this->expressionModel->getPkgList(0);
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$tab = array();
foreach ($pkgList as $key => $v) {
$tab[] = array('data-id' => $v['name'], 'title' => $v['title']);
}
$default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => array()), array('data-id' => 'enable', 'title' => '启用', 'items' => $tab));
$data['PKGLIST'] = $admin_config->parseKanbanArray($data['PKGLIST'], $tab, $default);
$admin_config->title('表情基本设置')->keyKanban('PKGLIST', '表情包状态并排序')->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}
示例14: index
public function index()
{
$pkgList = $this->expressionModel->getPkgList(0);
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$tab = array();
foreach ($pkgList as $key => $v) {
$tab[] = array('data-id' => $v['name'], 'title' => $v['title']);
}
$default = array(array('data-id' => 'disable', 'title' => L('_DISABLE_'), 'items' => array()), array('data-id' => 'enable', 'title' => L('_ENABLE_'), 'items' => $tab));
$data['PKGLIST'] = $admin_config->parseKanbanArray($data['PKGLIST'], $tab, $default);
$admin_config->title(L('_FACIAL_EXPRESSIONS_'))->keyKanban('PKGLIST', L('_EXPRESSION_PACKAGE_STATUS_AND_SORT_'))->buttonSubmit('', L('_SAVE_'))->data($data);
$admin_config->display();
}
示例15: index
public function index()
{
$ExpressionPkg = $this->_rootPath . '/Uploads/expression';
$pkgList = D('Core/Expression')->myreaddir($ExpressionPkg);
$pkg['all'] = '全部';
$pkg['miniblog'] = 'miniblog';
foreach ($pkgList as $v) {
$pkg[$v] = $v;
}
unset($v);
$admin_config = new AdminConfigBuilder();
$data = $admin_config->handleConfig();
$admin_config->title('表情基本设置')->keySelect('EXPRESSION', '表情包选择', '', $pkg)->buttonSubmit('', '保存')->data($data);
$admin_config->display();
}