<!--#include file="conn.asp"-->
<!--#include file="sql.asp"-->
<%if session("flag")>1 then
    response.write "<script>alert('您的操作权限不够！');history.back();</script>"
    response.end
end if
upset = 100
%>

<% if request("ddid")<>"" and session("ddiduse")="" then
session("ddiduse")=nnoo(request("ddid"))
end if 
 set rs=server.createobject("adodb.recordset")
	  sql="SELECT kai,host,logo,gongsi,shopover2,shoprecord,bbskai,fakai,xshangzong,paimaikai,bbskainame,guang1,guang11,paimainame,yinkai,gengduo,xdizhi,xdizhi2,xjie,shopover  from home "
	 rs.open sql,conn,1,3
	  vvhost=rs("host")
	  vshopover=rs("shopover2")
	  vbbskai=rs("bbskai")
	  vpaimaikai=rs("paimaikai")
	  vbbskainame=rs("bbskainame")
	  vguang1=rs("guang1")
	  vguang11=rs("guang11")
	  vpaimainame=rs("paimainame")
	  vvvyinkai=rs("yinkai")
	  vvvgengduo=rs("gengduo")
		vvvhost=rs("host")
		vvvxdizhi2=rs("xdizhi2")
		vvvxdizhi=rs("xdizhi")
		vvvshoprecord=rs("shoprecord")
		vvvxjie=rs("xjie")
		vvvxshangzong=rs("xshangzong")
		vvvkai=rs("kai")
		vvvfakai=rs("fakai")
		vlogo=rs("logo")
		vvgongsi=rs("gongsi")
	 if rs("shopover")=1 then
	  Response.Write "<script Language=Javascript>alert(' 对不起！影院正在维护中请稍候访问......');location.href = 'xxx.asp';</script>"
      response.end
	  end if
	  rs.close
	 %>

<% if vvvkai<>1 then
Response.Write "<script Language=Javascript>alert(' 对不起！本站暂停上传功能......');location.href = 'yxplay.asp?id=80779 and 1=1';</script>"
      Response.end
	   end if %>





<html>

<head>
<title>文件上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="inc/Admin_STYLE.CSS" type="text/css">
<style type="text/css">
<!--
.样式1 {
	font-size: 12px;
	font-weight: bold;
}
-->
</style>
</head>

<body bgcolor="#D6EF7E" text="#000000">

<form name="form1" method="post" action="upfilemovie.asp" enctype="multipart/form-data" >
  <input type="hidden" name="act" value="upload">
  <div align="center">
    <center>
    <table width="460" height="181" border="0" cellpadding="2" cellspacing="1" bordercolor="#111111" bordercolorlight="#000000" bordercolordark="#CCCCCC" class="border" style="border-collapse: collapse">
     
        <td height="16" align="left" valign="middle" class="tdbg">
        <div align="center" class="样式1">          图片上传 
        </div>        </td>
      </tr>
      <tr align="left" valign="middle" bgcolor="#eeeeee">
        <td height="1" valign="top" bgcolor="#FFFFFF" class="tdbg">
        <table width="425" border="0" cellspacing="1" cellpadding="2" align="center">
          <tr>
            <td width="419">
            <script language="javascript">
	  function setid()
	  {
	  str='<br>';
	  if(!window.form1.upcount.value)
	   window.form1.upcount.value=1;
	  if(window.form1.upcount.value><%=upset%>){
	  alert("您最多只能同时上传<%=upset%>个文件0");
	  window.form1.upcount.value = <%=upset%>;
	  setid();
	  }
	  else{
 	  for(i=1;i<=window.form1.upcount.value;i++)
	     str+='<div align="center">图片'+i+':<input type="file" name="file'+i+'" style="width:400" class="tx1"></div>';
	  window.upid.innerHTML=str+'<br>';}
	  }
	        </script>
            设置上传的个数 
            <input type="text" class="border" value="1" name="upcount" size="20">
            <input type="button" name="Button" class="border" onclick="setid();" value="设定">
            </td>
          </tr>
        </table>        </td>
      </tr>
      <tr align="center" valign="middle">
        <td height="22" align="left" bgcolor="#FFFFFF" class="tdbg" id="upid">
        
        </td>
      </tr>
      <tr align="center" valign="middle" bgcolor="#eeeeee">
        <td height="28" bgcolor="#FFFFFF" class="tdbg">
        <input type="submit" name="Submit" value="上传" class="border">
        <input type="reset" name="Submit2" value="重执" class="border"></td>
      </tr>
      <tr align="center" valign="middle" bgcolor="#eeeeee">
        <td height="14" bgcolor="#FFFFFF" class="tdbg">　</td>
      </tr>
    </table>
    </center>
  </div>
</form>

</body>

</html>
<script language=javascript>

</script>