- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
- <%@page contentType="text/html;charset=GB2312"%>
- <%@page import="java.sql.*"%>
- <%@include file="opendata.jsp"%>
- <%@include file="check.jsp"%>
- <html>
- <head>
- <title>问卷管理</title>
- <LINK href="style.css" rel=stylesheet>
- </head>
- <body background="qq2.jpg">
- <center>
- <%
- request.setCharacterEncoding("GB2312");
- %>
- <div align=center><font color=red>管理员可以发布新问题,撤消正在发布的主题,修改、删除已经被撤消的主题。</font></div>
- <%! String modifyid ;%>
- <table width=60% >
- <tbody>
- <tr>
- <td colSpan=2>
- <div align=center>正在被投票的主题</div>
- </td>
- </tr>
- <tr>
- <td colSpan=2>
- <table cellSpacing=0 cellPadding=0 width=100% align=center border=1 bordercolor="#999999">
- <tbody>
- <tr>
- <td width="18%">
- <div align="center">发布时间</div>
- </td>
- <td width="55%" >
- <div align="center">主题</div>
- </td>
- <td width="13%">
- <div align="center">撤消|恢复</div>
- </td>
- <td width="14%">
- <div align="center">是否公布结果</div>
- </td>
- </tr>
- <%
- try{
- request.setCharacterEncoding("GB2312");
- sql = "select * from questions where IsVisable=1";
- rs = smt.executeQuery(sql);
- String question,date;
- int isvisable;
- int questionid ;
- int id = 0;
- int isopen = 0;
- while(rs.next())
- {
- questionid = rs.getInt(1);
- question = rs.getString(2);
- isvisable = rs.getInt(3);
- date = rs.getString(4);
- isopen = rs.getInt(5);
- out.print("<tr>");
- out.print("<td align=center>"+date+"</td>");
- out.print("<td ><a href=result.jsp?questionid="+questionid+" target = _blank>"+question+"</a></td>");
- out.print("<td align=center><a href=isvisable.jsp?questionid="+questionid+">撤消</a></td>");
- if (isopen == 1)
- out.print("<td align=center><a href=isopen.jsp?questionid="+questionid+">隐藏结果</a></td>");
- else
- out.print("<td align=center><a href=isopen.jsp?questionid="+questionid+">公布结果</a></td>");
- out.print("</tr>");
- }
- %>
- </tbody>
- </table>
- </td>
- </tr>
- </table>
- <p>
- <p>
- <div align=center><font color=red>管理员需要重新编辑投票主题,请先将该主题撤消,暂停被投票。新发布或是刚被修改的投票主题需要确认“恢复”才能被发布。</red></div>
- <p>
- <p>
- <table width=60%>
- <tbody>
- <tr>
- <td colSpan=2>
- <div align=center>已经撤消或者尚未发布的主题</div>
- </td>
- </tr>
- <tr>
- <td colSpan=2>
- <table cellSpacing=0 cellPadding=0 width=100% align=center border=1 bordercolor="#999999">
- <tbody>
- <tr>
- <td width="18%">
- <div align="center">发布时间</div>
- </td>
- <td width="55%">
- <div align="center">主题</div>
- </td>
- <td width="9%">
- <div align="center">撤消|恢复</div>
- </TD>
- <TD width="9%">
- <div align="center">重新编辑</div>
- </TD>
- <TD width="9%">
- <div align="center">永久删除 </div>
- </TD>
- </TR>
- <%request.setCharacterEncoding("GB2312");
- sql = "select * from questions where IsVisable=0";
- rs = smt.executeQuery(sql);
- String _question,_date;
- int _questionid,_isvisable,_id=0;
- while(rs.next())
- {
- _questionid = rs.getInt(1);
- _question = rs.getString(2);
- _isvisable = rs.getInt(3);
- _date = rs.getString(4);
- _id++;
- //_quetionid = String.valueOf(_questionid);
- out.print("<tr>");
- out.print("<td align=center>"+_date+"</td>");
- out.print("<td><a href=result.jsp?questionid="+_questionid+" target = _blank>"+_question+"</a></td>");
- out.print("<td align=center><a href=isvisable.jsp?questionid="+_questionid+">恢复</a></td>");
- out.print("<td align=center><a href=edit.jsp?questionid="+_questionid+"><u>添加</u></a><br><a href=edit1.jsp?questionid="+_questionid+"><u>发布</u></a></td>");
- out.print("<td align=center><a href=delete.jsp?questionid="+_questionid+">删除</a></td>");
- out.print("</tr>");
- }
- rs.close();
- smt.close();
- con.close();
- } catch (Exception e) {
- e.getStackTrace();
- }
- %>
- </TBODY>
- </TABLE>
- </TD>
- </TR>
- </table>
- <p>
- <p>
- <hr>
- <TD align=middle>
- <div align="center"> <b>
- <a href=showresult.jsp target = _blank><font size=5 color=green>查看所有主题投票统计</font> </a>
- <a href=addpoll.jsp> <font size=5 color=green>发布新问题</font> </a>
- <a href=member.jsp> <font size=5 color=green>用户管理</font></a></b></div>
- </TD>
- <center>
- </body>
- </html>