本文整理匯總了PHP中Admin\Builder\AdminListBuilder::display方法的典型用法代碼示例。如果您正苦於以下問題:PHP AdminListBuilder::display方法的具體用法?PHP AdminListBuilder::display怎麽用?PHP AdminListBuilder::display使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Admin\Builder\AdminListBuilder
的用法示例。
在下文中一共展示了AdminListBuilder::display方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: 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();
}
示例2: 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();
}
示例3: 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();
}
}
示例4: 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();
}
示例5: lists
public function lists($page = 1, $r = 20)
{
$map['status'] = array('egt', 0);
$list = M('Report')->where($map)->page($page, $r)->select();
// $simplify_list = array_column($list, 'id');
$reportCount = M('Report')->where($map)->count();
int_to_string($list);
$builder = new AdminListBuilder();
$builder->title(L('_REPORT_PROCESSING_LIST_'));
$builder->setStatusUrl(U('setStatus'))->buttonModalPopup(U('handleEject'), '', L('_PROCESS_'), $attr = array())->buttonDisable('', L('_IGNORE_'))->buttonDelete(U('deleteReport'), L('_DELETE_REPORT_'))->keyId()->keyLink('url', L('_REPORT_LINK_'), '{$url}')->keyUid('uid', L('_REPORT_USERS_ID_'))->keyText('reason', L('_REPORT_REASONS_'))->keyText('content', L('_REPORT_REASONS_'))->keyText('type', L('_REPORT_TYPE_'))->keyCreateTime('create_time', L('_CREATE_TIME_'))->keyUpdateTime('update_time', L('_UPDATE_TIME_'))->keyUpdateTime('handle_time', L('_PROCESSING_TIME_'))->keyDoActionModalPopup('handleEject?id=###', L('_PROCESS_'), L('_OPERATION_'), array('data-title' => L('_MIGRATING_USER_TO_ANOTHER_IDENTITY_')))->keyDoActionEdit(' ', L('_IGNORE_'))->key('status', L('_STATUS_'), 'status', array('0' => L('_IGNORE_'), '1' => L('_HAS_BEEN_DEALT_WITH_'), '2' => L('_BEING_PROCESSED_')));
$builder->data($list);
$builder->pagination($reportCount, $r);
$builder->display();
}
示例6: lists
public function lists($page = 1, $r = 20)
{
$map['status'] = array('egt', 0);
$list = M('Report')->where($map)->page($page, $r)->select();
// $simplify_list = array_column($list, 'id');
$reportCount = M('Report')->where($map)->count();
int_to_string($list);
$builder = new AdminListBuilder();
$builder->title("舉報處理列表");
$builder->setStatusUrl(U('setStatus'))->buttonModalPopup(U('handleEject'), '', "處理", $attr = array())->buttonDisable('', '忽略處理')->buttonDelete(U('deleteReport'), '刪除舉報')->keyId()->keyLink('url', "舉報鏈接", '{$url}')->keyUid('uid', "舉報用戶的ID")->keyText('reason', "舉報原因")->keyText('content', "舉報原因")->keyText('type', "舉報類型")->keyCreateTime('create_time', "創建時間")->keyUpdateTime('update_time', "更新時間")->keyUpdateTime('handle_time', "處理時間")->keyDoActionModalPopup('handleEject?id=###', '處理', '操作', array('data-title' => '遷移用戶到其他身份'))->keyDoActionEdit(' ', '忽略處理')->key('status', '狀態', 'status', array('0' => '忽略處理', '1' => '已處理', '2' => '正在處理'));
$builder->data($list);
$builder->pagination($reportCount, $r);
$builder->display();
}
示例7: 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();
}
示例8: 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();
}
示例9: lists
public function lists()
{
$listBuilder = new AdminListBuilder();
/*刷新模塊列表時清空緩存*/
$aRefresh = I('get.refresh', 0, 'intval');
if ($aRefresh == 1) {
D('Module')->reload();
} else {
if ($aRefresh == 2) {
D('Module')->cleanModulesCache();
}
}
/*刷新模塊列表時清空緩存 end*/
$modules = $this->moduleModel->getAll();
foreach ($modules as &$m) {
$m['alias'] = '<a href="' . U('edit?', array('name' => $m['name'])) . '"><i class="icon-' . $m['icon'] . '"></i> ' . $m['alias'] . '</a>';
if ($m['is_setup']) {
$m['name'] = '<i class="icon-ok" style="color: green;"></i> ' . $m['name'];
if ($m['can_uninstall'] == 1) {
$m['do'] = '<a class="btn btn-error " href="' . U('uninstall', array('id' => $m['id'])) . '"><span style="color: red;" ><i class="icon-cut"></i></span> 卸載</a>';
} else {
$m['do'] = '係統模塊';
}
} else {
$m['do'] = '<a class="btn" href="' . U('install', array('name' => $m['name'])) . '"><span style="color: green;"<i class="icon-check"></i></span> 安裝</a>';
$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>';
}
}
unset($m);
$listBuilder->data($modules);
$listBuilder->title('模塊管理');
$listBuilder->button('刷新(讀入新的模塊)', array('href' => U('Admin/Module/lists', array('refresh' => 2))));
$listBuilder->button('重置(根據預設模塊信息重置)', array('href' => U('Admin/Module/lists', array('refresh' => 1))));
$listBuilder->keyId()->keyHtml('alias', '模塊名')->keyText('name', '模塊英文名')->keyText('summary', '模塊介紹')->keyText('version', '版本號')->keyLink('developer', '開發者', '{$website}')->keyText('entry', '前台入口')->keyText('admin_entry', '後台入口')->keyHtml('do', '操作');
$listBuilder->display();
}
示例10: 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();
}
示例11: goodsList
public function goodsList($page = 1, $r = 20)
{
$map['status'] = array('egt', 0);
$goodsList = $this->shopModel->where($map)->order('createtime desc')->page($page, $r)->select();
$totalCount = $this->shopModel->where($map)->count();
$builder = new AdminListBuilder();
$builder->title('商品列表');
$builder->meta_title = '商品列表';
foreach ($goodsList as &$val) {
$category = $this->shop_categoryModel->where('id=' . $val['category_id'])->getField('title');
$val['category'] = $category;
unset($category);
$val['is_new'] = $val['is_new'] == 0 ? '否' : '是';
}
unset($val);
$builder->buttonNew(U('Shop/goodsEdit'))->buttonDelete(U('setGoodsStatus'))->setStatusUrl(U('setGoodsStatus'));
$builder->keyId()->keyText('goods_name', '商品名稱')->keyText('category', '商品分類')->keyText('goods_introduct', '商品廣告語')->keyText('money_need', '商品價格')->keyText('goods_num', '商品餘量')->keyText('sell_num', '已售出量')->keyLink('is_new', '是否為新品', 'Shop/setNew?id=###')->keyStatus('status', '出售狀態')->keyUpdateTime('changetime')->keyCreateTime('createtime')->keyDoActionEdit('Shop/goodsEdit?id=###');
$builder->data($goodsList);
$builder->pagination($totalCount, $r);
$builder->display();
}
示例12: field
public function field($id, $page = 1, $r = 20)
{
$profile = D('field_group')->where('id=' . $id)->find();
$map['status'] = array('egt', 0);
$map['profile_group_id'] = $id;
$field_list = D('field_setting')->where($map)->order("sort asc")->page($page, $r)->select();
$totalCount = D('field_setting')->where($map)->count();
$type_default = array('input' => L('_ONE-WAY_TEXT_BOX_'), 'radio' => L('_RADIO_BUTTON_'), 'checkbox' => L('_CHECKBOX_'), 'select' => L('_DROP-DOWN_BOX_'), 'time' => L('_DATE_'), 'textarea' => L('_MULTI_LINE_TEXT_BOX_'));
$child_type = array('string' => L('_STRING_'), 'phone' => L('_PHONE_NUMBER_'), 'email' => L('_MAILBOX_'), 'number' => L('_NUMBER_'), 'join' => L('_RELATED_FIELD_'));
foreach ($field_list as &$val) {
$val['form_type'] = $type_default[$val['form_type']];
$val['child_form_type'] = $child_type[$val['child_form_type']];
}
$builder = new AdminListBuilder();
$builder->title('【' . $profile['profile_name'] . '】 字段管理');
$builder->meta_title = $profile['profile_name'] . L('_FIELD_MANAGEMENT_');
$builder->buttonNew(U('editFieldSetting', array('id' => '0', 'profile_group_id' => $id)))->buttonDelete(U('setFieldSettingStatus', array('status' => '-1')))->setStatusUrl(U('setFieldSettingStatus'))->buttonSort(U('sortField', array('id' => $id)))->button(L('_RETURN_'), array('href' => U('profile')));
$builder->keyId()->keyText('field_name', L('_FIELD_NAME_'))->keyBool('visiable', L('_OPEN_YE_OR_NO_'))->keyBool('required', L('_WHETHER_THE_REQUIRED_'))->keyText('sort', L('_SORT_'))->keyText('form_type', L('_FORM_TYPE_'))->keyText('child_form_type', L('_TWO_FORM_TYPE_'))->keyText('form_default_value', L('_DEFAULT_'))->keyText('validation', L('_FORM_VERIFICATION_MODE_'))->keyText('input_tips', L('_USER_INPUT_PROMPT_'));
$builder->keyTime("createTime", L('_CREATE_TIME_'))->keyStatus()->keyDoAction('User/editFieldSetting?profile_group_id=' . $id . '&id=###', L('_EDIT_'));
$builder->data($field_list);
$builder->pagination($totalCount, $r);
$builder->display();
}
示例13: 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();
}
示例14: field
public function field($id, $page = 1, $r = 20)
{
$profile = D('field_group')->where('id=' . $id)->find();
$map['status'] = array('egt', 0);
$map['profile_group_id'] = $id;
$field_list = D('field_setting')->where($map)->order("sort asc")->page($page, $r)->select();
$totalCount = D('field_setting')->where($map)->count();
$type_default = array('input' => '單行文本框', 'radio' => '單選按鈕', 'checkbox' => '多選框', 'select' => '下拉選擇框', 'time' => '日期', 'textarea' => '多行文本框');
$child_type = array('string' => '字符串', 'phone' => '手機號碼', 'email' => '郵箱', 'number' => '數字', 'join' => '關聯字段');
foreach ($field_list as &$val) {
$val['form_type'] = $type_default[$val['form_type']];
$val['child_form_type'] = $child_type[$val['child_form_type']];
}
$builder = new AdminListBuilder();
$builder->title('【' . $profile['profile_name'] . '】 字段管理');
$builder->meta_title = $profile['profile_name'] . '字段管理';
$builder->buttonNew(U('editFieldSetting', array('id' => '0', 'profile_group_id' => $id)))->buttonDelete(U('setFieldSettingStatus', array('status' => '-1')))->setStatusUrl(U('setFieldSettingStatus'))->buttonSort(U('sortField', array('id' => $id)))->button('返回', array('href' => U('profile')));
$builder->keyId()->keyText('field_name', "字段名稱")->keyBool('visiable', '是否公開')->keyBool('required', '是否必填')->keyText('sort', "排序")->keyText('form_type', '表單類型')->keyText('child_form_type', '二級表單類型')->keyText('form_default_value', '默認值')->keyText('validation', '表單驗證方式')->keyText('input_tips', '用戶輸入提示');
$builder->keyTime("createTime", "創建時間")->keyStatus()->keyDoAction('User/editFieldSetting?profile_group_id=' . $id . '&id=###', '編輯');
$builder->data($field_list);
$builder->pagination($totalCount, $r);
$builder->display();
}
示例15: order
public function order($r = 15)
{
$orderModel = M('Store/Order');
$shopModel = M('Store/StoreShop');
$orders = $orderModel->order('create_time desc')->findPage($r);
$total_count = $orderModel->count();
$listBuilder = new AdminListBuilder();
foreach ($orders['data'] as &$s) {
$s['shop_name'] = '<a href="' . U('Store/shop/detail', array('id' => $s['id'])) . '" target="_blank">' . $s['title'] . '</a>';
$s['seller_'];
$shop = $shopModel->where(array('uid' => $s['s_uid']))->find();
$s['shop_name'] = $this->getShopLink($shop);
$s['amount'] = number_format($s['total_cny'] + $s['adj_cny'], 2);
$s['condition'] = $orderModel->getConditionHtml($s['condition']);
}
unset($s);
$listBuilder->setStatusUrl(U('store/setsshopstatus'));
$listBuilder->title('訂單管理')->keyId()->keyUid()->keyText('r_name', '收貨人名')->keyText('amount', '訂單總價')->keyText('shop_name', '店鋪')->keyText('condition', '訂單狀態')->keyText('total_count', '商品數量')->keyCreateTime()->keyUpdateTime()->data($orders['data'])->pagination($total_count, $r);
$listBuilder->display();
}