📄 manage_question.jsp
字号:
<%@ 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%"> </td>
<td width="20%"><a href="add_question.jsp" target="_self" >添加常见问题</a></td>
</tr>
<%BasetableFactory bf=BasetableFactory.getInstance();
int submit_page=ParamUtils.getIntParameter(request,"page");Collection coll=bf.ListQuestion(submit_page,"ORDER BY qid");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:<%=a.getQuestion()%></strong></td>
<td height="27" align="center"> <a href="modify_question.jsp?action=del&qid=<%=a.getQid()%>" onClick="javascript:return confirm('你确定删除该常见问题吗?')"><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("question ORDER BY qid"),submit_page,"manage_question.jsp")%></td>
</tr>
<%}%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -