📄 admin_user.asp
字号:
<td width=80% class=forumrow colspan=5>
<select size=1 name=belief>
<option <%if belief="" then%>selected<%end if%>></option>
<option value=佛教 <%if belief="佛教" then%>selected<%end if%>>佛教</option>
<option value=道教 <%if belief="道教" then%>selected<%end if%>>道教</option>
<option value=基督教 <%if belief="基督教" then%>selected<%end if%>>基督教</option>
<option value=天主教 <%if belief="天主教" then%>selected<%end if%>>天主教</option>
<option value=回教 <%if belief="回教" then%>selected<%end if%>>回教</option>
<option value=无神论者 <%if belief="无神论者" then%>selected<%end if%>>无神论者</option>
<option value=共产主义者 <%if belief="共产主义者" then%>selected<%end if%>>共产主义者</option>
<option value=其他 <%if belief="其他" then%>selected<%end if%>>其他</option>
</select>
</td>
</tr><tr>
<td width=20% class=forumrow>职 业</td>
<td width=80% class=forumrow colspan=5>
<select name=occupation>
<option <%if occupation="" then%>selected<%end if%>> </option>
<option value="财会/金融" <%if occupation="财会/金融" then%>selected<%end if%>>财会/金融</option>
<option value=工程师 <%if occupation="工程师" then%>selected<%end if%>>工程师</option>
<option value=顾问 <%if occupation="顾问" then%>selected<%end if%>>顾问</option>
<option value=计算机相关行业 <%if occupation="计算机相关行业" then%>selected<%end if%>>计算机相关行业</option>
<option value=家庭主妇 <%if occupation="家庭主妇" then%>selected<%end if%>>家庭主妇</option>
<option value="教育/培训" <%if occupation="教育/培训" then%>selected<%end if%>>教育/培训</option>
<option value="客户服务/支持" <%if occupation="客户服务/支持" then%>selected<%end if%>>客户服务/支持</option>
<option value="零售商/手工工人" <%if occupation="零售商/手工工人" then%>selected<%end if%>>零售商/手工工人</option>
<option value=退休 <%if occupation="退休" then%>selected<%end if%>>退休</option>
<option value=无职业 <%if occupation="无职业" then%>selected<%end if%>>无职业</option>
<option value="销售/市场/广告" <%if occupation="销售/市场/广告" then%>selected<%end if%>>销售/市场/广告</option>
<option value=学生 <%if occupation="学生" then%>selected<%end if%>>学生</option>
<option value=研究和开发 <%if occupation="研究和开发" then%>selected<%end if%>>研究和开发</option>
<option value="一般管理/监督" <%if occupation="一般管理/监督" then%>selected<%end if%>>一般管理/监督</option>
<option value="政府/军队" <%if occupation="政府/军队" then%>selected<%end if%>>政府/军队</option>
<option value="执行官/高级管理" <%if occupation="执行官/高级管理" then%>selected<%end if%>>执行官/高级管理</option>
<option value="制造/生产/操作" <%if occupation="制造/生产/操作" then%>selected<%end if%>>制造/生产/操作</option>
<option value=专业人员 <%if occupation="专业人员" then%>selected<%end if%>>专业人员</option>
<option value="自雇/业主" <%if occupation="自雇/业主" then%>selected<%end if%>>自雇/业主</option>
<option value=其他 <%if occupation="其他" then%>selected<%end if%>>其他</option>
</select>
</td>
</tr>
<tr>
<td width=20% class=forumrow>婚姻状况</td>
<td width=80% class=forumrow colspan=5>
<select size=1 name=marital>
<option <%if marital="" then%>selected<%end if%>></option>
<option value=未婚 <%if marital="未婚" then%>selected<%end if%>>未婚</option>
<option value=已婚 <%if marital="已婚" then%>selected<%end if%>>已婚</option>
<option value=离异 <%if marital="离异" then%>selected<%end if%>>离异</option>
<option value=丧偶 <%if marital="丧偶" then%>selected<%end if%>>丧偶</option>
</select>
</td>
</tr>
<tr>
<td width=20% class=forumrow>最高学历</td>
<td width=80% class=forumrow colspan=5>
<select size=1 name=education>
<option <%if education="" then%>selected<%end if%>></option>
<option value=小学 <%if education="小学" then%>selected<%end if%>>小学</option>
<option value=初中 <%if education="初中" then%>selected<%end if%>>初中</option>
<option value=高中 <%if education="高中" then%>selected<%end if%>>高中</option>
<option value=大学 <%if education="大学" then%>selected<%end if%>>大学</option>
<option value=硕士 <%if education="硕士" then%>selected<%end if%>>硕士</option>
<option value=博士 <%if education="博士" then%>selected<%end if%>>博士</option>
</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><%If Trim(Rs("UserSign"))<>"" Then Response.Write Server.HtmlEncode(rs("usersign"))%></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="1" <%if rs("lockuser")=1 then%>checked<%end if%> name="lockuser">
屏蔽 <input type="radio" value="2" <%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=8 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"))
dim myuserim
myuserim=checkreal(request.Form("homepage")) & "|||" & checkreal(request.Form("oicq")) & "|||" & checkreal(request.Form("icq")) & "|||" & checkreal(request.Form("msn")) & "|||" & checkreal(request.Form("aim")) & "|||" & checkreal(request.Form("yahoo")) & "|||" & request.Form("uc")
if not isnumeric(request("userid")) then
response.write "<tr><td colspan=8 class=forumrow>错误的用户参数。</td></tr>"
founderr=true
end if
if not founderr then
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from [dv_user] where userid="&request("userid")
rs.open sql,conn,1,3
if rs.eof and rs.bof then
response.write "<tr><td colspan=8 class=forumrow>没有找到相关用户。</td></tr>"
founderr=true
else
rs("username")=request.form("username")
if request.form("password")<>"" then
rs("userpassword")=md5(request.form("password"),16)
end if
rs("usergroupid")=request.form("usergroups")
rs("userquesion")=request.form("quesion")
if request.form("answer")<>"" then rs("useranswer")=md5(request.form("answer"),16)
rs("userclass")=request.form("userclass")
rs("useremail")=request.form("useremail")
rs("userim")=myuserim
rs("userface")=request.form("face")
if isnumeric(request.form("width")) then rs("userwidth")=request.form("width")
if isnumeric(request.form("height")) then rs("userheight")=request.form("height")
rs("usertitle")=request.form("usertitle")
rs("titlepic")=request.form("titlepic")
if isnumeric(request.form("article")) then rs("UserPost")=request.form("article")
if isnumeric(request.form("userdel")) then rs("userdel")=request.form("userdel")
if isnumeric(request.form("userisbest")) then rs("userisbest")=request.form("userisbest")
if isnumeric(request.form("userpower")) then rs("userpower")=request.form("userpower")
if isnumeric(request.form("userwealth")) then rs("userwealth")=request.form("userwealth")
if isnumeric(request.form("userep")) then rs("userep")=request.form("userep")
if isnumeric(request.form("usercp")) then rs("usercp")=request.form("usercp")
if isdate(request.form("birthday")) then rs("userbirthday")=request.form("birthday")
if isdate(request.form("adddate")) then rs("JoinDate")=request.form("adddate")
if isdate(request.form("lastlogin")) then rs("lastlogin")=request.form("lastlogin")
if isnumeric(request.form("lockuser")) then rs("lockuser")=request.form("lockuser")
rs("usersign")=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=8 class=forumrow>更新失败。</td></tr>"
else
response.write "<tr><td colspan=8 class=forumrow>更新用户数据成功。</td></tr>"
end if
ElseIf Request("Action") = "UserPermission" Then
Response.Write "<tr><th colspan=8 height=23 align=left>编辑" & Request("Username") & "论坛权限(红色表示该用户在该版面有自定义权限)</th></tr>"
If Not Isnumeric(Request("Userid")) Then
Response.Write "<tr><td colspan=8 class=forumrow>错误的用户参数。</td></tr>"
Founderr = True
End If
If Not Founderr Then
Response.Write "<tr><td colspan=8 class=forumrow height=25>①您可以设置该用户在不同论坛内的权限,红色表示为该用户组使用的是用户自定义属性<BR>②该权限不能继承,比如您设置了一个包含下级论坛的版面,那么只对您设置的版面生效而不对其下属论坛生效<BR>③如果您想设置生效,必须在设置页面<B>选择自定义设置</B>,选择了自定义设置后,这里设置的权限将<B>优先</B>于用户组设置和论坛权限设置,比如用户组默认或论坛权限设置该用户组不能管理帖子,而这里设置了该用户可管理帖子,那么该用户在这个版面就可以管理帖子</td></tr>"
Response.Write "<tr><td colspan=8 class=forumrow height=25><a href=?action=userBoardPermission&boardid=0&userid=" & Request("Userid") & ">编辑该用户在其它页面的权限</a>(主要针对短信部分设置)</td></tr>"
'----------------------boardinfo--------------------
Response.Write "<tr><td colspan=8 class=forumrow><B>点击论坛名称进入编辑状态</B><BR>"
Rem 改用数组代替循环查询 2004-5-6 Dvbbs.YangZheng
Dim Bn
Sql = "SELECT Depth, Child, Boardid, Parentid, Boardtype FROM Dv_Board ORDER BY Rootid, Orders"
Set Rs = Dvbbs.Execute(Sql)
If Not (Rs.Eof And Rs.Bof) Then
Sql = Rs.GetRows(-1)
Rs.Close:Set Rs = Nothing
For Bn = 0 To Ubound(Sql,2)
If Sql(0,Bn) > 0 Then
For i = 1 To Sql(0,Bn)
Response.Write " "
Next
End If
If Sql(1,Bn) > 0 Then
Response.Write "<img src=""skins/default/plus.gif"">"
Else
Response.Write "<img src=""skins/default/nofollow.gif"">"
End If
%>
<a href="?action=UserBoardPermission&boardid=<%=Sql(2,Bn)%>&userid=<%=Request("Userid")%>">
<%
Set Trs = Dvbbs.Execute("SELECT Uc_UserId FROM Dv_UserAccess WHERE Uc_Boardid = " & Sql(2,Bn) & " AND Uc_Userid = " & Request("Userid"))
If Not (Trs.Eof And Trs.Bof) Then
Response.Write "<font color=red>"
End If
If Sql(3,Bn) = 0 Then Response.Write "<b>"
Response.Write Sql(4,Bn)
If Sql(3,Bn) = 0 Then Response.Write "</b>"
If Sql(1,Bn) > 0 Then Response.Write "(" & Sql(1,Bn) & ")"
Response.Write "</font></a><BR>"
Next
End If
Response.Write "</td></tr>"
'-------------------end-------------------
End If
ElseIf Request("Action") = "UserBoardPermission" Then
if not isnumeric(request("userid")) then
response.write "<tr><td colspan=8 class=forumrow>错误的用户参数。</td></tr>"
founderr=true
end if
if not isnumeric(request("boardid")) then
response.write "<tr><td colspan=8 class=forumrow>错误的版面参数。</td></tr>"
founderr=true
end if
if not founderr then
set rs=Dvbbs.Execute("select u.UserGroupID,ug.title,u.username from [dv_user] u inner join dv_UserGroups UG on u.userGroupID=ug.userGroupID where u.userid="&request("userid"))
Dvbbs.UserGroupID=rs(0)
usertitle=rs(1)
Dvbbs.membername=rs(2)
dim boardtype
set rs=Dvbbs.Execute("select boardtype from dv_board where boardid="&request("boardid"))
if rs.eof and rs.bof then
boardtype="论坛其他页面"
else
boardtype=rs(0)
end if
response.write "<tr><th colspan=8 height=23 align=left>编辑 "&Dvbbs.membername&" 在 "&boardtype&" 权限</th></tr>"
response.write "<tr><td colspan=8 height=25 class=forumrow>注意:该用户属于 <B>"&usertitle&"</B> 用户组中,如果您设置了他的自定义权限,则该用户权限将以自定义权限为主</td></tr>"
%>
<tr><td colspan=8 class=forumrow>
<%
Dim reGroupSetting
Dim FoundGroup,FoundUserPermission,FoundGroupPermission
FoundGroup=false
FoundUserPermission=false
FoundGroupPermission=false
set rs=Dvbbs.Execute("select * from dv_UserAccess where uc_boardid="&request("boardid")&" and uc_userid="&request("userid"))
if not (rs.eof and rs.bof) then
reGroupSetting=rs("uc_Setting")
FoundGroup=true
FoundUserPermission=true
end if
if not foundgroup then
set rs=Dvbbs.Execute("select * from dv_BoardPermission where boardid="&request("boardid")&" and groupid="&DVbbs.UserGroupID)
if not(rs.eof and rs.bof) then
reGroupSetting=rs("PSetting")
FoundGroup=true
FoundGroupPermission=true
end if
end if
if not foundgroup then
set rs=Dvbbs.Execute("select * from dv_usergroups where usergroupid="&DVbbs.UserGroupID)
if rs.eof and rs.bof then
response.write "未找到该用户组!"
response.end
else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -