<%@ Page CodeBehind="uploadA.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.ActiveX.upload" %>
<% @ Import Namespace="Webdisk" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
		<link href="css/webdialog.css" type=text/css rel=stylesheet>
			<script language="javascript">
function check_reply(oUpload, oForm)
{
	if(!oUpload.isready ())
	{
		alert("您还没有选择需要上传的文件。");
		return false;
	}
	if(oUpload.uploadfile()=="") // 上传所选择的文件
		return false;
}
			</script>
	</HEAD>
	<body>
		<div>
			<OBJECT id="uploadid" codeBase="ActiveX/xuploadfiles.cab" height="0" width="0" classid="clsid:18B9E4BF-F21F-46B9-AD50-5CA62145426A">
				<param name="Action" value="uploadApro.aspx">
				<param name="Bind" value="filelist">
			</OBJECT>
		</div><br>
	   
		<form onSubmit="return check_reply(uploadid,this);" action="finishA.aspx<%=outstr%>" method="post">
		  <TABLE class="wfrom-table">
			<TBODY>
			  <TR>
				<TD><span class="input-label">上传路径:</span><br>
					 <div class="wtips"> <asp:label id="txtpath" runat="server"></asp:label></div>
					  <input name="path" type="hidden" id="path" runat="server">
				</TD>
			  </TR>
			  <TR>
				<TD ><input onClick="uploadid.selectfiles();" class="wbtn-1" type="button" value="选择多个文件" name="button" style="border-radius:0px;">
					<input class="wbtn-4" style="float: right;margin-top: 15px;" onClick="<%if ((Request["out"]!=null) && (Request["out"].ToString()=="2")) Response.Write("javascript:history.go(-1)");else {%>javascript:window.location='upload.aspx?rtn=1&path=<%=System.Web.HttpUtility.UrlEncode(Session["path"].ToString(),System.Text.UnicodeEncoding.GetEncoding("utf-8"))%><%if (Request["out"]!=null) Response.Write("&out="+Request["out"].ToString());%>';<%}%>" type="button" value="返回普通上传方式" name="button">
					</td></tr>
					<tr><td>
					<textarea class="input-textarea" name="filelist" rows="8" readOnly wrap="off" cols="70"></textarea>
					</td></tr>
			  <TR>
			  <td  class="promptC">

							<span class="wtc-f00">使用说明：</span><span class="wtc-1EA7DE">如果发现“选择多个文件按钮”不能点击，您可以尝试在IE下进行以下两种操作中的一种：</span><br>
							<span class="wtc-999"><span class="wtc-1EA7DE">方法1：</span>下载客户端ActiveX控件并执行压缩包中的install.exe进行安装，然后刷新本页面。<A href="ActiveX/xuploadfiles.cab"><span class="wtc-1EA7DE">点击这里下载</span></A>（34K）</span><br>
							<span class="wtc-999"><span class="wtc-1EA7DE">方法2：</span>设置IE安全属性，将下载未签名的ActiveX控件改成“提示”，然后刷新本页。<A href="pics/show.jpg" target="_blank"><span class="wtc-1EA7DE">详细请看图示</span></A><BR>
Windows XP（SP2）客户端：XP下IE会阻止ActiveX的安装。解决办法：鼠标左键单击IE地址栏下的黄色条。然后鼠标左键单击安装ActiveX。</span>
						</td>
			  </TR><tr><td>
					<input class="wbtn-1" type="submit" value="上 传" name="submit">&nbsp;
					<input class="wbtn-2" onClick="uploadid.reset();" type="reset" value="重 置" name="reset">&nbsp;
					<input class="wbtn-2" onClick="javascript:history.go(-1);" type="button" value="返 回" name="button">&nbsp;
				</TD>
			  </TR>
			</TBODY>
		  </TABLE>
		</form>
                  
	</body>
</HTML>
