You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.7 KiB

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE html>
<html>
<head>
<title>教练</title>
<link rel="stylesheet" type="text/css" href="qtimages/css/style.css"/>
<link rel="stylesheet" type="text/css" href="qtimages/css/mislider.css"/>
<style>
.dd a:hover{color: red;}
.dd a{ font-size: 18px;}
.header .top .logo{margin-right: 260px;}
.header{ position: fixed; top: 0; left: 0; z-index: 9999; background: #fff; width: 100%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<%
%>
<body style="padding-top:220px;">
<%@ include file="qttop.jsp"%>
<%@ include file="bht.jsp"%>
<div class="index_about index">
<div class="w1200">
<h2 class="t">教练</h2>
<p class="t_en">Details</p>
<div class="desc">
<link rel="stylesheet" href="images/hsgcommon/divqt.css" type="text/css">
<form name="form1" id="form1" method="post" action="" style="width:100%">
搜索: 工号:<input name="gonghao" type="text" id="gonghao" class="form-control2" /> 性别:<select name='xingbie' id='xingbie' class="form-control2"><option value="">所有</option><option value="男">男</option><option value="女">女</option></select> 专长:<input name="zhuanchang" type="text" id="zhuanchang" class="form-control2" />
<input type="submit" name="Submit" value="查找" /> <input type="button" name="Submit5" value="切换视图" onClick="javascript:location.href='jiaolianlist.jsp';" />
</form>
<table width="100%" height="12%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
new CommDAO().delete(request,"jiaolian");
String url = "jiaolianlisttp.jsp?1=1";
String sql = "select * from jiaolian where 1=1";
if(request.getParameter("gonghao")=="" ||request.getParameter("gonghao")==null ){}else{sql=sql+" and gonghao like '%"+request.getParameter("gonghao")+"%'";}
if(request.getParameter("xingbie")=="" ||request.getParameter("xingbie")==null ){}else{sql=sql+" and xingbie like '%"+request.getParameter("xingbie")+"%'";}
if(request.getParameter("zhuanchang")=="" ||request.getParameter("zhuanchang")==null ){}else{sql=sql+" and zhuanchang like '%"+request.getParameter("zhuanchang")+"%'";}
sql+=" order by id desc";
ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request);
int i=0;
for(HashMap map:list){
i++;
%>
<td height="316" align="center"><table width="225" height="285" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="250" align="center"><a href="jiaoliandetail.jsp?id=<%=map.get("id")%>"><img src="<%=map.get("zhaopian")%>" width="210" height="250" border="0" style="border-radius: 18px;" /></a></td>
</tr>
<tr>
<td height="26" align="center"><%=map.get("xingming")%></td>
</tr>
</table></td>
<%
if (i==4)
{
i=0;
out.print("</tr><tr>");
}
}
%>
</tr>
</table>
${page.info }
</div>
</div>
</div>
<%@ include file="yqlj.jsp"%>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>
<!--yoxudixtu-->