<!-- #include file=../../inc/BBSsetup.asp -->
<!-- #include file=../../inc/Board_popfun.asp -->
<!--#include file="wxzfunction.asp"-->
<%
WPD_html
WPD_Getconfig
WPD_ScriptSrc(WPD_pluspath&"visual/wxzmain.js")
WPD_checkplususer
WPD_isshowtop=0
%>
<!--#include file="z_Visual_const.asp"-->
<%
WPD_stats="上传背景"
WPD_header "时尚秀","visual","index.asp"
%>
<script language=javascript>
if (top.location==self.location){
	top.location="index.asp";
}
</script>
</head><body topmargin="0">
	<script language=JavaScript>
	<!--
	ValidationPassed = true;
	function visagePhotoForm_onsubmit(obj)
	{
		ValidationPassed = true;
		if(obj.photo.value =="")
		{
			alert("请点击浏览按钮选择要上传的文件!\n");
			ValidationPassed = false;
			obj.photo.focus();
			return;
		}
		ValidationPassed = true;
		return true;
	}

	function submitonce(theform)
	{
		if(ValidationPassed == false)return;
		if (document.all||document.getElementById)
		{
			for (i=0;i<theform.length;i++)
			{
				var tempobj=theform.elements[i];
				if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
				tempobj.disabled=true;
			}
		}
	}
	-->
	</script>
	<table cellspacing=1 cellpadding=0 width="100%" border=0 valign=absmiddle height=100%>
	<tbody>
	<form method=POST action=z_visual_upfile.asp?submitflag=yes&dontRequestFormFlag=<%="Guest" & Second(time) & hour(time) & minute(time)%>&BoardID=<%=GBL_Board_ID%> name=visagePhotoForm enctype=multipart/form-data onSubmit="submitonce(this);return ValidationPassed;">
	<tr bgcolor=<%=DEF_BBS_LightestColor%> class=TBBG9>
		<td valign=absmiddle align=absmiddle>
			<input type=file name=photo class=fminpt>
			<input type=submit value=开始上传 name=send onclick="visagePhotoForm_onsubmit(this.form)" class=fmbtn>
			<br><img src=<%=WPD_bbsPath%>images/blank.gif height=3 border=0><br>
		<%	openplusdatabase
			dim rsVisualConfig,sql2003
			sql2003="select PhotoBgSize,PhotoUpPrice1,PhotoUpPrice2 from visual_Config"
			set rsVisualConfig=server.createobject("ADODB.Recordset")
			rsVisualConfig.open sql2003,conn,1,1
			response.write "[<font color="&WPD_spcolor&">&nbsp;最大&nbsp;"&rsVisualConfig(0)&"&nbsp;K，每K&nbsp;"
			if isnull(v_myvip) or v_myvip<>1 then
				response.write rsVisualConfig(1)
			else
				response.write rsVisualConfig(2)
			end if
			response.write "&nbsp;元，现有&nbsp;"&WPD_mymoney&"&nbsp;元</font>&nbsp;]"
			set rsVisualConfig=nothing
		%>	</td>
	</tr>
	</form>
	</table>
</body></htmL>