WebRoot/shouzang/shouzanglist.jsp

(开头部分) 2KB

这里只显示每个文件的开头 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 a.*,b.bt from shouzang a,xinwen b where 1=1 and a.xw=b.xwid ";//查询 收藏sql语句
if(session.getAttribute("yhm")!=null){
sql+=" and a.yh='"+session.getAttribute("yhm")+"'";
}
db.open();//打开数据库链接
ResultSet rs=db.query(sql);//查询结果
//收藏信息查询
%>
<!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="center" valign="middle" class="bgtop"><font color="#FFFFFF"><b>收藏列表</b></font> </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="10%">操作</td>
</tr>

			
					<%
					if(rs!=null){
					while(rs.next()){
					%>
                  	  <tr align='center' bgcolor='#FFFFFF' onmouseover='this.style.background="#F2FDFF"' onmouseout='this.style.background="#FFFFFF"'>
 <td height="24" ><%=rs.getString("szid")%></td>
 <td height="24" ><%=rs.getString("yh")%></td>
 <td height="24" ><%=rs.getString("sj")%></td>
 <td height="24" ><%=rs.getString("bt")%></td>
<td ><a href="xinwendetail.jsp?keyid=<%=rs.getString("xw")%>">查看新闻</a>| <a href="shouzangdelete.jsp?keyid=<%=rs.getString("szid")%>"   onClick="javascript:if(confirm('是否删除')){return true;}else{return false;}">删除</a>|<a href="shouzangdetail.jsp?keyid=<%=rs.getString("szid")%>">查看</a></td>
</tr>

                 <%
				 }
				 }
				 %>
后面还有 14 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。