97 lines
3.4 KiB
Plaintext
97 lines
3.4 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%
|
|
String show_no = r_call(request.getParameter("show_no"));
|
|
String check_no = r_call(request.getParameter("check_no"));
|
|
String c_relation = r_call(request.getParameter("c_relation"));
|
|
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
|
int menu_ok = 0;
|
|
String menu_name = "";
|
|
String page_content = "";
|
|
int menu_no = 0;
|
|
int my_no = 0;
|
|
String sql_menu= "select * from tbl_menu where c_use = 0 and c_view = 0 and c_no = "+ show_no +" and c_up_no = "+ check_no +" and c_relation = "+ c_relation +" and c_relation2 = " + c_relation2;
|
|
ResultSet rs_menu=stmt.executeQuery(sql_menu);
|
|
if(rs_menu.next()){
|
|
menu_name = rs_menu.getString("c_name");
|
|
menu_no = rs_menu.getInt("c_up_no");
|
|
my_no = rs_menu.getInt("c_no");
|
|
page_content= rs_menu.getString("c_content");
|
|
}else{
|
|
menu_ok = 1;
|
|
}
|
|
rs_menu.close();
|
|
if (menu_ok ==0){
|
|
%>
|
|
|
|
<div class="container" style="background:#ffffff;padding-top:10px;padding-bottom:10px;width:100%">
|
|
<div class="row">
|
|
<div class="col-lg-3 col-md-3">
|
|
<div class="sidebar-widget hidden-xs">
|
|
<ul class="nav nav-pills nav-stacked sideMenu" style="padding-top:20px">
|
|
<%if (menu_no ==1){%>
|
|
<%
|
|
sql_menu= "select * from tbl_menu where c_use = 0 and c_view = 0 and c_up_no = "+ menu_no +" order by c_order asc";
|
|
rs_menu=stmt.executeQuery(sql_menu);
|
|
while(rs_menu.next()){
|
|
String link_t = "";
|
|
String target_t = "_self";
|
|
if(rs_menu.getInt("c_type") == 1){
|
|
link_t = "/cms_for_bcb/show.jsp?show_no=" + rs_menu.getInt("c_no");
|
|
link_t = link_t + "&check_no=" + rs_menu.getInt("c_up_no");
|
|
link_t = link_t + "&c_relation=" + rs_menu.getInt("c_relation");
|
|
link_t = link_t + "&c_relation2=" + rs_menu.getInt("c_relation2");
|
|
}
|
|
if(rs_menu.getInt("c_type") == 2){
|
|
link_t = "/cms_for_bcb/process/"+ rs_menu.getString("c_content") +"/list.jsp?show_no=" + rs_menu.getInt("c_no");
|
|
link_t = link_t + "&check_no=" + rs_menu.getInt("c_up_no");
|
|
link_t = link_t + "&c_relation=" + rs_menu.getInt("c_relation");
|
|
link_t = link_t + "&c_relation2=" + rs_menu.getInt("c_relation2");
|
|
}
|
|
if(rs_menu.getInt("c_type") == 3){
|
|
link_t = rs_menu.getString("c_content");
|
|
}
|
|
if(rs_menu.getInt("c_type") == 4){
|
|
link_t = rs_menu.getString("c_content");
|
|
target_t = "_blank";
|
|
}
|
|
%>
|
|
<li <%if(my_no ==rs_menu.getInt("c_no")){%>class="active"<%}%>>
|
|
<a href="<%=link_t%>" target="<%=target_t%>"><span>· <%=rs_menu.getString("c_name")%></span></a>
|
|
</li>
|
|
<%
|
|
}
|
|
rs_menu.close();
|
|
%>
|
|
<%}%>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-9 col-md-9 page-content" style="padding-top:10px">
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12">
|
|
<div class="section-title text-left" >
|
|
<h2 class="theme-color" style="color:#22455E">· <%=menu_name%></h2>
|
|
<div class="divider mb-20"></div>
|
|
|
|
|
|
|
|
|
|
<!--<select id="language_select" onchange="i18next.changeLanguage(this.value)">
|
|
<option value="en">English</option>
|
|
<option value="es_PE">Spanish (Peru)</option>
|
|
</select>
|
|
--> </div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12 col-md-12">
|
|
<div class="tab tab-border">
|
|
<div class="tab-content white-bg" style="padding:30px">
|
|
|