123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <%--
- time:2012-12-19 15:38:01
- desc:edit the 自定义表代码模版
- --%>
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>编辑 自定义表代码模版</title>
- <%@include file="/commons/include/form.jsp"%>
- <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
- <script type="text/javascript">
- $(function() {
- var options = {};
- if (showResponse) {
- options.success = showResponse;
- }
- var frm = $('#sysCodeTemplateForm').form();
- $("a.save").click(function() {
- frm.ajaxForm(options);
- if (frm.valid()) {
- $('#sysCodeTemplateForm').submit();
- }
- });
- });
- function showResponse(responseText) {
- var obj = new com.hotent.form.ResultMessage(responseText);
- if (obj.isSuccess()) {
- $.ligerDialog.confirm(obj.getMessage() + ",是否继续操作","提示信息",
- function(rtn) {
- if (rtn) {
- this.close();
- $("#sysCodeTemplateForm").resetForm();
- } else {
- window.location.href = "${ctx}/platform/system/sysCodeTemplate/list.ht";
- }
- });
- } else {
- $.ligerDialog.err("提示信息","自定义表代码模版保存失败!",obj.getMessage());
- }
- }
-
- </script>
- </head>
- <body>
- <div class="panel">
- <div class="panel-top">
- <div class="tbar-title">
- <c:choose>
- <c:when test="${sysCodeTemplate.id !=null}">
- <span class="tbar-label">编辑自定义表代码模版</span>
- </c:when>
- <c:otherwise>
- <span class="tbar-label">添加自定义表代码模版</span>
- </c:otherwise>
- </c:choose>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
- <div class="group">
- <a class="link save" id="dataFormSave" href="javascript:;"><span></span>保存</a>
- </div>
- <div class="l-bar-separator"></div>
- <div class="group">
- <a class="link back" href="list.ht"><span></span>返回</a>
- </div>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <form id="sysCodeTemplateForm" method="post" action="save.ht">
- <table class="table-detail" cellpadding="0" cellspacing="0"
- border="0" type="main">
- <tr>
- <th width="20%">模版名称:</th>
- <td><input type="text" id="templateName" name="templateName" value="${sysCodeTemplate.templateName}" class="inputText" validate="{required:true,maxlength:200}" /></td>
- </tr>
- <tr>
- <th width="20%">别名:</th>
- <td><input type="text" id="templateAlias" name="templateAlias" value="${sysCodeTemplate.templateAlias}" class="inputText" validate="{required:true,maxlength:200}" /></td>
- </tr>
- <tr>
- <th width="20%">从表也生成:</th>
- <td>
- <input type="radio" name="isSub" value="0" <c:if test="${sysCodeTemplate.isSub eq 0 or empty sysCodeTemplate.isSub}"> checked='checked' </c:if>>否
-
- <input type="radio" name="isSub" value="1" <c:if test="${sysCodeTemplate.isSub eq 1 }"> checked='checked' </c:if>>是
- </td>
- </tr>
- <tr>
- <th width="20%">备注:</th>
- <td><input type="text" id="memo" name="memo" value="${sysCodeTemplate.memo}" class="inputText" validate="{required:false,maxlength:200}" /></td>
- </tr>
-
- <tr>
- <th width="20%">模版生成的文件路径:</th>
- <td><input type="text" id="fileDir" name="fileDir" value="${sysCodeTemplate.fileDir}" class="inputText" validate="{required:true,maxlength:200}" style="width: 350px;" /></td>
- </tr>
-
- <tr>
- <th width="20%">模版生成的文件名称:</th>
- <td><input type="text" id="fileName" name="fileName" value="${sysCodeTemplate.fileName}" class="inputText" validate="{required:true,maxlength:200}" style="width: 250px;" /></td>
- </tr>
- <tr>
- <th width="20%">模版HTML:</th>
- <td><textarea name="html" cols="120" rows="20">${fn:escapeXml(sysCodeTemplate.html)}</textarea>
- </td>
- </tr>
- </table>
- <input type="hidden" name="id" value="${sysCodeTemplate.id}" />
- </form>
- </div>
- </div>
- </body>
- </html>
|