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