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

📄 manage_question.jsp~11~

📁 一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.
💻 JSP~11~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.User" %>
<%@ page import="com.bwm.model.Question" %>
<%@ page import="com.bwm.core.*" %>
<%@ page import="java.util.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<title>
manage_question
</title>
</head>
<body bgcolor="#ffffff">
<table border="1" align="center" cellpadding="0" cellspacing="0" class="tableBorder2">
  <tr align="center">
    <td colspan="2" class="TableTitle1" >常见问题管理</td>
  </tr>
  <tr align="center">
    <td width="80%">&nbsp;</td>
    <td width="20%"><a href="add_link.jsp" target="_self" >添加常见问题</a></td>
  </tr>
  <%
BasetableFactory bf=BasetableFactory.getInstance();
int submit_page=ParamUtils.getIntParameter(request,"page");
Collection coll=bf.ListQuestion(submit_page,"");
if(coll==null||coll.size()<=0){
%>
  <tr align="center">
    <td height="27" colspan="2">当前常见问题为空</td>
  </tr>
  <%
        }else{
            Iterator it=coll.iterator();
            while(it.hasNext()){
                Question a=(Question)it.next();
%>
  <tr align="left">
    <td height="27"><strong>Q:</strong><%=a.getQuestion()%> </td>
    <td height="27" align="center">
        <a href="modify_question.jsp?action=del&qid=<%=a.getQid()%>"><img src="../images/del.gif" border="0"></a></td>
  </tr>
  <tr align="left">
    <td height="27" colspan="2"><strong>A:</strong><%=a.getAnswer()%></td>
  </tr>
  <%
                }
%>
  <tr align="right">
    <td height="27" colspan="2"><%=HtmlUtils.table(bf.getRow("link"),submit_page,"manage_link.jsp")%></td>
  </tr>
  <%
        }
%>
</table>
</body>
</html>

⌨️ 快捷键说明

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