📄 pre_view.jsp
字号:
<%@ include file = "config.jsp" %>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="managerNews" scope="page" class="cwcNews.managerNews"/>
<jsp:useBean id="admin" class="cwcNews.admin"/>
<%
admin.gotoLogin(response,session,"login.jsp");
admin.checkSupperAdmin(request,response,tb_news_visit_limit_tmp,"pre_view.jsp","not_super_admin.jsp"); //检查权限
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="thestyle.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
function Logout() {
document.TheForm.action = "member_system/dealwithcenter.jsp?action=logout";
document.TheForm.submit();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="eeeeee">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td bgcolor="#e6e6e6" class="whiteline14"> <br>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>新闻系统 -> <font color="#0000FF">预览新闻</font></td>
</tr>
</table>
<%
String typeName = null;
Vector typeNameVector = managerNews.getAllTypeName(tb_news_type);
for (int j=0;j<typeNameVector.size(); j++) {
typeName = (String)typeNameVector.elementAt(j);
%>
<table width="100%" border="0" cellspacing="14" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="100%" height="21" background="images/title_bg_line.gif"><%=typeName%></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="eeeeee"class="line1234">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<%
Hashtable HashResult = new Hashtable();
String t;
HashResult = managerNews.PrintNTitlePreView(tb_news_type,tb_news_info,typeName,10);
String path_it[] = (String[])HashResult.get("path");
String title_it[] = (String[])HashResult.get("title");
String date_time_it[] = (String[])HashResult.get("date_time");
for (int i=0; i<path_it.length && path_it[i] != null; i++) {
t = title_it[i];
if (t.length() > 24) {
t = t.substring(0,24);
t += "...";
}
out.println("<tr bgcolor=eeeeee>");
out.println("<td width=82% >·<a href=detail_news.jsp?Nid=" + path_it[i] + ">" + t + "</a></td><td width=18% >" + date_time_it[i] + "</td>");
out.println("</tr>");
}
%>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<%
}
%>
</td>
</tr>
</table>
</td>
</tr> </table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -