user_groups.inc
来自「Local Lucene ==================== Prov」· INC 代码 · 共 45 行
INC
45 行
<?phpinclude("lib/loader.inc");class users { private $conf; private $dbiw; function __construct () { $this->$conf = Conf::instance(); $this->$dbiw = new dbiw(); } function getAllGroups () { $sql = "select idGroups,groupName from Groups"; return $this->$dbiw->dbSel($sql); } function insGroup ($group) { $sql = "insert into Groups(groupName) values ('$group');"; $this->$dbiw->dbIns($sql); } function getUser ($name) { $sql = "select g.idGroups,g.groupName,gu.fullName from Groups g, groupUsers gu where gu.userName='$name' and gu.Groups_idGroups = g.idGroups"; return $this->$dbiw->dbSel($sql); } function getAllUsers () { $sql = "select gu.idGroupUsers, gu.userName, gu.fullName from groupUsers gu"; return $this->$dbiw->dbSel($sql); }}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?