cacheInfoEdit.jsp 2.28 KB
<%@page language="java" contentType="text/html;charset=utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<form class="form-horizontal" id="cacheInfoForm" name="cacheInfoForm">

    <div class="form-group">
        <label class="col-sm-2 control-label">配置项:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="configName" name="configName" maxlength="80" size="40" readonly="readonly"/>
        </div>
    </div>

	<div class="form-group">
        <label class="col-sm-2 control-label">配置值:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="configValue" name="configValue" maxlength="200" size="40"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">配置描述:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="configDesc" name="configDesc" maxlength="200" size="40"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">配置类别:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="configCat" name="configCat" maxlength="100" size="40" readonly="readonly"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">服务器:</label>
        <div class="col-sm-8">
            <select id="serverType" name="serverType" class="form-control">
                <option value="all">全部</option>
                <option value="zookeeper_aws">aws</option>
                <option value="zookeeper_qq">qCloud</option>
                <option value="gray_qq">gray</option>
            </select>
        </div>
    </div>
    
</form>
<script>
$(function(){
	$("#cacheInfoForm #configName").val(paramObj.configName);
	$("#cacheInfoForm #configValue").val(paramObj.configValue);
	$("#cacheInfoForm #configDesc").val(paramObj.configDesc);
	$("#cacheInfoForm #configCat").val(paramObj.configCat);
	$("#cacheInfoForm #serverType").val(paramObj.serverType);
})
</script>