140 lines
4.3 KiB
Plaintext
140 lines
4.3 KiB
Plaintext
<%@ 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"%>
|
|
<%request.setAttribute("UNIT_TYPE_COMPANY",com.sipai.tools.CommString.UNIT_TYPE_COMPANY);%>
|
|
<%request.setAttribute("UNIT_TYPE_BIZ",com.sipai.tools.CommString.UNIT_TYPE_BIZ);%>
|
|
<%request.setAttribute("UNIT_TYPE_DEPT",com.sipai.tools.CommString.UNIT_TYPE_DEPT);%>
|
|
|
|
<%request.setAttribute("Flag_Active",com.sipai.tools.CommString.Flag_Active);%>
|
|
<%request.setAttribute("Flag_Unactive",com.sipai.tools.CommString.Flag_Unactive);%>
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
|
|
<head>
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%></title>
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
<!-- 文件上传-->
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/css/fileinput.min.css" />
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/fileinput.min.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/locales/zh.js" charset="utf-8"></script>
|
|
<style>
|
|
.main-header{display:none;}
|
|
.content-header{display:none;}
|
|
.main-footer{display:none;}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var nodeid = "-1";//树指针的全局变量
|
|
|
|
var editFun = function (id) {
|
|
$.post(ext.contextPath + '/command/expertBank/showlistView.do', {id:id}, function (data1) {
|
|
$("#companyBox").html(data1);
|
|
});
|
|
};
|
|
|
|
function IsApp() {
|
|
var u=navigator.userAgent;
|
|
|
|
var flag=false;
|
|
var Agents = ["Android", "iPhone",
|
|
"SymbianOS", "Windows Phone",
|
|
"iPad", "iPod"];
|
|
for (var v = 0; v < Agents.length; v++) {
|
|
if (u.indexOf('iPhone') > -1 && u.indexOf('Safari')<0) {
|
|
flag = true;
|
|
break;
|
|
}else if (u.indexOf('Android') > -1 && u.indexOf('wv')>-1) {
|
|
flag = true;
|
|
break;
|
|
}else{
|
|
|
|
}
|
|
}
|
|
//alert(flag);
|
|
return flag;
|
|
}
|
|
|
|
var initTreeView = function () {
|
|
$.post(ext.contextPath + '/user/getUnitForLevelType.do', { ng: '' }, function (data) {
|
|
$('#companytree').treeview({
|
|
data: data,
|
|
showBorder: true,
|
|
levels: 1,
|
|
});
|
|
$('#companytree').on('nodeSelected', function (event, data) {
|
|
nodeid = data.id;
|
|
editFun(data.id);
|
|
});
|
|
}, 'json');
|
|
$("#companyBox").html("");
|
|
};
|
|
|
|
$(function () {
|
|
var flag = IsApp();
|
|
console.log(flag);
|
|
if (flag==true){
|
|
|
|
}else{
|
|
$(".main-header").show();
|
|
$(".content-header").show();
|
|
$(".main-footer").show();
|
|
}
|
|
initTreeView();
|
|
});
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
|
<div class="wrapper">
|
|
<!-- 引用top -->
|
|
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
|
<!-- 菜单栏 -->
|
|
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
|
<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>
|
|
<!-- <li class="active">Here</li> -->
|
|
</ol>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content container-fluid">
|
|
<div id="mainAlertdiv"></div>
|
|
<div id="subDiv"></div>
|
|
<div id="fileInputDiv"></div>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="box box-solid">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">公司列表</h3>
|
|
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<div id="companytree" style="height:550px;overflow:auto; "></div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9" id="companyBox">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
|
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |