최초커밋
This commit is contained in:
151
include/left.asp
Normal file
151
include/left.asp
Normal file
@@ -0,0 +1,151 @@
|
||||
<% If Request("cutmenu") <> "1" Then %>
|
||||
<script>
|
||||
function currentMenu(pathname, param){
|
||||
var currA = $.grep($("a.nav-link[data-pjax]"), function(obj, idx){
|
||||
return $(obj).data("pjax") == pathname &&
|
||||
(
|
||||
$(obj).data("param") == param ||
|
||||
param.substr(1, 1000).split("&").indexOf($(obj).data("param").substr(1, 100)) > -1 ||
|
||||
$(obj).data("param") == ""
|
||||
);
|
||||
});
|
||||
$("a.nav-link").removeClass("active");
|
||||
$(currA).addClass("active");
|
||||
$(currA).parents(".has-treeview").addClass("menu-open");
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$(document).on("click", "a.nav-link", function(e){
|
||||
if(($(this).data("pjax") || "") != ""/* && !$(this).hasClass("active")*/){
|
||||
var url = $(this).data("pjax");
|
||||
var param = $(this).data("param");
|
||||
$(".ui-widget").remove();
|
||||
$.pjax({url: url + param, fragment: '.content-wrapper', container: '.content-wrapper'});
|
||||
currentMenu(url, param);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
currentMenu($(location).attr("pathname"), $(location).attr("search"));
|
||||
/*
|
||||
$('.nav-item[title]').tooltip({
|
||||
placement: "left",
|
||||
delay: { "show": 300, "hide": 200 }
|
||||
});
|
||||
*/
|
||||
|
||||
$.each($("li.has-treeview > ul.nav-treeview"), function(i, ele){
|
||||
if($(ele).children("li").length == 0){
|
||||
$(ele).parent().hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.tooltip.bs-tooltip-right{
|
||||
left:72px !important;
|
||||
}
|
||||
</style>
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- Brand Logo -->
|
||||
<a href="/index.asp" class="brand-link">
|
||||
<i class="icon-logo"><span class="sr-only">Koin</span></i>
|
||||
</a>
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<!-- Sidebar Menu -->
|
||||
<nav>
|
||||
<!--
|
||||
has-triview class <20><> menu-open <20>ϸ<EFBFBD> <20><EFBFBD><DEB4><EFBFBD>ġ<EFBFBD><C4A1>
|
||||
nav-link class <20><> active <20>ϸ<EFBFBD> Ȱ<><C8B0>ȭ
|
||||
-->
|
||||
<ul class="nav nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT T.sub_url AS top_url, T.menu_label AS top_label, T.menu_display_on AS top_display, T.attribute05 AS top_icon, "
|
||||
query = query & " L.menu_label AS left_label, L.menu_url AS left_url, L.menu_param AS left_param,"
|
||||
query = query & " L.menu_info AS left_info, L.menu_display_on AS left_display, L.attribute05 AS left_icon, L.attribute01 AS menuType "
|
||||
query = query & " FROM T_INCLUDE_MENU T LEFT JOIN T_INCLUDE_MENU L "
|
||||
query = query & " ON T.i_position = 'TOP' AND L.i_position = 'LEFT' AND T.sub_url = L.sub_url AND L.menu_use_div = '1' AND L.sub_div = '3' "
|
||||
query = query & " WHERE T.i_position = 'TOP' AND T.menu_use_div = '1' "
|
||||
query = query & " ORDER BY T.menu_index, L.menu_index "
|
||||
'response.write query
|
||||
Rs.open query, adoconn
|
||||
|
||||
Dim topMenuLabel : topMenuLabel = ""
|
||||
Dim topDisplay : topDisplay = 0
|
||||
Dim leftDisplay : leftDisplay = 0
|
||||
Dim tmpLStr : tmpLStr = ""
|
||||
Dim menuType : menuType = 0
|
||||
|
||||
Do While Not Rs.Eof
|
||||
If topMenuLabel = "" Or topMenuLabel <> Rs("top_label") Then
|
||||
topDisplay = 0
|
||||
If Trim(Rs("top_display")) <> "" Then
|
||||
tmpLStr = " If " & Trim(Rs("top_display")) & " Then topDisplay = 1 End If "
|
||||
execute(tmpLStr)
|
||||
Else
|
||||
topDisplay = 1 '<27>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>.
|
||||
End If
|
||||
|
||||
If topDisplay = 1 Then
|
||||
If topMenuLabel <> "" Then
|
||||
%>
|
||||
</ul>
|
||||
</li>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
<li class="nav-item has-treeview" title="<%= Rs("top_label") %>">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas <%= Rs("top_icon") %>"></i>
|
||||
<p><%= Rs("top_label") %><i class="right icon-plus"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
</li>
|
||||
<%
|
||||
End If
|
||||
End If
|
||||
|
||||
leftDisplay = 0
|
||||
If Trim(Rs("left_display")) <> "" Then
|
||||
tmpLStr = " If " & Trim(Rs("left_display")) & " Then leftDisplay = 1 End If "
|
||||
'response.write tmpLStr
|
||||
execute(tmpLStr)
|
||||
Else
|
||||
leftDisplay = 1 '<27>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>.
|
||||
End If
|
||||
|
||||
menuType = 0
|
||||
If Trim(Rs("menuType")) <> "" Then
|
||||
tmpLStr = " If " & Trim(Rs("menuType")) & " Then menuType = 1 End If "
|
||||
'response.write tmpLStr
|
||||
execute(tmpLStr)
|
||||
Else
|
||||
menuType = 0 '<27>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>.
|
||||
End If
|
||||
|
||||
topMenuLabel = Rs("top_label")
|
||||
If leftDisplay = 1 And topDisplay = 1 Then
|
||||
%>
|
||||
<li class="nav-item has-treeview" <%if topMenuLabel = "Work Process" and menuType = 1 then %> style="border-bottom:1px solid white" <%End if%>>
|
||||
<a href="#" data-pjax="<%= "/" & Rs("top_url") & "/" & Rs("left_url") %>" data-param="<%= Rs("left_param") %>" class="nav-link ml-3">
|
||||
<!--<i class="nav-icon fas <%= Rs("left_icon") %>"></i>-->
|
||||
<p><%= Rs("left_label") %></p>
|
||||
</a>
|
||||
</li>
|
||||
<%
|
||||
End If
|
||||
Rs.MoveNext
|
||||
Loop
|
||||
Rs.Close
|
||||
%>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
<% End If %>
|
||||
Reference in New Issue
Block a user