zkRootEdit.jsp
1.15 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="zkRootInfoForm" name="zkRootInfoForm">
<div class="form-group">
<label class="col-sm-2 control-label">名称:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="zkName" name="zkName" 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="zkRoot" name="zkRoot" />
</div>
</div>
<div id="oldRoot"></div>
</form>
<script>
$(function(){
$("#zkRootInfoForm #zkName").val(paramObj.name);
$("#zkRootInfoForm #zkRoot").val(paramObj.root);
$("#zkRootInfoForm #oldRoot").val(paramObj.root);
$("#zkRootInfoForm #oldRoot").hide();
})
</script>