WebRoot/gongzi/gongziinfo.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 gongzi where 1=1 ";//查询 工资sql语句
db.open();//打开数据库链接
String yf=(String)request.getParameter("yf");//查询条件:月份
String zdrq=(String)request.getParameter("zdrq");//查询条件:制定日期
//月份 判断如果不为空,拼接到sql语句 通过 模糊查询的方式
if(yf!=null){
if(!yf.equals("")){
sql+=" and yf like '%"+yf+"%'";
}
}
//制定日期 判断如果不为空,拼接到sql语句 通过 模糊查询的方式
if(zdrq!=null){
if(!zdrq.equals("")){
sql+=" and zdrq like '%"+zdrq+"%'";
}
}
if(session.getAttribute("yhm")!=null){
sql+=" and yg='"+session.getAttribute("yhm")+"'";
}
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 href="../css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
<link href="../css/print.css" rel="stylesheet" type="text/css" media="print" />
<script src="../js/jquery-1.10.1.min.js"></script>
<script src="../js/side.js" type="text/javascript"></script>
<body marginwidth="0" marginheight="0">
<form name="form" action="" method="post" >
<!-- MainForm -->
<div id="MainForm">
<div class="form_boxA">
<h2>工资列表</h2><br />
查询条件:月份 <input type="text" name="yf" /> 制定日期 <input type="text" name="zdrq" /> <input type=submit value="查询">
<table cellpadding="0" cellspacing="0">
<tr>
<th><strong>月份</strong></th>
<th><strong>制定日期</strong></th>
<th><strong>员工</strong></th>
后面还有 79 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。