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


PHP AdminListBuilder::keyStatus方法代碼示例

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


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

示例1: profile

 public function profile($page = 1, $r = 20)
 {
     $map['status'] = array('egt', 0);
     $profileList = D('field_group')->where($map)->order("sort asc")->page($page, $r)->select();
     $totalCount = D('field_group')->where($map)->count();
     $builder = new AdminListBuilder();
     $builder->title(L('_GROUP_EXPAND_INFO_LIST_'));
     $builder->meta_title = L('_GROUP_EXPAND_INFO_');
     $builder->buttonNew(U('editProfile', array('id' => '0')))->buttonDelete(U('changeProfileStatus', array('status' => '-1')))->setStatusUrl(U('changeProfileStatus'))->buttonSort(U('sortProfile'));
     $builder->keyId()->keyText('profile_name', L('_GROUP_NAME_'))->keyText('sort', L('_SORT_'))->keyTime("createTime", L('_CREATE_TIME_'))->keyBool('visiable', L('_PUBLIC_IF_'));
     $builder->keyStatus()->keyDoAction('User/field?id=###', L('_FIELD_MANAGER_'))->keyDoAction('User/editProfile?id=###', L('_EDIT_'));
     $builder->data($profileList);
     $builder->pagination($totalCount, $r);
     $builder->display();
 }
開發者ID:naliduo,項目名稱:Lightweight-social-platform,代碼行數:15,代碼來源:UserController.class.php

示例2: profile

 public function profile($page = 1, $r = 20)
 {
     $map['status'] = array('egt', 0);
     $profileList = D('field_group')->where($map)->order("sort asc")->page($page, $r)->select();
     $totalCount = D('field_group')->where($map)->count();
     $builder = new AdminListBuilder();
     $builder->title("擴展信息分組列表");
     $builder->meta_title = '擴展信息分組';
     $builder->buttonNew(U('editProfile', array('id' => '0')))->buttonDelete(U('changeProfileStatus', array('status' => '-1')))->setStatusUrl(U('changeProfileStatus'))->buttonSort(U('sortProfile'));
     $builder->keyId()->keyText('profile_name', "分組名稱")->keyText('sort', '排序')->keyTime("createTime", "創建時間")->keyBool('visiable', '是否公開');
     $builder->keyStatus()->keyDoAction('User/field?id=###', '管理字段')->keyDoAction('User/editProfile?id=###', '編輯');
     $builder->data($profileList);
     $builder->pagination($totalCount, $r);
     $builder->display();
 }
開發者ID:ccccy,項目名稱:wuanlife,代碼行數:15,代碼來源:UserController.class.php


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