60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
<%
|
|
login_tag = 0;
|
|
%>
|
|
<%@include file="/include/head.jsp"%>
|
|
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
|
<%
|
|
String nowPage = r_call(request.getParameter("nowPage"));
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
if(c_no.equals("")){
|
|
|
|
}else{
|
|
String 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()) {
|
|
%>
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12" style=" padding:0px 15px;">
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
Title. <%=rst.getString("c_title")%></b>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
<div class="col-lg-4 col-md-4" >
|
|
Name. <%=rst.getString("c_name")%></b>
|
|
</div>
|
|
<div class="col-lg-4 col-md-4" style="text-align:center">
|
|
Clicks <%=rst.getString("c_click")%></b>
|
|
</div>
|
|
<div class="col-lg-4 col-md-4" style="text-align:right">
|
|
date <%=rst.getString("c_date").substring(0,10)%></b>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12 col-md-12" style="min-height:100px;border-bottom: 1px solid #ccc; padding:10px ">
|
|
<%=rst.getString("c_content").replaceAll("\n\r","<br />")%></b>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
File. <a href="/upload/board/<%=rst.getString("c_file")%>"><%=rst.getString("c_file")%></a></b>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="text-align:right;padding-top:20px">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
<%
|
|
|
|
}
|
|
rst.close();
|
|
}
|
|
%>
|
|
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
|
<%@include file="/include/bottom.jsp"%>
|
|
<%@include file="/include/include_b.jsp"%>
|