📄 admin_vipuser.asp
字号:
</select>
</td>
</tr>
<tr>
<td width=20% class=forumrow>毕业院校</td>
<td width=80% class=forumrow colspan=5><input size=45 name="college" type=text value="<%=college%>"></td>
</tr>
<tr>
<td width=20% class=forumrow>性 格</td>
<td width=80% class=forumrow colspan=5>
<textarea name=character rows=4 cols=80><%=character%></textarea>
</td>
</tr><tr>
<td width=20% class=forumrow>个人简介</td>
<td width=80% class=forumrow colspan=5>
<textarea name=personal rows=4 cols=80><%=personal%></textarea>
</td>
</tr><tr>
<td width=20% class=forumrow>用户签名</td>
<td width=80% class=forumrow colspan=5>
<textarea name="sign" rows=4 cols=80><%=rs("sign")%></textarea>
</td>
</tr>
<tr><th colspan=6 height=23 align=left>用户设置</th></tr>
<tr>
<td width=20% class=forumrow>用户状态</td>
<td width=80% class=forumrow colspan=5>
正常 <input type="radio" value="0" <%if rs("lockuser")=0 then%>checked<%end if%> name="lockuser">
锁定 <input type="radio" value="2" <%if rs("lockuser")=1 then%>checked<%end if%> name="lockuser">
屏蔽 <input type="radio" value="3" <%if rs("lockuser")=2 then%>checked<%end if%> name="lockuser">
</td>
</tr>
<tr>
<td width=100% class=forumrow align=center colspan=6><input name="submit" type=submit value=" 更 新 "></td>
</tr>
</FORM>
<%
end if
rs.close
set rs=nothing
end if
elseif request("action")="saveuserinfo" then
response.write "<tr><th colspan=6 height=23 align=left>更新用户资料</th></tr>"
userinfo=checkreal(request.Form("realname")) & "|||" & checkreal(request.Form("character")) & "|||" & checkreal(request.Form("personal")) & "|||" & checkreal(request.Form("country")) & "|||" & checkreal(request.Form("province")) & "|||" & checkreal(request.Form("city")) & "|||" & request.Form("shengxiao") & "|||" & request.Form("blood") & "|||" & request.Form("belief") & "|||" & request.Form("occupation") & "|||" & request.Form("marital") & "|||" & request.Form("education") & "|||" & checkreal(request.Form("college")) & "|||" & checkreal(request.Form("userphone")) & "|||" & checkreal(request.Form("address"))
if not isnumeric(request("userid")) then
response.write "<tr><td colspan=6 class=forumrow>错误的用户参数。</td></tr>"
founderr=true
end if
if not founderr then
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from [user] where userid="&request("userid")
rs.open sql,conn,1,3
if rs.eof and rs.bof then
response.write "<tr><td colspan=6 class=forumrow>没有找到相关用户。</td></tr>"
founderr=true
else
rs("username")=request.form("username")
if request.form("password")<>"" then
rs("userpassword")=md5(request.form("password"))
end if
rs("usergroupid")=request.form("usergroups")
rs("quesion")=request.form("quesion")
if request.form("answer")<>"" then
rs("answer")=md5(request.form("answer"))
end if
rs("userclass")=request.form("userclass")
rs("useremail")=request.form("useremail")
rs("homepage")=request.form("homepage")
rs("face")=request.form("face")
rs("width")=request.form("width")
rs("height")=request.form("height")
rs("oicq")=request.form("oicq")
rs("icq")=request.form("icq")
rs("msn")=request.form("msn")
rs("title")=request.form("usertitle")
rs("titlepic")=request.form("titlepic")
rs("article")=request.form("article")
rs("userdel")=request.form("userdel")
rs("userisbest")=request.form("userisbest")
rs("userpower")=request.form("userpower")
rs("userwealth")=request.form("userwealth")
rs("userep")=request.form("userep")
rs("usercp")=request.form("usercp")
rs("birthday")=request.form("birthday")
rs("addDate")=request.form("adddate")
rs("lastlogin")=request.form("lastlogin")
rs("lockuser")=request.form("lockuser")
rs("sign")=request.form("sign")
rs("userinfo")=userinfo
rs.update
end if
rs.close
set rs=nothing
end if
if founderr then
response.write "<tr><td colspan=6 class=forumrow>更新失败。</td></tr>"
else
response.write "<tr><td colspan=6 class=forumrow>更新用户数据成功。</td></tr>"
end if
elseif request("action")="UserPermission" then
response.write "<tr><th colspan=6 height=23 align=left>编辑"&request("username")&"论坛权限(红色表示该用户在该版面有自定义权限)</th></tr>"
if not isnumeric(request("userid")) then
response.write "<tr><td colspan=6 class=forumrow>错误的用户参数。</td></tr>"
founderr=true
end if
if not founderr then
response.write "<tr><td colspan=6 class=forumrow height=25><a href=?action=userBoardPermission&boardid=0&userid="&request("userid")&">编辑该用户VIP页面的权限</a>(主要针对短信部分设置)</td></tr>"
'----------------------boardinfo--------------------'----------------------boardinfo--------------------
response.write "<tr><td colspan=6 class=forumrow><B>点击论坛名称进入编辑状态</B><BR>"
sql="select * from board order by rootid,orders"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof
if rs("depth")>0 then
for i=1 to rs("depth")
response.write " "
next
end if
if rs("child")>0 then
response.write "<img src=""pic/plus.gif"">"
else
response.write "<img src=""pic/nofollow.gif"">"
end if
%>
<a href="?action=userBoardPermission&boardid=<%=rs("boardid")%>&userid=<%=request("userid")%>">
<%
set trs=conn.execute("select uc_userid from UserAccess where uc_Boardid="&rs("boardid")&" and uc_userid="&request("userid"))
if not (trs.eof and trs.bof) then
response.write "<font color=red>"
end if
if rs("parentid")=0 then response.write "<b>"
response.write rs("boardtype")
if rs("parentid")=0 then response.write "</b>"
if rs("child")>0 then response.write "("&rs("child")&")"
response.write "</font></a><BR>"
rs.movenext
loop
set rs=nothing
response.write "</td></tr>"
'-------------------end-------------------
end if
elseif request("action")="userBoardPermission" then
if not isnumeric(request("userid")) then
response.write "<tr><td colspan=6 class=forumrow>错误的用户参数。</td></tr>"
founderr=true
end if
if not isnumeric(request("boardid")) then
response.write "<tr><td colspan=6 class=forumrow>错误的版面参数。</td></tr>"
founderr=true
end if
if not founderr then
set rs=conn.execute("select u.UserGroupID,ug.title,u.username from [user] u inner join UserGroups UG on u.userGroupID=ug.userGroupID where u.userid="&request("userid"))
UserGroupID=rs(0)
usertitle=rs(1)
membername=rs(2)
set rs=conn.execute("select boardtype from board where boardid="&request("boardid"))
if rs.eof and rs.bof then
boardtype="论坛其他页面"
else
boardtype=rs(0)
end if
response.write "<tr><th colspan=6 height=23 align=left>编辑 "&membername&" 在 "&boardtype&" 权限</th></tr>"
response.write "<tr><td colspan=6 height=25 class=forumrow>注意:该用户属于 <B>"&usertitle&"</B> 用户组中,如果您设置了他的自定义权限,则该用户权限将以自定义权限为主</td></tr>"
%>
<tr><td colspan=6 class=forumrow>
<%
Dim reGroupSetting
Dim FoundGroup,FoundUserPermission,FoundGroupPermission
FoundGroup=false
FoundUserPermission=false
FoundGroupPermission=false
set rs=conn.execute("select * from UserAccess where uc_boardid="&request("boardid")&" and uc_userid="&request("userid"))
if not (rs.eof and rs.bof) then
reGroupSetting=split(rs("uc_Setting"),",")
FoundGroup=true
FoundUserPermission=true
end if
if not foundgroup then
set rs=conn.execute("select * from BoardPermission where boardid="&request("boardid")&" and groupid="&usergroupid)
if not(rs.eof and rs.bof) then
reGroupSetting=split(rs("PSetting"),",")
FoundGroup=true
FoundGroupPermission=true
end if
end if
if not foundgroup then
set rs=conn.execute("select * from usergroups where usergroupid="&usergroupid)
if rs.eof and rs.bof then
response.write "未找到该用户组!"
response.end
else
FoundGroup=true
FoundGroupPermission=true
reGroupSetting=split(rs("GroupSetting"),",")
end if
end if
%>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align=center>
<FORM METHOD=POST ACTION="?action=saveuserpermission">
<input type=hidden name="userid" value="<%=request("userid")%>">
<input type=hidden name="BoardID" value="<%=request("boardid")%>">
<input type=hidden name="username" value="<%=membername%>">
<tr>
<td height="23" colspan="2" class=forumrow><input type=radio name="isdefault" value="1" <%if FoundGroupPermission then%>checked<%end if%>><B>使用用户组默认值</B> (注意: 这将删除任何之前所做的自定义设置)</td>
</tr>
<tr>
<td height="23" colspan="2" class=forumrow><input type=radio name="isdefault" value="0" <%if FoundUserPermission then%>checked<%end if%>><B>使用自定义设置</B> (选择自定义才能使以下设置生效)</td>
</tr>
<tr>
<th height="23" colspan="2" align=left>==查看权限</th>
</tr>
<tr>
<td height="23" width="60%" class=forumrow>可以浏览论坛</td>
<td height="23" width="40%" class=forumrow>是<input name="canview" type=radio value="1" <%if reGroupSetting(0)=1 then%>checked<%end if%>> 否<input name="canview" type=radio value="0" <%if reGroupSetting(0)=0 then%>checked<%end if%>></td>
</tr>
<tr>
<td height="23" width="60%" class=forumrow>可以查看会员信息(包括其他会员的资料和会员列表)
</td>
<td height="23" width="40%" class=forumrow>是<input name="canviewuserinfo" type=radio value="1" <%if reGroupSetting(1)=1 then%>checked<%end if%>> 否<input name="canviewuserinfo" type=radio value="0" <%if reGroupSetting(1)=0 then%>checked<%end if%>></td>
</tr>
<tr>
<td height="23" width="60%" class=forumrow>可以查看其他人发布的主题
</td>
<td height="23" width="40%" class=forumrow>是<input name="canviewpost" type=radio value="1" <%if reGroupSetting(2)=1 then%>checked<%end if%>> 否<input name="canviewpost" type=radio value="0" <%if reGroupSetting(2)=0 then%>checked<%end if%>></td>
</tr>
<tr>
<td height="23" width="60%" class=Forumrow>可以浏览精华帖子
</td>
<td height="23" width="40%" class=Forumrow>是<input name="canviewbest" type=radio value="1" <%if reGroupSetting(41)=1 then%>checked<%end if%>> 否<input name="canviewbest" type=radio value="0" <%if reGroupSetting(41)=0 then%>checked<%end if%>></td>
</tr>
<tr>
<th height="23" colspan="2" align=left>==<b>发帖权限</b></th>
</tr>
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -