manage_question.jsp~3~
来自「一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.」· JSP~3~ 代码 · 共 58 行
JSP~3~
58 行
<%@ 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_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()){
Link a=(Link)it.next();
%>
<tr align="left">
<td height="27"><strong>Q:</strong><%=a.getName()%> </td>
<td height="27" align="center">
<a href="modify_link.jsp?action=del&lid=<%=a.getLid()%>"><img src="../images/del.gif" border="0"></a></td>
</tr>
<tr align="left">
<td height="27" colspan="2"><strong>A:<%=a.getName()%></strong></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 + =
减小字号Ctrl + -
显示快捷键?