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.4 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="qicaimingcheng" type="text" id="qicaimingcheng" class="form-control2" /> 器材类别:<input name="qicaileibie" type="text" id="qicaileibie" 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='qicaixinxi_listxls.jsp';" />
</form>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="cccccc" >
<tr>
<td width="35" height="30" align="center" bgcolor="cccccc">序号</td>
<td bgcolor='#cccccc'>器材编号</td>
<td bgcolor='#cccccc'>器材名称</td>
<td bgcolor='#cccccc'>器材类别</td>
<td bgcolor='#cccccc' width='90' align='center'>图片</td>
<td bgcolor='#cccccc' width='90' align='center'>演示视频</td>
<td width="138" height="30" align="center" bgcolor="cccccc">添加时间</td>
<td width="220" height="30" align="center" bgcolor="cccccc">操作</td>
</tr>
<%
new CommDAO().delete(request,"qicaixinxi");
String url = "qicaixinxi_list.jsp?1=1";
String sql = "select * from qicaixinxi where 1=1";
if(request.getParameter("qicaimingcheng")=="" ||request.getParameter("qicaimingcheng")==null ){}else{sql=sql+" and qicaimingcheng like '%"+request.getParameter("qicaimingcheng")+"%'";}
if(request.getParameter("qicaileibie")=="" ||request.getParameter("qicaileibie")==null ){}else{sql=sql+" and qicaileibie like '%"+request.getParameter("qicaileibie")+"%'";}
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="35" align="center"><%=i %></td>
<td><%=map.get("qicaibianhao") %></td>
<td><%=map.get("qicaimingcheng") %></td>
<td><%=map.get("qicaileibie") %></td>
<td width='90' align='center'><a class="btn btn-info btn-small" href='<%=map.get("tupian") %>' target='_blank'><img src='<%=map.get("tupian") %>' width=88 height=99 border=0 /></a></td>
<td width='90' align='center'><a class="btn btn-info btn-small" href='play.jsp?spwj=<%=map.get("yanshishipin") %>' target='_blank'>点此播放</a></td>
<td width="138" align="center"><%=map.get("addtime") %></td>
<td width="220" align="center"><a class="btn btn-info btn-small" href="qicaixinxi_updt.jsp?id=<%=map.get("id")%>">修改</a> <a class="btn btn-info btn-small" href="qicaixinxi_list.jsp?scid=<%=map.get("id") %>" onClick="return confirm('真的要删除?')">删除</a> <a class="btn btn-info btn-small" href="qicaixinxidetail.jsp?id=<%=map.get("id")%>" target="_blank">详细</a> </td>
</tr>
<%
}
%>
</table>
<br>
<p class="fy">${page.info }</p>
</body>
</html>