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

<%
UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
String ID=request.getParameter("SelectedItems");
StatisticsControl Control =  new StatisticsControl();
Control.Savetemplaet(ID);
%>
<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>

</HEAD>
<BODY class="BodyMain">
<form action="" method="post" name="form1">

<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">

             <br><br>
             已经生成默认报表表头模板。
             <br><br>
             </TD>
            </TABLE>
          <br>
          </fieldset>
               <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("返回","JavaScript:resc()","buttonCancel.gif",user.getUserImage())%>
                 <%=userUI.ClickButton("关闭","JavaScript:window.close();","buttonClose.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>
