<%@ page contentType="text/html; charset=GBK"%>
<%@ page import = "zr.zrpower.common.util.SysPreperty"%>
<%@ page import = "zr.zrpower.entity.sys.SessionUser"%>
<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<%@ page import = "zr.zrpower.collectionengine.service.ConfigService"%>
<%@ page import = "java.lang.Object"%>

<%
SessionUser user = (SessionUser)session.getAttribute("userinfo");
UIService userUI =new UIService();

ConfigService Coll = new ConfigService();

String strID = request.getParameter("ID");//配置ID
if (strID==null){strID = "";}

%>
<HTML>
<HEAD>
<TITLE>选择生成默认模板</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<link REL="stylesheet" type="text/css" href="../../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/script/Public.js"></SCRIPT>
<%if("6".equals(user.getUserWINDOWTYPE())){ %>
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/html5/script/jquery-2.0.3.min.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/html5/layer/layer.js"></SCRIPT>
<%}%>
</HEAD>

<BODY class="BodyMain">
<Form name="recordfrm" method="post" action="../../../actionsubconfigmsg.do">
<input type="hidden" name="ID" value="<%=strID%>">
<input type="hidden" name="Act" value="templaet">
<input type="hidden" name="fields" value="">
<input type="hidden" name="type" value="1">
<!--HTML Head表单头显示[显示内容，用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml("选择生成默认模板",user.getUserImage())%>
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>
<DIV id="divMessage" style='padding-left:0;padding-top:0;width:880;height:420;overflow:auto'>
          <table border='0' width="100%"  height="100%" cellspacing="0" cellpadding="0" align=center>
           <tr>
             <td width="180"><Font class="WriteSign">电脑板模板1:</font>

             <input type="radio" name="XC" value='1' checked="checked" onclick="document.recordfrm.type.value='1';">　

             </td>
             <td>

              <img src="../../Res/templaet1.gif" border="0" width="720" height="394" align="absmiddle">


             </td>
          </tr>
          <tr>
             <td  colspan="2">
             <hr>
             </td>
          </tr>
          <tr>
             <td width="180"><Font class="WriteSign">电脑板模板2:</font>
              <input type="radio" name="XC" value='2'  onclick="document.recordfrm.type.value='2';">

             </td>
             <td>

              <img src="../../Res/templaet2.gif" border="0" width="720" height="635" align="absmiddle">


             </td>
          </tr>

          <tr>
             <td  colspan="2">
             <hr>
             </td>
          </tr>
          <tr>
             <td width="180"><Font class="WriteSign">手机板模板1:</font>
              <input type="radio" name="XC" value='3'  onclick="document.recordfrm.type.value='3';">

             </td>
             <td>

              <img src="../../Res/templaet3.gif" border="0" width="720" height="635" align="absmiddle">


             </td>
          </tr>

          <tr>
             <td  colspan="2">
             <hr>
             </td>
          </tr>
          <tr>
             <td width="180"><Font class="WriteSign">手机板模板2:</font>
              <input type="radio" name="XC" value='4'  onclick="document.recordfrm.type.value='4';">

             </td>
             <td>

              <img src="../../Res/templaet4.gif" border="0" width="720" height="635" align="absmiddle">


             </td>
          </tr>
          <tr>
             <td  colspan="2">
             <hr>
             </td>
          </tr>
         </table>
</DIV>

<table border='0' width="800"  height="60" cellspacing="0" cellpadding="0" align=center>
          <tr>
             <td>

             <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("生成默认模板","JavaScript:dotemplaet();","buttonSave.gif",user.getUserImage())%>
                 </tr></table>
                 <br>
             </center>

             </td>
          </tr>
          </table>


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

</form>
</BODY>
<SCRIPT language="javascript" type="text/javascript">
function dotemplaet(){
   <%if("6".equals(user.getUserWINDOWTYPE())){%>

   var ID = document.recordfrm.ID.value;
    parent.layer.open({
    type: 2,
    area: ['700px', '560px'],
    fix: false, //不固定
    maxmin: false,//是否可以最大化
    content: 'selectfield.jsp?ID='+ID
   });

  <%}else{%>
   var ID = document.recordfrm.ID.value;
   var strURL = "selectfield.jsp?ID="+ID;
   var strValue = window.showModalDialog(strURL,window,"status:no;help:no;dialogHeight:500px;dialogWidth:760px");
   document.recordfrm.fields.value = strValue;
   document.recordfrm.submit();
   <%}%>
}

//html5
function save(){
   alert(document.recordfrm.fields.value);
}
</SCRIPT>
</HTML>
<%
user = null;
userUI  = null;
Coll  = null;
%>
