网上订餐系统__前台界面_第1页
网上订餐系统__前台界面_第2页
网上订餐系统__前台界面_第3页
网上订餐系统__前台界面_第4页
已阅读5页,还剩34页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、前台界面是用HTML实现,具体代码功能如下:Login.jsp文件:用于客户的登录<% page language= "java"pageEncoding= "UTF-8" %><%String path = request.getContextPath();String basePath = request.getScheme() +":/"+ request.getServerName() +":"+ request.getServerPort()+ path +"/"%&

2、gt;<! DOCTYPEHTML PUBLIC"-/W3C/DTD HTML 4.01 Transitional/EN">< html>< head >< basehref=" <%=basePath %>" >< title> 登录页面 </ title>< metahttp-equiv="pragma"content= "no-cache">< metahttp-equiv="cache-contr

3、ol"content= "no-cache">< metahttp-equiv="expires"content="0">< metahttp-equiv="keywords"content= "keyword1,keyword2,keyword3">< metahttp-equiv="description"content= "This is my page">< styletype= "

4、;text/css">bodybackground-image: url(images/background/6.jpg);background-repeat: repeat-x;</ style></ head>< bodybgcolor=lightblue>< a href= dkcanting.jsp> 返回首页 </ a >< formname ="form1"action="UserServlet?method=login"method= "post&q

5、uot; >< tablewidth= "200"border="1"align = center><tr>< td colspan = "2" >登录窗口 </ td ><tr >< td >用户名 </ td >< td >< inputtype="text"name ="User_ID"size= "10"></ td ></ tr >

6、;<tr>< td >密码 </ td >< td >< inputtype="password"name = "Password"size="10"></ td ></ tr ><tr>< tdcolspan= "2">< inputtype="submit"name ="submit"value=" 登录" >< ahref=&

7、quot;register.jsp">注册新用户</ a ></ td ></ tr ></table></form></ body></html>Login_admin.jsp文件:用于管理员的登录<% page language= "java"pageEncoding= "UTF-8" %><%String path = request.getContextPath();String basePath = request.getSch

8、eme() +":/"+ request.getServerName() +":" + request.getServerPort()+ path +"/"%><! DOCTYPEHTML PUBLIC"-/W3C/DTD HTML 4.01 Transitional/EN">< html>< head >< basehref=" <%=basePath%>" >< title> 登录页面 </ title>

9、;< metahttp-equiv="pragma"content= "no-cache">< metahttp-equiv="cache-control"content= "no-cache">< metahttp-equiv="expires"content="0">< metahttp-equiv="keywords"content= "keyword1,keyword2,keyword3"

10、;>< metahttp-equiv="description"content= "This is my page">< styletype= "text/css">bodybackground-image: url(images/background/6.jpg);background-repeat: repeat-x;</ style></ head>< bodybgcolor=lightblue>< formname ="form1"ac

11、tion="UserServlet?method=login_admin"method= "post" >< tablewidth= "200"border="1"align = center><tr>< td colspan = "2" >管理员登录 </ td ><tr >< td >用户名 </ td >< td >< inputtype="text"name =

12、"User_ID"size= "10"></ td ></ tr ><tr>< td >密码 </ td >< td >< inputtype="password"name = "Password"size="10"></ td ></ tr ><tr></ tr</ table</ form ></ body ></ html&

13、gt;< td>>colspan= "2">< inputtype="submit"name ="submit"value=" 登录" ></ td >Register.jsp文件:用于客户的注册<% pagelanguage= "java"pageEncoding= "UTF-8"%><%String path = request.getContextPath();String basePath = requ

14、est.getScheme() + + request.getServerName() +":"":/"+ request.getServerPort()+ path +"/"%><! DOCTYPE HTML PUBLIC"-/W3C/DTD HTML 4.01 Transitional/EN">< html>< head >< basehref=" <%=basePath%>" >< title> 注册页面 <

15、;/ title>< metahttp-equiv="pragma"content= "no-cache">< metahttp-equiv="cache-control"content= "no-cache">< metahttp-equiv="expires"content="0">< metahttp-equiv="keywords"content= "keyword1,keyword2,ke

16、yword3"< metahttp-equiv="description"content= "This is my page">< styletype= "text/css">body background-image: url(images/background/6.jpg);background-repeat: repeat-x;></ style></ head >< bodybgcolor=lightblue>< ahref= dkcanting

17、.jsp> 返回首页 </ a >< formname ="form1"action="UserServlet?method=register"< tablewidth= "200"border="1"align= center><tr>< tdcolspan= "2">注册窗口 </ td >< tr ><td >用户名 </ td >< td >< inputtype

18、="text"name ="User_ID"size</ tr ><tr>< td >密码 </ td >< td >< inputtype="password"name = "Password1"</ tr >= "10"sizemethod= "post"></ td >= "10"></ td >><tr</ tr>

19、;< td >确认密码< td >< input></ td >type="password"name = "Password2"size= "10"></ td >< tr >< td >联系电话 </ td ></ tr< td >< input>type="text"name ="User_Tel"size= "10"></ t

20、d >< tr >< td >送餐地址 </ td >< td >< inputtype ="text"name ="User_Address"size ="10"></ td ></tr><tr>< tdcolspan= "4"align=center >< inputtype = "submit"name ="submit"value =" 注

21、册 " ></ td ></tr></table></form></ body></html>Admin_center.jsp文件:管理员中心界面,管理全部信息<% page language= "java"pageEncoding= "UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme() +":/"+ requ

22、est.getServerName() +":" + request.getServerPort()+ path +"/" ;%><! DOCTYPEHTMLPUBLIC"-/W3C/DTD HTML 4.01 Transitional/EN">< html>< head >< basehref=" <%=basePath%>" >< title> 管理员 </ title>< metahttp-equiv="

23、pragma"content= "no-cache">< metahttp-equiv="cache-control"content= "no-cache">< metahttp-equiv="expires"content="0">< metahttp-equiv="keywords"content= "keyword1,keyword2,keyword3">< metahttp-equiv=&q

24、uot;description"content= "This is my page">< styletype= "text/css">body background-image: url(images/background/6.jpg);background-repeat: repeat-x;</ style></ head >< bodybgcolor=lightyellowtext= blacklink = red alink=greenvlink=blue>< palign=ri

25、ght><%String n = (String)session.getAttribute("User_ID");if(n =null)%><ahref= "login_admin.jsp"> 登录 </ a ><%else %>< formname = "form1"action="UserServlet?method=logout_admin"method= "post">欢迎你, <%= session.getAttr

26、ibute("User_ID") %><inputtype="submit"name = "submit"value=" 退出" ></ form ><% %>< table>< tr>< td>< formname ="form2"action="Dish_copyServlet?method=type"method="post">< selectname =

27、Type_Name>< option>面食< option>川菜< option>粤菜< option>鲁菜< option>浙菜< option>徽菜< option>闽菜< option>湘菜< option>苏菜</ select>< p ><inputtype=submitvalue = " 搜索 " ></form></td></table>< formname = &quo

28、t;form2"action= "Dish_copyServlet?method=select"method = "post">< palign=center><inputtype="text"name ="Dish_Name"size="40"><inputtype="submit"name = "submit"value="DK 一下 " ></ p ></for

29、m>< br >< br >< br >< br >< center>< formaction= "dingdan.jsp"method= "get">< inputtype="submit"name ="button"value =" 查看订单 "id ="button"style=" width: 150px ; height: 30px ;"></form

30、></center ></ body ></html>Detail.jsp文件:用于查看美食的详细信息,在此页面可以提交订单<% pagelanguage= "java"import="java.util.*"pageEncoding="UTF-8" %><% pagelanguage= "java"import=%><%String path = request.getContextPath();String basePath = reque

31、st.getScheme() +":/"+ request.getServerName() +":"+ request.getServerPort()+ path +"/"%><! DOCTYPEHTML PUBLIC"-/W3C/DTD HTML 4.01 Transitional/EN">< html>< head >< basehref=" <%=basePath%>" >< title> 管理员 </ t

32、itle>< metahttp-equiv="pragma"content= "no-cache">< metahttp-equiv="cache-control"content= "no-cache">< metahttp-equiv="expires"content="0">< metahttp-equiv="keywords"content= "keyword1,keyword2,keywor

33、d3">< metahttp-equiv="description"content= "This is my page">< styletype= "text/css">bodybackground-image: url(images/background/6.jpg);background-repeat: repeat-x;</style></ head >< bodybgcolor=lightyellowtext= blacklink= red alink=gr

34、eenvlink =blue >< palign=right><%String n = (String)session.getAttribute("User_ID");if(n =null)%><ahref= "login_admin.jsp"> 登录 </ a ><%else %>< formname = "form1"action="UserServlet?method=logout_admin"method= "post&quo

35、t;>欢迎你, <%= session.getAttribute("User_ID") %><inputtype="submit"name = "submit"value=" 退出" ></ form><% %>< table>< tr>< td>< formname ="form2"action="Dish_copyServlet?method=type"method =&quo

36、t;post">< selectname =Type_Name >< option>面食< option>川菜< option>粤菜< option>鲁菜< option>浙菜< option>徽菜< option>闽菜< option>湘菜< option>苏菜</ select>< p ><inputtype=submitvalue=" 搜索" ></form></td><

37、;/table>< formname = "form2"action= "Dish_copyServlet?method=select"method = "post">< palign =center><inputtype="text"name ="Dish_Name"size="40" ><inputtype="submit"name = "submit"value="DK 一

38、下 "></ p ></form>< br >< br >< center >< formaction= "OrderServlet?method=fahuo"method= "post"< tableborder="1"><%String Order_ID=(String) session.getAttribute("Order_ID"List<Orderdish> list=new ArrayList

39、<Orderdish>();OrderBean orderBean=new OrderBean();list = orderBean.getOrderdish1(Order_ID);for( inti=0;i<list.size();i+)%><tr>>);<td ><inputtype= "hidden"name = "Order_ID"value=" <%=list.get(i).getOrder_ID()%>" ></ td><td

40、>< imgsrc= " <%=list.get(i).getUrl()%>"height = "40px"width ="60px"></ td><td >菜品编号:<%=list.get(i).getDish_ID()%></ td><td >菜名: <%=list.get(i).getDish_Name()%></ td><td >类型: <%=list.get(i).getType_ID()%&g

41、t;</ td><td >价格: <%=list.get(i).getDish_Name()%></ td></tr><%></table>< inputtype="submit"name = "submit"value = "发货"style=" width: 100px; height: 30px ;"></form>< br >< br ></ center><

42、/ body ></ html>Dingdan.jsp文件:管理员查看订单详情<% pagelanguage= "java"importpageEncoding="UTF-8"%><% pagelanguage= "java"import=%><%String path = request.getContextPath();String basePath = request.getScheme() + + request.getServerName() +":"&qu

43、ot;:/"+ request.getServerPort()+ path +"/"%><! DOCTYPE HTML PUBLIC< html>< head >"-/W3C/DTD HTML 4.01 Transitional/EN">< basehref =" <%=basePath%>" >< title> 查询结果页面 </ title>< metahttp-equiv="pragma"content=

44、 "no-cache">< metahttp-equiv="cache-control"content= "no-cache">< metahttp-equiv="expires"content="0">< metahttp-equiv="keywords"content= "keyword1,keyword2,keyword3">< metahttp-equiv="description"

45、;content= "This is my page">< styletype= "text/css">body background-image: url(images/background/6.jpg);background-repeat: repeat-x;</style></ head >< body >< bodybgcolor =lightyellowtext= blacklink= red alink=greenvlink=blue>< ahref= "adm

46、in_center.jsp"> 返回首页 </a>< palign=right><%String n = (String)session.getAttribute("User_ID");if(n =null)%><ahref= "login_admin.jsp"> 登录 </ a ><%else %>< formname = "form1"action="UserServlet?method=logout_admin"me

47、thod= "post" >欢迎你, <%= session.getAttribute("User_ID") %><inputtype="submit"name = "submit"value =" 退出 " ></ form ><% %>< table>< tr>< td>< formname ="form2"action="Dish_copyServlet?metho

48、d=type"method="post">< selectname =Type_Name>< option>面食< option>川菜< option>粤菜< option>鲁菜< option>浙菜< option>徽菜< option>闽菜< option>湘菜< option>苏菜</ select>< p ><inputtype=submitvalue= " 搜索 " ><

49、;/ form ></ td ></ table>< formname = "form2"action= "Dish_copyServlet?method=select"< palign=center><inputtype="text"name ="Dish_Name"size="40"><inputtype="submit"name = "submit"value="DK 一下 "></ p ></ form >method= "post">< br >< br >< center > <%List<Order> list=new ArrayList<Order>();OrderBean orderBean=new OrderBean();list = orderBean.getOrd();for( inti=0;i<list.size();i+)%><formaction= "Ord

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论