⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boxmain.jsp

📁 ktv点歌系统前台收银有开包房
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<%	String path = request.getContextPath(); %>
<script language="JavaScript">
function confirmDelete() { 
              if(confirm("确认删除吗?")){
                  testForm.submit();
                  }
              else{
              		return false;
              }                      
                         }
function confirmUpdate() { 
              if(confirm("确定要修改包房的价格吗?")){
                  testForm.submit();
              }
              else{
              		return false;
                  }                      
                          }                         
</script>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

  

<html:html locale="true">
  <head>
    <html:base />
    
    <title>boxMain.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	
	<link rel="stylesheet" type="text/css" href="Box.css">

  </head>
  
  <body>
	<a >包房情况</a><br /><br/>
	<a href="box.jsp">添加包房</a><br /><br/>
  <table  align=center width="755" height="61" border="1"  
  cellpadding="0" cellspacing="1" >
    <tr>
      <td align=center width="83">包厢号</td>
      <td align=center width="99">类型</td>
      <td align=center width="100">单价</td>
       <td align=center width="100">状态</td>
      <td align=center width="163">备注</td>
      <td align=center width="162">操作</td>
    </tr>
    <logic:iterate id="box" name="boxlist" type="com.ktv.entity.Box" scope="request">
    <tr onmouseover="this.style.background='#EFF7FF';" onmouseout="this.style.background='#FFFFFF';">
      <td align=center><bean:write  name="box" property="boxNumber"/></td>
      <td align=center><bean:write name="box" property="boxType"/></td>
      <td align=center><bean:write name="box" property="boxUnitPrice"/></td>
      <td align=center><bean:write name="box" property="boxStatus"/></td>
      <td align=center><bean:write name="box" property="boxRemark"/></td>
      <html:hidden name="box" property="boxId"/>
      <td align=center> 
      		<a href="<%=path %>/box.do?methods=get&boxId=<bean:write name='box' property='boxId'/>">修改</a> 
            <a href="<%=path %>/box.do?methods=delete&boxId=<bean:write name='box' property='boxId'/>" onclick='return confirmDelete()'> 删除</a> 
      </td></tr>
      </logic:iterate>
    <html:form action="/updateAction.do?update=update" method="post">
    <p align=center><html:select property="boxType" >
    <html:option value="0">请选择包房类型</html:option>
      <html:option value="minBox">迷你包</html:option>
      <html:option value="smallBox">小 包</html:option>
      <html:option value="middleBox">中 包</html:option>
      <html:option value="bigBox">大 包</html:option>
      <html:option value="partyBox">party 包</html:option>
      <html:option value="vipBox">VIP 包</html:option></html:select>
    包房价格:
 	
    <html:text property="boxUnitPrice" >
    </html:text>
    &nbsp;&nbsp;
    <html:submit  value="修改" onclick="return confirmUpdate()"/>
    </html:form>
   
  </table>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -