WebRoot/xinwen/xinwenlist.jsp
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>
<%
request.setCharacterEncoding("gb2312");//设置页面字符集
DBO db=new DBO();//初始链接数据库类
String sql="select * from xinwen where 1=1 ";//查询 新闻sql语句
String gp=(String)request.getParameter("gp");
String bt=(String)request.getParameter("bt");
if(bt!=null&&!bt.equals("")){
sql+=" and bt like '%"+bt+"%'";
}
if(gp!=null&&!gp.equals("")){
sql+=" and gp like '%"+gp+"%'";
}
db.open();//打开数据库链接
ResultSet rs=db.query(sql);//查询结果
String qx="";
if(session.getAttribute("qx")!=null){
qx=(String)session.getAttribute("qx");
}
//新闻信息查询
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻列表</title>
</head>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<LINK href="<%=request.getContextPath()%>/images/style.css" type=text/css rel=stylesheet>
<link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/css/tinyTips.css" />
<body>
<form name="form" action="" method="post" >
<table class="border" width="98%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td height="565" align="center" valign="top" class="bg_low"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" class="bgtop"><font color=""><b>新闻列表:</b></font>股票
<input type="text" name="gp" />
新闻
<input type="text" name="bt" />
<input type="submit" name="Submit" value="查询" /></td>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
<TBODY>
<tr align="center" bgcolor="#ebf0f7">
<td width="9%" height="25" >新闻编号</td>
<td width="9%" height="25" >股票</td>
<td width="9%" height="25" >标题</td>
<td width="9%" height="25" >内容</td>
<td width="9%" height="25" >时间</td>
<td width="9%" height="25" >相关</td>
<td width="10%">操作</td>
</tr>
后面还有 36 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
