📄 newsgl.jsp
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/css.css">
<style type="text/css">
<!--
.STYLE1 {
color: #FFFFFF;
font-weight: bold;
font-family: "宋体";
font-size: 16px;
}
.STYLE8 {font-family: "宋体"; font-size: 14px; }
.STYLE10 {font-family: "宋体"; font-size: 12px; }
.STYLE9 {font-size: 12px}
body {
background-color: #CCFFFF;
text-align:center;
vertical-align:middle;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body><%@ include file="checkLogin.jsp" %>
<%
newsDao pd=new newsDao();
ArrayList<news> al=pd.selects();
%>
<table width="500" height="90" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000CC" style=" border-width:1px; border-style:solid;">
<tr>
<td colspan="7" bgcolor="#3366CC"><span class="STYLE1">新闻管理</span></td>
</tr>
<tr>
<td width="300" bgcolor="#00FF99"><div align="center"><strong><span class="STYLE8">新闻标题</span></strong></div></td>
<td width="150" bgcolor="#00FF99"><div align="center"><strong><span class="STYLE8">新闻发布时间</span></strong></div></td>
<td width="50" bgcolor="#00FF99"><div align="center"><strong><span class="STYLE8">删除</span></strong></div></td>
</tr>
<%
for(int i=0;i<al.size();i++)
{
%>
<tr>
<td align="center" bgcolor="#FFFFFF" class="STYLE10"><%=al.get(i).getTitle() %></td>
<td align="center" bgcolor="#FFFFFF" class="STYLE10"><%=al.get(i).getWriterDate() %></td>
<td align="center" bgcolor="#FFFFFF" class="STYLE10"><a href="doNdelete.jsp?id=<%=al.get(i).getNewsID() %>">删除</a></td>
</tr>
<%} %>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -