back_voteselect.jsp~5~

来自「一、数据库登录名:blog 密码:blog 二、首页应该运行log.jsp页面」· JSP~5~ 代码 · 共 61 行

JSP~5~
61
字号
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
<title>
back_voteSelect
</title>
</head>
<script language="javascript" type="text/javascript">
 function deletevote(id)
 {
   if(confirm("你确定要删除吗?")){
    window.location.href="deleteVoteAction.do?id="+id;
   }
 }
</script>
<jsp:useBean id="vote" scope="session" class="OperationDB.operation">
</jsp:useBean>
<body bgcolor="#ffffff">
<table width="573" border="0" align="center" cellpadding="0" cellspacing="0" background="images/back1.gif">
  <tr>
 <td width="573" valign="top"><table width="227" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="myimage/back_noword_03.jpg" width="573" height="25" alt=""></td>
      </tr>
    </table>
      <table width="573" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="573" align="center" valign="top"><table border="1" cellpadding="1" cellspacing="1"  bgcolor="">
              <tr bgcolor="lightblue">
                <td width="50" height="20"><div align="center" class="STYLE2">编号</div></td>
                <td width="100"><div align="center" class="STYLE2">投票内容</div></td>
                <td width="100"><div align="center" class="STYLE2">票数</div></td>
                <td width="80"><div align="center" class="STYLE2">操作</div></td>
              </tr>
<%ArrayList list=vote.findvote();
     for(int i=0;i<list.size();i++){
      ActionForm.voteActionForm vaf=(ActionForm.voteActionForm)list.get(i);

%>
              <tr bgcolor="#FFFFFF">
                <td height="20"><div align="center"><%=vaf.getId()%></div></td>
                <td><div align="center"><%=vaf.getVoteName()%></div></td>
                <td><div align="center"><%=vaf.getVoteNumber()%></div></td>
                <td><div align="center"><a href="javascript:deletevote('<%=vaf.getId()%>')">删除</a></div></td>
              </tr>
<%}%>
            </table>
			</td>
        </tr>
      </table>
      <table width="227" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="myimage/back_noword_18.jpg" width="573" height="21" alt=""></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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