<!--#include file="../inc/Inc.asp"-->
<!--#include file="ydzqpass.asp"-->

<%
call ling()
call head
call saycardd("WAP2.0相片上传")
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Cache-Control", "no-cache, must-revalidate"
%>
<%if saytk=1 then response.redirect"photofile.asp?sid="&sid&"&saytk=2"
dim TP
TP=request("TP")
if TP<>"" then
response.write"上传头像<br/>"
response.write("<form action='photo_Upfile.asp?TP="&TP&"&amp;sid="&sid&"&amp;saytk="&saytk&"' enctype='multipart/form-data' method='post'>")%>
选择图片<input type="file" name="filefield1<%=i%>"/><br/>  
<input type="submit" name="Submit2" value="确定上传">
<br/><br/>1.建议所上传文件名和目录组合是字母与数字.
<br/>2.上传的图片格式支持jpg,jpeg,gif,bmp,png.
<br/><a href='kat.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>返回上级</a><br/><a href='index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>社区首页</a></body></html>
<%
else
dim nums
nums=request("nums")
if nums=empty then
nums=1
else
if nums>10 then
nums=10
end if
end if
%>
<form name="form2" method="post" action="photofile.asp?sid=<%=sid%>&amp;up=<%=up%>&amp;tid=<%=tid%>&amp;bbsid=<%=bbsid%>&amp;saytk=<%=saytk%>">
如果想同时输入N个数据，请设置数据的数目(最多10条)：<br/>
<input name="nums" type="text" id="nums2" size="10">
<input type="submit" name="Submit" value="提交">
</form><br/><%
response.write("<form action='photo_Upfile.asp?sid="&sid&"&amp;saytk="&saytk&"' enctype='multipart/form-data' method='post'>")
conn.close
set conn=nothing%> 
相片说明:<input type="text" name="photoContent" maxlength="30" value=""><br/>
                是否公开
                <select title="公开相片" name="photoview" value="0">
                <option title="公开相片" value="0">公开相片</option>
                <option title="私藏相片" value="1">私藏相片</option>
                </select><br/>
<%for i=1 to nums %>
选择相片<%=i%>:<input type="file" name="filefield1<%=i%>"/><br/>  
<%next%>
<input type="submit" name="Submit2" value="上传相片"></form><br/>
<br/><br/>1.建议所上传文件名和目录组合是字母与数字.
<br/>2.上传的图片格式支持jpg,jpeg,gif,bmp,png.
<br/><a href='photo.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>我的相册</a><br/><a href='index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>社区首页</a>


<%end if%>
<%Call headsay()%>
