本文整理汇总了PHP中AdminbaseAction::_list方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminbaseAction::_list方法的具体用法?PHP AdminbaseAction::_list怎么用?PHP AdminbaseAction::_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminbaseAction
的用法示例。
在下文中一共展示了AdminbaseAction::_list方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
if ($_REQUEST['sn']) {
$sn = get_safe_replace($_REQUEST['sn']);
unset($_REQUEST['sn']);
}
import('@.Action.Adminbase');
$c = new AdminbaseAction();
if ($this->_userid || $sn) {
$map['userid'] = intval($this->_userid);
if ($sn) {
$map['sn'] = $sn;
}
$c->_list(MODULE_NAME, $map);
}
$this->display();
}
示例2: index
public function index()
{
if ($_REQUEST['sn']) {
$sn = get_safe_replace($_REQUEST['sn']);
unset($_REQUEST['sn']);
}
if ($this->_userid || $sn) {
A('Adminbase');
$c = new AdminbaseAction();
$map = array();
$map['userid'] = intval($this->_userid);
if ($sn) {
$map['sn'] = $sn;
}
$data = $c->_list(MODULE_NAME, $map);
$this->assign('page', $data['page']);
$this->assign('list', $data['list']);
}
$this->display();
}
示例3: index
/**
* 列表
*
*/
public function index()
{
if (!$this->_userid) {
$this->error(L('nologin'));
}
if ($this->module[$this->moduleid]['type'] == 1) {
if ($this->categorys) {
foreach ($this->categorys as $r) {
if ($r['type'] == 1 || !in_array($this->_groupid, explode(',', $r['postgroup']))) {
continue;
}
if ($r['moduleid'] != $this->moduleid || $r['child']) {
$arr = explode(",", $r['arrchildid']);
$show = 0;
foreach ((array) $arr as $rr) {
if ($this->categorys[$rr]['moduleid'] == $this->moduleid) {
$show = 1;
}
}
if (empty($show)) {
continue;
}
$r['disabled'] = $r['child'] ? ' disabled' : '';
} else {
$r['disabled'] = '';
}
$array[] = $r;
}
import('@.ORG.Tree');
$str = "<option value='\$id' \$disabled \$selected>\$spacer \$catname</option>";
$tree = new Tree($array);
$select_categorys = $tree->get_tree(0, $str);
$this->assign('select_categorys', $select_categorys);
$this->assign('categorys', $this->categorys);
}
$this->assign('posids', F('Posid'));
}
import('@.Action.Adminbase');
$c = new AdminbaseAction();
$module = $this->module[$this->moduleid]['name'];
$map['userid'] = array('eq', $this->_userid);
if (APP_LANG) {
$map['lang'] = array('eq', $this->Lang[LANG_NAME][id]);
}
$result = $c->_list($module, $map, "id", false, 15, true);
$this->assign("list", $result);
$this->display();
}