當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AdminConfigBuilder::title方法代碼示例

本文整理匯總了PHP中Admin\Builder\AdminConfigBuilder::title方法的典型用法代碼示例。如果您正苦於以下問題:PHP AdminConfigBuilder::title方法的具體用法?PHP AdminConfigBuilder::title怎麽用?PHP AdminConfigBuilder::title使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Admin\Builder\AdminConfigBuilder的用法示例。


在下文中一共展示了AdminConfigBuilder::title方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: operate

 public function operate($type = 'move', $from = 0)
 {
     $builder = new AdminConfigBuilder();
     $from = D('Mpbase/CustomMenu')->find($from);
     $opt = array();
     $cms = $this->model->select();
     foreach ($cms as $cm) {
         $opt[$cm['id']] = $cm['title'];
     }
     if ($type === 'move') {
         $builder->title('移動分類')->keyId()->keySelect('pid', '父分類', '選擇父分類', $opt)->buttonSubmit(U('Custommenu/add'))->buttonBack()->data($from)->display();
     } else {
         $builder->title('合並分類')->keyId()->keySelect('toid', '合並至的分類', '選擇合並至的分類', $opt)->buttonSubmit(U('Custommenu/doMerge'))->buttonBack()->data($from)->display();
     }
 }
開發者ID:fishling,項目名稱:chatPro,代碼行數:15,代碼來源:CustommenuaController.class.php

示例2: operate

 public function operate($type = 'move', $from = 0)
 {
     $builder = new AdminConfigBuilder();
     $from = D('EventType')->find($from);
     $opt = array();
     $types = $this->eventTypeModel->select();
     foreach ($types as $event) {
         $opt[$event['id']] = $event['title'];
     }
     if ($type === 'move') {
         $builder->title('移動分類')->keyId()->keySelect('pid', '父分類', '選擇父分類', $opt)->buttonSubmit(U('EventType/add'))->buttonBack()->data($from)->display();
     } else {
         $builder->title('合並分類')->keyId()->keySelect('toid', '合並至的分類', '選擇合並至的分類', $opt)->buttonSubmit(U('EventType/doMerge'))->buttonBack()->data($from)->display();
     }
 }
開發者ID:yaomoo,項目名稱:bbs,代碼行數:15,代碼來源:EventTypeController.class.php

示例3: add

 /**
  * 分類添加
  * @author 鄭鍾良<zzl@ourstu.com>
  */
 public function add($id = 0, $pid = 0)
 {
     if (IS_POST) {
         if ($id != 0) {
             $result = $this->userTagModel->saveData();
             if ($result) {
                 $this->success(L('_SUCCESS_EDIT_') . L('_PERIOD_'), U('UserTag/userTag'));
             } else {
                 $this->error(L('_FAIL_EDIT_') . L('_PERIOD_') . $this->userTagModel->getError());
             }
         } else {
             $result = $this->userTagModel->addData();
             if ($result) {
                 $this->success(L('_SUCCESS_ADD_') . L('_PERIOD_'));
             } else {
                 $this->error(L('_FAIL_ADD_') . L('_PERIOD_') . $this->userTagModel->getError());
             }
         }
     } else {
         $builder = new AdminConfigBuilder();
         $opt = array();
         if ($id != 0) {
             $category = $this->userTagModel->find($id);
             if ($category['pid'] != 0) {
                 $categorys = $this->userTagModel->where(array('pid' => 0))->select();
                 foreach ($categorys as $cate) {
                     $opt[$cate['id']] = $cate['title'];
                 }
             }
         } else {
             $category = array('pid' => $pid, 'status' => 1);
             $father_category_pid = $this->userTagModel->where(array('id' => $pid))->getField('pid');
             if ($father_category_pid != 0) {
                 $this->error(L('_ERROR_CATEGORY_HIR_LIMIT_') . L('_EXCLAMATION_'));
             }
             $categorys = $this->userTagModel->where(array('pid' => 0))->select();
             foreach ($categorys as $cate) {
                 $opt[$cate['id']] = $cate['title'];
             }
         }
         if ($pid != 0) {
             $builder->title(L('_TAG_ADD_'));
         } else {
             $builder->title(L('_CATEGORY_ADD_'));
         }
         $builder->keyId()->keyText('title', L('_TITLE_'))->keySelect('pid', L('_FATHER_CLASS_'), L('_FATHER_CLASS_SELECT_'), array('0' => L('_TOP_CLASS_')) + $opt)->keyStatus()->data($category)->buttonSubmit(U('UserTag/add'))->buttonBack()->display();
     }
 }
開發者ID:terrydeng,項目名稱:beimeibang1205,代碼行數:52,代碼來源:UserTagController.class.php

示例4: add

 /**
  * 分類添加
  * @author 鄭鍾良<zzl@ourstu.com>
  */
 public function add($id = 0, $pid = 0)
 {
     if (IS_POST) {
         if ($id != 0) {
             $result = $this->userTagModel->saveData();
             if ($result) {
                 $this->success('編輯成功。', U('UserTag/userTag'));
             } else {
                 $this->error('編輯失敗。' . $this->userTagModel->getError());
             }
         } else {
             $result = $this->userTagModel->addData();
             if ($result) {
                 $this->success('新增成功。');
             } else {
                 $this->error('新增失敗。' . $this->userTagModel->getError());
             }
         }
     } else {
         $builder = new AdminConfigBuilder();
         $opt = array();
         if ($id != 0) {
             $category = $this->userTagModel->find($id);
             if ($category['pid'] != 0) {
                 $categorys = $this->userTagModel->where(array('pid' => 0))->select();
                 foreach ($categorys as $cate) {
                     $opt[$cate['id']] = $cate['title'];
                 }
             }
         } else {
             $category = array('pid' => $pid, 'status' => 1);
             $father_category_pid = $this->userTagModel->where(array('id' => $pid))->getField('pid');
             if ($father_category_pid != 0) {
                 $this->error('分類不能超過二級!');
             }
             $categorys = $this->userTagModel->where(array('pid' => 0))->select();
             foreach ($categorys as $cate) {
                 $opt[$cate['id']] = $cate['title'];
             }
         }
         if ($pid != 0) {
             $builder->title('新增標簽');
         } else {
             $builder->title('新增分類');
         }
         $builder->keyId()->keyText('title', '標題')->keySelect('pid', '父分類', '選擇父級分類', array('0' => '頂級分類') + $opt)->keyStatus()->data($category)->buttonSubmit(U('UserTag/add'))->buttonBack()->display();
     }
 }
開發者ID:chenyongze,項目名稱:bighaha,代碼行數:52,代碼來源:UserTagController.class.php

示例5: edit

 /**
  * 編輯公告
  * @author 鄭鍾良<zzl@ourstu.com>
  */
 public function edit()
 {
     $aId = I('id', 0, 'intval');
     $title = $aId ? "編輯" : "新增";
     if (IS_POST) {
         $aId && ($data['id'] = $aId);
         $data['title'] = I('post.title', '', 'op_t');
         $data['icon'] = I('post.icon', 'icon-star', 'op_t');
         $data['link'] = I('post.link');
         if (mb_strlen($data['link'], 'utf-8') && !in_array(strtolower(substr($data['link'], 0, 6)), array('http:/', 'https:', 'ftp://', 'rtsp:/', 'mms://'))) {
             $data['link'] = 'http://' . $data['link'];
         }
         $data['content'] = I('post.content', '', 'op_t');
         $data['end_time'] = intval(I('post.end_time'));
         $result = $this->announcementModel->editData($data);
         if ($result) {
             S('Announcement_list', null);
             //清空緩存
             $this->success($title . '公告成功!', addons_url('Announcement://admin/buildList'));
         } else {
             $this->error($title . '公告失敗!' . $this->announcementModel->getError());
         }
     } else {
         if ($aId) {
             $data = $this->announcementModel->where(array('id' => $aId))->find();
         }
         $builder = new AdminConfigBuilder();
         $builder->title($title . '公告')->data($data);
         $builder->keyId()->keyText('title', '標題')->keyIcon('icon', '圖標')->keyText('link', '鏈接')->keyTextArea('content', '內容')->keyTime('end_time', '有效期')->keyDefault('end_time', time() + 604800);
         $builder->buttonSubmit()->buttonBack()->display();
     }
 }
開發者ID:chenyongze,項目名稱:bighaha,代碼行數:36,代碼來源:AdminController.class.php

示例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 => '注冊前發送驗證短信'))->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();
    }
開發者ID:fishling,項目名稱:chatPro,代碼行數:26,代碼來源:UserConfigController.class.php

示例7: 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();
    }
開發者ID:chenyongze,項目名稱:bighaha,代碼行數:26,代碼來源:UserConfigController.class.php

示例8: 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();
 }
開發者ID:chenyongze,項目名稱:bighaha,代碼行數:11,代碼來源:MobController.class.php

示例9: editLimit

 public function editLimit()
 {
     $aId = I('id', 0, 'intval');
     $model = D('ActionLimit');
     if (IS_POST) {
         $data['title'] = I('post.title', '', 'op_t');
         $data['name'] = I('post.name', '', 'op_t');
         $data['frequency'] = I('post.frequency', 1, 'intval');
         $data['time_number'] = I('post.time_number', 1, 'intval');
         $data['time_unit'] = I('post.time_unit', '', 'op_t');
         $data['punish'] = I('post.punish', '', 'op_t');
         $data['if_message'] = I('post.if_message', '', 'op_t');
         $data['message_content'] = I('post.message_content', '', 'op_t');
         $data['action_list'] = I('post.action_list', '', 'op_t');
         $data['status'] = I('post.status', 1, 'intval');
         $data['module'] = I('post.module', '', 'op_t');
         $data['punish'] = implode(',', $data['punish']);
         foreach ($data['action_list'] as &$v) {
             $v = '[' . $v . ']';
         }
         unset($v);
         $data['action_list'] = implode(',', $data['action_list']);
         if ($aId != 0) {
             $data['id'] = $aId;
             $res = $model->editActionLimit($data);
         } else {
             $res = $model->addActionLimit($data);
         }
         if ($res) {
             $this->success(($aId == 0 ? '添加' : '編輯') . '成功', $aId == 0 ? U('', array('id' => $res)) : '');
         } else {
             $this->error($aId == 0 ? '操作失敗,請添加正確信息!' : '操作失敗,請確保修改了信息並且信息正確!');
         }
     } else {
         $builder = new AdminConfigBuilder();
         $modules = D('Module')->getAll();
         $module['all'] = '全站';
         foreach ($modules as $k => $v) {
             $module[$v['name']] = $v['alias'];
         }
         if ($aId != 0) {
             $limit = $model->getActionLimit(array('id' => $aId));
             $limit['punish'] = explode(',', $limit['punish']);
             $limit['action_list'] = str_replace('[', '', $limit['action_list']);
             $limit['action_list'] = str_replace(']', '', $limit['action_list']);
             $limit['action_list'] = explode(',', $limit['action_list']);
         } else {
             $limit = array('status' => 1, 'time_number' => 1);
         }
         $opt_punish = $this->getPunish();
         $opt = D('Action')->getActionOpt();
         $builder->title(($aId == 0 ? '新增' : '編輯') . '行為限製')->keyId()->keyTitle()->keyText('name', '名稱')->keySelect('module', '所屬模塊', '', $module)->keyText('frequency', '頻率')->keyMultiInput('time_number|time_unit', '時間單位', '時間單位', array(array('type' => 'text', 'style' => 'width:295px;margin-right:5px'), array('type' => 'select', 'opt' => $this->getTimeUnit(), 'style' => 'width:100px')))->keyChosen('punish', '處罰', '可多選', $opt_punish)->keyBool('if_message', '是否發送提醒')->keyTextArea('message_content', '消息提示內容')->keyChosen('action_list', '行為', '可多選,不選為全部行為', $opt)->keyStatus()->data($limit)->buttonSubmit(U('editLimit'))->buttonBack()->display();
     }
 }
開發者ID:admpub,項目名稱:OpenCenter,代碼行數:54,代碼來源:ActionLimitController.class.php

示例10: editLimit

 public function editLimit()
 {
     $aId = I('id', 0, 'intval');
     $model = D('ActionLimit');
     if (IS_POST) {
         $data['title'] = I('post.title', '', 'op_t');
         $data['name'] = I('post.name', '', 'op_t');
         $data['frequency'] = I('post.frequency', 1, 'intval');
         $data['time_number'] = I('post.time_number', 1, 'intval');
         $data['time_unit'] = I('post.time_unit', '', 'op_t');
         $data['punish'] = I('post.punish', '', 'op_t');
         $data['if_message'] = I('post.if_message', '', 'op_t');
         $data['message_content'] = I('post.message_content', '', 'op_t');
         $data['action_list'] = I('post.action_list', '', 'op_t');
         $data['status'] = I('post.status', 1, 'intval');
         $data['module'] = I('post.module', '', 'op_t');
         $data['punish'] = implode(',', $data['punish']);
         foreach ($data['action_list'] as &$v) {
             $v = '[' . $v . ']';
         }
         unset($v);
         $data['action_list'] = implode(',', $data['action_list']);
         if ($aId != 0) {
             $data['id'] = $aId;
             $res = $model->editActionLimit($data);
         } else {
             $res = $model->addActionLimit($data);
         }
         if ($res) {
             $this->success(($aId == 0 ? L('_ADD_') : L('_EDIT_')) . L('_SUCCESS_'), $aId == 0 ? U('', array('id' => $res)) : '');
         } else {
             $this->error($aId == 0 ? L('_THE_OPERATION_FAILED_') : L('_THE_OPERATION_FAILED_VICE_'));
         }
     } else {
         $builder = new AdminConfigBuilder();
         $modules = D('Module')->getAll();
         $module['all'] = L('_TOTAL_STATION_');
         foreach ($modules as $k => $v) {
             $module[$v['name']] = $v['alias'];
         }
         if ($aId != 0) {
             $limit = $model->getActionLimit(array('id' => $aId));
             $limit['punish'] = explode(',', $limit['punish']);
             $limit['action_list'] = str_replace('[', '', $limit['action_list']);
             $limit['action_list'] = str_replace(']', '', $limit['action_list']);
             $limit['action_list'] = explode(',', $limit['action_list']);
         } else {
             $limit = array('status' => 1, 'time_number' => 1);
         }
         $opt_punish = $this->getPunish();
         $opt = D('Action')->getActionOpt();
         $builder->title(($aId == 0 ? L('_NEW_') : L('_EDIT_')) . L('_ACT_RESTRICTION_'))->keyId()->keyTitle()->keyText('name', L('_NAME_'))->keySelect('module', L('_MODULE_'), '', $module)->keyText('frequency', L('_FREQUENCY_'))->keyMultiInput('time_number|time_unit', L('_TIME_UNIT_'), L('_TIME_UNIT_'), array(array('type' => 'text', 'style' => 'width:295px;margin-right:5px'), array('type' => 'select', 'opt' => $this->getTimeUnit(), 'style' => 'width:100px')))->keyChosen('punish', L('_PUNISHMENT_'), L('_MULTI_SELECT_'), $opt_punish)->keyBool('if_message', L('_SEND_REMINDER_'))->keyTextArea('message_content', L('_MESSAGE_PROMPT_CONTENT_'))->keyChosen('action_list', L('_ACT_'), L('_MULTI_SELECT_DEFAULT_'), $opt)->keyStatus()->data($limit)->buttonSubmit(U('editLimit'))->buttonBack()->display();
     }
 }
開發者ID:naliduo,項目名稱:Lightweight-social-platform,代碼行數:54,代碼來源:ActionLimitController.class.php

示例11: 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();
 }
開發者ID:terrydeng,項目名稱:beimeibang1205,代碼行數:14,代碼來源:ExpressionController.class.php

示例12: 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();
 }
開發者ID:chenyongze,項目名稱:bighaha,代碼行數:14,代碼來源:ExpressionController.class.php

示例13: 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();
 }
開發者ID:admpub,項目名稱:OpenCenter,代碼行數:15,代碼來源:ExpressionController.class.php

示例14: config

 public function config()
 {
     $builder = new AdminConfigBuilder();
     $data = $builder->handleConfig();
     $builder->title('基本設置');
     $data['MAX_SHOW_HEIGHT'] = $data['MAX_SHOW_HEIGHT'] ? $data['MAX_SHOW_HEIGHT'] : 160;
     $builder->keyInteger('MAX_SHOW_HEIGHT', '標簽麵板初始最大展示高度')->keyDefault('MAX_SHOW_HEIGHT', 160);
     $role_list = M('Role')->where(array('status' => 1))->field('id,title')->select();
     foreach ($role_list as &$val) {
         $val = array('data-id' => $val['id'], 'title' => $val['title']);
     }
     unset($val);
     $default = array(array('data-id' => 'disable', 'title' => '禁用', 'items' => $role_list), array('data-id' => 'enable', 'title' => '啟用', 'items' => array()));
     $builder->keyKanban('SHOW_ROLE_TAB', '找人界麵展示身份tab', '拖拽到右側以展示這些身份tab,操作的項目對應係統身份');
     $data['SHOW_ROLE_TAB'] = $builder->parseKanbanArray($data['SHOW_ROLE_TAB'], $role_list, $default);
     $builder->group('基本設置', 'MAX_SHOW_HEIGHT,SHOW_ROLE_TAB');
     $data['USER_SHOW_TITLE1'] = $data['USER_SHOW_TITLE1'] ? $data['USER_SHOW_TITLE1'] : '活躍會員';
     $data['USER_SHOW_COUNT1'] = $data['USER_SHOW_COUNT1'] ? $data['USER_SHOW_COUNT1'] : 5;
     $data['USER_SHOW_ORDER_FIELD1'] = $data['USER_SHOW_ORDER_FIELD1'] ? $data['USER_SHOW_ORDER_FIELD1'] : 'score1';
     $data['USER_SHOW_ORDER_TYPE1'] = $data['USER_SHOW_ORDER_TYPE1'] ? $data['USER_SHOW_ORDER_TYPE1'] : 'desc';
     $data['USER_SHOW_CACHE_TIME1'] = $data['USER_SHOW_CACHE_TIME1'] ? $data['USER_SHOW_CACHE_TIME1'] : '600';
     $data['USER_SHOW_TITLE2'] = $data['USER_SHOW_TITLE2'] ? $data['USER_SHOW_TITLE2'] : '最新會員';
     $data['USER_SHOW_COUNT2'] = $data['USER_SHOW_COUNT2'] ? $data['USER_SHOW_COUNT2'] : 5;
     $data['USER_SHOW_ORDER_FIELD2'] = $data['USER_SHOW_ORDER_FIELD2'] ? $data['USER_SHOW_ORDER_FIELD2'] : 'reg_time';
     $data['USER_SHOW_ORDER_TYPE2'] = $data['USER_SHOW_ORDER_TYPE2'] ? $data['USER_SHOW_ORDER_TYPE2'] : 'desc';
     $data['USER_SHOW_CACHE_TIME2'] = $data['USER_SHOW_CACHE_TIME2'] ? $data['USER_SHOW_CACHE_TIME2'] : '600';
     $score = D("Ucenter/Score")->getTypeList(array('status' => 1));
     $order['reg_time'] = '注冊時間';
     $order['last_login_time'] = '最後登錄時間';
     foreach ($score as $s) {
         $order['score' . $s['id']] = '【' . $s['title'] . '】';
     }
     $builder->keyText('USER_SHOW_TITLE1', '標題名稱', '在首頁展示塊的標題');
     $builder->keyText('USER_SHOW_COUNT1', '顯示人數', '隻有在網站首頁模塊中啟用了專輯塊之後才會顯示');
     $builder->keyRadio('USER_SHOW_ORDER_FIELD1', '排序值', '展示模塊的數據排序方式', $order);
     $builder->keyRadio('USER_SHOW_ORDER_TYPE1', '排序方式', '展示模塊的數據排序方式', array('desc' => '倒序,從大到小', 'asc' => '正序,從小到大'));
     $builder->keyText('USER_SHOW_CACHE_TIME1', '緩存時間', '默認600秒,以秒為單位');
     $builder->keyText('USER_SHOW_TITLE2', '標題名稱', '在首頁展示塊的標題');
     $builder->keyText('USER_SHOW_COUNT2', '顯示人數', '隻有在網站首頁模塊中啟用了專輯塊之後才會顯示');
     $builder->keyRadio('USER_SHOW_ORDER_FIELD2', '排序值', '展示模塊的數據排序方式', $order);
     $builder->keyRadio('USER_SHOW_ORDER_TYPE2', '排序方式', '展示模塊的數據排序方式', array('desc' => '倒序,從大到小', 'asc' => '正序,從小到大'));
     $builder->keyText('USER_SHOW_CACHE_TIME2', '緩存時間', '默認600秒,以秒為單位');
     $builder->group('首頁展示左側欄', 'USER_SHOW_TITLE1,USER_SHOW_COUNT1,USER_SHOW_ORDER_FIELD1,USER_SHOW_ORDER_TYPE1,USER_SHOW_CACHE_TIME1');
     $builder->group('首頁展示右側欄', 'USER_SHOW_TITLE2,USER_SHOW_COUNT2,USER_SHOW_ORDER_FIELD2,USER_SHOW_ORDER_TYPE2,USER_SHOW_CACHE_TIME2');
     $builder->data($data);
     $builder->buttonSubmit();
     $builder->display();
 }
開發者ID:ccccy,項目名稱:wuanlife,代碼行數:48,代碼來源:PeopleController.class.php

示例15: config

 public function config()
 {
     $builder = new AdminConfigBuilder();
     $data = $builder->handleConfig();
     $builder->title(L('_BASIC_CONF_'));
     $data['MAX_SHOW_HEIGHT'] = $data['MAX_SHOW_HEIGHT'] ? $data['MAX_SHOW_HEIGHT'] : 160;
     $builder->keyInteger('MAX_SHOW_HEIGHT', L('_MAX_SHOW_HEIGHT_'))->keyDefault('MAX_SHOW_HEIGHT', 160);
     $role_list = M('Role')->where(array('status' => 1))->field('id,title')->select();
     foreach ($role_list as &$val) {
         $val = array('data-id' => $val['id'], 'title' => $val['title']);
     }
     unset($val);
     $default = array(array('data-id' => 'disable', 'title' => L('_DISABLE_'), 'items' => $role_list), array('data-id' => 'enable', 'title' => L('_ENABLED_'), 'items' => array()));
     $builder->keyKanban('SHOW_ROLE_TAB', L('_IDENTITY_TAB_'), L('_IDENTITY_TAB_AFFIX_'));
     $data['SHOW_ROLE_TAB'] = $builder->parseKanbanArray($data['SHOW_ROLE_TAB'], $role_list, $default);
     $builder->group(L('_BASIC_CONF_'), 'MAX_SHOW_HEIGHT,SHOW_ROLE_TAB');
     $data['USER_SHOW_TITLE1'] = $data['USER_SHOW_TITLE1'] ? $data['USER_SHOW_TITLE1'] : L('_ACTIVE_MEMBER_');
     $data['USER_SHOW_COUNT1'] = $data['USER_SHOW_COUNT1'] ? $data['USER_SHOW_COUNT1'] : 5;
     $data['USER_SHOW_ORDER_FIELD1'] = $data['USER_SHOW_ORDER_FIELD1'] ? $data['USER_SHOW_ORDER_FIELD1'] : 'score1';
     $data['USER_SHOW_ORDER_TYPE1'] = $data['USER_SHOW_ORDER_TYPE1'] ? $data['USER_SHOW_ORDER_TYPE1'] : 'desc';
     $data['USER_SHOW_CACHE_TIME1'] = $data['USER_SHOW_CACHE_TIME1'] ? $data['USER_SHOW_CACHE_TIME1'] : '600';
     $data['USER_SHOW_TITLE2'] = $data['USER_SHOW_TITLE2'] ? $data['USER_SHOW_TITLE2'] : L('_NEW_MEMBER_');
     $data['USER_SHOW_COUNT2'] = $data['USER_SHOW_COUNT2'] ? $data['USER_SHOW_COUNT2'] : 5;
     $data['USER_SHOW_ORDER_FIELD2'] = $data['USER_SHOW_ORDER_FIELD2'] ? $data['USER_SHOW_ORDER_FIELD2'] : 'reg_time';
     $data['USER_SHOW_ORDER_TYPE2'] = $data['USER_SHOW_ORDER_TYPE2'] ? $data['USER_SHOW_ORDER_TYPE2'] : 'desc';
     $data['USER_SHOW_CACHE_TIME2'] = $data['USER_SHOW_CACHE_TIME2'] ? $data['USER_SHOW_CACHE_TIME2'] : '600';
     $score = D("Ucenter/Score")->getTypeList(array('status' => 1));
     $order['reg_time'] = L('_REGISTER_TIME_');
     $order['last_login_time'] = L('_LAST_LOGIN_TIME_');
     foreach ($score as $s) {
         $order['score' . $s['id']] = '【' . $s['title'] . '】';
     }
     $builder->keyText('USER_SHOW_TITLE1', L('_TITLE_NAME_'), L('_BLOCK_TITLE_'));
     $builder->keyText('USER_SHOW_COUNT1', L('_SHOW_PEOPLE_'), L('_TIP_AFTER_ENABLED_'));
     $builder->keyRadio('USER_SHOW_ORDER_FIELD1', L('_SORT_NUMBER_'), L('_SHOW_SORT_STYLE_'), $order);
     $builder->keyRadio('USER_SHOW_ORDER_TYPE1', L('_SORT_STYLE_'), L('_SHOW_SORT_STYLE_'), array('desc' => L('_COUNTER_'), 'asc' => L('_DIRECT_')));
     $builder->keyText('USER_SHOW_CACHE_TIME1', L('_CACHE_TIME_'), L('_TIP_CACHE_TIME_'));
     $builder->keyText('USER_SHOW_TITLE2', L('_TITLE_NAME_'), L('_BLOCK_TITLE_'));
     $builder->keyText('USER_SHOW_COUNT2', L('_SHOW_PEOPLE_'), L('_TIP_AFTER_ENABLED_'));
     $builder->keyRadio('USER_SHOW_ORDER_FIELD2', L('_SORT_NUMBER_'), L('_SHOW_SORT_STYLE_'), $order);
     $builder->keyRadio('USER_SHOW_ORDER_TYPE2', L('_SORT_STYLE_'), L('_SHOW_SORT_STYLE_'), array('desc' => L('_COUNTER_'), 'asc' => L('_DIRECT_')));
     $builder->keyText('USER_SHOW_CACHE_TIME2', L('_CACHE_TIME_'), L('_TIP_CACHE_TIME_'));
     $builder->group(L('_HOME_SHOW_LEFT_'), 'USER_SHOW_TITLE1,USER_SHOW_COUNT1,USER_SHOW_ORDER_FIELD1,USER_SHOW_ORDER_TYPE1,USER_SHOW_CACHE_TIME1');
     $builder->group(L('_HOME_SHOW_RIGHT_'), 'USER_SHOW_TITLE2,USER_SHOW_COUNT2,USER_SHOW_ORDER_FIELD2,USER_SHOW_ORDER_TYPE2,USER_SHOW_CACHE_TIME2');
     $builder->data($data);
     $builder->buttonSubmit();
     $builder->display();
 }
開發者ID:naliduo,項目名稱:Lightweight-social-platform,代碼行數:48,代碼來源:PeopleController.class.php


注:本文中的Admin\Builder\AdminConfigBuilder::title方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。