<%@ Page Language="C#" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_Label_TemplateUp" Codebehind="KS.TemplateUp.aspx.cs" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="/admin/images/style.CSS" rel="stylesheet" type="text/css" />
    <script src="../../ks_inc/jquery.js" type="text/javascript"></script>
    <script src="../../KS_Inc/Kesion.Common.js" type="text/javascript"></script>
</head>
<body  class="righttd" scroll="auto">
    <p>
        Upload_Click</p>
   <script type="text/JavaScript">
        function addFile()
        {
        var str = '<div>文件:<INPUT type="file" class="textbox" size="50" NAME="File"></div>'
        document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
        }
        function PromptInfo()
		{
		    LayerPrompt.style.visibility='visible';
		    return true;
		}
		var ForwardShow=true;
		function ShowPromptMessage()
		{ 
		    var TempStr=ShowInfoArea.innerText;
		    if (ForwardShow==true)
		    {
		        if (TempStr.length>4) ForwardShow=false;
		        ShowInfoArea.innerText=TempStr+'.';
		    } 
		   else
		   {
		        if (TempStr.length==1) ForwardShow=true;
		        ShowInfoArea.innerText=TempStr.substr(0,TempStr.length-1);
		    }
		}
		window.setInterval('ShowPromptMessage()',150)
        </script>

    <form id="form2" runat="server" enctype="multipart/form-data">
    <table width="100%" border="0" cellpadding="1" cellspacing="1">
           <tr>
            <td height="30" align="right" class="lefttd">
                <strong>操 作：</strong></td>
           <td class="righttd"><input type="button" value="增加(A)" class="button"  onclick="addFile()" accesskey="S">
           &nbsp;<input onclick="this.form.reset()" type="button" class="button" value="重置(R)" accesskey="R"></td>
           </tr>
           <tr>
           <td align="right" class="lefttd" style="height:50px;">
               <strong>请选要上传的模板文件：</strong></td>
           <td class="righttd">
                <div id="MyFile">文件:<input size="50" class="textbox" type="file" name="File" /></div>
                
           </td>
           </tr>
        <tr>
            <td align="right"  class="lefttd">
                <strong>模板文件重名覆盖：</strong></td>
            <td class="righttd">
                <asp:CheckBox ID="FileOverTF" runat="server" Checked="True" Text="是" /> <font color=blue>若勾选,那么存在的同名模板文件将被覆盖</font></td>
        </tr>
           </table>
           <div class="pop-button">
           
           <asp:Button Runat="server" Text=" 上 传(U) " ID="UploadButton" CssClass="button" OnClick="Upload_Click" AccessKey="U"></asp:Button>
           <input type="button" class="button" onclick="parent.isreload = false;parent.box.close();" accesskey="C" value="关闭取消(C)" /><br />
              <br />
              
                <script type="text/javascript">
		 showtips('<span class="state"><strong>说明：</strong><br /></span>模板文件必须是.html,.html.shtml..shtm的静态文件。<br />');
  </script>
              
             </div>
           
          <div id="LayerPrompt" style="position:absolute; z-index:1; left: 150px; top: 100px; background-color: #99CC00; layer-background-color: #00CCFF; border: 1px none #000000; width: 300px; height: 63px; visibility: hidden;">
		  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
		    <tr>
		      <td><div align="right">请稍等，正在上传文件</div></td>
		      <td width="35%"><div align="left"><font id="ShowInfoArea" size="+1"></font></div></td>
		    </tr>
		  </table>
		</div>
    </form>
</body>
</html>
