今天进行团队项目的具体实现
1、补货信息的查询
页面代码
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@page isELIgnored="false" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!doctype html> <html lang="en"> <head> <title>Home</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link href="table.css" rel="stylesheet"> <link rel="stylesheet" href="css/style.css"> <script type="text/javascript"> window.onload = function (){ } </script> </head> <body > <nav class="navbar navbar-expand-md navbar-dark"> <div class="container"> <!-- Company name shown on mobile --> <a class="navbar-brand" href="#">随手买<span>智能平台</span></a> <!-- Mobile menu toggle --> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainNavbar" aria-controls="mainNavbar" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="mainNavbar"> <ul class="navbar-nav mr-auto justify-content-end"> <li class="nav-item active"> <a class="nav-link" href="SendAllServlet">补货信息<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="fabu.jsp">发布广告<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="three-column.jsp">营销设备状态<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="weizhi.jsp">开机设备位置<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="text.jsp">关于我们<span class="sr-only">(current)</span></a> </li> </ul> </div> </div> </nav> <div align="center"> <h1>补货信息</h1> <table border="1" cellspacing="0"> <tr align="center"> <th>序号</th> <th>供货商号码</th> <th>补货时间</th> <th>补货地点</th> <th>司机号码</th> <th>商品名称</th> <th>价格</th> </tr> <c:forEach items="${sends}" var="brand" varStatus="status"> <tr align="center"> <%--<td>${brands.id}</td>--%> <td>${status.count}</td> <td>${brand.mer_phone}</td> <td>${brand.time}</td> <td>${brand.address}</td> <td>${brand.user_phone}</td> <td>${brand.name}</td> <td>${brand.total}</td> </tr> </c:forEach> </table> <!-- Jumbtron / Slider --> </div> </body> </html>
2、营销设备状态
页面代码
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@page isELIgnored="false" %> <!doctype html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <title>Home</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <script th:src="@{/layuimini/js/lay-module/echarts/echarts.js}"></script> <script th:src="@{/layuimini/js/lay-module/echarts/wordcloud.js}"></script> <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" /> <script src="https://www.layuicdn.com/layui/layui.js"></script> <!-- Main CSS --> <link href="table.css" rel="stylesheet"> <link rel="stylesheet" href="css/style.css"> <!-- Font Awesome --> </head> <style type="text/css"> .h{ white-space:nowrap; } </style> <body> <nav class="navbar navbar-expand-md navbar-dark"> <div class="container"> <!-- Company name shown on mobile --> <a class="navbar-brand" href="#">随手买<span>智能平台</span></a> <!-- Mobile menu toggle --> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainNavbar" aria-controls="mainNavbar" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <!-- Main navigation items --> <div class="collapse navbar-collapse" id="mainNavbar"> <ul class="navbar-nav mr-auto justify-content-end"> <li class="nav-item active"> <a class="nav-link" href="SendAllServlet">补货信息 <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="fabu.jsp">发布广告<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="three-column.jsp">营销设备状态<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="weizhi.jsp">开机设备位置<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="text.jsp">关于我们<span class="sr-only">(current)</span></a> </li> </ul> </div> </div> </nav> <div style="width:100%;height:120px;float:left; position:relative; display: table-cell;vertical-align: middle; background-color: rgba(232,232,232,0.76) "> <div align="center"> <h1>营销设备状态</h1> </div> <form class="layui-form"action="table1.jsp" method="post" target="hideIframe1" > <p> </p> <div class="layui-form-item"> <div class="layui-inline"> <div class="h">是否为已认证用户: <input type="radio" name="name" value="T" class="layui-input">是 <input type="radio" name="name" value="F" class="layui-input">否 <button type="submit" class="layui-btn" id="" lay-submit lay-filter="demo1"style="background-color: #1571b2">查询</button></div> </div> </div> </form> </div> <div class="container3"> <iframe id="myIframe1" name="hideIframe1" style="" src="table1.jsp" frameborder="0" width="100%" height="850px"></iframe> </div> <script> </script> </body> </html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="java.sql.DriverManager" %> <%@ page import="java.sql.Connection" %> <%@ page import="com.wmx.pojo.Login" %> <%@ page import="java.sql.ResultSet" %> <%@ page import="java.sql.Statement" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.util.List" %> <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>tatil</title> <script th:src="@{/layuimini/js/lay-module/echarts/echarts.js}"></script> <script th:src="@{/layuimini/js/lay-module/echarts/wordcloud.js}"></script> <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" /> <script src="https://www.layuicdn.com/layui/layui.js"></script> </head> <tbody> <jsp:useBean id="util" class="com.wmx.service.LoginService"/> <% request.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8"); response.setContentType("text/html;charset=utf-8"); String name=request.getParameter("name"); %> <% if (name == null){ List<Login> list= util.searchAll(); %> <table class="layui-table"style="table-layout: fixed;word-wrap:break-word;"> <thead> <tr> <td style="width: 700px">手机号</td> <td style="width: 250px">密码</td> <td style="width: 250px">是/否完成认证</td> <td style="width: 100px">操作</td> <!-- <td style="width: 100px">操作</td> --> </tr> </thead> <tbody> <%for (Login b : list) { String s1=b.getJudgment(); %> <tr> <td style="width: 200px"><%=b.getName()%></td> <td style="width: 150px"><%=b.getPass()%></td> <%if(s1.equals("T")){ %> <td style="width: 100px">是</td> <td style="width: 100px"><a href="Seres?id=<%=b.getName()%>&flag=T"><button type="submit" class="layui-btn"style="background-color: #ff0000">停用</button></a> </td> <% }else{%> <td style="width: 100px">否</td> <td style="width: 100px"><a href="Seres?id=<%=b.getName()%>&flag=F"><button type="submit" class="layui-btn"style="background-color: #1571b2">认证</button></a> </td> <% }}%></td> </tr> </tbody> </table> <%}else{ List<Login> list = util.searchByjudgment(name); %> <div class="container3" id="container3"> <table class="layui-table"style="table-layout: fixed;word-wrap:break-word;" > <thead> <tr> <td style="width: 700px">手机号</td> <td style="width: 250px">密码</td> <td style="width: 250px">是/否</td> <td style="width: 100px">操作</td> </tr> </thead> <tbody> <%for (Login b : list) { String s1=b.getJudgment(); %> <tr> <td style="width: 200px"><%=b.getName()%></td> <td style="width: 150px"><%=b.getPass()%></td> <%if(s1.equals("T")){ %> <td style="width: 100px">是</td> <td style="width: 100px"><a href="Seres?id=<%=b.getName()%>&flag=F"><button type="submit" class="layui-btn"style="background-color: #ff0000">停用</button></a> </td> <% }else{%> <td style="width: 100px">否</td> <td style="width: 100px"><a href="Seres?id=<%=b.getName()%>&flag=T"><button type="submit" class="layui-btn"style="background-color: #1571b2">认证</button></a> </td> <% }%> </tr> <%} %> </tbody> </table> </div> <%}%>
标签:记录,每日,brand,current,flag,nbsp,补货,设备 From: https://www.cnblogs.com/xiao-hong111/p/17338789.html