<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/nosql.asp"-->
<!--#include file="../../conn/config.asp"-->
<!--#include file="../../conn/count.asp"-->
<!--#include file="../page.asp"-->
<!--#include file="../count.asp"-->

<%
if isChkInteger(request("web_id")) then
web_id=request("web_id")
else
Response.Redirect ("../../index.asp")
end if

if session("user")="" then
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if session("id")="" and session("id")<>cint(web_id) then 
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if

sql="select * from snsn_user where id="&web_id
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write "<script language='javascript'>"
response.write "alert('没有此用户，请确认后或联系管理员再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
else
if nosql(request("ida"))<>"" then
  session("idaa")=nosql(request("ida"))
  end if
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link rel="stylesheet" href="css.css" type="text/css">
<style type="text/css">
<!--
.style1 {color: #000000}
.tmpstr21 {word-break:break-all}
-->
</style>
</head>
<body>
<script language="javascript">
function ck(){
if(form.tclass.value==""){
alert("请选择要上传到什么相册！")
form.tclass.focus()
return false
}
if(form.bt.value==""){
alert("请输入照片的标题！")
form.bt.focus()
return false
}

if(form.picurl.value==""){
alert("请先上传照片再保存！")
form.picurl.focus()
return false
}


}
</script>
<table width="420"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="22">
      <table width="420"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="1" height="1"></td>
          <td height="1" colspan="2" bgcolor="#CCCCCC"></td>
          <td width="1" height="1"></td>
        </tr>
        <tr>
          <td width="1" bgcolor="#CCCCCC"></td>
          <td width="30" bgcolor="#F1F1F1"><div align="center"><span class="M"><IMG 
                              src="img/icon_04.gif" 
                              name=image1754891 width="16" height="13" border=0></span></div></td>
          <td height="25" bgcolor="#F1F1F1"><span class="M"><FONT 
                              color=#000000><a href="web.asp?web_id=<%=web_id%>"><U><%=home%></U></a></FONT> -&gt; <FONT 
                              color=#000000><a href="photo.asp?web_id=<%=web_id%>"><U><%=xc%></U></a>-&gt; <u>上传我的照片</u></FONT></span></td>
          <td width="1" bgcolor="#CCCCCC"></td>
        </tr>
        <tr>
          <td width="1" height="1"></td>
          <td height="1" colspan="2" bgcolor="#CCCCCC"></td>
          <td width="1" height="1"></td>
        </tr>
      </table></td>
  </tr><tr>
    <td height="12"></td>
  </tr>
  <tr>
    <td align="center" valign="top"><div align="center">
      <p></p>
    </div>
       <table width="98%"  border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="efefef">
         <form action="uppicok.asp?web_id=<%=web_id%>" method="post" name="form" onsubmit="return ck()"><tr>
           <td height="21" align="center" bgcolor="f9f9f9">上传照片</td>
         </tr>
         <tr>
           <td height="21" bgcolor="#FFFFFF">相册名
               <select name="tclass" id="tclass" class="wenbenkuang">
                 <option value="" selected>请选择上传的相册</option>
                 <%set rs=server.CreateObject("adodb.recordset")
			rs.open"select * from snsn_uppic_class where username='"&session("user")&"'",conn,1,1
			if not rs.eof then
			do while not rs.eof%>
                 <option value="<%=rs("tclass")%>"><%=rs("tclass")%></option>
                 <%rs.movenext
			loop
			else%>
                 <option value="我的相册">我的相册</option>
                 <%end if%>
             </select></td>
         </tr>
         <tr>
           <td height="21" bgcolor="#FFFFFF">标　题
               <input name="bt" type="text" id="bt" class="wenbenkuang" size="40"></td>
         </tr>
         <tr>
           <td height="21" bgcolor="#FFFFFF">照　片
               <input name="picurl" type="text" class="wenbenkuang" id="picurl" size="40" readOnly>
&nbsp;&nbsp;<a href=# class="z12" onclick="window.open('/conn/upload.asp?formname=form&editname=picurl&infoname=love','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"><font color="#FF0000">上传照片<font></a> </td>
         </tr>
         <tr>
           <td height="21" bgcolor="#FFFFFF"><textarea name="nr" class="wenbenkuang" cols="60" rows="5" id="nr"></textarea></td>
         </tr>
         <tr>
           <td height="21" align="right" bgcolor="#FFFFFF"><div align="center">
               <input type="submit" name="Submit" class="go-wenbenkuang" value="立即提交">&nbsp; 
               <input type="reset" name="Submit2" class="go-wenbenkuang" value="重新上传">
           </div></td>
         </tr></form>
      </table></td>
  </tr>
</table>
</body>
</html>
 <%
end if%>
