web/spare_list.jsp
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>多媒体常用备件管理</title>
<%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
<ul class="nav nav-tabs">
<li class="active"><a href="SpareServlet?action=list">多媒体常用备件列表</a></li>
<c:if test="${loginUser.userType == '管理员'}"><li><a href="spare_add.jsp">添加</a></li></c:if>
</ul>
<br/>
<form class="form-inline" id="searchForm" action="SpareServlet?action=list" method="post">
<div class="form-group">
<input type="text" class="form-control" name="keyword" id="keyword" placeholder="备件名称">
<input type="hidden" id="searchColumn" name="searchColumn" value="spare_name"/>
</div>
<button class="btn btn-pill btn-line btn-warning btn-sm"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询
</button>
</form>
<br/>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>备用件名称</th>
<th>备用件数量</th>
<th>购买时间</th>
<th>购买人电话</th>
<th>购买人</th>
<th>备用件编号</th>
<th>备注</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="vo">
<tr>
<td><a href="SpareServlet?action=get&id=${vo.id}">${vo.spareName}</a></td>
<td>${vo.spareCount}</td>
<td>${vo.spareTime}</td>
<td>${vo.spareTel}</td>
<td>${vo.spareLink}</td>
<td>${vo.spareNo}</td>
<td>${vo.spareNote}</td>
<td>
<button onclick="window.location.href='SpareServlet?action=editPre&id=${vo.id}'"
class="btn btn-pill btn-line btn-warning btn-xs"
<c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
>
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
编辑
</button>
<button onclick="if(window.confirm('将要删除:${vo.spareName}?'))window.location.href='SpareServlet?action=delete&id=${vo.id}'"
class="btn btn-pill btn-line btn-default btn-xs"
<c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> >
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
删除
</button>
后面还有 9 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。