代码拉取完成,页面将自动刷新
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增消费信息</title>
<link rel="stylesheet" href="<%=request.getContextPath() %>/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="<%=request.getContextPath() %>/vendor/kindeditor/themes/default/default.css" />
<script src="<%=request.getContextPath() %>/vendor/jquery.min.js"></script>
<script src="<%=request.getContextPath() %>/vendor/bootstrap/js/bootstrap.js"></script>
<script src="<%=request.getContextPath() %>/vendor/layer-v3.1.1/layer/layer.js"></script>
<script src="<%=request.getContextPath() %>/vendor/nice-validator-1.1.4/dist/jquery.validator.js?local=zh-CN.js"></script>
<script src="<%=request.getContextPath() %>/vendor/kindeditor/kindeditor-all-min.js"></script>
<script src="<%=request.getContextPath() %>/vendor/kindeditor/lang/zh-CN.js"></script>
<script language="javascript" type="text/javascript" src="<%=request.getContextPath() %>/vendor/My97DatePicker/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="container">
<form class="form-horizontal" action="<%=request.getContextPath()%>/consume/consumeServlet?method=addConsume" method="POST" style="width:700px; margin:0 auto ; margin-top: 5px;">
<div class="form-group">
<label for="name" class="control-label">商品名称:</label>
<div>
<input type="text" class="form-control" id="name" name="name" value="${consume.name }" placeholder="请输入商品名称" data-rule="商品名称:required" >
</div>
</div>
<div class="form-group">
<label for="price" class="control-label">价格:</label>
<div>
<input type="text" class="form-control" id="price" name="price" value="${consume.price }" placeholder="请输入价格" data-rule="商品价格:required,xiaoshu " >
</div>
</div>
<div class="form-group">
<label for="count" class="control-label">数量:</label>
<div >
<input type="text" class="form-control" id="count" name="count" value="${consume.count }" placeholder="请输入数量" data-rule="数量:required, range[1~],integer[+]" >
</div>
</div>
<div class="form-group">
<label for="" class="control-label">消费类型:</label>
<select class="my-select form-control" name="typeName" style="height: 34px;" data-rule="类型:required">
<c:forEach items="${classList }" var="className" >
<option value="${className}" <c:if test="${className == typeName}">selected</c:if>>${className}</option>
</c:forEach>
</select>
</div>
<div class="form-group">
<label for="date" class="control-label">申请时间:</label>
<input type="text" class="form-control" id="date" name="date" value="${consume.date }" placeholder="开始时间" data-rule="时间:required" value="${pageModel.searchTimeStart }" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" readonly="readonly">
</div>
<div class="form-group">
<label for="remark" class="control-label">备注信息:</label>
<div>
<textarea rows="10" id="remark" name="remark" class="form-control">${consume.remark }</textarea>
</div>
</div>
<button type="submit" class="btn btn-primary">录入</button>
<button type="reset" class="btn btn-warning">重置</button>
</form>
</div>
<script>
if('${msg}'=='录入失败!'){
layer.alert('录入失败!', {icon: 2});
}
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。