本文整理匯總了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();
}
示例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();
}