7月16日 SSM 周一

<%@ 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>

人最强大的精神支柱,不是意志或者信仰,而是习惯。
《尘曲》

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值