c-innovacion2/apply/include/bottom.jsp

78 lines
2.7 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!--=================================
footer -->
<section class="full-width page-section-ptb text-left" style="padding-top:10px;padding-bottom:0px;background-image: linear-gradient(45deg, #B1B1B1 5%, #999595 30%, #6C6A6A);">
<div class="container" style="width:100%" >
<div class="row">
<div class="col-lg-6 mb-20" >
<ul class="f10 " style="color:#454545;">
<li style="list-style:none; font-size:14px;line-height:16px"><font color=#ffffff >ⓒ KOICA. &nbsp;&nbsp;&nbsp;All rights reserved. </li>
</ul>
</div>
<div class="col-lg-6 mb-20" style="text-align:right">
<ul style="color:#454545;padding-right:20px">
<li style="list-style:none; font-size:12px;line-height:16px;font-weight:500"><a href="/cms_for_bcb/show.jsp?show_no=4&check_no=1&c_relation=78&c_relation2=23" style="color:#ffffff">Privacy Policy</a></li>
</ul>
</div>
</div>
</div>
</section>
<!--=================================
footer -->
</div>
<div id="back-to-top"><a class="top arrow" href="#top"><i class="fa fa-angle-up"></i> <span>TOP</span></a></div>
<iframe src="" id="exec" name="exec" style="width:0px;height:0px;display:none"></iframe>
<script type="text/javascript" src="/js2/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="/js2/plugins-jquery.js"></script>
<script type="text/javascript">var plugin_path = '/js2/';</script>
<script type="text/javascript" src="/js2/custom.js"></script>
</body>
</html>
<%
Calendar currentCalendar = Calendar.getInstance();
int strYear = currentCalendar.get(Calendar.YEAR);
int strMonth = currentCalendar.get(Calendar.MONTH) + 1;
String visit_ok = "";
String sql_visit = "select c_no from tbl_visit ";
sql_visit = sql_visit + " where c_home = " + c_home + " ";
sql_visit = sql_visit + " and c_show_no = " + visit_show_no + " ";
sql_visit = sql_visit + " and c_year = " + strYear + " ";
sql_visit = sql_visit + " and c_month = " + strMonth + " ";
ResultSet rs_vist = stmt.executeQuery(sql_visit);
if(rs_vist.next()){
visit_ok = "update tbl_visit set c_visit = c_visit + 1 ";
visit_ok = visit_ok + " where c_home = " + c_home + " and c_project_no = 0 and c_show_no = " + visit_show_no + " and c_c_no =0 ";
visit_ok = visit_ok + " and c_year = " + strYear + " and c_month = " + strMonth + " ";
}else{
visit_ok = "insert into tbl_visit(c_home,c_project_no,c_show_no,c_c_no,c_year,c_month,c_visit)values(";
visit_ok = visit_ok + "" + c_home + ",0," + visit_show_no + ",0," + strYear + "," + strMonth + ",1)";
}
rs_vist.close();
stmt2.execute(visit_ok);
%>
<%}else{%>
<script>
alert("잘못 된 접속입니다.")
location.href="/"
</script>
<%}%>
<%}%>