<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'list.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</link>
<link rel="stylesheet" href="<%=basePath%>/css/index_work.css" type="text/css"></link>
<script type="text/javascript" src="<%=basePath%>/js/jquery-1.8.2.js"></script>
<script type="text/javascript">
function allcheck(){
$(".ck").each(function(){
$(this).attr("checked",true);
})
}
function notcheck(){
$(".ck").each(function(){
$(this).attr("checked",false);
})
}
function recheck(){
$(".ck").each(function(){
$(this).attr("checked",!$(this).attr("checked"));
})
}
function add(){
location="add.jsp";
}
function del(id){
if(confirm("确认要删除吗")){
location ="del.jsp?id="+id;
}
}
function mohu(){
var mohu = $("[name='mohu']").val();
location = "list.do?mohu="+mohu;
}
</script>
</head>
<body>
<table>
<tr>
<th colspan="3"><input type="button" value="全选" onclick="allcheck()"></th>
<th colspan="3"><input type="button" value="不选" onclick="notcheck()"></th>
<th colspan="3"><input type="button" value="反选" onclick="recheck()"></th>
<th colspan="3"><input type="button" value="新增" onclick="add()"></th>
<th colspan="7"><input type="text" name="mohu"><input type="button" value="查找" onclick="mohu()"></th>
</tr>
<tr>
<th>复选框</th>
<th>编号</th>
<th>会员</th>
<th>邮箱</th>
<th>手机</th>
<th>信用</th>
<th>额度</th>
<th>等级</th>
<th>推荐人</th>
<th>状态</th>
<th>黑名单</th>
<th>第三方</th>
<th>操作</th>
</tr>
<c:forEach var="v" items="${vipList }">
<tr>
<th><input type="checkbox" class="ck"></th>
<th>${v.id}</th>
<th>${v.username}</th>
<th>${v.useremail}</th>
<th>${v.userphone}</th>
<th>${v.usernumber}</th>
<th>${v.usermoney}</th>
<th>${v.usernum}</th>
<th>${v.userpeople}</th>
<th>${v.userstatic}</th>
<th>${v.userblack}</th>
<th>${v.userthree}</th>
<th><input type="button" value="删除" onclick="del(${v.id})">
<input type="button" value="操作+" onclick="location='upd.jsp?id=${v.id}'"></th>
</tr>
</c:forEach>
</table>
</body>
</html>
人最强大的精神支柱,不是意志或者信仰,而是习惯。
《尘曲》