WebRoot/yonghu/yonghuinfo.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 yonghu where 1=1 ";//查询 用户sql语句
db.open();//打开数据库链接
String yhm=(String)request.getParameter("yhm");//查询条件:用户名
String mm=(String)request.getParameter("mm");//查询条件:密码

//用户名 判断如果不为空,拼接到sql语句 通过 模糊查询的方式
if(yhm!=null){
if(!yhm.equals("")){
sql+=" and yhm like '%"+yhm+"%'";
}
}
//密码 判断如果不为空,拼接到sql语句 通过 模糊查询的方式
if(mm!=null){
if(!mm.equals("")){
sql+=" and mm like '%"+mm+"%'";
}
}

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">用户名&nbsp;&nbsp;  <input type="text" name="yhm" />&nbsp;&nbsp;密码&nbsp;&nbsp;  <input type="text" name="mm" />&nbsp;&nbsp;<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 >
后面还有 55 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。