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

📄 seachphoto2.asp

📁 一对一校友录多班级而且非常漂亮http://free.cnyys.com/my/yhe/DEFAULT.ASP
💻 ASP
字号:
<!--#include file="head.asp"-->
<!--#include file="popup.inc"-->
<% dim ao,orr,mmm,type1%>
<% 
mmm=request("mmm")
if mmm="" then mmm=0
photocx=Request("photocx")
	type1=Request.QueryString("type1")
	type1=LTRIM(RTRIM(type1))
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 and photo.type1="&type1&" order by LastUpdateTime desc,picid desc;"
rs.open sql,conn,1,1%>
<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>
                      <TD><form action="seachphoto.asp" method="post" name="photo">
                <select name="menu1" size="1"><option value="username">用户名</option>
                          <option value="title">图片标题</option>
                          <option value="remark">图片说明</option>
						  </select>
<input name="tpz" type="text" size="20"><br><br>
<input type="submit" name="Submit" value="提交">  <input name="reset" type="reset" value="重来">
                      </form>
                 </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 
            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!=".jpg" && extname!=".gif")
    {
    alert("请选择jpg或gif文件!");
    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>
          <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> <span class="style5">当前位置:</span> <A 
            href="index.asp">网站首页</A> <span style="color: #FF6699">- <a href="photo.asp">学校相册</a></span></TD>
                      <TD width=100 background=image/type_bg.gif>
                        <DIV align=center><IMG 
                        src="image/more.gif" 
                    border=0></DIV></TD></TR>
                    <TR>
                      <TD colSpan=2>
                        <DIV align=center> 
                       <table width="550" height="18" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td>共有(<font color="#FF0000"><%=rs.recordcount%></font>)张图
            </td>
          </tr>
        </table> <table width="99%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#F1DDA2">
          <tr> 
            <td colspan="4">
                <%          
  if mmm<>0 then         
  	for iisf=1 to mmm *9
  		if rs.eof then exit for         
  		rs.movenext         
  	next         
  end if         
  do while not rs.eof          
  %>      <tr> 
            <td width="25%" bgcolor="#FFFFFF"><div align="center"> 
                <table width="99%" height="80" border="0" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td><div align="center"><a href="viewphoto.asp?picid=<%=rs("picid")%>" title="<%=rs("LastUpdateInfo")%>"><%=rs("title")%></a><br>
                                                <a href="viewphoto.asp?picid=<%=rs("picid")%>"> 
                                                <%dim altinfo
altinfo="上传:"&rs("name")&"&lt;BR&gt;&nbsp;"&_
        "时间:"&rs("pubtime")&"&lt;BR&gt;&nbsp;"&_
		"人气:"&rs("dianji")&"&lt;BR&gt;&nbsp;"&_
		"大小:"&rs("photosize")&"K"
response.write "<IMG src='upphoto/"&rs("pic")&"' width=120 height=150 border=0 onmouseout=kill() onmouseover=""popup('"&altinfo&"','#d2e9fe')"">"%> 
                                              </a></div></td>
                  </tr>
                  <tr> 
                    
                  <td align="center"><a href="datum.asp?username=<%=rs("Username")%>"><%=rs("name")%></a>  <%=rs("liuyanshu")&"/"&rs("dianji")%>
                    <div align="center"></div></td>
                  </tr>
                </table>
              </div></td>
            <% rs.movenext %>
            <td width="25%" align="left" bgcolor="#FFFFFF"><div align="center"> 
                <%if not rs.eof then %>
                <table width="99%" height="80" border="0" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td width="99%"><div align="center"><a href="viewphoto.asp?picid=<%=rs("picid")%>" title="<%=rs("LastUpdateInfo")%>"><%=rs("title")%></a><br>
<a href="viewphoto.asp?picid=<%=rs("picid")%>"> 
            <%
response.write "<IMG src='upphoto/"&rs("pic")&"' width=120 height=150 border=0 onmouseout=kill() onmouseover=""popup('"&altinfo&"','#d2e9fe')"">"%> 
            </a></div></td>
                  </tr>
                  <tr> 
                  <td align="center">
 <a href="datum.asp?username=<%=rs("Username")%>"><%=rs("name")%></a>  <%=rs("liuyanshu")&"/"&rs("dianji")%></td>
                  </tr>
                </table>
              </div></td>
            <%    rs.movenext
				   end if %>
            <td width="25%" align="left" bgcolor="#FFFFFF"><div align="center">
                <%if not rs.eof then %>
                <table width="99%" height="80" border="0" cellpadding="0" cellspacing="0">
                  <tr> 
                   <td width="99%"><div align="center"><a href="viewphoto.asp?picid=<%=rs("picid")%>" title="<%=rs("LastUpdateInfo")%>"><%=rs("title")%></a><br><a href="viewphoto.asp?picid=<%=rs("picid")%>"> 
          <%
response.write "<IMG src='upphoto/"&rs("pic")&"' width=120 height=150 border=0 onmouseout=kill() onmouseover=""popup('"&altinfo&"','#d2e9fe')"">"%>
            </a></div></td>
                  </tr>
                  <tr> 
                    
                  <td align="center"><a href="datum.asp?username=<%=rs("Username")%>"><%=rs("name")%></a>  <%=rs("liuyanshu")&"/"&rs("dianji")%></td>
                  </tr>
                </table>
              </div></td>
            <%    rs.movenext 
				  end if %>
            
          </tr>
          <% i=i+1                   
   if i=3 then exit do                                       
   loop                         
%>
        </table>
        <p align="center"> <span class="unnamed1"> 
          <!--上页-->
          <%if mmm<>0 then%>
          <%="<a href=?mmm=" & mmm-1 & "&photocx=" & photocx & "&stype=" & stype & "><font color=""#FF0000"">上页</font></a>"%> 
          <%end if%>
          <!--下页-->
          <%if not rs.eof then%>
          <%="<a href=?mmm=" & mmm+1 & "&photocx=" & photocx & "&stype=" & stype & "><font color=""#FF0000"">下页</font></a>"%> 
          <%end if%>
          </span></p>
        <p align="center">        <% if rs.eof and rs.bof then  
response.redirect "photo.asp"
response.end
end if 
i=0 %></p><%
set rs=nothing
%>  
	                          </DIV>
                    <TR>
                      <TD colSpan=2>
                    </TBODY>
                  </TABLE>
                 </TD></TR></TBODY></TABLE></TD></TR></TABLE></TD></TR></TBODY></TABLE>
<!--#include file="bottom.asp"--></BODY></HTML>

⌨️ 快捷键说明

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