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.

67 lines
3.5 KiB

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title>教练</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
</head>
<body >
<p>已有教练列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索: 工号:<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="查找" class="btn btn-info btn-small" /> <input type="button" name="Submit2" value="导出EXCEL" class="btn btn-info btn-small" onClick="javascript:location.href='jiaolian_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc">
<tr>
<td width="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>工号</td>
<td bgcolor='#cccccc'>密码</td>
<td bgcolor='#cccccc'>姓名</td>
<td bgcolor='#cccccc' width='40' align='center'>性别</td>
<td bgcolor='#cccccc'>年龄</td>
<td bgcolor='#cccccc' width='90' align='center'>照片</td>
<td bgcolor='#cccccc'>专长</td>
<td bgcolor='#cccccc'>联系方式</td>
<td bgcolor='#cccccc'>地址</td>
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
<td width="60" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"jiaolian");
String url = "jiaolian_list.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++;
%>
<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' align='center'><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="138" align="center"><%=map.get("addtime") %></td>
<td width="60" align="center"><!--lianjie1--> <a class="btn btn-info btn-small" href="jiaoliandetail.jsp?id=<%=map.get("id")%>" target="_blank">详细</a> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>