<%@ page contentType="text/html; charset=GBK"  errorPage="../../../error.jsp" %>
<%@ page import = "zr.zrpower.collectionengine.service.ConfigService"%>

<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.collectionengine.COLL_DOC_PRINT" %>
<%@ page import = "zr.zrpower.ejb.sys.UIService" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.text.*" %>
<%
ConfigService configManage = new ConfigService();

UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
String ID=request.getParameter("SelectedItems");
String TYPE=request.getParameter("type");
COLL_DOC_PRINT bg=configManage.getPrintID(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>
<script language="JavaScript" type="text/javascript">
<!--
function Check(theForm){

document.form1.submit();
}
function bak()
{
  window.location.href='Right.jsp?SelectedItems=<%=bg.getDOCID()%>&ID=<%=ID%>';
}

-->
</script>
</HEAD>
<BODY class="BodyMain">

<form action="../../../actionprintconfig.do" method="post" name="form1" enctype="multipart/form-data" onsubmit="return Check(this);">
<%
if(bg!=null)
{
  %>
<input type="hidden" name="ID" value='<%=ID.trim()%>' />
<input type="hidden" name="DOCID" value='<%=bg.getDOCID()%>' />
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>

           <br>&nbsp;
           <fieldset style="width: 98%">
           <legend>重新上传打印模板</legend>
           <TABLE  width="100%" align="center" border="0">
            <TR>
             <TD colspan=2 height=5>
             <input class="input" type="hidden" name="Act" value="reload" />
             </TD>
             </TR>
             <TR>
               <TD class="PutdSet" width="14%">打印模版：</td>
               <TD><input name="TEMPLAET" type="file" size="60" class="text" maxlength="200" ></td>
             </TR>

  </TABLE>
          <br>

              <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("保 存","JavaScript:if(Check(document.form1)){document.form1.submit();}","buttonSave.gif",user.getUserImage())%>
                  <%=userUI.ClickButton("返 回","JavaScript:bak();","buttonReturn.gif",user.getUserImage())%>
             </tr></table>
                 <br>
                 </center>


<!--HTML Foot显示表单尾-->
<%=userUI.ShowFootHtml()%>
  <%
}
%>
</FORM>
</BODY>
</HTML>
<%
//清空相关对象
user = null;
userUI = null;
configManage = null;
bg = null;
%>
