📄 left.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.List"%>
<%@ page import="com.victor.domain.LinkActionForm"%>
<%@ page import="com.victor.domain.NewsTypeActionForm"%>
<html>
<head>
<title>左页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
}
td{
font-size:9pt;
}
.style2 {color: #052754}
-->
</style></head>
<script language="JavaScript">
function RgTest(){
if(document.form.key.value==""){
window.alert("请输入新闻关键字:");
document.form.key.focus();
return false;
}
if(document.form.type.value==""){
window.alert("请选择新闻类型:");
document.form.type.focus();
return false;
}
return true;
}
</script>
<body>
<table width="226" height="580" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="226" height="122" valign="top" background="jsp/images/login.jpg">
<form name="form" method="post" action="keyNewsWatch.do" target="main" onSubmit="return RgTest()">
<table width="225" height="96" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="22" > </td>
</tr>
<tr>
<td height="28" colspan="2" align="center"><span class="style2">新闻关键字:</span> <input name="key" type="text" id="key" size="16"style="border-style:solid;border-width:1;"onFocus="this.select();"onMouseOver="this.style.background='#ccffff';"onMouseOut="this.style.background='#ffffff'"" ></td>
</tr>
<tr>
<td width="138" align="center"><select name="type">
<option value="">请选择新闻类型</option>
<%List list1=(List)request.getAttribute("listType");%>
<%for(int i=0;i<list1.size();i++){
NewsTypeActionForm type1=(NewsTypeActionForm)list1.get(i);
%>
<option value="<%=type1.getTypeName()%>"><%=type1.getTypeName()%></option>
<%}%>
</select></td>
<td width="87" align="center"><input name="Submit" type="submit" id="Submit"style="border:1px solid:border-color:#A4B077;padding:2px;background-color:#0099cc " value="确认查询"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
<%List list=(List)request.getAttribute("link");%>
</form>
</td>
</tr>
<tr>
<td height="16" align="center" valign="middle" bgcolor="#0099CC"> </td>
</tr>
<tr>
<td height="84" align="center" valign="middle" bgcolor="#eeeeee"><table width="142" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
<tr>
<td width="136" bgcolor="#FFFFFF"><div align="center"><a href="voteSelect.do" target="main">年度新闻人物</a></div></td>
</tr>
<tr>
<td width="136" bgcolor="#FFFFFF"><div align="center"><a href="voteSelectNumber.do" target="main">年度新闻人物投票数量</a></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="16" align="center" valign="top" bgcolor="#0099CC"> </td>
</tr>
<tr>
<td height="344" align="center" valign="top" bgcolor="#eeeeee"><br>
<br>
<table width="142" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
<tr>
<td colspan="2" bgcolor="#0099CC"><div align="center">友情链接</div></td>
</tr>
<%for (int i=0;i<list.size();i++){
LinkActionForm link=(LinkActionForm)list.get(i);
%>
<tr>
<td width="141" bgcolor="#ffffff"><div align="center"><a href="../<%=link.getLinkAddress()%>" target="_blank"><%=link.getLinkName()%></a></div></td>
</tr>
<%}%>
</table></td>
</tr>
</table>
<div align="right" height="15"></div>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -