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


PHP admin::get_list方法代碼示例

本文整理匯總了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);
}
開發者ID:jechiy,項目名稱:xiu-cms,代碼行數:10,代碼來源:admin_list.php

示例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;
}
開發者ID:hcd2008,項目名稱:destoon,代碼行數:31,代碼來源:webpage.inc.php

示例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;
}
開發者ID:hiproz,項目名稱:zhaotaoci.cc,代碼行數:31,代碼來源:admin.inc.php


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