首页 > 其他分享 >每日记录

每日记录

时间:2023-04-20 23:47:54浏览次数:36  
标签:记录 每日 brand current flag nbsp 补货 设备

今天进行团队项目的具体实现

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>&nbsp</p>
        <div class="layui-form-item">

            <div class="layui-inline">
                    <div class="h">是否为已认证用户:
                        <input type="radio" name="name" value="T" class="layui-input">是 &nbsp;
                        <input type="radio" name="name" value="F" class="layui-input">否 &nbsp;

                        <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

相关文章

  • 每日团队小结
    昨天对前端的显示做了一些调整,修改了一下显得更加美观今天还在修改servlet,现在还是不显示界面,就说部署的设备不足,现在一直在找是什么情况 ......
  • 每日团队
    昨天对前端的显示做了一些调整,修改了一下显得更加美观今天还在修改servlet,现在还是不显示界面,就说部署的设备不足,现在一直在找是什么情况......
  • 2023.4.20每日会议
    今天完成了什么:今天完成了对于数据插入时进行确认时碰到的问题,现在已经可以成功的让用户确认及修改数据以及删除数据了遇到了哪些困难:在完成昨天碰到的问题之后,紧接着就转向了根据消费类型以及消费金额来生成相应的总账单图,不知如何下手,明天打算完成这部分明天打算做什么:完成根......
  • 2023.4.20每日总结
    今天完成了什么:今天完成了对于数据插入时进行确认时碰到的问题,现在已经可以成功的让用户确认及修改数据以及删除数据了遇到了哪些困难:在完成昨天碰到的问题之后,紧接着就转向了根据消费类型以及消费金额来生成相应的总账单图,不知如何下手,明天打算完成这部分明天打算做什么:完成根......
  • 每日总结 4.20
    今天进行了供货商页面的设计,对于数据的处理实现对应付金额的显示,对于登录显示用户名,明天进行补货,对于每个用户发送的信息进行补货。packagequeren;importtoolse.Tool;importjava.sql.Connection;importjava.sql.PreparedStatement;importjava.sql.ResultSet;importj......
  • 每日总结
    今天继续写教学管理系统的前台页面      ......
  • 2023.4.20每日总结
    政策查询javapackagewangzhan;importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.PreparedStatement;importjava.sql.ResultSet;publicclassThesql{publicConnectionconnect;publicThesql()throwsException{Cla......
  • django获取当前用户提交到数据库的最新一条记录
    比如想获取最新一条数据的更新时间,datas返回的是一个QuerySet,是一个查询集可能用了filter,当用.last()返回最后一条记录时报错  objectisnotiterable然后用reverse()加上切片获取最后一条数据:reverse按倒序排列deflasttime(self):utime=FollowNote.objects.filte......
  • 2023.4.20记录2
    定义基类Point(点)和派生类Circle(圆),求圆的周长。Point类有两个私有的数据成员floatx,y;Circle类新增一个私有的数据成员半径floatr和一个公有的求周长的函数getCircumference();主函数已经给出,请编写Point和Circle类。输入格式:输入圆心和半径,xyr中间用空格分隔。输出格式:......
  • 4.20每日总结
    <%@pageimport="wangzhan.Pd_zhengce"%><%@pageimport="wangzhan.Thesql"%><%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtm......