📄 view.jsp
字号:
<%@ page contentType="text/html;charset=euc-kr" import="java.net.*, board.BoardBean, board.BoardManager, CharacterSet" %><HTML><HEAD><TITLE>霸矫拱 佬扁</TITLE><meta http-equiv="Content-Type" content="text/html; charset=euc-kr"></HEAD><script language="JavaScript">function auth(str) { pass = window.open('','pass','left=0,top=0,width=320,height=160,toolbar=no,menubar=no,status=no,scrollbar=no,resizable=no'); return true;}</script><% int idx = Integer.parseInt(request.getParameter("idx")); String pg = request.getParameter("page"); String find = request.getParameter("find"); String query = CharacterSet.toKorean(request.getParameter("query")); String tempQuery; BoardManager bm = new BoardManager(); BoardBean boardBean = new BoardBean(); try { bm.updateCount(idx); // 炼雀荐 盎脚 boardBean = bm.getBoardBean(idx); } catch(Exception e) { response.sendRedirect("list.jsp?page=" + pg + "&find=" + find + "&query=" + query); } session.setAttribute("isValidUser", "yes"); // 荤侩磊 牢刘 技记蔼 且寸%><BODY BGCOLOR="#ffffff"><center> <table width="602" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="234"><img src="images/contents.gif" width="251" height="35"></td> <td width="368"> </td> </tr> </table> <table width="602" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="179"><img src="images/board01.gif" width="179" height="25"></td> <td width="353"><img src="images/board02.gif" width="353" height="25"></td> <td width="71"><img src="images/board-view.gif" width="71" height="25"></td> </tr> <tr> <td colspan="3" > <table border="0" width="505" cellpadding="0" cellspacing="0" align="center"> <tr> <td> <table border="1" width="602" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#68b0d0" > <tr align="middle"> <td width="100" height="25" bgcolor="#6699CC"> <div align="CENTER"><font face="蹈框" size="2" color="#000000">臂锅龋</font> </div> </td> <td bgcolor="#F8F1DA" width="155"> <font color="#000000" size="2" face="蹈框"><%= boardBean.getIdx() %></font></td> <td width="100" height="25" bgcolor="#6699CC"> <div align="CENTER"><font face="蹈框" size="2" color="#000000">朝楼</font> </div> </td> <td bgcolor="#F8F1DA"><font color="#000000" size="2" face="蹈框"><%= boardBean.getMoment() %></font></td> </tr> <tr align="middle"> <td width="100" height="25" bgcolor="#6699CC"> <div align="CENTER"><font face="蹈框" size="2" color="#000000">累己磊</font> </div> </td> <td bgcolor="#F8F1DA"> <font color="#000000" size="2" face="蹈框"><a href="mailto:<%= boardBean.getEmail() %>"><%= boardBean.getName() %></a></font></td> <td width="100" height="25" bgcolor="#6699CC"> <div align="CENTER"><font face="蹈框" size="2" color="#000000">炼雀荐</font> </div> </td> <td bgcolor="#F8F1DA" width="150"><font color="#000000" size="2" face="蹈框"><%= boardBean.getCount() %></font> </td> </tr> </table> </td> </tr> <tr><td> </td></tr> <tr> <td height="100"> <table border="1" width="602" cellpadding="5" bordercolor="#FFFFFF" bgcolor="#68b0d0"> <tr bgcolor="#6699CC"> <td align="middle" height="26"><font face="蹈框" size="2" color="#ffff80"><b><font color="#000000">力格 :</font> <%= boardBean.getTitle() %></b></font> </td> </tr> <tr bgcolor="#F8F1DA" > <td height="72"><font face="蹈框" size="2"><%= boardBean.convertContent() %></font> </td> </tr> </table> </td> </tr><% if(!boardBean.getFilename().equals("")) { // 诀肺靛等 颇老捞 乐阑 版快%> <tr> <td> <table border="1" width="602" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#68b0d0"> <tr align="middle"> <td width="100" height="25" bgcolor="#6699CC"> <div align="CENTER"><font face="蹈框" size="2" color="#000000">颇老</font> </div> </td> <td width="400" vlign="middle" align="left" bgcolor="#F8F1DA"> <font color="#000000" size="2" face="蹈框"><a href="../upload/<%= boardBean.getFilename() %>"><img src="images/file.gif" width="15" height="15"> <%= boardBean.getFilename() %></a>(<%= (boardBean.getFilesize() > 1024) ? boardBean.getFilesize()/1024 : boardBean.getFilesize() %><%= (boardBean.getFilesize() > 1024) ? " K" : " " %>bytes)</font> </td> </tr> </table> </td> </tr><% }%> <tr> <td> <table align="center" width="300"> <tr> <td align="center"> <form> <a href="view.jsp?idx=<%= bm.getPrevArticleIdx(idx, find, query) %>&page=<%= pg %>&find=<%= find %>&query=<% // 八祸绢啊 茄臂老 版快甫 措厚秦 牢内爹 tempQuery = new String(query.getBytes(), "euc-kr"); tempQuery = URLEncoder.encode(tempQuery); out.print(tempQuery);%>"><img src="images/prev.gif" width="32" height="38" border="0"></a> <input type="hidden" name="" value=""> <input type="hidden"> </form> <form> <input type="hidden" name="" value=""> <input type="hidden"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td> <td align="center"> <form> <a href="view.jsp?idx=<%= bm.getNextArticleIdx(idx, find, query) %>&page=<%= pg %>&find=<%= find %>&query=<% tempQuery = new String(query.getBytes(), "euc-kr"); tempQuery = URLEncoder.encode(tempQuery); out.print(tempQuery);%>"><img src="images/next.gif" width="32" height="38" border="0"></a> <input type="hidden" name="" value=""> <input type="hidden"> </form> <form> <input type="hidden" name="" value=""> <input type="hidden"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td> <td align="center"> <form> <a href="list.jsp?page=<%= pg %>&find=<%= find %>&query=<% tempQuery = new String(query.getBytes(), "euc-kr"); tempQuery = URLEncoder.encode(tempQuery); out.print(tempQuery);%>"><img src="images/list.gif" width="32" height="38" border="0"></a> <input type="hidden" name="" value=""> <input type="hidden"> </form> <form> <input type="hidden" name="" value=""> <input type="hidden"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td> <td align="center"> <form> <a href="reply.jsp?idx=<%= idx %>&page=<%= pg %>&find=<%= find %>&query=<% tempQuery = new String(query.getBytes(), "euc-kr"); tempQuery = URLEncoder.encode(tempQuery); out.print(tempQuery);%>"><img src="images/reply.gif" width="32" height="38" border="0"></a> <input type="hidden" name="" value=""> <input type="hidden"> </form> <form> <input type="hidden" name="" value=""> <input type="hidden"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td><% try { // 包府磊扼搁 password 犬牢绝捞 官肺 荐沥, 昏力 if(session.getAttribute("user").equals("admin")) {%> <td align="center"> <form method="post" action="update.jsp"> <input type="image" src="images/modify.gif" width="32" height="38" border="0"> <input type="hidden" name="idx" value="<%= idx %>"> <input type="hidden" name="page" value="<%= pg %>"> <input type="hidden" name="find" value="<%= find %>"> <input type="hidden" name="query" value="<%= query %>"> <input type="hidden" name="password" value="<%= boardBean.getPassword() %>"> </form> <form> <input type="hidden" name="" value=""> <input type="hidden"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td> <td align="center"> <form method="post" action="delete.jsp"> <input type="image" src="images/delete.gif" width="32" height="38" border="0"> <input type="hidden" name="idx" value="<%= idx %>"> <input type="hidden" name="password" value="<%= boardBean.getPassword() %>"> </form> <form> <input type="hidden" name="" value=""> <input type="hidden"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td><% } else {%> <td align="center"> <form method="post" name="inputPassword" target="pass" action="auth.jsp" onSubmit="return auth()"> <input type="image" src="images/modify.gif" width="32" height="38" border="0"> <input type="hidden" name="mode" value="update"> </form> <form method="post" name="updateArticle" action="update.jsp"> <input type="hidden" name="idx" value="<%= idx %>"> <input type="hidden" name="page" value="<%= pg %>"> <input type="hidden" name="find" value="<%= find %>"> <input type="hidden" name="query" value="<%= query %>"> <input type="hidden" name="password"> </form> </td> <td align="center"> <form method="post" name="inputPassword" target="pass" action="auth.jsp" onSubmit="return auth()"> <input type="image" src="images/delete.gif" width="32" height="38" border="0"> <input type="hidden" name="mode" value="delete"> </form> <form method="post" name="deleteArticle" action="delete.jsp"> <input type="hidden" name="idx" value="<%= idx %>"> <input type="hidden" name="password"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td><% } } catch(NullPointerException ex) {%> <td align="center"> <form method="post" name="inputPassword" target="pass" action="auth.jsp" onSubmit="return auth()"> <input type="image" src="images/modify.gif" width="32" height="38" border="0"> <input type="hidden" name="mode" value="update"> </form> <form method="post" name="updateArticle" action="update.jsp"> <input type="hidden" name="idx" value="<%= idx %>"> <input type="hidden" name="page" value="<%= pg %>"> <input type="hidden" name="find" value="<%= find %>"> <input type="hidden" name="query" value="<%= query %>"> <input type="hidden" name="password"> </form> </td> <td align="center"> <form method="post" name="inputPassword" target="pass" action="auth.jsp" onSubmit="return auth()"> <input type="image" src="images/delete.gif" width="32" height="38" border="0"> <input type="hidden" name="mode" value="delete"> </form> <form method="post" name="deleteArticle" action="delete.jsp"> <input type="hidden" name="idx" value="<%= idx %>"> <input type="hidden" name="password"> <input type="hidden"> <input type="hidden"> <input type="hidden"> </form> </td><% }%> </tr> </table> </td> </tr> </table> </td> </tr> </table></center></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -