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

📄 foodbigtype.jsp

📁 实现网上订餐系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>

<%@ 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" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
  <link rel="stylesheet" type="text/css" href="manage/style_css/manage_style.css">
    <script>
    	function changebgColor(who){
			if(who.style.backgroundColor==''){
  				who.style.backgroundColor='#dde8ff';
  			}else{
  				who.style.backgroundColor='';
  			}
		}
		
		function to_preEdit(id1,id2){
			var tr1=document.getElementById(id1);
			var tr2=document.getElementById(id2);
			if(tr2.style.display=='none'){
				tr2.style.display='block';
				tr1.style.display='none';
			}
		}
		function to_edit(id,fbtname){
			window.document.fm.action="editFoodBigType.do?fbtid="+id+"&fbtname="+fbtname;
			window.document.fm.submit();
		}
    	
    	function button_preAddBigtype(){
			var bigtypetable=document.getElementById("bigtype");
			if(bigtypetable.style.display=='none'){
				bigtypetable.style.display='block';
			}
		}
		
		function button_addBigtype(){
			window.document.fm.action="addFoodBigType.do";
			window.document.fm.submit();
		}
		function check_All(th){
			var eids=document.getElementsByName("eids");
			for(var i=0;i<eids.length;i++){
				eids[i].checked=th.checked;
			}
		}
	
    </script>
  </head>
  
  <body>
    <form action="" method="post" name="fm">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td height="50" valign="bottom" class="font_style_title"><img src="enterprise/image/client.gif"/>餐饮类型管理:</td>
     </tr>
     <tr>
       <td><hr/></td>
     </tr>
     <tr>
       <td>       </td>
     </tr>
     <tr>
	   <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <tr class="bg_style_title"> 
		    <td width="50" height="30" align="center">&nbsp;</td>
		    <td width="200">大分类名称</td>
		    <td width="230">&nbsp;</td>
		    <td colspan="3" align="center">操作</td>
	      </tr>
		  <logic:iterate id="foodbigtype" name="FoodBigType" indexId="index" length="<%=request.getAttribute("PageSize").toString() %>" offset="<%=request.getAttribute("PageStartRow").toString() %>"> 
		  <tr id="d${index+1}" class="font_style_normal" onmouseover="changebgColor(this)" onmouseout="changebgColor(this)"> 
		    <td height="25" align="center"> <input type="checkbox" name="eids" value="${foodbigtype.fbtId }" />		    </td>
		    <td>${foodbigtype.fbtName }</td>
		    <td>&nbsp;</td>
		    <td align="right"><a href="javascript:void()" onclick="to_preEdit('d${index+1}','c${index+1}');" class="menu_font_style">编辑</a></td>
		    <td width="10" align="center">&nbsp;</td>
		    <td align="left"><a href="#" class="menu_font_style">删除</a></td>
		  </tr>
		  <tr id="c${index+1}" style="display: none;" class="font_style_normal" onmouseover="changebgColor(this)" onmouseout="changebgColor(this)">
		    <td height="25" align="center"><input type="checkbox" name="eids" value="${foodbigtype.fbtId }" /></td>
		    <td><input type="text" name="fbt${index+1}" value="${foodbigtype.fbtName }" class="text_style"></td>
		    <td>&nbsp;</td>
		    <td align="right"><a href="javascript:to_edit('${foodbigtype.fbtId}','fbt${index+1}');" class="menu_font_style">确定</a></td>
		    <td width="10" align="center"></td>
		    <td align="left"><a href="findAllFoodBigType.do" class="menu_font_style">取消</a></td>
		    </tr>
		  </logic:iterate> 
		  <tr class="font_style_normal"> 
		    <td height="40" colspan="3">全选: 
		      <input type="checkbox" name="checkbox2" value="checkbox" onclick="check_All(this);"/> <input type="button" name="Submit" value="删除所选记录"/>
	        <input type="button" name="Submit2" value="添加大分类" onclick="button_preAddBigtype();"/></td>
		    <td height="40" colspan="3" align="right">
		    	| <a href="findAllFoodBigType.do?page=1" class="menu_font_style">首页</a> 
		    	| <a href="findAllFoodBigType.do?page=<%=request.getAttribute("BackPage") %>" class="menu_font_style">上一页</a> 
		    	| <a href="findAllFoodBigType.do?page=<%=request.getAttribute("NextPage") %>" class="menu_font_style">下一页</a> 
		    	| <a href="findAllFoodBigType.do?page=<%=request.getAttribute("TotalPage") %>" class="menu_font_style">尾页</a> |
		    </td>
           </tr>
		</table>
		   <table id="bigtype" style="display: none;" class="font_style_normal" width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
               <td width="200" height="30" align="right">大分类名称:</td>
               <td width="200"><input type="text" name="bigtype" class="text_style"/></td>
               <td>
                 <input type="button" name="Submit4" value="添加" onclick="button_addBigtype();"/>
               </td>
             </tr>
           </table>
		 </td>
     </tr>
</table>
</form>
  </body>
</html:html>

⌨️ 快捷键说明

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