管理会员 > 增加会员"; if($enews=="EditMember") { $userid=(int)$_GET['userid']; //取得用户资料 $r=ReturnUserInfo($userid); $r['groupid']=$r['groupid']?$r['groupid']:eReturnMemberDefGroupid(); $addr=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid='$userid' limit 1"); $url="管理会员 > 修改会员资料:".$r[username].""; //时间 if($r[userdate]) { $userdate=$r[userdate]-time(); if($userdate<=0) { OutTimeZGroup($userid,$r['zgroupid']); if($r['zgroupid']) { $r['groupid']=$r['zgroupid']; $r['zgroupid']=0; } $userdate=0; } else { $userdate=round($userdate/(24*3600)); } } } if($changegroupid) { $r['groupid']=$changegroupid; } //----------会员组 $sql=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level"); while($level_r=$empire->fetch($sql)) { if($r[groupid]==$level_r[groupid]) {$select=" selected";} else {$select="";} $group.=""; if($r[zgroupid]==$level_r[groupid]) {$zselect=" selected";} else {$zselect="";} $zgroup.=""; } //内部组 $ingroup=''; $inmsql=$empire->query("select * from {$dbtbpre}enewsingroup order by myorder"); while($inm_r=$empire->fetch($inmsql)) { if($r['ingid']==$inm_r['gid']) {$select=" selected";} else {$select="";} $ingroup.=""; } //管理组 $magname=''; $magadminname=''; if($r['agid']) { $r['agid']=(int)$r['agid']; $magr=$empire->fetch1("select * from {$dbtbpre}enewsag where agid='".$r['agid']."'"); $magname=$magr['agname']; if($magname) { if($magr['isadmin']==9) { $magadminname='管理员 ('.$magr['isadmin'].')'; } elseif($magr['isadmin']==5) { $magadminname='版主 ('.$magr['isadmin'].')'; } elseif($magr['isadmin']==1) { $magadminname='实习版主 ('.$magr['isadmin'].')'; } else { $magadminname='('.$magr['isadmin'].')'; } } } //风格 $spacestyle=''; $spacesql=$empire->query("select styleid,stylename from {$dbtbpre}enewsspacestyle"); while($spacer=$empire->fetch($spacesql)) { $selected=''; if($spacer[styleid]==$addr[spacestyleid]) { $selected=' selected'; } $spacestyle.=""; } //取得表单 $formid=GetMemberFormId($r[groupid]); $formfile='../../data/html/memberform'.$formid.'.php'; ?>
位置:=$url?> |