本文整理汇总了PHP中admin::get_list方法的典型用法代码示例。如果您正苦于以下问题:PHP admin::get_list方法的具体用法?PHP admin::get_list怎么用?PHP admin::get_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类admin
的用法示例。
在下文中一共展示了admin::get_list方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: module_admin_list
function module_admin_list()
{
global $global, $smarty;
$obj = new admin();
$list = $obj->get_list();
$smarty->assign('admin', $list);
$obj->set_where('adm_id = ' . $global['admin_id']);
$one = $obj->get_one();
$smarty->assign('me', $one);
}
示例2: dmsg
dmsg('级别设置成功', $forward);
break;
default:
$sfields = array('按条件', '标题', '链接地址', '内容', '绑定域名');
$dfields = array('title', 'title', 'linkurl', 'content', 'domain');
$sorder = array('结果排序方式', '更新时间降序', '更新时间升序', '浏览次数降序', '浏览次数升序');
$dorder = array('listorder DESC,itemid DESC', 'addtime DESC', 'addtime ASC', 'hits DESC', 'hits ASC');
isset($fields) && isset($dfields[$fields]) or $fields = 0;
isset($order) && isset($dorder[$order]) or $order = 0;
$level = isset($level) ? intval($level) : 0;
$fields_select = dselect($sfields, 'fields', '', $fields);
$order_select = dselect($sorder, 'order', '', $order);
$level_select = level_select('level', '级别', $level);
$condition = $itemid ? "1" : "item='{$item}'";
if ($_areaids) {
$condition .= " AND areaid IN (" . $_areaids . ")";
}
//CITY
if ($keyword) {
$condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
}
if ($level) {
$condition .= " AND level={$level}";
}
if ($areaid) {
$condition .= $ARE['child'] ? " AND areaid IN (" . $ARE['arrchildid'] . ")" : " AND areaid={$areaid}";
}
$lists = $do->get_list($condition, $dorder[$order]);
include tpl('webpage', $module);
break;
}
示例3: array
}
echo '</select>';
} else {
echo '0';
}
} else {
echo '0|0';
}
}
break;
default:
$sfields = array('按条件', '用户名', '姓名', '角色');
$dfields = array('username', 'username', 'truename', 'role');
isset($fields) && isset($dfields[$fields]) or $fields = 0;
$type = isset($type) ? intval($type) : 0;
$areaid = isset($areaid) ? intval($areaid) : 0;
$fields_select = dselect($sfields, 'fields', '', $fields);
$condition = 'groupid=1 AND admin>0';
if ($keyword) {
$condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
}
if ($type) {
$condition .= " AND admin={$type}";
}
if ($areaid) {
$condition .= $AREA[$areaid]['child'] ? " AND aid IN (" . $AREA[$areaid]['arrchildid'] . ")" : " AND aid={$areaid}";
}
$lists = $do->get_list($condition);
include tpl('admin');
break;
}