90 lines
3.1 KiB
Plaintext
90 lines
3.1 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
<%@include file="/include/head.jsp"%>
|
|
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
|
|
|
<%
|
|
|
|
String c_maker = "1";
|
|
String board_no = show_no;
|
|
String para_t = "show_no="+ show_no +"&check_no="+ check_no +"&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relation=" + 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("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong Connection")
|
|
location.href="/"
|
|
</script>
|
|
<%
|
|
}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()) {
|
|
%>
|
|
|
|
<article class="notice">
|
|
|
|
<div class="inner">
|
|
|
|
<div class="refRoomDoc">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>TITLE</th>
|
|
<td colspan="3"><%=rst.getString("c_title")%></td>
|
|
</tr>
|
|
<tr>
|
|
<th>DATE</th>
|
|
<td><%=rst.getString("c_date").substring(0,10)%></td>
|
|
<th>WRITER</th>
|
|
<td><%=rst.getString("c_name")%></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4" style="height:220px" valign=top>
|
|
<%=rst.getString("c_content").replaceAll("/upload","http://www.c-innovacion.org/upload")%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>File</th>
|
|
<td colspan="3"><a href="/upload/<%=rst.getString("c_file")%>"><%=rst.getString("c_file")%></a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<br />
|
|
<table width="100%" cellSpacing="1" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr bgcolor=ffffff><td height="40" align=right style="padding:5px">
|
|
|
|
<a href="list.jsp?<%=para_t%>&nowPage=<%=nowPage%>" style="width: 80px; line-height: 26px; text-align: center;display: inline-block; background: #989898; border: 1px solid #555; border-radius: 5px; color: #ffffff;">List</a>
|
|
</td></tr>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
<%
|
|
|
|
}
|
|
rst.close();
|
|
}
|
|
%>
|
|
|
|
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
|
<%@include file="/include/bottom.jsp"%>
|
|
<%@include file="/include/include_b.jsp"%>
|