first commit
This commit is contained in:
90
src/main/webapp/jsp/visual/node/ShowNode.jsp
Normal file
90
src/main/webapp/jsp/visual/node/ShowNode.jsp
Normal file
@ -0,0 +1,90 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
||||
<%@ page import="com.sipai.entity.base.ServerObject"%>
|
||||
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
|
||||
<!DOCTYPE html>
|
||||
<!-- <html lang="zh-CN"> -->
|
||||
<!-- BEGIN HEAD -->
|
||||
<head>
|
||||
<title><%= ServerObject.atttable.get("TOPTITLE")%></title>
|
||||
<!-- 引用页头及CSS页-->
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initTreeView();
|
||||
});
|
||||
var initTreeView = function() {
|
||||
var HtmlStr = "无数据";
|
||||
$.post(ext.contextPath + '/plan/NodeData.do', {ng:''} , function(data) {
|
||||
var AllData = data;
|
||||
if(AllData.length>0){
|
||||
console.log(AllData);
|
||||
HtmlStr = List('-1',AllData);
|
||||
HtmlStr += '</ol>';
|
||||
}
|
||||
$("#planBox").html(HtmlStr);
|
||||
},'json');
|
||||
};
|
||||
function List(ID,list) {
|
||||
var ol = new Array();
|
||||
var HtmlStr = '';
|
||||
if(list!=null && list.length>0){
|
||||
HtmlStr = '<ol>';
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
if (list[i].pid==ID){
|
||||
if(list[i].active=='true'){
|
||||
HtmlStr +='<li>'+list[i].name+':文件夹存在</li>';
|
||||
}else{
|
||||
HtmlStr +='<li>'+list[i].name+':文件夹不存在</li>';
|
||||
}
|
||||
var Str = List(list[i].id,list);
|
||||
if(Str!=null && Str!=''){
|
||||
HtmlStr += Str;
|
||||
}
|
||||
}
|
||||
}
|
||||
HtmlStr += '</ol>';
|
||||
}
|
||||
return HtmlStr;
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1 id ="head_title"></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a id ='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content container-fluid">
|
||||
<div id="mainAlertdiv"></div>
|
||||
<div id="subDiv"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">节点列表</h3>
|
||||
<div class="box-tools">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body no-padding" id="planBox">
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user