📄 modifynewslist.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.newsMgr.NewsInfo"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<jsp:useBean id="bean" class="com.saas.biz.productclassMgr.Productclass" scope="page" />
<%@ page contentType="text/html;charset=GBK"%>
<%
HttpSession logsession = request.getSession();
String cust_id = "";
String iStart ="1";
String meun_idx="";
if (request.getParameter("iStart") != null)
{
iStart = request.getParameter("iStart");
}
if (logsession.getAttribute("SESSION_CUST_ID") != null)
{
cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
}
NewsInfo newsObj=new NewsInfo();
ArrayList newsList =newsObj.getNewsListByCust(Integer.valueOf(iStart).intValue(),cust_id);
int counter=newsObj.getNewsNumber(cust_id);
int pages=counter/30+1;
int pageUp=0,pageDown=0;
int currenPage=Integer.valueOf(iStart).intValue();
if(pages>currenPage)
{
if(currenPage>0)
{
pageUp=currenPage-1;
}
pageDown=currenPage+1;
}
else if(pages==currenPage)
{
pageUp=currenPage-1;
pageDown=currenPage;
}
%>
<html>
<head>
<title>电子商务</title>
<link href="/style/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
.line6 {width:72spx; width:70spx!important;border:#ffcb99 1px solid; background-color:#fff8ee; text-align:left; padding-left: 20px;padding-top: 10px;padding-bottom: 10px; color:#000000; margin-top:13px;} /*横栏样式6---- 头部提醒1*/
.line6 .img{width:53px; height:53px; float:left; margin-right:20px;}
.line6 .title {font-size:14px; font-weight:bold; color:#ff5400;}
.line1 {border-left:#ff7300 3px solid; background-color:#e2e2e2; color:#333333;text-align:left; font-size:12px;} /*横栏样式1*/
</style>
<script language="javascript">
function chechIfo()
{
if(confirm('是否确认删除本条记录?'))
{
return true;
}
else
{
return false;
}
}
</script>
<SCRIPT>WinLIKEerrorpage='/winlike/winman/hlp-error.html';</SCRIPT>
<SCRIPT SRC="/winlike/winman/wininit.js"></SCRIPT>
<SCRIPT SRC="/winlike/winman/winman.js"></SCRIPT>
<SCRIPT>
WinLIKE.definewindows=mydefss;
function mydefss() {
var j=new WinLIKE.window('', 100, 100, '90%', 'WinLIKE.browsersize().Height -Top-30', 2);
j.Vis=false;
j.Nam='appwin';
WinLIKE.addwindow(j);
};
</SCRIPT>
</head>
<body>
<table width="727" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="13"></td>
</tr>
<tr>
<td>
<table width="727" border=0 cellpadding=2 cellspacing=1 align=center bgcolor="#e7e7e7">
<tr>
<td class="line1" style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="30%">标题</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%">信息类型</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="15%">发布日期</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%" >修改</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%" >删除</td>
</tr>
<%
if(newsList != null && newsList.size()>0)
{
for (Iterator it = newsList.iterator(); it.hasNext();)
{
HashMap map = (HashMap) it.next();
String news_id=map.get("news_id").toString();
String title="";
String class_name="";
String publish_date="";
if(map.get("title") != null)
{
title=map.get("title").toString();
}
if (map.get("news_type") != null) {
class_name = map.get("news_type").toString();
ArrayList list=bean.genUpclassByClassId(class_name);
if(list !=null && list.size()>0){
HashMap claMap=(HashMap)list.get(0);
if(claMap.get("class_name")!=null){
class_name=claMap.get("class_name").toString();
}
}
}
if(map.get("publish_date") != null)
{
publish_date=map.get("publish_date").toString();
if(publish_date.length()>10)
{
publish_date=publish_date.substring(0,10);
}
}
%>
<tr style="background-color:#f9f9f9; ">
<td style=" color:#000000;" align=left><a href="viewNewsInfo.jsp?news_id=<%=news_id%>" TARGET=appwin onclick="mydefss()"><%=title%></a></td>
<td style=" color:#000000;" align=left><%=class_name%></td>
<td style=" color:#000000;" align=left><%=publish_date%></td>
<td style=" color:#000000;" align=center><a href=modifyNewsInfo.jsp?news_id=<%=news_id%> TARGET=appwin onclick="mydefss()"><img src=/img/edit.gif width=16 height=16 border=0 alt="修改资讯信息"></a></td>
<td style=" color:#000000;" align=center><a href="/doTradeReg.do?news_id=<%=news_id%>&trade_type_code=0291" target="_self" onClick="return chechIfo()"><img src=/img/del.gif width=16 height=16 border=0 alt="删除资讯信息"></a></td>
</tr>
<%
}
%>
<tr>
<td align="left" colspan="2" class="line1" style="font-weight:normal;">共<%=counter%>条 共<%=pages%>页</td>
<td align="right" colspan="3" style="background-color:#e2e2e2;"><a href="modityNewsIndex.jsp?iStart=1&meun_id=<%=meun_idx%>">首页 </a> <a href="modityNewsIndex.jsp?iStart=<%=pageUp%>&meun_id=<%=meun_idx%>">上一页</a> <a href="modityNewsIndex.jsp?iStart=<%=pageDown%>&meun_id=<%=meun_idx%>">下一页 </a> <a href="modityNewsIndex.jsp?iStart=<%=pages%>&meun_id=<%=meun_idx%>">尾页</a></td>
</tr>
<%
}
%>
</table>
</td>
</tr>
<tr>
<td height="13"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -