237 lines
9.4 KiB
Plaintext
237 lines
9.4 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%
|
|
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"));
|
|
|
|
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 +" ";
|
|
sql_page = sql_page + " and a.c_home = 11 ";
|
|
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 ){
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>C-Innovacion</title>
|
|
<link rel="stylesheet" href="/css/default.css">
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
<link rel="stylesheet" href="/css/responsive.css">
|
|
<link rel="stylesheet" href="/css/swiper.css">
|
|
<link rel="stylesheet" href="/css/ui.css">
|
|
</head>
|
|
<body>
|
|
<a href="#contents" class="skip">본문바로가기</a>
|
|
<div class="container">
|
|
<header>
|
|
<div class="header__wrap">
|
|
<h1 class="logo">
|
|
<a href="/">
|
|
</a>
|
|
</h1>
|
|
|
|
|
|
<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>
|
|
<h2 class="hide">대메뉴</h2>
|
|
<nav class="gnb">
|
|
<ul class="main-menu">
|
|
<%
|
|
int menu1_count = 0;
|
|
String menu_sql = "select * from tbl_menu where c_home = 11 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 class="menu-item" style="min-width:150px" <%if(rs_menu.getInt("c_no") == menu1){%>class="active"<%}%>><a href="#none" onclick="go_menu1(<%=menu1_count%>)"><%=rs_menu.getString("c_name")%></a>
|
|
<ul class="menu-sub" style="padding-top:10px">
|
|
<%
|
|
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 = 11 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(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>
|
|
</nav>
|
|
|
|
<h2 class="hide">관련서비스</h2>
|
|
<nav class="spot">
|
|
<ul>
|
|
<li><a href="http://apply.ci.concytec.gob.pe" target="_blank"><img src="/images/apply.png" alt="APPLY"> APPLY</a></li>
|
|
<li><a href="http://bmc.ci.concytec.gob.pe" target="_blank"><img src="/images/bmc.png" alt="APPLY"> BMC</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<a href="javascript:mobileMenuOpen()" class="mobile-btn mobile"></a>
|
|
|
|
|
|
|
|
</div>
|
|
<!-- header__wrap -->
|
|
|
|
</header>
|
|
|
|
<!-- mobile menu -->
|
|
<nav class="mobile-menu">
|
|
<div class="mobile-menu-wrap">
|
|
|
|
<a href="javascript:mobileMenuClose()" class="close-btn"></a>
|
|
|
|
<ul class="depth1">
|
|
<%
|
|
menu1_count = 0;
|
|
menu_sql = "select * from tbl_menu where c_home = 11 and c_use = 0 and c_up_no = 0 order by c_order asc";
|
|
rs_menu = stmt.executeQuery(menu_sql);
|
|
while(rs_menu.next()){
|
|
%>
|
|
<li>
|
|
<a href="#none" class="depth1-txt toggle"><%=rs_menu.getString("c_name")%></a>
|
|
<ul class="depth2">
|
|
<%
|
|
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 = 11 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;
|
|
}
|
|
%>
|
|
<li>
|
|
<a href="<%=m_link%>" target="<%=m_targrt%>"><%=rs_menu2.getString("c_name")%></a>
|
|
</li>
|
|
<%
|
|
}
|
|
rs_menu2.close();
|
|
%>
|
|
</ul>
|
|
</li>
|
|
<%
|
|
}
|
|
rs_menu.close();
|
|
%>
|
|
</ul>
|
|
|
|
<h2 class="hide">관련서비스</h2>
|
|
<nav class="mobile__spot">
|
|
<ul>
|
|
<li class="spot"><a href="http://apply.c-innovacion.org" target="_blank"><img src="/images/apply.png" alt="APPLY"> APPLY</a></li>
|
|
<li class="spot"><a href="http://bmc.c-innovacion.org" target="_blank"><img src="/images/bmc.png" alt="BMC"> BMC</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
</div>
|
|
</nav>
|
|
<!-- mobile menu -->
|
|
|