为什么我在这个工程里在别的界面写的jQuery都好用,但是写在这个界面上时就不好用,求教大家!<%@page import="com.kingland.lunchbox.admin.vo.Admin"%><%@page import="com.kingland.lunchbox.order.vo.Order"%><%@page import="com.kingland.lunchbox.menu.vo.Menu"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import="java.util.*"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@page import="com.kingland.lunchbox.restaurant.vo.Restaurant"%> <% String path = request.getContextPath(); %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Restaurant Introduction</title><style>#INDEXT_RB_AD { clear: both; width: 500px; height: 700px; z-index: 1000; overflow: hidden; border: 1px #ccc solid; top: 0px; right: 5px; position: fixed !important; _position: absolute;}</style><link href="css/bootstrap.min.css" rel="stylesheet"></head><body style="overflow-x: hidden"><% String name =""; String address=""; String telphone=""; String introduction=""; String contactor=""; Object oobj = session.getAttribute("restaurant"); if(oobj!=null){ Restaurant restaurant = (Restaurant)oobj; name=restaurant.getName(); address = restaurant.getAddress(); telphone = Integer.toString(restaurant.getTelephone()); introduction = restaurant.getIntroduction(); contactor = restaurant.getContactor(); }%> <br/><br/> <p>Restaurant Name:<%=name %></p> <p>Address:<%=address %></p> <p>Telphone:<%=telphone %></p> <p>Introduction:<%=introduction %></p> <p>KSD Contactor:<%=contactor %></p> <hr align="left" style="width:1000px;"> <ul class="nav nav-pills" role="tablist" id="feature-tab"> <li class="active"><a href="#tab-Mon" role="tab" data-toggle="tab">Mon</a></li> <li><a href="#tab-Tue" role="tab" data-toggle="tab">Tue</a></li> <li><a href="#tab-Wed" role="tab" data-toggle="tab">Wed</a></li> <li><a href="#tab-Thu" role="tab" data-toggle="tab">Thu</a></li> <li><a href="#tab-Fri" role="tab" data-toggle="tab">Fri</a></li> </ul><br/><br/><script type="text/javascript">function checkLogin(){ var objectLogin = <%=session.getAttribute("admin")%>; if(objectLogin == null){ parent.location.href="login.jsp"; }}$(document).ready(function(){ $("#INDEXT_RB_AD").hide(); // $("input").click(function(){ $("#INDEXT_RB_AD").show();;});});</script> <div id="INDEXT_RB_AD" style="border:0;"> <div align="right" onclick="document.getElementById('INDEXT_RB_AD').style.display = 'none';">close</div> <div> <% String Display_name = ""; String email=""; Object obj = session.getAttribute("admin"); if(obj != null){ Admin admin = (Admin)obj; Display_name = admin.getDisplayName(); email=admin.getEmail(); %> <% }%> <h4>logged in as:<%=Display_name %>/<a href="loginout.jsp" target="_top">login out</a></h4> ${abc.name }<div class="panel panel-default"> <div class="panel-heading">My Ordered Lunch</div> <div class="panel-body"> <% String image_name = ""; String menuname = ""; int price=0; String reataurantname =""; int menuid=0; String orderdate=""; Object objj = session.getAttribute("menu"); if(objj!=null){ Menu menu = (Menu)objj; image_name = menu.getImage_name(); menuname = menu.getName(); price = menu.getPrice(); reataurantname = menu.getRestaurant().getName(); menuid = menu.getId(); orderdate = menu.getServe_day_of_wk(); } %> <img class="feature-image img-responsive" src="<%=image_name %>"> <br/> <p>Res.nt:<%=reataurantname %></p> <p>Menu:<%=menuname %></p> <p>Price:<%=price %></p> <br/><br/> <div class="text-center"> <form action="main.jsp" method="post"> <input class="btn-primary" type="submit" value="Cancel Order" formtarget="_blank" onclick="return confirm('Are you sure cancel?');"/> </form> <br/><br/> <form action="<%=path %>/OrderInitAddServlet?menuid=<%=menuid %>&email=<%=email %>&orderdate=<%=orderdate %>" method="post"> <input class="btn-primary" type="submit" formtarget="_blank" value="See all Orders"/> </form> </div> </div> </div> </div> </div><script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script></body></html>
目前暂无任何回答
- 0 回答
- 0 关注
- 2030 浏览
添加回答
举报
0/150
提交
取消