%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/include/db/db_connect.jsp"%>
<%@include file="/include/function/function.jsp"%>
<%
String c_home = "0";
String c_maker = "0";
String board_no = "0";
if(board_no == null || board_no.equals("")){
%>
<%
}else{
%>
<%
int c_relation = 0;
int c_relation2 = 0;
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
ResultSet rss = stmt.executeQuery(sql_ok2);
if(rss.next()){
c_relation= rss.getInt("c_relation");
c_relation2= rss.getInt("c_relation2");
%>
[ <%=rss.getString("c_name")%> ] board management
<%
}
rss.close();
c_relation = 0;
c_relation2 = 1;
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
%>
|
<%
String nowPage = r_call(request.getParameter("nowPage"));
String c_no = r_call(request.getParameter("c_no"));
if(c_no.equals("")){
}else{
String sql_ok = "";
sql_ok = "update tbl_board set c_click = c_click + 1 where c_no = " + c_no;
stmt2.execute(sql_ok);
String sql1 = " select * from tbl_board where c_no = " + c_no;
ResultSet rst = stmt.executeQuery(sql1);
if (rst.next()) {
%>
Title. <%=rst.getString("c_title")%>
|
Name. <%=rst.getString("c_name")%>
/
Clicks <%=rst.getString("c_click")%>
/
date <%=rst.getString("c_date").substring(0,10)%>
|
<%=rst.getString("c_content").replaceAll("\n\r"," ")%>
|
File. "><%=rst.getString("c_file")%>
|
<%
}
rst.close();
}
%>
<%}%>
<%@include file="/include/db/db_close.jsp"%>