📄 detailnews.jsp
字号:
<%@ include file = "../../config.jsp" %>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="ManagerProduct" scope="page" class="myshop.product_sys.ManagerProduct"/>
<jsp:useBean id="ManagerMember" scope="page" class="myshop.member_sys.ManagerMember"/>
<jsp:useBean id="Handle" scope="page" class="myshop.Handle"/>
<jsp:useBean id="ManagerNews" scope="page" class="myshop.news_sys.ManagerNews"/>
<%
Hashtable HashResult = new Hashtable();
HashResult = ManagerNews.DetailNews(tb_news_info,request,response);
%>
<html>
<head>
<title>CWC大型购物商城</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../style" rel="stylesheet" type="text/css">
</head>
<body topmargin="0">
<%@ include file = "../../head.jsp" %>
<br>
<table width="770" height="445" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="top">
<td width="22%">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center" valign="middle" bgcolor="#FF6600" class="line1"><font color="#FFFFFF">商
城 热 讯</font></td>
</tr>
<%
Hashtable ReXunHashResult = new Hashtable();
ReXunHashResult = ManagerNews.ReXun(tb_news_info,5);
String idReXun[] = (String[])ReXunHashResult.get("id");
String topicReXun[] = (String[])ReXunHashResult.get("topic");
for (int i=0; i<topicReXun.length && topicReXun[i] != null; i++) {
out.println("<tr bgcolor=#eeeeee>\n");
out.println("<td width=82% ><font color=red>·</font><a href=DetailNews.jsp?Nid=" + idReXun[i] + ">" + topicReXun[i] + "</a></td>\n");
out.println("</tr>\n");
}
%>
</table>
<br> <table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center" valign="middle" bgcolor="#0099CC" class="line1"><font color="#FFFFFF">热
卖 商 品</font></td>
</tr>
<tr>
<td bgcolor="eeeeee"> <%=ManagerProduct.HotSell(tb_shop_product_info)%> </td>
</tr>
</table></td>
<td width="78%" align="right"><table width="584" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="601" bgcolor="f1f1f1"><table width="584" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="592" align="center" valign="middle"><font size=3><%=HashResult.get("topic")%></font></td>
</tr>
</table>
<br> <table width="584" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="176" align="center" valign="middle">发布时间:<%=HashResult.get("date_time")%></td>
<td width="218" align="center" valign="middle">阅读次数:<%=HashResult.get("click")%></td>
<td width="198" align="center" valign="middle">文章来源:<%=HashResult.get("source")%></td>
</tr>
</table>
<br> <table width="584" height="308" border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="592" align="left" valign="top"><%=HashResult.get("content")%></td>
</tr>
</table>
<br> <table width="584" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="632" align="center" valign="middle"> <%=HashResult.get("SplitNum")%>
</td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="584" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="614" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td colspan="2" bgcolor="0099cc"><font color="#FFFFFF">
相关新闻</font></td>
</tr>
<%
HashResult = ManagerNews.RelationNews(tb_news_info,request,8);
String path[] = (String[])HashResult.get("path");
String topic[] = (String[])HashResult.get("topic");
String date_time[] = (String[])HashResult.get("date_time");
for (int i=0; i<topic.length && topic[i] != null; i++) {
out.print("<tr>");
out.print("<td width=88% >·<a href=?Nid=" + path[i] + ">" + topic[i] + "</a></td>");
out.print("<td width=12% >" + date_time[i] + "</td>");
out.print("</tr>");
}
%>
</table></td>
</tr>
</table></td>
</tr>
</table>
<br>
<%@ include file="../../foot.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -