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

📄 shopadmin.jsp

📁 java编写的网络购物简洁版
💻 JSP
字号:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="shop.breedBean"%>
<%@ include file="/TongYong.jsp" %>
<jsp:useBean id="cDAO" class="shop.breedDAO" scope="page"></jsp:useBean>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'table.jsp' starting page</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="styles.css">
    -->
   
  </head>
  
  <body>
  <%
  		request.setCharacterEncoding("UTF-8");
  		
    	
    	Collection b  = cDAO.selectLeibei();
    	
    	Iterator itr = b.iterator();
    	
  		
  %>
  		
  <HR> 
  <DIV align = "center">
  <H1>商品管理</H1>
  
  <A href="newindex/addchanpin.jsp">增加商品</A><BR>
  <A href="newindex/delchanpin.jsp">删除商品</A><BR>
  <A href="newindex/updatachanpin.jsp">更改商品</A><BR>
  <A href="newindex/gallchanpin.jsp">查看所有商品</A><BR>
  <A href="newindex/geiAllleibei.jsp">查看所有类别</A><BR>
   <%
  	String	st = (String)session.getAttribute("adminisLogin");
  	if(st =="1")
  	{
  	%>
  		 <A href="newindex/geiAlldelleibei.jsp">删除类别</A><BR>
  		 <A href="newindex/addleibie.jsp">添加类别</A><BR>
  		 <A href="newindex/upyonghu.jsp">修改用户权限</A>
  	<%
  	}
  %>
  </DIV>
  
  <HR> 
  <FORM name="form1" action="ation/ationQueryCatid.jsp" method="post">
  
  按产品的类别查询:<select name="select">
    			<%
    				while(itr.hasNext())
    				{
    					breedBean s = (breedBean)itr.next();
    					String d = s.getBreedName();
    				%>
    					<option value="<%=d%>" ><%=d%></option>
    					
    				<%
    				}
    			%>
    			
    			</select>
					
  <INPUT type="submit" value="查询">
  </FORM>
  </body>
</html>

⌨️ 快捷键说明

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