管理会员"; $add=""; //搜索 $sear=$_POST['sear']; if(empty($sear)) {$sear=$_GET['sear'];} $sear=RepPostStr($sear,1); if($sear) { $groupid=$_POST['groupid']; if(empty($groupid)) {$groupid=$_GET['groupid'];} $ingid=$_POST['ingid']; if(empty($ingid)) {$ingid=$_GET['ingid'];} $agid=$_POST['agid']; if(empty($agid)) {$agid=$_GET['agid'];} $keyboard=$_POST['keyboard']; if(empty($keyboard)) {$keyboard=$_GET['keyboard'];} $keyboard=RepPostVar2($keyboard); $show=(int)$_GET['show']; if($keyboard) { if($show==2)//邮箱 { $add=" where ".egetmf('email')." like '%$keyboard%'"; } elseif($show==3)//ID { $add=" where ".egetmf('userid')."='$keyboard'"; } else { $add=" where ".egetmf('username')." like '%$keyboard%'"; } } $groupid=(int)$groupid; if($groupid) { if(empty($add)) {$add.=" where ".egetmf('groupid')."='$groupid'";} else {$add.=" and ".egetmf('groupid')."='$groupid'";} } $ingid=(int)$ingid; if($ingid) { if(empty($add)) {$add.=" where ".egetmf('ingid')."='$ingid'";} else {$add.=" and ".egetmf('ingid')."='$ingid'";} } $agid=(int)$agid; if($agid) { if(empty($add)) {$add.=" where ".egetmf('agid')."='$agid'";} else {$add.=" and ".egetmf('agid')."='$agid'";} } $search.="&sear=1&show=$show&groupid=".$groupid."&ingid=".$ingid."&agid=".$agid."&keyboard=".urlencode($keyboard); } //审核 $schecked=(int)$_GET['schecked']; if($schecked) { $and=$add?' and ':' where '; if($schecked==1) { $add.=$and.egetmf('checked')."=0"; } else { $add.=$and.egetmf('checked')."=1"; } $search.="&schecked=$schecked"; } //实名 $sisern=(int)$_GET['sisern']; if($sisern) { $and=$add?' and ':' where '; if($sisern==1) { $add.=$and.egetmf('isern')."=0"; } else { $add.=$and.egetmf('isern')."=1"; } $search.="&sisern=$sisern"; } $totalquery="select count(*) as total from ".eReturnMemberTable().$add; $num=$empire->gettotal($totalquery); $query="select ".eReturnSelectMemberF('*')." from ".eReturnMemberTable().$add; $query.=" order by ".egetmf('userid')." desc limit $offset,$line"; $sql=$empire->query($query); $returnpage=page2($num,$line,$page_line,$start,$page,$search); //----------会员组 $group=''; $sql1=$empire->query("select * from {$dbtbpre}enewsmembergroup order by level"); while($l_r=$empire->fetch($sql1)) { if($groupid==$l_r[groupid]) {$select=" selected";} else {$select="";} $group.=""; } //----------内部组 $ingroup=''; $chingroup=''; $inmsql=$empire->query("select * from {$dbtbpre}enewsingroup order by myorder"); while($inm_r=$empire->fetch($inmsql)) { if($ingid==$inm_r['gid']) {$select=" selected";} else {$select="";} $ingroup.=""; $chingroup.=""; } //----------管理组 $madmingroup=''; $agsql=$empire->query("select agid,agname from {$dbtbpre}enewsag order by isadmin"); while($ag_r=$empire->fetch($agsql)) { if($agid==$ag_r['agid']) {$select=" selected";} else {$select="";} $madmingroup.=""; } ?>
位置: =$url?> |