267 lines
11 KiB
Plaintext
267 lines
11 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
|
|
|
|
<%
|
|
if(login_tag == 1 && (session.getAttribute("member_no") == null || session.getAttribute("member_no").equals(""))){
|
|
%>
|
|
<script>
|
|
alert("You do not have access to the content.")
|
|
location.href="/cms_for_bcb/process/login/list.jsp?c_relation=23&c_relation2=32&show_no=2&check_no=1&return_no=<%=r_call(request.getParameter("show_no"))%>"
|
|
</script>
|
|
<%}else{
|
|
|
|
int now_community = 0;
|
|
int now_community_board = 0;
|
|
|
|
String visit_show_no = "0";
|
|
String visit_c_no = "0";
|
|
|
|
String page_title = "";
|
|
int menu1 = 0;
|
|
String menu1_title = "";
|
|
int menu2 = 0;
|
|
int menu3 = 0;
|
|
String navi_text = "Home > ";
|
|
String page_content = "";
|
|
int page_type = 0;
|
|
|
|
|
|
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"));
|
|
if(!show_no.equals("")){
|
|
visit_show_no = show_no;
|
|
}
|
|
|
|
int page_ok = 0;
|
|
if(!show_no.equals("")){
|
|
String sql_page = "select a.*,(select c_up_no from tbl_menu where c_no = a.c_up_no ) as c_up_up_no ";
|
|
sql_page = sql_page + " ,(select c_name from tbl_menu where c_no = a.c_up_no ) as c_up_name ";
|
|
sql_page = sql_page + " from tbl_menu a ";
|
|
sql_page = sql_page + " where a.c_no = "+ show_no +" and a.c_up_no = "+ check_no +" and a.c_relation = "+ c_relation +" and a.c_relation2 = "+ c_relation2 +" ";
|
|
if(home_fact != 1){
|
|
sql_page = sql_page + " and a.c_home = "+ c_home +" ";
|
|
}
|
|
ResultSet rs_page = stmt.executeQuery(sql_page);
|
|
if(rs_page.next()){
|
|
page_title = rs_page.getString("c_name");
|
|
page_content = rs_page.getString("c_content");
|
|
page_type = rs_page.getInt("c_type");
|
|
if(rs_page.getInt("c_up_up_no") == 0){
|
|
menu1 = rs_page.getInt("c_up_no");
|
|
menu1_title = rs_page.getString("c_up_name");
|
|
menu2 = rs_page.getInt("c_no");
|
|
navi_text = navi_text + rs_page.getString("c_up_name") + " > " + rs_page.getString("c_name");
|
|
}else{
|
|
String sql_page2 = "select c_name from tbl_menu where c_no = " + rs_page.getInt("c_up_up_no");
|
|
ResultSet rs_page2 = stmt.executeQuery(sql_page2);
|
|
if(rs_page2.next()){
|
|
menu1 = rs_page.getInt("c_up_up_no");
|
|
menu1_title = rs_page2.getString("c_name");
|
|
menu2 = rs_page.getInt("c_up_no");
|
|
menu3 = rs_page.getInt("c_no");
|
|
navi_text = navi_text + rs_page2.getString("c_name") + " > " + rs_page.getString("c_up_name") + " > " + rs_page.getString("c_name");
|
|
}else{
|
|
page_ok = 1;
|
|
}
|
|
rs_page.close();
|
|
}
|
|
}else{
|
|
page_ok = 1;
|
|
}
|
|
rs_page.close();
|
|
}
|
|
if(page_ok == 0 || home_fact == 1){
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="keywords" content="" />
|
|
<meta name="description" content="" />
|
|
<meta name="author" content="" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
<title><%=home_name%> - Suppoted by KOICA</title>
|
|
<link rel="shortcut icon" href="" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,500,500i,600,700,800,900|Poppins:200,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Dosis:300,400,500,600,700,800">
|
|
<link rel="stylesheet" href="http://fonts.googleapis.com/earlyaccess/nanumgothic.css">
|
|
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css" href="/css/plugins-css.css" />
|
|
<link rel="stylesheet" type="text/css" href="/revolution/css/settings.css" media="screen" />
|
|
<link rel="stylesheet" type="text/css" href="/css/typography.css" />
|
|
<link rel="stylesheet" type="text/css" href="/css/shortcodes/shortcodes.css" />
|
|
<link rel="stylesheet" type="text/css" href="/css/style.css" />
|
|
<link rel="stylesheet" type="text/css" href="/css/custom.css" />
|
|
<link rel="stylesheet" type="text/css" href="/css/responsive.css" />
|
|
<link href="/js/cal_style.css" rel="stylesheet" type="text/css">
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
|
<script type="text/javascript" src="/js/calendar.js"></script>
|
|
<script>
|
|
function my_reload(){
|
|
window.location.reload()
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="wrapper" >
|
|
|
|
<!--=================================
|
|
header -->
|
|
|
|
<header id="header" class="header light" >
|
|
<div class="topbar" style='background-image: linear-gradient(45deg, #FBF433 5%, #DB7029 30%, #C2424B);'>
|
|
<div class="container" >
|
|
<div class="row">
|
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
<div class="topbar-left text-left">
|
|
<p class="mt-10" >
|
|
<font color="#ffffff"><%=home_name%> BMC System Supported by KOICA</font>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
<div class="topbar-right text-right" >
|
|
<ul id="topbar-nav">
|
|
<li class="nav-item" ><a href="/default.jsp" ><font color="#ffffff">Home</font></a></li>
|
|
<%
|
|
if(session.getAttribute("member_no") == null || session.getAttribute("member_no").equals("")){
|
|
|
|
%>
|
|
<li class="nav-item"><a href="/cms_for_bcb/process/login/list.jsp?show_no=2&check_no=1&c_relation=23&c_relation2=32"><font color="#ffffff">Login</font></a></li>
|
|
<%}else{%>
|
|
<li class="nav-item"><a href="/cms_for_bcb/process/member/list.jsp?show_no=3&check_no=1&c_relation=45&c_relation2=23"><font color="#ffffff"><%=session.getAttribute("member_name")%></font></a></li>
|
|
<li class="nav-item"><a href="/cms_for_bcb/process/login/logout_ok.jsp"><font color="#ffffff">Logout</font></a></li>
|
|
<%}%>
|
|
<li class="nav-item"><a href="/cms_for_bcb/process/member/list.jsp?show_no=3&check_no=1&c_relation=45&c_relation2=23"><font color="#ffffff">Membership </font></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--=================================
|
|
mega menu -->
|
|
|
|
<div class="menu" style="height:50px; ">
|
|
<!-- menu start -->
|
|
<nav id="menu" class="mega-menu">
|
|
<!-- menu list items container -->
|
|
<section class="menu-list-items">
|
|
<div class="container" >
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12" >
|
|
<!-- menu logo -->
|
|
<ul class="menu-logo">
|
|
<li >
|
|
<a href="/default.jsp" style="font-size:24px;color:#343434"> <%=home_site_name%></a>
|
|
</li>
|
|
</ul>
|
|
<!-- menu links -->
|
|
<div class="menu-bar" >
|
|
<ul class="menu-links" >
|
|
<script>
|
|
var menu1 = new Array();
|
|
var target1 = new Array();
|
|
<%for(int i = 1;i <11; i++){%>
|
|
menu1[<%=i%>] = "/<%=i%>";
|
|
target1[<%=i%>] = 1;
|
|
<%}%>
|
|
function go_menu1(flag){
|
|
if(target1[flag] == 1){
|
|
location.href= menu1[flag]
|
|
}
|
|
if(target1[flag] == 2){
|
|
window.open(menu1[flag])
|
|
}
|
|
}
|
|
</script>
|
|
<%
|
|
int menu1_count = 0;
|
|
String menu_sql = "select * from tbl_menu where c_home = " + c_home + " and c_use = 0 and c_up_no = 0 order by c_order asc";
|
|
ResultSet rs_menu = stmt.executeQuery(menu_sql);
|
|
while(rs_menu.next()){
|
|
menu1_count = menu1_count + 1;
|
|
%>
|
|
<li <%if(rs_menu.getInt("c_no") == menu1){%>class="active"<%}%>><a href="#none" onclick="go_menu1(<%=menu1_count%>)"><%=rs_menu.getString("c_name")%><i class="fa fa-indicator"></i></a>
|
|
<ul class="drop-down-multilevel" >
|
|
<%
|
|
String m_link = "";
|
|
String m_targrt = "_self";
|
|
int m_targrt_tag = 1;
|
|
int menu2_count = 0;
|
|
String menu_sql2 = "select a.* ";
|
|
menu_sql2 = menu_sql2 + " from tbl_menu a where a.c_home = " + c_home + " and a.c_use = 0 and a.c_up_no = "+ rs_menu.getInt("c_no") +" order by a.c_order asc";
|
|
ResultSet rs_menu2 = stmt.executeQuery(menu_sql2);
|
|
while(rs_menu2.next()){
|
|
menu2_count = menu2_count + 1;
|
|
if(rs_menu2.getInt("c_type") == 1 || rs_menu2.getInt("c_type") == 5){
|
|
m_link = "/cms_for_bcb/show.jsp?show_no=" + rs_menu2.getInt("c_no") + "&check_no=" + rs_menu2.getInt("c_up_no") + "&c_relation=" + rs_menu2.getInt("c_relation") + "&c_relation2=" + rs_menu2.getInt("c_relation2");
|
|
}
|
|
if(rs_menu2.getInt("c_type") == 2){
|
|
m_link = "/cms_for_bcb/process/"+ rs_menu2.getString("c_content") +"/list.jsp?show_no="+ rs_menu2.getInt("c_no") +"&check_no="+ rs_menu2.getInt("c_up_no") +"&c_relation="+ rs_menu2.getInt("c_relation") +"&c_relation2="+ rs_menu2.getInt("c_relation2");
|
|
}
|
|
if(rs_menu2.getInt("c_type") == 3 || rs_menu2.getInt("c_type") == 4){
|
|
m_link = rs_menu2.getString("c_content");
|
|
}
|
|
if(rs_menu2.getInt("c_type") == 4){
|
|
m_targrt = "_blank";
|
|
m_targrt_tag = 2;
|
|
}
|
|
if(rs_menu2.getInt("c_type") == 0){
|
|
String menu_sql3 = "select a.* ";
|
|
menu_sql3 = menu_sql3 + " from tbl_menu a where a.c_home = " + c_home + " and a.c_use = 0 and a.c_up_no = "+ rs_menu2.getInt("c_no") +" order by a.c_order asc";
|
|
ResultSet rs_menu3 = stmt.executeQuery(menu_sql3);
|
|
if(rs_menu3.next()){
|
|
if(rs_menu3.getInt("c_type") == 1 || rs_menu3.getInt("c_type") == 5){
|
|
m_link = "/cms_for_bcb/show.jsp?show_no=" + rs_menu3.getInt("c_no") + "&check_no=" + rs_menu3.getInt("c_up_no") + "&c_relation=" + rs_menu3.getInt("c_relation") + "&c_relation2=" + rs_menu3.getInt("c_relation2");
|
|
}
|
|
if(rs_menu3.getInt("c_type") == 2){
|
|
m_link = "/cms_for_bcb/process/"+ rs_menu3.getString("c_content") +"/list.jsp?show_no="+ rs_menu3.getInt("c_no") +"&check_no="+ rs_menu3.getInt("c_up_no") +"&c_relation="+ rs_menu3.getInt("c_relation") +"&c_relation2="+ rs_menu3.getInt("c_relation2");
|
|
}
|
|
if(rs_menu3.getInt("c_type") == 3 || rs_menu3.getInt("c_type") == 4){
|
|
m_link = rs_menu3.getString("c_content");
|
|
}
|
|
if(rs_menu3.getInt("c_type") == 4){
|
|
m_targrt = "_blank";
|
|
m_targrt_tag = 2;
|
|
}
|
|
}
|
|
rs_menu3.close();
|
|
}
|
|
if(menu2_count == 1){
|
|
%>
|
|
<script>
|
|
menu1[<%=menu1_count%>] = "<%=m_link%>";
|
|
target1[<%=menu1_count%>] = <%=m_targrt_tag%>;
|
|
</script>
|
|
<%}%>
|
|
<li >
|
|
<a href="<%=m_link%>" target="<%=m_targrt%>" <%if(rs_menu2.getInt("c_no") == menu2){%>style="color:#F5A623;"<%}%>><%=rs_menu2.getString("c_name")%></a>
|
|
</li>
|
|
<%
|
|
}
|
|
rs_menu2.close();
|
|
%>
|
|
|
|
</ul>
|
|
</li>
|
|
<%
|
|
}
|
|
rs_menu.close();
|
|
%>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</nav>
|
|
<!-- menu end -->
|
|
</div>
|
|
</header>
|