degradeEdit.jsp 2.33 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="degradeInfoForm" name="degradeInfoForm">

    <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="30" 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="configDesc" name="configDesc" maxlength="30" size="40"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">配置级别:</label>
        <div class="col-sm-8">
            <select id="level" name="level" class="form-control">
                <option value="0">全部</option>
                <option value="1">一级</option>
                <option value="2">二级</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">服务器:</label>
        <div class="col-sm-8">
            <select id="cloudType" name="cloudType" class="form-control">
                <option value="all">全部</option>
                <option value="zookeeper_aws">aws</option>
                <option value="zookeeper_qq">qCloud</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">开关:</label>
        <div class="col-sm-8">
            <select id="switchOn" name="switchOn" class="form-control">
                <option value="N">关</option>
                <option value="Y">开</option>
            </select>
        </div>
    </div>
</form>
<script>
$(function(){
	$("#degradeInfoForm #configName").val(paramObj.configName);
	$("#degradeInfoForm #configDesc").val(paramObj.configDesc);
	$("#degradeInfoForm #level").val(paramObj.level);
	$("#degradeInfoForm #switchOn").val(paramObj.switchOn);
})
</script>