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

📄 sendphoto.asp

📁 用ASP写的ASP交友系统
💻 ASP
字号:
<%Option Explicit%><!--#include file="conn.asp"--><%
dim rs_lar,rs
dim sql
dim i

'叛断此用户是否已经注册
Set rs_lar = Server.CreateObject("ADODB.Recordset")
sql="select * from larchives where user_id =" & session("user_id")
rs_lar.open sql,conn,3,2

if rs_lar.eof and rs_lar.bof then
    if session("user_id")=1 then response.redirect "notreg.htm"
	 response.redirect "notregist.htm"
	 response.end
end if

%><!--#include file="connpic.asp"--><%

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from pic where user_id=" & session("user_id")
rs.open sql,conn,3,2
%>
<html>

<head>
<LINK href="pic/gufeng.css" rel=stylesheet>
<script language="JavaScript" src="pic/fade_image.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="ProgId" content="FrontPage.Editor.Document">
<Script language="javascript">
function mysubmit(theform)
{
    if(theform.big.value=="")
    {
    alert("请点击浏览按钮,选择您要上传的jpg或gif文件!")
    theform.big.focus;
    return (false);
    }
    else
    {
    str= theform.big.value;
    strs=str.toLowerCase();
    lens=strs.length;
    extname=strs.substring(lens-4,lens);
    if(extname!=".jpg" && extname!=".gif")
    {
    alert("请选择jpg或gif文件!");
    return (false);
    }
    }
    return (true);
}
</script>
<title>酒乡网友联盟</title>
<SCRIPT language=JavaScript>
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  if (theURL != "fuckyou")
 {   window.open(theURL,winName,features);}
}
//-->
</SCRIPT></head>

<body topmargin="0" leftmargin="0">


<table align="center" border="0" cellPadding="0" cellSpacing="0" height="20" width="777">
  <tr>
    <td width="100%">
      <table border="0" cellpadding="0" cellspacing="0" width="777" height="21" bgcolor="#FFF4C8" background="pic/di.GIF">
        <tr>
          <td width="23%" height="19"><img border="0" src="pic/htt.GIF" width="227" height="20"></td>
          <td width="33%" height="19"> </td>
          <td width="3%" height="19" align="center">□</td>
          <td width="8%" height="19" align="center"><a href="my.asp">关于我们</a></td>
          <td width="3%" height="19" align="center">□</td>
          <td width="8%" height="19" align="center"><a href="../book">本站留言</a></td>
          <td width="3%" height="19" align="center">□</td>
          <td width="8%" height="19" align="center"><a href="javascript:window.external.AddFavorite('http://www.644000.net',%20'酒乡网友联盟')">添加收藏</a></td>
          <td width="3%" height="19" align="center">□</td>
          <td width="8%" height="19" align="center"><a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.644000.net');">设为首页</a></td>
        </tr>
      </table>
      <div align="center">
        <center>
        <table border="0" cellpadding="0" cellspacing="0" width="777" height="90" bgcolor="#F9C700">
          <tr>
            <td width="100%" height="88">
              <div align="center">
                <table border="0" cellpadding="0" cellspacing="0" width="777">
                  <tr>
                    <td width="243" align="left"><img border="0" src="pic/logo.GIF" width="240" height="70"></td>
                    <td width="12" align="left"></td>
        </center>
                    <td width="500" align="center" valign="middle">
                      <p align="center"><!--Banner-->
<script src="http://www.644000.net/guanggao/banner.asp"></script>
<!--Banner --></p>
                  </td>
        <center>
                    <td width="14" align="center"></td>
                  </tr>
                </table>
              </div>
            </td>
          </tr>
        </table>
        </center>
      </div>
      <div align="center">
        <center>
        <table border="0" cellpadding="0" width="777" bgcolor="#FFF4C8" height="20" cellspacing="0">
          <tr>
            <td width="4%" align="center"><img border="0" src="pic/tou.GIF" width="28" height="20" style="filter:alpha(opacity=40)" onMouseOver="fade_in(this);" onMouseOut="fade_out(this);"></td>
            <td width="10%" align="center"><a href="default.asp"><img border="0" src="logo/1.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="reg.asp"><img border="0" src="logo/2.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="register.asp"><img border="0" src="logo/3.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="your.asp"><img border="0" src="logo/4.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="list.asp"><img border="0" src="logo/5.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="sendphoto.asp"><img border="0" src="logo/6.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="jh" target="_blank"><img border="0" src="logo/7.gif"></a></td>
            <td width="2%" align="center"><img border="0" src="pic/heng.gif" width="2" height="12"></td>
            <td width="10%" align="center"><a href="http://www.644000.net/bbs" target="_blank"><img border="0" src="logo/8.gif"></a></td>
          </tr>
          <tr>
            <td width="98%" align="center" colspan="16">
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tr>
      <td width="100%" bgcolor="#FFFFFF">
        <table border="0" cellpadding="0" cellspacing="0" width="777" height="20">
          <tr>
            <td width="6%" bgcolor="#EABB00" height="20"> </td>
            <td width="6%" bgcolor="#F0C000" height="20"> </td>
            <td width="6%" bgcolor="#FFCD06" height="20"> </td>
            <td width="6%" bgcolor="#FFD21E" height="20"> </td>
            <td width="6%" bgcolor="#FFD52D" height="20"> </td>
            <td width="7%" bgcolor="#FFDA46" height="20"> </td>
            <td width="7%" bgcolor="#FFDE5B" height="20"> </td>
            <td width="7%" bgcolor="#FFDE59" height="20"> </td>
            <td width="7%" bgcolor="#FFDE59" height="20"> </td>
            <td width="7%" bgcolor="#FFDF62" height="20"> </td>
            <td width="7%" bgcolor="#FFE168" height="20"> </td>
            <td width="7%" bgcolor="#FFEA95" height="20"> </td>
            <td width="7%" bgcolor="#FFEFB0" height="20"> </td>
            <td width="7%" bgcolor="#FFF9DD" height="20"> </td>
            <td width="7%" bgcolor="#FFFDF0" height="20"> </td>
          </tr>
        </table>
      </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        </center>
      </div>
    </td>
  </tr>
</table>

<div align="center">
  <table border="0" cellpadding="0" cellspacing="0" width="777" height="228">
    <tr>               
      <td width="512" height="196" bgcolor="#FCFCFC" rowspan="2" valign="top">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
    <td width="47%" height="65" valign="top">

      <form enctype="multipart/form-data" action="addpic.asp" method=post onsubmit="return mysubmit(this)">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="277" bgcolor="#FFFFFF"><font color="#000000" size="2">相片上传</font></td>
        </tr>
        <tr>
          <td width="331">
            <p align="center"><font color="#000000" size="2">大相片&nbsp; <input type="file" name="big" size="20"></font></p>             
          </td>
        </tr>
        <tr>
          <td width="337">
            <p align="center"><font color="#000000" size="2"><input type="submit" value="  上传  " name="B3"> </font></p>
          </td>
        </tr>
      </table>
      </form>
      <form>
      <table border="0" width="100%" height="13" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" height="10" bgcolor="#FFFFFF" colspan="2"><font color="#000000" size="2">您已上传<%=rs.recordcount%>张相片</font></td>
        </tr>
        <%for i=1 to rs.recordcount%>
        <tr>
          <td width="55%" height="5"><font color="#000000" size="2">第<%=i%>张</font></td>
          <td width="45%" height="5">
            <p align="right"><a href="displaypic.asp?id=<%=rs("id")%>"><font color="#000000" size="2">[查看]</font></a><font color="#000000" size="2"><a href="delphoto.asp?id=<%=rs("id")%>&user_id=<%=rs("user_id")%>">[删除]</a></font></td>
        </tr>
        <%rs.movenext%>
        <%next%>
      </table>
      </form>
      <font color="#000000" size="2">
      <br>

      </font>

      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%">
            <p align="center"><a href="read.asp?user_id=<%=session("user_id")%>" ><font color="#000000" size="2">查看个人资料</font></a></td>
        </tr>
      </table>

    </td>
    <td width="3%" height="65" valign="top">++</td>
    <td width="50%" height="65" valign="top" style="border-left-style: solid; border-left-width: 1">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" bgcolor="#FFFFFF"><font color="#000000" size="2">关于相片上传</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">&nbsp;</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">请注意<span class="content">相片规格</span>:</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">1.相片文件大小在60K以下</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">2.相片格式:GIF、JPG</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">&nbsp;</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">上传相片内容说明</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">1.不得上传色情图片,如有违者一切后果自负</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">2.不得上传与本人无关的相片</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">&nbsp;&nbsp;</font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#000000" size="2">广大网友如有发现有和人物的相片不合,请<a href="#">通知管理员</a></font></td>
        </tr>
      </table>
    </td>
          </tr>
        </table>
      </td>    
  <center>
      <td width="5" height="196" bgcolor="#EABB00" rowspan="2"> </td>    
      <td width="235" height="51" bgcolor="#EABB00" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                   
        为了体现您完美与真实的自我,请祥细和认真的填写您的个人档案。 
                <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果您想上传照片,请提交了个人档案以后,进入<a href="sendphoto.asp">[相片上传]</a>栏目。</p>                   
        <p>&nbsp;&nbsp;&nbsp;&nbsp; 本交友中心初建于2001年5月,至今已得到了很多网友的支持。紫雨工作室在此特向所有持我们网站的网友表示感谢!</p>                  
                <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 祝愿所有的网友都能找到人生知己。                   
                </p> 
  </center>                    
                <p align="right">酒乡网友联盟 
                </p> 
  <p align="right">2001-05-08. 
                </p> 
      </td>    
    </tr>    
    <tr>    
      <td width="235" height="1" bgcolor="#EABB00">    
        <hr size="1" color="#FFCE09">    
      </td>    
    </tr>    
  </table>                    
</div>                    
                    
  <div align="center">                             
    <center>                             
    <table border="0" cellpadding="0" cellspacing="0" width="777" bgcolor="#FFFFFF" height="22">                             
      <tr>                             
        <td width="100%" height="22"><img border="0" src="ku/dididi.gif" width="777" height="28"></td>                             
      </tr>                             
    </table>                             
    </center>                             
  </div>                             
                                  
  <div align="center">                             
    <center>                             
    <table border="0" cellpadding="0" cellspacing="0" width="777" height="29" bgcolor="#EABB00">                             
      <tr>                             
        <td width="773"  height="29"> 
          <p align="center"> &nbsp;紫雨工作室-2001-年:酒乡网友联盟                                                      
          版权所有,未经许可不的复制 &copy;2001-2002All                                                      
          Rights Reserved</p>                     
 </td>                                
      </tr>                               
    </table>                               
    </center>                               
  </div>                               
                                    
  <div align="center">                               
    <center>                               
    <table border="0" cellpadding="0" cellspacing="0" width="777" bgcolor="#000000">                               
      <tr>                               
        <td width="100%"></td>                               
      </tr>                               
    </table>                               
    </center>                               
  </div>                               
                           
</body>               
               
</html>               


⌨️ 快捷键说明

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