SystemParameterForm.jsp 4.25 KB
Newer Older
afe's avatar
afe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
<%@ 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"%>
<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/SystemParameter/checkName';
		var data = 'name=' + $('#parameterName').val()+ "&id=" + $('#systemParameterId').val();
		checkAndSubmit(url, data); 
	}

	function validate() {
		if (!$('#parameterName').val()) {
			alert("请填写参数名称");
			$('#parameterName').focus();
			return false;
		}
		if(!isUpperCode($('#parameterName').val())) {
			alert('参数名称请输入数字、大写字母或下划线');
			$('#parameterName').focus();
			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/SystemParameter/submitSystemParameterFrame" method="post">
										<input type="hidden" id="systemParameterId" name="parameterId" value="${systemParameter.parameterId}">
										
										<table class="table-null">
											<tr>
												<td valign="top">参数名称(<font color="red">必填</font>):</td>
												<td>
													<input class="form-control input-sm" id="parameterName" name="parameterName" value="${systemParameter.parameterName}"><font color="red">请输入数字、大写字母或下划线</font>
												</td>
											</tr>
											
											<tr>
												<td>参数值类型:</td>
												<td>
													<select id="parameterDataType" name="parameterDataType">
														<!-- <option value="">请选择</option> -->
														<option value="NUMBER" <c:if test="${systemParameter.parameterDataType == 'NUMBER'}">selected</c:if> >数字</option>
														<option value="STRING" <c:if test="${systemParameter.parameterDataType == 'STRING'}">selected</c:if> >字符</option>
														<option value="DATETIME" <c:if test="${systemParameter.parameterDataType == 'DATETIME'}">selected</c:if> >时间</option>
													</select>
												</td>
											</tr>
											
											<tr>
												<td>参数值:</td>
												<td>
													<input class="form-control input-sm" id="parameterValue" name="parameterValue" value="${systemParameter.parameterValue}">
												</td>
											</tr>
											
											<tr>
												<td>参数描述:</td>
												<td>
													<textarea class="form-control input-sm" rows="6" name="parameterDesc" maxlength="66">${systemParameter.parameterDesc }</textarea>
												</td>
											</tr>
											
											<tr>
												<td></td>
												<td>
													<button type="button" id="modelSubmit" class="btn btn-primary" onclick="saveForm('systemParameterId');">确定</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/SystemParameter/systemParameterListFrame'">返回</button>
												</td>
											</tr>
										</table>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>