<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> <c:set var="ctx" value="${pageContext.request.contextPath}" /> <%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <title>全网监控智能分析平台</title> <style> .table-null .table{ margin-bottom: 0px; } .table-null .table > tbody > tr > td, .table-null .table > thead > tr > th{ text-align: center; width: 25%; } .table-null td:first-child{ text-align: right; width: 36%; } .table-null tr td:last-child .form-control,.table-null tr td:last-child table{ width: 400px; } </style> <script type="text/javascript" src="${ctx}/static/js/validation.js"></script> <script language="javascript"> $(document).ready(function() { }); function submitForm() { var url = '${ctx}/BaseManage/BaseData/checkNameAndCode'; var data = "name=" + $('#name').val() + "&code=" + $('#code').val() + "&id=" + $('#metadataId').val(); checkAndSubmit(url, data); } function validate() { /* if(!checkNameAndCode()){ return false; } */ if(!checkRequired()){ return false; } if(!isUpperCode($('#code').val())) { $('#code').focus(); alert('基础数据代码请输入数字、大写字母或下划线'); return false; } return true; } </script> </head> <body> <div id="main-tab-container"> <div id="content"> <div class="section"> <div class="tab-content"> <div class="row me-row"> <!-- this is for emulating position fixed of the nav --> <!-- /scroller-inner --> <!-- Top Navigation --> <div class="content clearfix"> <div class="row"> <div class="col-xs-12"> <form id="detailForm" class="form-horizontal" role="form" action="${ctx}/BaseManage/BaseData/submitBaseDataFrame" method="post"> <input type="hidden" id="metadataId" name="metadataId" value="${baseData.metadataId}"> <input type="hidden" id="metadataValtabId" name="baseDataVal.metadataValtabId" value="${baseData.baseDataVal.metadataValtabId}"> <table class="table-null"> <tr> <td>基础数据名称(<font color="red">必填</font>):</td> <td> <c:if test="${ not empty baseData.metadataId}"> <input class="form-control input-sm required" id="name" value="${baseData.name}" disabled> <input type="hidden" value="${baseData.name}" name="name"> </c:if> <c:if test="${ empty baseData.metadataId}"> <input class="form-control input-sm required" title="基础数据名称" id="name" name="name" value="${baseData.name}"> </c:if> </td> </tr> <tr> <td valign="top">基础数据代码(<font color="red">必填</font>):</td> <td> <c:if test="${ not empty baseData.metadataId}"> <input class="form-control input-sm required" id="code" value="${baseData.code}" disabled> <input type="hidden" value="${baseData.code}" name="code"> </c:if> <c:if test="${ empty baseData.metadataId}"> <input class="form-control input-sm required" title="基础数据代码" id="code" name="code" value="${baseData.code}"> <font color="red">请输入数字、大写字母或下划线</font> </c:if> </td> </tr> <tr> <td>基础数据值(<font color="red">必填</font>):</td> <td> <input class="form-control input-sm required" title="基础数据值" id="value" name="baseDataVal.metadataVal" value="${baseData.baseDataVal.metadataVal}"> </td> </tr> <tr> <td></td> <td> <button type="button" id="modelSubmit" class="btn btn-primary" onclick="saveForm('metadataId');">确定</button> <!-- <button type="reset" class="btn btn-default" id="modelReset">清空</button> --> <button type="reset" class="btn btn-warning" id="modelBack" onclick="window.location.href='${ctx}/BaseManage/BaseData/baseDataListFrame'">返回</button> </td> </tr> </table> </form> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html>