⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 voteselect.jsp

📁 新闻网(news) 带使用说明书 可以用作课程设计
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="com.victor.domain.VoteActionForm"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.List"%>
<%@ page import="com.victor.tool.SessionLib"%>
<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;
}
td{
font-size:9pt;
}
.style1 {font-size: 11pt}
.style2 {	color: #FF9900;
	font-weight: bold;
	font-style: italic;
}
-->
</style></head>
<%List list=(List)request.getAttribute("voteList");%>
<body>
<table width="572" height="740"  border="0" align="left" cellpadding="2" cellspacing="1" bgcolor="#052754">
  <tr>
    <td width="571" height="100" align="center" valign="top" bgcolor="#FFFFFF">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="35">&nbsp;</td>
      </tr>
      <tr>
        <td background="jsp/images/line.jpg">   ·<span class="style2">查看新闻人物</span></td>
      </tr>
    </table>
	  <br>	  <font style="font-size:11pt; ">
 <div align="center">
  <%SessionLib sl;
sl=(SessionLib)session.getValue(session.getId());
if(sl==null){
%>
  <table width="543" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
    <tr align="center" bgcolor="#0099cc">
      <td width="73" height="20">人物姓名</td>
      <td width="73">人物籍贯</td>
	   <td width="73">人物年龄</td>
	    <td width="73">人物工作</td>
		 <td width="73">人物简介</td>
      <td width="103">操作</td>
    </tr>
<%for (int i=0;i<list.size();i++){
VoteActionForm vote=(VoteActionForm)list.get(i);
%>
    <tr bgcolor="#FFFFFF">
      <td height="24"><%=vote.getName()%></td>
      <td><%=vote.getAddress()%></td>
      <td><%=vote.getCountry()%></td>
      <td><%=vote.getJop()%></td>
      <td><%=vote.getRemark()%></td>
      <td align="center"><form name="form" method="post" action="addVote.do?ID=<%=vote.getID()%>" >
        <input type="submit" name="Submit" value="投票">
      </form></td>
    </tr>
<%}%>
<%}else{
out.println("已经投票过了");
}
%>
  </table>
  </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -