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.
63 lines
2.8 KiB
63 lines
2.8 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="riqi" type="text" id="riqi" class="form-control2" /> 健身类型:<input name="jianshenleixing" type="text" id="jianshenleixing" class="form-control2" />
|
|
<input type="submit" name="Submit" value="查找" class="btn btn-info btn-small" />
|
|
</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'>健身类型</td>
|
|
<td bgcolor='#cccccc'>时长</td>
|
|
<td bgcolor='#cccccc'>效果</td>
|
|
|
|
<td width="138" align="center" bgcolor="cccccc">添加时间</td>
|
|
<td width="220" align="center" bgcolor="cccccc">操作</td>
|
|
</tr>
|
|
<%
|
|
|
|
|
|
|
|
new CommDAO().delete(request,"jianshenxinxi");
|
|
String url = "jianshenxinxi_list2.jsp?1=1";
|
|
String sql = "select * from jianshenxinxi where yonghuming='"+request.getSession().getAttribute("username")+"' ";
|
|
|
|
if(request.getParameter("riqi")=="" ||request.getParameter("riqi")==null ){}else{sql=sql+" and riqi like '%"+request.getParameter("riqi")+"%'";}
|
|
if(request.getParameter("jianshenleixing")=="" ||request.getParameter("jianshenleixing")==null ){}else{sql=sql+" and jianshenleixing like '%"+request.getParameter("jianshenleixing")+"%'";}
|
|
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("yonghuming") %></td>
|
|
<td><%=map.get("xingming") %></td>
|
|
<td><%=map.get("riqi") %></td>
|
|
<td><%=map.get("jianshenleixing") %></td>
|
|
<td><%=map.get("shichang") %></td>
|
|
<td><%=map.get("xiaoguo") %></td>
|
|
|
|
<td width="138" align="center"><%=map.get("addtime") %></td>
|
|
<td width="220" align="center"><a class="btn btn-info btn-small" href="jianshenxinxi_updt.jsp?id=<%=map.get("id")%>">修改</a> <a class="btn btn-info btn-small" href="jianshenxinxi_list2.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> </td>
|
|
</tr>
|
|
<%
|
|
}
|
|
%>
|
|
</table><br>
|
|
|
|
<p class="fy">${page.info }</p>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|