WebRoot/huida/huidainfo.jsp
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>
<%
request.setCharacterEncoding("gb2312");//设置页面字符集
DBO db=new DBO();//初始链接数据库类
String sql="select * from huida where 1=1 ";//查询 回答sql语句
db.open();//打开数据库链接
String sj=(String)request.getParameter("sj");//查询条件:试卷
String hd=(String)request.getParameter("hd");//查询条件:回答
//试卷 判断如果不为空,拼接到sql语句 通过 模糊查询的方式
if(sj!=null){
if(!sj.equals("")){
sql+=" and sj like '%"+sj+"%'";
}
}
//回答 判断如果不为空,拼接到sql语句 通过 模糊查询的方式
if(hd!=null){
if(!hd.equals("")){
sql+=" and hd like '%"+hd+"%'";
}
}
ResultSet rs=db.query(sql);//查询结果
//回答信息列表
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>回答列表</title>
</head>
<link rel="stylesheet" type="text/css" id="css" href="../images/style.css">
<body>
<form name="form" action="" method="post" >
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
<tr>
<td height="30" background="../images/bg_list.gif"><div style="padding-left:10px; font-weight:bold; color:#FFFFFF">查询条件</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">试卷 <input type="text" name="sj" /> 回答 <input type="text" name="hd" /> <input type=submit value="查询">
</td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
<tr>
<td height="30" background="../images/bg_list.gif"><div style="padding-left:10px; font-weight:bold; color:#FFFFFF">回答管理</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td bgcolor="#FFFFFF">
</td>
</tr>
<tr onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" bgcolor="#F1F5F8">
<td colspan="2"><table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr >
后面还有 57 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。