摘要:基于的酒店管理系統(tǒng)部分代碼實(shí)現(xiàn)商品編輯商品列表編輯管理員沒有權(quán)限編輯將要?jiǎng)h除
基于javaweb+jsp的酒店管理系統(tǒng)
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
部分代碼實(shí)現(xiàn)JSP
<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><a href="goodList">商品 列表a>li> <li class="active"><a href="#">編輯a>li> ul> <br/>
<c:forEach items="${list}" var="vo"> <tr> <td><a href="goodGet?id=${vo.id}">${vo.goodName}a>td> <td>${vo.goodType}td> <td>${vo.goodCount}td> <td>${vo.goodUnit}td> <td>${vo.goodPrice}td> <td> <button onclick="window.location.href="goodEditPre?id=${vo.id}"" class="btn btn-pill btn-primary btn-xs" if test="${loginUser.userType != "管理員"}">disabled="disabled" title="沒有權(quán)限?。。?c:if> > <span class="glyphicon glyphicon-pencil" aria-hidden="true">span> 編輯 button>
<input type="hidden" class="form-control" id="id" name="id" value="${vo.id}"/> <div class="form-group"> <label class="col-sm-3 control-label">商品名稱:label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodName" name="goodName" value="${vo.goodName}"> div> div> <div class="form-group"> <label class="col-sm-3 control-label">類別:label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodType" name="goodType" value="${vo.goodType}"> div> div> <div class="form-group">
<div class="col-sm-5"> <input type="text" class="form-control" id="goodCount" name="goodCount" value="${vo.goodCount}"> div> div> <div class="form-group"> <label class="col-sm-3 control-label">單位:label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodUnit" name="goodUnit" value="${vo.goodUnit}"> div> div> <div class="form-group"> <label class="col-sm-3 control-label">售價(jià):label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodPrice" name="goodPrice" value="${vo.goodPrice}">
<label class="col-sm-3 control-label">單位:label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodUnit" name="goodUnit"> div> div> <div class="form-group"> <label class="col-sm-3 control-label">售價(jià):label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodPrice" name="goodPrice"> div> div> <div class="form-group"> <label class="col-sm-3 control-label">商品詳情:label> <div class="col-sm-5"> <textarea rows="3" class="form-control" id="goodText" name="goodText" placeholder="請輸入內(nèi)容......">textarea> div> div>
div> <div class="form-group"> <label class="col-sm-3 control-label">商品詳情:label> <div class="col-sm-5"> <textarea rows="3" class="form-control" id="goodText" name="goodText" placeholder="請輸入內(nèi)容......">${vo.goodText}textarea> div> div> <div class="form-group"> <label class="col-sm-3 control-label">label> <div class="col-sm-5"> <input type="submit" class="btn btn-pill btn-warning btn-sm" value="保存"> <input type="button" class="btn btn-pill btn-success btn-sm" value="返回" onclick="javascript:history.back(-1);"> div> div> form>div>body><script type="text/javascript"> //提交之前進(jìn)行檢查,如果return false,則不允許提交 function check() {
<div class="form-group"> <input type="text" class="form-control" name="keyword" id="keyword" placeholder="商品名稱"> <input type="hidden" id="searchColumn" name="searchColumn" value="good_name"/> div> <button class="btn btn-pill btn-primary 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>庫存數(shù)th> <th>單位th> <th>售價(jià)th> <th>操作th> tr> thead>
<span class="glyphicon glyphicon-remove" aria-hidden="true">span> 刪除 button> td> tr> c:forEach> tbody> table> <div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/>div>div>body>
div> div> <div class="form-group"> <label class="col-sm-3 control-label">類別:label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodType" name="goodType"> div> div> <div class="form-group"> <label class="col-sm-3 control-label">庫存數(shù):label> <div class="col-sm-5"> <input type="text" class="form-control" id="goodCount" name="goodCount"> div> div>
return true; }script>html><%@ 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="form-group"> <label class="col-sm-3 control-label">庫存數(shù):label> <div class="col-sm-5" style="padding-top: 7px;"> ${vo.goodCount} div>
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/124442.html
摘要:基于的機(jī)房設(shè)備管理系統(tǒng)部分代碼實(shí)現(xiàn)機(jī)房號容納人數(shù)介紹狀態(tài) 基于javaweb+jsp的機(jī)房設(shè)備管理系統(tǒng) JavaWeb JavaBean JSP MVC MySQL...
摘要:基于的高??蒲许?xiàng)目管理系統(tǒng)部分代碼實(shí)現(xiàn)科研方向備注 基于javaweb+jsp的高校科研項(xiàng)目管理系統(tǒng) JavaWeb JavaBean JSP MVC MySQL ...
摘要:基于的醫(yī)院信息管理系統(tǒng)部分代碼實(shí)現(xiàn)科室添加科室列表添加名稱科室列表編輯 基于javaweb+jsp的醫(yī)院信息管理系統(tǒng) JavaWeb JavaBean JSP MV...
摘要:基于的企業(yè)車輛管理系統(tǒng)部分代碼實(shí)現(xiàn)車輛添加車輛列表添加車牌 基于javaweb+jsp的企業(yè)車輛管理系統(tǒng) JavaWeb JavaBean JSP MVC MySQ...
摘要:基于的學(xué)生宿舍管理系統(tǒng)部分代碼實(shí)現(xiàn)樓棟不能為空編輯表單提交之前進(jìn)行檢查,如果,則不允許提交根據(jù)獲取值姓名不能為空電話不能為空側(cè)邊欄 基于javaweb+jsp的學(xué)生...
閱讀 2998·2021-11-23 09:51
閱讀 2820·2021-11-11 16:55
閱讀 2934·2021-10-14 09:43
閱讀 1403·2021-09-23 11:22
閱讀 1045·2019-08-30 11:04
閱讀 1674·2019-08-29 11:10
閱讀 968·2019-08-27 10:56
閱讀 3124·2019-08-26 12:01