⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminuser_view.asp

📁 花了2000元买来的,可以使用的自助建站源码-人力资源的
💻 ASP
字号:
<%@ Language=VBScript %>
<%
Response.Buffer=false
Response.Expires=0
%>
<!-- #include file="../links.asp" -->
<!-- #include file="./s.asp" -->
<!-- #include file="../dsn.asp" -->
<%
if session("adminusername")="" then
		session("xhy")=1
		Response.Redirect linkwarn
end if
username=session("adminusername")
set cn = Server.CreateObject("ADODB.Connection")
cn.Open(mycnstr)
set rs = Server.CreateObject("ADODB.Recordset")
set rs2 = Server.CreateObject("ADODB.Recordset")
if Request.ServerVariables("REQUEST_METHOD")="POST" then
	sqltext="select * from bbs_base where id=6 or id=7 or id=8"
	rs.Open sqltext,cn,1,2
	do while not rs.EOF	
		if rs("id")=6 then
			rs("color")=trim(Request.Form ("bestcolor"))
		elseif rs("id")=7 then	
			rs("color")=trim(Request.Form ("basecolor"))
		elseif rs("id")=8 then
			sqltext2="update [user] set admin_flag=0 where admin_flag=2"
			cn.Execute sqltext2
			ztz=trim(Request.Form ("ztz"))
			if instr(ztz,"/")>0 then
				dim adminall
				adminall=split(ztz,"/")
				for i = 0 to ubound(adminall)
					sqltext2="select * from [user] where user_name='"+adminall(i)+"'"
					rs2.Open sqltext2,cn,1,2
					if not rs2.EOF then
						rs2("admin_flag")=2
						rs2.Update 
						if i=0 then
							newztz=adminall(i)
						else
							newztz=newztz&"/"&adminall(i)	
						end if	
					end if
					rs2.Close 
				next
			else
				sqltext2="select * from [user] where user_name='"+ztz+"'"
					rs2.Open sqltext2,cn,1,2
					if not rs2.EOF then
						rs2("admin_flag")=2
						rs2.Update 
						newztz=ztz
					end if
					rs2.Close 	
			end if
			rs("content")=newztz
			
		end if	
		rs.Update 
	rs.MoveNext 
	loop
	rs.Close 
	editok=1
end if
sqltext="select id from bbs where pid=0 and enable=1"
rs.Open sqltext,cn,1,1
bbspidpage=rs.RecordCount 
rs.Close 
sqltext="select id from bbs where enable=1"
rs.Open sqltext,cn,1,1
bbsidpage=rs.RecordCount 
rs.Close 
sqltext="select id from [user]"
rs.Open sqltext,cn,1,1
userpage=rs.RecordCount 
rs.Close 
sqltext="select content from bbs_base where id=8"
rs.Open sqltext,cn,1,1
if not rs.EOF then
		ztz=trim(rs("content"))
end if		
rs.Close 
%>
<html>
<head>
<title>信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {font-size: 12px; color: #000; font-family: 宋体}
td {font-size: 12px; color: #000; font-family: 宋体;}

.t1 {font:12px 宋体;color:#000000} 
.t2 {font:12px 宋体;color:#ffffff} 
.t3 {font:12px 宋体;color:#ffff00} 
.t4 {font:12px 宋体;color:#800000} 
.t5 {font:12px 宋体;color:#191970} 

.font1 {  font-family: "宋体"; font-size: 12px; color: #000000}
.font2 {  font-family: "黑体"; font-size: 20px; font-weight: bold; color: #000000}
.font3 {  font-family: "宋体"; font-size: 12px; color: #FFFFFF}

A.r1:link {font-size:12px;text-decoration:underline;color:#000000;}
A.r1:visited {font-size:12px;text-decoration:underline;color:#000000;}
A.r1:hover {font-size:12px;text-decoration:underline;color:#cc0000;}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="20">
  <tr>
    <td class="font1">你现在的位置:<b><%=Request.ServerVariables("Http_HOST")%> -&gt; 论坛管理中心</b></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td colspan="4" height="10"></td>
  </tr>
  <tr> 
    <td align="center" height="100" width="100"><img src="images/admin_p_home.gif"></td>
    <td width="100">&nbsp;</td>
    <td width="406"> 
      <table width="400" border="0" cellspacing="0" cellpadding="0" height="100">
        <tr> 
          <td class="t5"><%=year(now())%>年<%=month(now())%>月<%=day(now())%>日<%=hour(now())%>:<%=minute(now())%></td>
        </tr>
        <tr> 
          <td class="font2"><%=username%></td>
        </tr>
        <tr> 
          <td class="font1">欢迎进入&nbsp;<font color=00008b><b><%=Request.ServerVariables("Http_HOST")%></b></font>&nbsp;论坛管理中心!</td>
        </tr>
      </table>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td colspan="4" height="10"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="180">
  <tr bgcolor="#eeeeee"> 
    <td colspan=2 height="12"></td>
  </tr>
  <tr> 
    <td colspan=2 width="390" bgcolor="#31615A" height="20" class="t2">&nbsp;论坛基本综合设置</td>
  </tr>
  <tr> 
    <td width="10"></td>
    <td valign="top" align="left"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="font1">
        <tr> 
          <td colspan="2">&nbsp;</td>
        </tr>
        <%if editok=0 then%>
        <form action="adminuser_view.asp" method=post name=editform >
        <tr> 
          <td width="80" height="30" align=right>总坛主:&nbsp;</td>
          <td class=t4><input name=ztz size=35 value="<%=ztz%>"><font color=red>请直接填入会员帐号,多个请用“/”格开</font></td>
        </tr>
        <tr> 
          <td width="80" height="30" align=right>论坛参数:&nbsp;</td>
          <td class=t4>
				主题总数:<%=bbspidpage%>&nbsp;&nbsp;
				帖子总数:<%=bbsidpage%>&nbsp;&nbsp;
				会员总数:<%=userpage%>&nbsp;&nbsp;
		  </td>
        </tr>
        <tr><td>&nbsp;</td><td><input type="submit" value="确定提交" name=s1></td></tr>
        </form>
        <%else%>
			<tr><td class=t4 width=120>&nbsp;&nbsp;<font color=red>修改成功!</font><td><a href="adminuser_view.asp" class=t5>返回上页</a></td></tr>
        <%end if%>
      </table>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -