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

📄 adminpic.asp

📁 一对一校友录多班级而且非常漂亮http://free.cnyys.com/my/yhe/DEFAULT.ASP
💻 ASP
字号:
<!--#include file="conn.asp"-->
<style type="text/css">
<!--
body,td,th {
	color: #000000;
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
}
a {
	font-size: 12px;
	color: #000000;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
-->
</style>
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> <%dim username,sql,type2,ad
ad=request.querystring("ad")
type2=request.queryString("type2")
use=request.querystring("use")
	if Session("chong")<>4 then
Response.Write("兄弟,你的权力不够啊!快来给我送点礼吧")
	Response.Write("<br>")
	Response.Write("<a href='javascript:history.go(-1)'><font color=red size=2>哎,回去吧</font></a>")
	else
Select Case type2
	Case "del":
		Call del
		Case "ok":
		Call ok
	Case Else:
		 call show
End Select 
end if
sub show
Dim rs,cur,rowcount,i
	set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from photo where type2=2 order by pubtime desc"
	rs.open sql,conn,1,3
if rs.eof then
Response.Write("还没有申请进入学校相册的照片!")
exit sub
end if
	type1=rs("type1")
cur=request.form("cur")
if cur="" then
cur=1
end if
rs.pagesize=30
rs.absolutepage=cint(cur)
rowcount=0%>
<table width="100%"  cellspacing="0">
                            <tr>
                              <td>
<table width="100%"  cellspacing="0">
							 <tr>
                              <td><table width="100%" border="1" cellpadding="1"  cellspacing="1" bordercolor="#3399FF">
                                <tr>
                                  <td width="25%" height="19"><div align="center">照片名</div></td>
                                  <td width="14%"><div align="center">用户名</div></td>
                                  <td width="32%"><div align="center">标题</div></td>
                                  <td width="8%"><div align="center">大小</div></td>
                                  <td width="7%"><div align="center">类别</div></td>
                                  <td width="7%"><div align="center">操作</div></td>
								  <td width="7%"><div align="center">操作</div></td>
                                </tr>
 <%do while not rs.eof and rowcount<rs.pagesize%>
<form action="?type2=ok&use=<%=rs("picid")%>" method="post"> 
<tr>
                                  <td height="17"><a href="upphoto/<%=rs("pic")%>" target="_blank"><%=rs("pic")%></a></td>
                                  <td><%=rs("username")%></td>
                                  <td><%=rs("title")%></td>
                                  <td><%=rs("photosize")%></td>
                                  <td><select size=1 name=type1>
<option <%if type1="" then%>selected<%end if%>></option>
<option value=1 <%if type1="1" then%>selected<%end if%>>1</option>
<option value=2 <%if type1="2" then%>selected<%end if%>>2</option>
<option value=3 <%if type1="3" then%>selected<%end if%>>3</option>
</select>                   </td>
								   <td><div align="center"><input type="submit" value="通过">
								   </div></td>
                                  <td><div align="center"><a href="?type2=del&use=<%=rs("picid")%>">不行</a></div></td>
                                </tr></form>
<%rowcount=rowcount+1
				rs.movenext
      loop%>
                              </table></td>
                            </tr>
							 <tr>
                              <td><table width="100%"  border="0">
  <tr><form name="form2" method="post" action=""><TD align=left bgcolor="#99CCFF"><span class="style2">共<%=rs.recordcount%>人  分<%=rs.pagecount%>页  每页30   当前页次:<%=cur%>/<%=rs.pagecount%>                 
    转到: 
                      <select name="cur" size="1" onchange="javascript:submit()">
  <%for i = 1 to rs.pagecount%>              
    <option value="<%=i%>" <%if i=cint(cur) then%> selected <%end if%>>第<%=i%>页 </option>   
    <%next%>   
                      </select>
                      <%
  rs.close
	 set rs=nothing%>
</span></td>
  </form>
  </tr>
</table></td>
                            </tr>
                          </table>
<%
end sub
sub del
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from photo where picid="&use&""
rs.open sql,conn,1,3
		rs("type2")=1
	rs.update
	rs.close
	set rs=nothing
Response.Redirect "adminpic.asp"
end sub
sub ok
type1=request.Form("type1")
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from photo where picid="&use&""
rs.open sql,conn,1,3
		rs("type2")=3
		rs("type1")=type1
	rs.update
	rs.close
	set rs=nothing
Response.Redirect "adminpic.asp"
end sub%></td>
  </tr>
</table>
</BODY></HTML>

⌨️ 快捷键说明

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