<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/const.asp"-->
<%
if MemberName="" then
  response.Redirect("userlogin.asp")
  response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
}
-->
</style>

<script type="text/javascript">
theUniqueID = (new Date()).getTime() % 1000000000;
function s()    //让数据提交的同时执行显示进度条的函数
{
       if (document.upforum.attach.value=="")
	{
		alert("请您选择视频文件！");
		return false;
	}
	if (!isAllowedAttach(document.upforum.attach.value))
	{
		alert("抱歉，目前还不支持该视频格式！");
		return false;
	}
       document.upforum.action = "savetbjy.asp?ID=" + theUniqueID;  //处理上传数据的程序

       document.upforum.submit();     //提交表单
	   return true;
}

function isAllowedAttach(sFile)
{
	var sUploadImagesExt = ".jpg .gif";
	var sExt = sFile.match( /\.[^\.]*$/ ) ;
	if (sExt) {
		sExt = sExt[0].toLowerCase();
	} else {
		return false;
	}
	if ( sUploadImagesExt.indexOf( sExt ) != -1 ) {
		return true;
	}
	return false;
}
</script>
<script type="text/javascript"> 
function preview5(){ 
var x = document.getElementById("attach"); 
 if(!x || !x.value) return; 
var patn = /\.jpg$|\.jpeg$|\.gif$/i; 
if(patn.test(x.value)){  
var y = document.getElementById("img5"); 
if(y){ 
y.src = "file://localhost/" + x.value; 
}else{ 
var img=document.createElement("img");      img.setAttribute("src","file://localhost/"+x.value); 
img.setAttribute("width","120"); 
img.setAttribute("height","230"); 
img.setAttribute("id","img5"); 
document.getElementById("upforum").appendChild(img); 
 } 
}else{ 
alert("您选择的似乎不是图像文件。"); 
}} 
</script>  
</head>
<body>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="204" height="328" valign="top"><!--#include file="memberleft.asp"-->
&nbsp;</td>
    <td width="583" valign="top">
	<%
if memberclass<>"VIP会员" then
  response.Write "<p align=""center"" class=""STYLE30""><br><br> 对不起！只有VIP会员才能有发布特别交友信息的权利。如果您想升级为VIP会员，请点击<a href=""userupdate.asp"" target=""_blank""><font color=#FF0000>这里</font></a>升级为VIP会员。<br> <br> </p>"
else
%>	
	<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
              <TBODY>
                <TR>
                  <TD width="2%" align=left background="image/tiao_4.gif"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                  <TD height="31" align=center background="image/tiao_4.gif">
				  <div id="h1d_1" class="hd_on" style="cursor:auto;">
				  <TABLE width=530 height="27" border=0 cellPadding=0 cellSpacing=0>
                      <TBODY>
                        <TR>
                          <TD height="27" align=middle class="pgd">发布特别交友信息</TD>
                        </TR>
                      </TBODY>
                  </TABLE>
				  </div>
				  </TD>
                  <TD width="2%" align="center" background="image/tiao_4.gif"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                </TR>
              </TBODY>
          </TABLE></td>
        </tr>
        <tr>
          <td height="299" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid">
		  <table border="0" width="100%" cellpadding="0" cellspacing="0" class="f12">
	<tr valign="top">
		<td width="20"></td>
		<td width="740" align="center">
		<form id="upforum"  name="upforum" enctype="multipart/form-data" method="post" action="savetbjy.asp">
		  <div id="Up11" style="position:relative"> <br>
		    <br>
		    <table width="500" height="40" border="0" align="center" cellspacing="0">
			
			
			<tr class="f14">
				<td width="70" height="30" align="right">上传图片：</td>
				<td width="426" class="f_of"><input type="file" name="attach" id="attach" class="sce" size="30" onChange="preview5()">
				  <span style="color: #FF0000">宽高尺寸:137*158px</span></td>
			</tr>
		</table>
		</div><div id="UploadingFirst" style="display: block;"><br>
		<table width="500" height="35" border="0" align="center" cellspacing="0">
			<tr>
				<td width="315" height="30"><span class="sc_i c9 lh18"><span class="cc">·</span>限定大小：不能超过<span style="font-weight: bold">300k</span>&nbsp;&nbsp;&nbsp;<br>
                    <span class="cc">·</span>支持格式：<b>JPG,GIF</b></span></td>
				<td width="181" height="30"><input name="button" type="button" class="l"  onClick="s()" value="确定提交"></td>
			    </tr>			
		</table>
		</div>
		</form>
		</td>
		<td width="240">&nbsp;</td>
	</tr>	
</table>
		  </td>
        </tr>
    </table>
<%end if%>	
	</td>
    <td width="163" valign="top"><!--#include file="fenlei.asp"-->
&nbsp;</td>
  </tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
