📄 photo.asp
字号:
<!--#include file="head.asp"-->
<!--#include file="popup.inc"-->
<TABLE style="BORDER-RIGHT: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid"
cellSpacing=0 cellPadding=0 width=778 align=center bgColor=#ffffff>
<TBODY>
<TR vAlign=top>
<TD width=200 bgColor=#f4f4f4>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR borderColor=#999999>
<TD vAlign=center align=middle><IMG height=8 alt=""
src="image/stu.htm" width=1 name=""></TD></TR>
<TR>
<TD vAlign=top height=350>
<TABLE
style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid"
cellSpacing=0 cellPadding=0 width="90%" align=center
bgColor=#ffffff>
<TBODY>
<TR>
<TD>
<DIV align=center><IMG height=40
src="image/vphotofl.gif" width=180></DIV></TD></TR>
<TR>
<TD class=6>
<TABLE cellSpacing=6 cellPadding=0 width="100%"
align=center><TBODY>
<TR>
<TD>
<TABLE id=AutoNumber2 style="BORDER-COLLAPSE: collapse"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=2 height=22><IMG height=11
src="image/arrow00.gif" width=9> <A
href="seachphoto2.asp?type1=1">学校风景</A></TD>
</TR></TBODY></TABLE>
<TABLE id=AutoNumber2 style="BORDER-COLLAPSE: collapse"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=2 height=22><IMG height=11
src="image/arrow00.gif" width=9> <A
href="seachphoto2.asp?type1=2">同学照片</A></TD>
</TR></TBODY></TABLE>
<TABLE id=AutoNumber2 style="BORDER-COLLAPSE: collapse"
cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=2 height=22><IMG height=11
src="image/arrow00.gif" width=9> <A
href="seachphoto2.asp?type1=3">其它经典</A></TD>
</TR></TBODY></TABLE>
</TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE id=AutoNumber4 cellSpacing=0 cellPadding=0 width="90%"
align=center border=0>
<TBODY>
<TR>
<TD align=middle width="100%"><IMG height=8 alt=""
src="image/stu.htm" width=1 name=""></TD></TR></TBODY></TABLE>
<TABLE width="90%" height="80" align=center cellPadding=0
cellSpacing=0 bgColor=#ffffff id=AutoNumber4
style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid">
<TBODY>
<TR>
<TD align=top width="100%"><IMG height=40
src="image/vphotocx.gif" width=180></TD>
</TR>
<TR>
<TD align=middle><IMG height=8 alt="" src=""
width=1 name=""></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="80%" align=center
border=0>
<TBODY>
<TR><form action="seachphoto.asp" method="post" name="stype">
<TD>
<select name="stype" size="1">
<option value="username">用户名</option>
<option value="title">图片标题</option>
<option value="remark">图片说明</option>
</select>
<input name="photocx" type="text" size="20"><br>
<input type="submit" name="Submit" value="提交"> <input name="reset" type="reset" value="重来">
</TD> </form></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
<TABLE id=AutoNumber4 cellSpacing=0 cellPadding=0 width="90%"
align=center border=0>
<TBODY>
<TR>
<TD align=middle width="100%"><IMG height=8 alt=""
src="image/stu.htm" width=1 name=""></TD></TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid"
cellSpacing=0 cellPadding=0 width="90%" align=center
bgColor=#ffffff>
<TBODY>
<TR>
<TD>
<DIV align=center><STRONG><FONT color=#000000><IMG height=40
src="image/vupphoto.gif"
width=180></FONT></STRONG></DIV></TD></TR>
<script>
submitflag=false
function check_walkman_form(walkman_frm)
{
if (walkman_frm.file.value==""){
alert("请选择图片!");
walkman_frm.file.focus();
return false
}
{str= walkman_frm.file.value;
strs=str.toLowerCase();
lens=strs.length;
extname=strs.substring(lens-4,lens);
if(extname!=".bmp" && extname!=".jpg" && extname!=".gif")
{
alert("请选择jpg、gif或bmp文件!");
return (false);
}
}
if(!submitflag){
walkman_frm.submit();
walkman_frm.Submit.disabled=true
submitflag=true
return true
}
else
{
alert("请不要重复提交");
return false;
}
}
</script>
<TR> <form name="form1" enctype="multipart/form-data" method="post" action="upphoto.asp" onsubmit="return check_walkman_form(this)">
<TD><span class="style2">第一步:上传照片</span><br>
<br>
<input name="file" type="file" size="15">
<% If session("wzname")="" Then%><br>
<font color=red>只有登录才能发布!</font>
<%else%>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit3" value="重置">
<%End If%>
<br>
如果你的图片文件较大或网络速度太慢,上载过程可能要一段时间,请耐心等待!
</TD>
</form>
</TR></TBODY></TABLE>
<TABLE id=AutoNumber4 cellSpacing=0 cellPadding=0 width="90%"
align=center border=0>
<TBODY>
<TR>
<TD align=middle width="100%"><IMG height=8 alt=""
src="image/stu.htm" width=1 name=""></TD></TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid"
cellSpacing=0 cellPadding=0 width="90%" align=center
bgColor=#ffffff>
<TBODY>
<TR>
<TD>
<DIV align=center><STRONG><FONT color=#000000><IMG height=40
src="image/vphotosm.gif"
width=180></FONT></STRONG></DIV></TD></TR>
<TR>
<TD> 学校相册已经作了些调整,对照片进行了分类,大家在上传时要选择好相对的类别,否则将被删除。班级相册不要经过审查,但学校相册是要经过相册管理员审查后才能显示,要想将照片在学校相册中显示,必须符合二个条件:<br>
1、不是摄像头拍摄的照片<br>
2、内容要与学校同学相关,不允许将明星之类与同学无关的提交给学校相册。</TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD bgColor=#cccccc><IMG height=1 alt="" src="image/stu.htm" width=1
name=""></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center
bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD height=8 bgColor=#f4f4f4></TD></TR>
<TR><TD>
<TABLE id=AutoNumber3 style="BORDER-COLLAPSE: collapse"
cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top height=52>
<TABLE id=AutoNumber5 style="BORDER-COLLAPSE: collapse"
borderColor=#111111 cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD class=6 width=495 background=image/type_bg.gif
height=30><IMG height=12 src="image/type01.gif" width=12
align=absMiddle> <a href="index.asp"><font color="#FF6699">网站首页</font></a> - <a href="photo.asp"><font color="#FF6699">网站相册</font></a></TD>
<TD width=100 background=image/type_bg.gif>
<DIV align=center><IMG
src="image/more.gif"
border=0></A></DIV></TD></TR>
<TR>
<TD colSpan=2>
<DIV align=center>
<%
Dim rs,sql,ss
set rs=Server.CreateObject("Adodb.Recordset")
sql="select photo.*,user.username,user.name from photo,user where photo.type2=3 and user.username=photo.username order by lastupdatetime desc"
dim cur,rowcount,i,cs
cur=request.form("cur")
if cur="" then
cur=1
end if
cs=0
rs.pagesize=9
rs.open sql,conn,1,1
if rs.eof then
response.write "没有信息"
else
rs.absolutepage=cint(cur)
rowcount=0
%>
<table width="490" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="480" border="1" cellspacing="1" cellpadding="4" bordercolor="#EFD999">
<%do while not rs.eof and rowcount<rs.pagesize
rowcount=rowcount+1
if cs mod 3=0 then%>
<tr>
<%end if%>
<td width=100>
<table width="177" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="91" align="center"><a href="viewphoto.asp?picid=<%=rs("picid")%>"><%=rs("title")%></a><br>
<a href="viewphoto.asp?picid=<%=rs("picid")%>">
<%dim altinfo
altinfo="上传:"&rs("name")&"<BR> "&_
"时间:"&rs("pubtime")&"<BR> "&_
"人气:"&rs("dianji")&"<BR> "&_
"大小:"&rs("photosize")&"K"
response.write "<IMG src='upphoto/"&rs("pic")&"' width=120 height=150 border=0 onmouseout=kill() onmouseover=""popup('"&altinfo&"','#d2e9fe')"">"%>
</a><br>
<a href="datum.asp?username=<%=rs("Username")%>"><%=rs("name")%></a> <%=rs("liuyanshu")&"/"&rs("dianji")%>
</TD></tr>
</table>
</td>
<%rs.movenext
cs=cs+1
if cs mod 3=0 then%>
</tr>
<%end if
loop%>
</table>
</TD></tr></table><table width="98%" border="0">
<tr><form name="form2" method="post" action="">
<TD align=left background="image/b.gif" bgcolor="#99CCFF"><span class="style2">共<%=rs.recordcount%>张 分<%=rs.pagecount%>页 当前页次:<%=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>
</span></td>
</form>
</tr>
</table>
<%end if
rs.close
set rs=nothing
%>
</div></TD></TR></TBODY>
</TABLE>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<!--#include file="bottom.asp"--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -