<%@ page contentType="text/html; charset=GBK"  errorPage="../../../error.jsp" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.ejb.sys.UIService" %>

<%
UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
String ID=request.getParameter("SelectedItems");

%>
<HTML>
<HEAD>
<TITLE>上传报表显示格式模板</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK type="text/css" rel="stylesheet" href="../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../zrsysmanage/script/Public.js"></SCRIPT>
<script language="JavaScript" type="text/javascript">
<!--

//有效性检查
function Check(theForm){
if (theForm.TEMPLAET.value == "")
      {
       alert("请选择要上传的模板文件！");
       theForm.TEMPLAET.focus();
       return;
       }
 if(!(((theForm.TEMPLAET.value.toLowerCase()).indexOf(".") > 0)&&(theForm.TEMPLAET.value.toLowerCase()).indexOf(":") > 0))
		{
		  alert("模板文件格式不正确，请点击浏览上传正确的文件");
		  theForm.TEMPLAET.focus();
		  return;
		}
document.form1.submit();
}
-->
</script>
</HEAD>
<BODY class="BodyMain">
<form action="../../actionstatistics1.do" method="post" name="form1" enctype="multipart/form-data" onsubmit="return Check(this);">

<input type="hidden" name="ID" value='<%=ID%>'>
<!--HTML Head表单头显示[显示内容，用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml("报表配置管理",user.getUserImage())%>
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>
<DIV id="divMessage" style='padding-left:0;padding-top:0;width:99%;height:100%;overflow:auto'>
           <br>&nbsp;
           <fieldset style="width: 98%">
           <legend>上传报表显示模板</legend>
           <TABLE  width="100%" align="center" border="0">
            <TR>
             <TD colspan=2 height=160 align="center">
             <input class="input" type="hidden" name="Act" value="reload">

             <img border='0' align='absmiddle' src='../images/table_gs.jpg'>
             <br><br><br>
             说明：可以定义任何表头的报表格式，定义时多定义一行，最后一行表示开始用来显示报表数据,如上图所示。
             <br><br>
             </TD>
              <TR>
               <TD class="PutdSet" width="14%">模板：</td>
               <TD><input name="TEMPLAET" type="file" class="text" id="TEMPLAET" size="50"  maxlength="200" ></td>
             </TR>
            </TABLE>
          <br>
          </fieldset>
               <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("保存","JavaScript:Check(document.form1)","buttonSave.gif",user.getUserImage())%>
                 <%=userUI.ClickButton("返回","JavaScript:resc()","buttonCancel.gif",user.getUserImage())%>
                 </tr></table>
                 <br>
                 </center>
  </DIV>

<!--HTML Foot显示表单尾-->
<%=userUI.ShowFootHtml()%>

</FORM>
</BODY>
</HTML>
<%
//清空相关对象
user = null;
userUI = null;
%>
<script language="JavaScript" type="text/JavaScript">
function resc(){
  var url="StatisticsEdit.jsp?SelectedItems="+form1.ID.value;
  document.location.href=url;

}

</script>
