📄 press_list.jsp
字号:
<jsp:include page="../user/checklogin.jsp" flush="true"/>
<jsp:include page="../header/header.jsp" flush="true"/>
<!--<jsp:include page="../user/checklogin.jsp" flush="true"/>-->
<%@ page contentType="text/html;charset=gb2312" %>
<SCRIPT language=javascript>
var isSure=false;
function OpenWin(theURL,winName,features)
{
window.open(theURL,winName,features);
}
function toOpen(str)
{
if(str!='')
{
OpenWin('../index/press_update.jsp?ID='+str,'newWin','scrollbars=no,width=500,height=400');
}
else
{
alert("不能得到ID!");
return false;
}
}
function Open()
{
OpenWin('../index/press_insert.jsp','newWin','scrollbars=no,width=500,height=400');
}
</SCRIPT>
<jsp:include page="../header/header_bg2.jsp" flush="true"/>
<jsp:include page="../header/menu_manager.jsp" flush="true"/>
</TD>
<TD width=672>
<TABLE height=1 cellSpacing=0 cellPadding=0 width=538 border=0>
<TBODY>
<TR>
<TD vAlign=bottom colSpan=2 height=43></TD></TR>
<TR>
<TD width=40 height=45 rowSpan=2><IMG height=43
src="../../images/qy_1_0.gif" width=40></TD>
<TD vAlign=top width=498 height=15><IMG height=1
src="../../images/qy_1.gif" width=498></TD></TR>
<TR>
<TD vAlign=top width=498 height="30"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=672 border=0>
<TBODY>
<TR>
<TD height=23>
<%@ page import="foton.util.*" %>
<%@ page import="foton.index.*" %>
<%@ page import="java.util.*" %>
<h2 align="center">招聘动态信息管理 </h2>
<form name=form1 action="../index/pressServ.jsp" method="post">
<table width=70% border=0 cellpadding="3" cellspacing="1" align="center">
<tr bgcolor=#8899cc>
<td> </td>
<td> 编号 </td>
<td> 标题</td>
<td>发布日期</td>
<td>是否有图片</td>
<td> 操作</td>
</tr>
<% Condition condition = new Condition();
int pageNum = 10;
int currPage;
String url = "../index/press_list.jsp";
if (request.getParameter("pages")==null) {
currPage =0;
}
else {
currPage = new Integer(request.getParameter("pages")).intValue();
}
condition.setPageNum(pageNum);
condition.setCurrPage(currPage);
// ArrayList list = (ArrayList)session.getAttribute("result");
pressDAO dao = new pressDAO();
ArrayList list = dao.getPress(condition);
int n=1;
Iterator it = list.iterator();
while (it!=null && it.hasNext()) {
pressInfo info = (pressInfo)it.next();
%>
<tr bgcolor=#ffffff>
<td> <input type="checkbox" name="check" value='<%=info.getID()%>'> </td>
<td> <%=currPage*10 + n%> </td>
<td> <%=info.getCaption()%></td>
<td><%=info.getStoreDate()%></td>
<td align=center><%if(!info.getPicURL().equals(" ")){%> 有<%}%></td>
<td> <a href ="../index/press_update.jsp?ID=<%=info.getID()%>") target="_self">修改 </a> </td>
</tr>
<% n++; }
%>
</table>
<%=Pagination.getPaginationScript(condition.getCurrPage(),condition.getPageNum(),condition.getRecordNum(),url)%>
<div > </div>
<div >
<input type=submit name="action" value="增加" >
<input type=submit name="action" value="删除"></div>
<div > </div>
</form>
</TD></TR></TABLE></TBODY></TABLE><!-- #BeginLibraryItem "/Library/zhu_copyright.lbi" -->
<TABLE cellSpacing=0 cellPadding=0 width=767 background=foton.files/d_1_bj.gif
border=0>
<TBODY>
<TR>
<TD width=124><IMG height=19 src="../../images/d_1.gif" width=124></TD>
<TD width=643><FONT color=#cccccc>北汽福田汽车股份有限公司 版权所有 ©
2004</FONT></TD></TR></TBODY></TABLE><!-- #EndLibraryItem -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -