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.

90 lines
4.1 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='jiaolianlisttp.jsp';" />
</form>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="00FFFF" style="border-collapse:collapse" class="newsline">
<tr>
<td width="30" align="center" bgcolor="CCFFFF">序号</td>
<td bgcolor='#CCFFFF'>工号</td>
<td bgcolor='#CCFFFF'>密码</td>
<td bgcolor='#CCFFFF'>姓名</td>
<td bgcolor='#CCFFFF' width='40' align='center'>性别</td>
<td bgcolor='#CCFFFF'>年龄</td>
<td bgcolor='#CCFFFF' width='90' align='center'>照片</td>
<td bgcolor='#CCFFFF'>专长</td>
<td bgcolor='#CCFFFF'>联系方式</td>
<td bgcolor='#CCFFFF'>地址</td>
<td width="30" align="center" bgcolor="CCFFFF">详细</td>
</tr>
<%
new CommDAO().delete(request,"jiaolian");
String url = "jiaolianlist.jsp?2=2";
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++;
%>
<tr>
<td width="30" align="center"><%=i %></td>
<td><%=map.get("gonghao") %></td><td><%=map.get("mima") %></td><td><%=map.get("xingming") %></td><td align='center'><%=map.get("xingbie") %></td><td><%=map.get("nianling") %></td><td width='90'><a class="btn btn-info btn-small" href='<%=map.get("zhaopian") %>' target='_blank'><img src='<%=map.get("zhaopian") %>' width=88 height=99 border=0 /></a></td><td><%=map.get("zhuanchang") %></td><td><%=map.get("lianxifangshi") %></td><td><%=map.get("dizhi") %></td>
<td width="50" align="center"> <a class="btn btn-info btn-small" href="jiaoliandetail.jsp?id=<%=map.get("id")%>" >详细</a></td>
</tr>
<%
}
%>
</table><br>
${page.info }
</div>
</div>
</div>
<%@ include file="yqlj.jsp"%>
<%@ include file="qtdown.jsp"%>
<%@ include file="kefutiao.jsp"%>
</body>
</html>
<!--yoxudixtu-->