38 lines
967 B
HTML
38 lines
967 B
HTML
<%- include('comm/header.html') %>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3 col-xs-12">
|
|
<div id="tree"></div>
|
|
</div>
|
|
<div class="col-md-9 col-xs-12">
|
|
<% if (page_cont == 'inc') { %>
|
|
<%- include('inc/' + inc_tag) %>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
var $tree = $('#tree').treeview({
|
|
levels: 666,
|
|
data: json_tree_origin,
|
|
showBorder: false,
|
|
enableLinks: true
|
|
});
|
|
$('.navbar-nav li a').each(function () {
|
|
if ($(this).attr('href') == '/origin') {
|
|
$(this).parent().addClass('active');
|
|
}
|
|
});
|
|
$('.treeview ul.list-group li a').each(function () {
|
|
if ($($(this))[0].href == String(window.location)) {
|
|
$(this).parent().css("color", "#fff");
|
|
$(this).parent().css("background-color", "#428bca");
|
|
}
|
|
});
|
|
$(window).on('resize', function () {
|
|
$('.bt_table').bootstrapTable('resetView');
|
|
});
|
|
});
|
|
</script>
|
|
<%- include('comm/footer.html') %> |