当前位置: 首页>>代码示例>>PHP>>正文


PHP Builder\AdminListBuilder类代码示例

本文整理汇总了PHP中Admin\Builder\AdminListBuilder的典型用法代码示例。如果您正苦于以下问题:PHP AdminListBuilder类的具体用法?PHP AdminListBuilder怎么用?PHP AdminListBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AdminListBuilder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setStatus

 public function setStatus($ids, $status = 1)
 {
     $ids = I('ids', array());
     $status = $_GET['status'];
     $status != 1 && ($status = 0);
     D('Addons://Report/Report')->processingTime();
     $builder = new AdminListBuilder();
     $builder->doSetStatus('Report', $ids, $status);
 }
开发者ID:ccccy,项目名称:wuanlife,代码行数:9,代码来源:ReportController.class.php

示例2: index

 public function index()
 {
     $r = 20;
     $model = D("Contact");
     $list = $model->order('id desc')->page(1, $r)->select();
     unset($li);
     $totalCount = $model->count();
     //显示页面
     $builder = new AdminListBuilder();
     $builder->title('留言管理')->keyId()->keyText('name', '姓名')->keyText('address', '地址')->keyText('phone', '手机号')->keyText('message', '内容')->keyText('created_at', '创建时间')->data($list)->pagination($totalCount, $r)->display();
 }
开发者ID:tmac1997,项目名称:DormitoryWebsite,代码行数:11,代码来源:DormController.class.php

示例3: expressionList

 public function expressionList()
 {
     $title = I('get.title', '', 'op_t');
     $list = D('Expression')->getExpression($title);
     foreach ($list as &$v) {
         $v['image'] = '<img src="' . $v['src'] . '"/>';
     }
     unset($v);
     $builder = new AdminListBuilder();
     $builder->title('表情列表')->keyText('title', '标题')->keyText('image', '表情图片')->keyDoAction('Admin/Expression/delExpression?title={$filename}&pkg=' . $title, '删除')->data($list)->display();
 }
开发者ID:fishling,项目名称:chatPro,代码行数:11,代码来源:ExpressionController.class.php

示例4: index

 public function index($page = 1, $r = 20)
 {
     //读取数据
     $model = D('Weicj');
     $map['mp_id'] = get_mpid();
     $list = $model->where($map)->page($page, $r)->order('id asc')->select();
     foreach ($list as &$val) {
     }
     $url = $list['url'];
     $totalCount = $model->count();
     //显示页面
     $builder = new AdminListBuilder();
     $builder->title('微场景列表')->buttonNew(U('edit'))->button('删除', array('class' => 'btn ajax-post tox-confirm', 'data-confirm' => '您确实要删除关键词吗?', 'url' => U('del'), 'target-form' => 'ids'))->keyId()->keyText('title', '标题')->keyText('intro', '简介')->keyText('cjurl', '跳转url')->keyDoAction('preview?id=###', '预览')->keyDoActionEdit('edit?id=###')->keyDoAction('del?ids=###', '删除')->data($list)->pagination($totalCount, $r)->display();
 }
开发者ID:fishling,项目名称:chatPro,代码行数:14,代码来源:WeicjaController.class.php

示例5: scoreLog

 public function scoreLog($r = 20, $p = 1)
 {
     if (I('type') == 'clear') {
         D('ScoreLog')->where(array('id>0'))->delete();
         $this->success('清空成功。', U('scoreLog'));
         exit;
     } else {
         $aUid = I('uid', 0, '');
         if ($aUid) {
             $map['uid'] = $aUid;
         }
         $listBuilder = new AdminListBuilder();
         $listBuilder->title('积分日志');
         $map['status'] = array('gt', -1);
         $scoreLog = D('ScoreLog')->where($map)->order('create_time desc')->findPage($r);
         $scoreTypes = D('Ucenter/Score')->getTypeListByIndex();
         foreach ($scoreLog['data'] as &$v) {
             $v['adjustType'] = $v['action'] == 'inc' ? '增加' : '减少';
             $v['scoreType'] = $scoreTypes[$v['type']]['title'];
             $class = $v['action'] == 'inc' ? 'text-success' : 'text-danger';
             $v['value'] = '<span class="' . $class . '">' . ($v['action'] == 'inc' ? '+' : '-') . $v['value'] . $scoreTypes[$v['type']]['unit'] . '</span>';
             $v['finally_value'] = $v['finally_value'] . $scoreTypes[$v['type']]['unit'];
         }
         $listBuilder->data($scoreLog['data']);
         $listBuilder->keyId()->keyUid('uid', '用户')->keyText('scoreType', '积分类型')->keyText('adjustType', '调整类型')->keyHtml('value', '积分变动')->keyText('finally_value', '积分最终值')->keyText('remark', '变动描述')->keyCreateTime();
         $listBuilder->pagination($scoreLog['count'], $r);
         $listBuilder->search(L('_SEARCH_'), 'uid', 'text', '输入UID');
         $listBuilder->button('清空日志', array('url' => U('scoreLog', array('type' => 'clear')), 'class' => 'btn ajax-get confirm'));
         $listBuilder->display();
     }
 }
开发者ID:naliduo,项目名称:Lightweight-social-platform,代码行数:31,代码来源:ActionController.class.php

示例6: withdrawList

 public function withdrawList($r = 15, $page = 1)
 {
     $listBuilder = new AdminListBuilder();
     $recordModel = D('recharge_withdraw');
     $data = $recordModel->order('create_time desc')->page($p, $r)->select();
     $totalCount = $recordModel->count();
     foreach ($data as &$v) {
         $type = D('Ucenter/Score')->getType(array('id' => $v['field'], 'status' => 1));
         $v['type_title'] = $type['title'];
         $v['method_name'] = get_pay_method($v['method']);
         $v['pay_condition'] = $this->getConditionText($v['payok']);
         if ($v['pay_uid'] != 0) {
             $user = query_user(array('space_link'), $v['pay_uid']);
             $v['operator'] = $user['space_link'];
         } else {
             $v['operator'] = '-';
         }
         $v['pay_time'] = $v['pay_time'] == 0 ? '-' : $v['pay_time'];
     }
     unset($v);
     $listBuilder->title('提现记录');
     $listBuilder->keyId()->keyText('type_title', '提现字段')->keyText('amount', '提现金额')->keyText('frozen_amount', '冻结积分')->keyUid()->keyText('method_name', '提现方式')->keyCreateTime()->keyText('pay_condition', '支付状态')->keyText('operator', '操作者')->keyTime('pay_time', '提现操作时间')->keyText('account_info', '收款账户信息');
     $listBuilder->data($data)->pagination($totalCount, $r);
     $listBuilder->ajaxButton(U('recharge/doWithdraw'), null, '提现');
     $listBuilder->ajaxButton(U('recharge/cancelWithdraw'), null, '关闭提现');
     $listBuilder->display();
 }
开发者ID:chenyongze,项目名称:bighaha,代码行数:27,代码来源:RechargeController.class.php

示例7: index

 public function index($page = 1, $r = 20)
 {
     //读取数据
     $model = D('Common/Ucuser');
     $map['status'] = array('EGT', 0);
     $map['mp_id'] = get_mpid();
     $list = $model->where($map)->page($page, $r)->order('uid asc')->select();
     int_to_string($list);
     //设置status
     foreach ($list as &$val) {
         $val['sex'] = $model->getSex($val['sex']);
     }
     $totalCount = $model->count();
     //显示页面
     $builder = new AdminListBuilder();
     $builder->title('用户列表')->keyText('uid', 'uid')->keyText('openid', 'openid')->keyText('nickname', '昵称')->keyText('sex', '性别')->keyText('province', '省份')->keyText('city', '城市')->keyText('score1', '积分')->data($list)->pagination($totalCount, $r)->display();
 }
开发者ID:fishling,项目名称:chatPro,代码行数:17,代码来源:UcuserController.class.php

示例8: type

 public function type($page = 1, $r = 20)
 {
     $entity = I('entity', 0, 'intval');
     if ($entity != 0) {
         $map['entity'] = $entity;
     }
     $builder = new AdminListBuilder();
     $builder->title('商品分类管理');
     $list = D('Appstore/AppstoreType')->getList($map, $r, 'id desc');
     foreach ($list['data'] as &$v) {
         switch ($v['entity']) {
             case 1:
                 $v['entity_alias'] = '插件';
                 break;
             case 2:
                 $v['entity_alias'] = '模块';
                 break;
             case 3:
                 $v['entity_alias'] = '模板';
                 break;
             case 4:
                 $v['entity_alias'] = '服务';
                 break;
         }
     }
     unset($v);
     $builder->keyId()->keyLink('title', '分类名称', 'addType?id=###')->keyText('entity_alias', '分类所属');
     $builder->setSelectPostUrl(U('type'))->select('', 'entity', 'select', '', '', '', array(array('id' => 0, 'value' => '全部'), array('id' => 1, 'value' => '插件'), array('id' => 2, 'value' => '模块'), array('id' => 3, 'value' => '主题'), array('id' => 4, 'value' => '服务')));
     $builder->buttonNew(U('addType', array('entity' => $entity)), '新增');
     $builder->data($list[data]);
     $builder->display();
 }
开发者ID:chenyongze,项目名称:bighaha,代码行数:32,代码来源:AppstoreController.class.php

示例9: index

 public function index($page = 1, $r = 20)
 {
     //读取数据
     $model = D('Common/Keyword');
     $map['uid'] = UID;
     $map['public_id'] = get_token();
     $mp = D('Mpbase/MemberPublic')->where($map)->find();
     //所登陆会员帐号当前管理的公众号
     $kmap['mp_id'] = $mp['id'];
     $list = $model->where($kmap)->page($page, $r)->order('id asc')->select();
     foreach ($list as &$val) {
         $amap['name'] = $val['addon'];
         $val['addon_name'] = M('addons')->where($amap)->getField('title');
     }
     $totalCount = $model->count();
     //显示页面
     $builder = new AdminListBuilder();
     $builder->title('关键词列表')->buttonNew(U('edit'))->button('删除', array('class' => 'btn ajax-post tox-confirm', 'data-confirm' => '您确实要删除关键词吗?', 'url' => U('del'), 'target-form' => 'ids'))->keyId()->keyText('keyword', '关键词')->keyText('addon', '所属插件')->keyText('model', '对应数据表')->keyText('aim_id', '插件数据ID')->keyText('title', '回复标题')->keyText('description', '回复描述')->keyImage('cover', '回复封面图片')->keyText('url', '跳转url', '以http://开头的完整url')->keyDoActionEdit('edit?id=###')->keyDoAction('del?ids=###', '删除')->data($list)->pagination($totalCount, $r)->display();
 }
开发者ID:fishling,项目名称:chatPro,代码行数:19,代码来源:KeywordController.class.php

示例10: index

 public function index($page = 1, $r = 20)
 {
     //读取数据
     $model = D('Mpbase/MemberPublic');
     $map['status'] = array('EGT', 0);
     if (!is_administrator()) {
         //管理员可以管理全部公众号
         $map['uid'] = UID;
     }
     $list = $model->where($map)->page($page, $r)->order('id asc')->select();
     int_to_string($list);
     //设置status
     foreach ($list as &$val) {
         $val['u_name'] = D('member')->where('uid=' . $val['uid'])->getField('nickname');
         $val['type'] = $model->getMpType($val['type']);
     }
     $totalCount = $model->count();
     //显示页面
     $builder = new AdminListBuilder();
     $builder->title('公众号列表')->buttonNew(U('Mpbase/edit'))->setStatusUrl(U('setStatus'))->buttonEnable()->buttonDisable()->button('删除', array('class' => 'btn ajax-post tox-confirm', 'data-confirm' => '您确实要删除公众号吗?(删除后对应的公众号配置将会清空,不可恢复,请谨慎删除!)', 'url' => U('del'), 'target-form' => 'ids'))->keyId()->keyUid()->keyText('public_name', '名称')->keyText('wechat', '微信号')->keyText('public_id', '原始ID')->keyText('type', '公众号类型')->keyStatus()->keyDoActionEdit('edit?id=###')->keyDoAction('del?ids=###', '删除')->keyDoAction('change?id=###', '切换为当前公众号')->keyDoAction('Home/Index/help?id=###', '接口配置')->data($list)->pagination($totalCount, $r)->display();
 }
开发者ID:suhanyujie,项目名称:digitalOceanVps,代码行数:21,代码来源:MpbaseController.class.php

示例11: lists

 public function lists()
 {
     $listBuilder = new AdminListBuilder();
     /*刷新模块列表时清空缓存*/
     $aRefresh = I('get.refresh', 0, 'intval');
     if ($aRefresh) {
         S('module_all', null);
     }
     /*刷新模块列表时清空缓存 end*/
     $modules = $this->moduleModel->getAll();
     foreach ($modules as &$m) {
         $m['alias'] = '<i class="icon-' . $m['icon'] . '"></i> ' . $m['alias'];
         if ($m['is_setup']) {
             $m['name'] = '<i class="icon-ok" style="color: green;"></i> ' . $m['name'];
             if ($m['can_uninstall']) {
                 $m['do'] = '<a class="btn btn-error "  onclick="moduleManager.uninstall(\'' . $m['id'] . '\')"><span style="color: red;" ><i class="icon-cut"></i></span> 卸载</a>';
             }
         } else {
             $m['name'] = '<i class="icon-remove" style="color: red;"></i> ' . $m['name'];
             $m['do'] = '<a class="btn" onclick="moduleManager.install(\'' . $m['id'] . '\')"><span style="color: green;"<i class="icon-check"></i></span> 安装</a>';
         }
         if ($m['is_com']) {
             $m['is_com'] = '<strong style="color: orange">商业模块</strong>';
         } else {
             $m['is_com'] = '<strong style="color: green">免费模块</strong>';
         }
     }
     unset($m);
     $listBuilder->data($modules);
     $listBuilder->title('模块管理');
     $listBuilder->button('刷新', array('href' => U('Admin/Module/lists', array('refresh' => 1))));
     $listBuilder->keyId()->keyHtml('alias', '模块名')->keyText('name', '模块英文名')->keyText('summary', '模块介绍')->keyText('version', '版本号')->keyText('is_com', '商业模块')->keyLink('developer', '开发者', '{$website}')->keyText('entry', '前台入口')->keyText('admin_entry', '后台入口')->keyText('do', '操作');
     $listBuilder->display();
 }
开发者ID:fishling,项目名称:chatPro,代码行数:34,代码来源:ModuleController.class.php

示例12: userList

 public function userList($page = 1, $r = 20)
 {
     $aSearch1 = I('get.user_search1', '');
     $aSearch2 = I('get.user_search2', 0, 'intval');
     $map = array();
     if (empty($aSearch1) && empty($aSearch2)) {
         $aUserGroup = I('get.user_group', 0, 'intval');
         $aRole = I('get.role', 0, 'intval');
         if (!empty($aRole) || !empty($aUserGroup)) {
             $uids = $this->getUids($aUserGroup, $aRole);
             $map['uid'] = array('in', $uids);
         }
         $user = D('member')->where($map)->page($page, $r)->field('uid,nickname')->select();
         foreach ($user as &$v) {
             $v['id'] = $v['uid'];
         }
         unset($v);
         $totalCount = D('member')->where($map)->count();
     } else {
         $uids = $this->getUids_sc($aSearch1, $aSearch2);
         $map['uid'] = array('in', $uids);
         $user = D('member')->where($map)->page($page, $r)->field('uid,nickname')->select();
         foreach ($user as &$v) {
             $v['id'] = $v['uid'];
         }
         unset($v);
         $totalCount = D('member')->where($map)->count();
     }
     $r = 20;
     $role = D('Role')->selectByMap(array('status' => 1));
     $user_role = array(array('id' => 0, 'value' => L('_ALL_')));
     foreach ($role as $key => $v) {
         array_push($user_role, array('id' => $v['id'], 'value' => $v['title']));
     }
     $group = D('AuthGroup')->getGroups();
     $user_group = array(array('id' => 0, 'value' => L('_ALL_')));
     foreach ($group as $key => $v) {
         array_push($user_group, array('id' => $v['id'], 'value' => $v['title']));
     }
     $builder = new AdminListBuilder();
     $builder->title(L('_"MASS_USER_LIST"_'));
     $builder->meta_title = L('_"MASS_USER_LIST"_');
     $builder->setSelectPostUrl(U('Message/userList'))->setSearchPostUrl(U('Message/userList'))->select(L('_USER_GROUP:_'), 'user_group', 'select', L('_FILTER_ACCORDING_TO_USER_GROUP_'), '', '', $user_group)->select(L('_IDENTITY_'), 'role', 'select', L('_FILTER_ACCORDING_TO_USER_IDENTITY_'), '', '', $user_role)->search('', 'user_search1', '', L('_SEARCH_ACCORDING_TO_USERS_NICKNAME_'), '', '', '')->search('', 'user_search2', '', L('_SEARCH_ACCORDING_TO_USER_ID_'), '', '', '');
     $builder->buttonModalPopup(U('Message/sendMessage'), array('user_group' => $aUserGroup, 'role' => $aRole), L('_SEND_A_MESSAGE_'), array('data-title' => L('_MASS_MESSAGE_'), 'target-form' => 'ids', 'can_null' => 'true'));
     $builder->keyText('uid', '用户ID')->keyText('nickname', L('_"NICKNAME"_'));
     $builder->data($user);
     $builder->pagination($totalCount, $r);
     $builder->display();
 }
开发者ID:naliduo,项目名称:Lightweight-social-platform,代码行数:49,代码来源:MessageController.class.php

示例13: buildList

 /**
  * 公告列表
  * @param int $page
  * @param int $r
  * @author 郑钟良<zzl@ourstu.com>
  */
 public function buildList($page = 1, $r = 20)
 {
     $map['status'] = 1;
     $aDown = I('down', 0, 'intval');
     $this->assign('down', $aDown);
     if ($aDown) {
         $map['end_time'] = array('elt', time());
     } else {
         $map['end_time'] = array('gt', time());
     }
     list($list, $totalCount) = $this->announcementModel->getListPage($map, $page, 'id desc', $r);
     $builder = new AdminListBuilder();
     $builder->title('公告列表');
     $builder->buttonNew(addons_url('Announcement://admin/edit'));
     $builder->setSelectPostUrl(addons_url('Announcement://admin/buildList'))->select('', 'down', 'select', '', '', '', array(array('id' => 0, 'value' => '当前公告'), array('id' => 1, 'value' => '历史公告')));
     $builder->keyId()->keyTitle()->keyIcon()->keyText('link', '链接')->keyText('content', '内容')->keyCreateTime()->keyTime('end_time', '截止日期');
     $builder->keyDoActionEdit('Announcement://admin/edit?id=###|addons_url');
     if (!$aDown) {
         $builder->ajaxButton(addons_url('Announcement://admin/setEnd'), '', '设为到期')->keyDoAction('Announcement://admin/setEnd?ids=###|addons_url', '设为到期');
     }
     $builder->data($list)->pagination($totalCount, $r);
     $builder->display();
 }
开发者ID:chenyongze,项目名称:bighaha,代码行数:29,代码来源:AdminController.class.php

示例14: buildList

 public function buildList($page = 1, $r = 20)
 {
     $map['status'] = array('egt', 0);
     $list = M('Report')->where($map)->page($page, $r)->order('id asc')->select();
     $reportCount = M('Report')->where($map)->count();
     int_to_string($list);
     $builder = new AdminListBuilder();
     $builder->title("举报处理列表");
     $builder->buttonModalPopup(addons_url('Report://Admin/handleEject'), '', '批量处理', array('target-form' => 'ids'))->buttonDisable(addons_url('Report://Admin/ignoreReport'), '忽略处理')->buttonDelete(addons_url('Report://Admin/deleteReport'), '删除举报')->keyId()->keyLink('url', "举报链接", '{$url}')->keyUid('uid', "举报用户的ID")->keyText('reason', "举报原因")->keyText('content', "举报描述")->keyText('type', "举报类型")->keyCreateTime('create_time', "创建时间")->keyUpdateTime('handle_time', "处理时间")->keyText('handle_result', "处理结果")->keyDoActionModalPopup('Report://Admin/handleEject?ids=###|addons_url', '处理', '操作')->keyDoActionEdit('Report://Admin/ignoreReport?ids=###|addons_url', '忽略处理')->key('status', '状态', 'status', array('0' => '未处理', '1' => '处理中', '2' => '已处理'));
     $builder->data($list);
     $builder->pagination($reportCount, $r);
     $builder->display();
 }
开发者ID:xiaolw,项目名称:wacms,代码行数:13,代码来源:AdminController.class.php

示例15: userList

 public function userList($page = 1, $r = 20)
 {
     $aUserGroup = I('get.user_group', 0, 'intval');
     $aRole = I('get.role', 0, 'intval');
     $map = array();
     if (!empty($aRole) || !empty($aUserGroup)) {
         $uids = $this->getUids($aUserGroup, $aRole);
         $map['uid'] = array('in', $uids);
     }
     $user = D('member')->where($map)->page($page, $r)->field('uid,nickname')->select();
     foreach ($user as &$v) {
         $v['id'] = $v['uid'];
     }
     unset($v);
     $totalCount = D('member')->where($map)->count();
     $r = 20;
     $role = D('Role')->selectByMap(array('status' => 1));
     $user_role = array(array('id' => 0, 'value' => '全部'));
     foreach ($role as $key => $v) {
         array_push($user_role, array('id' => $v['id'], 'value' => $v['title']));
     }
     $group = D('AuthGroup')->getGroups();
     $user_group = array(array('id' => 0, 'value' => '全部'));
     foreach ($group as $key => $v) {
         array_push($user_group, array('id' => $v['id'], 'value' => $v['title']));
     }
     $builder = new AdminListBuilder();
     $builder->title("群发用户列表");
     $builder->meta_title = '群发用户列表';
     $builder->setSelectPostUrl(U('Message/userList'))->select('用户组:', 'user_group', 'select', '根据用户组筛选', '', '', $user_group)->select('身份:', 'role', 'select', '根据用户身份筛选', '', '', $user_role);
     $builder->buttonModalPopup(U('Message/sendMessage'), array('user_group' => $aUserGroup, 'role' => $aRole), '发送消息', array('data-title' => '群发消息', 'target-form' => 'ids', 'can_null' => 'true'));
     $builder->keyText('uid', '用户ID')->keyText('nickname', "昵称");
     $builder->data($user);
     $builder->pagination($totalCount, $r);
     $builder->display();
 }
开发者ID:ccccy,项目名称:wuanlife,代码行数:36,代码来源:MessageController.class.php


注:本文中的Admin\Builder\AdminListBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。