当前位置:   article > 正文

JAVAWEB项目页面设计之网上商城JSP页面设计一------JavaWeb_网站商城页面的web

网站商城页面的web
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>修改密码</title>
  7. <link rel="stylesheet" type="text/css" href="style.css"/>
  8. <link rel="stylesheet" type="text/css" href="login.css"/>
  9. </head>
  10. <body>
  11. <div class="reg">
  12. <form action="/controller.RegisterServlet" method="post">
  13. <h1><a href="index.jsp"><img src="imgs/logo.png"></a></h1>
  14. <p>修改密码</p>
  15. <p><input type="text" name="email" placeholder="请输入邮箱" required></p>
  16. <p><input type="password" name="password" placeholder="请输入新密码" required></p>
  17. <p><input type="password" name="password" placeholder="请确认新密码" required></p>
  18. <p class="txtL txt"><input class="code" type="text" name="" value="" placeholder="验证码" required><img src="imgs/code.jpg"></p>
  19. <p><input type="submit" name="" value="确认新密码"></p>
  20. <p class="txtL txt">完成此修改,即表明您同意了我们的<a href="#">使用条款和隐私策略</a></p>
  21. <p class="txt"><a href="login.jsp"><span></span>已有账号登录</a></p>
  22. </form>
  23. </div>
  24. </body>
  25. </html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <title>修改密码</title>
      <link rel="stylesheet" type="text/css" href="style.css"/>
      <link rel="stylesheet" type="text/css" href="login.css"/>
   </head>
   <body>
      <div class="reg">
         <form action="/controller.RegisterServlet" method="post">
            <h1><a href="index.jsp"><img src="imgs/logo.png"></a></h1>
            <p>修改密码</p>
            <p><input type="text" name="email" placeholder="请输入邮箱" required></p>
            <p><input type="password" name="password" placeholder="请输入新密码" required></p>
            <p><input type="password" name="password" placeholder="请确认新密码" required></p>
            <p class="txtL txt"><input class="code" type="text" name="" value="" placeholder="验证码" required><img src="imgs/code.jpg"></p>
            <p><input type="submit" name="" value="确认新密码"></p>
            <p class="txtL txt">完成此修改,即表明您同意了我们的<a href="#">使用条款和隐私策略</a></p>
            <p class="txt"><a href="login.jsp"><span></span>已有账号登录</a></p>
         </form>
      </div>
   </body>
</html>
  1. <%@ page import="bean.user" %>
  2. <%@ page import="java.util.HashMap" %>
  3. <%@ page import="java.util.Map" %>
  4. <%@ page import="java.util.Iterator" %>
  5. <%@ page import="bean.product" %>
  6. <%@ page import="java.util.ArrayList" %>
  7. <%@ page import="Service.Food" %>
  8. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  9. <%user user = (bean.user) session.getAttribute("user");%>
  10. <%ArrayList arrayList = (ArrayList)session.getAttribute("Food");%>
  11. <!DOCTYPE html>
  12. <html>
  13. <head>
  14. <meta charset="utf-8">
  15. <title>美食列表</title>
  16. <link rel="stylesheet" type="text/css" href="style.css"/>
  17. <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
  18. <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
  19. <script type="text/javascript" src="js/menu.js"></script>
  20. <script type="text/javascript" src="js/n_nav.js"></script>
  21. <script type="text/javascript" src="js/toptop.js"> </script>
  22. </head>
  23. <body>
  24. <!-- Head Begin -->
  25. <div class="headbg">
  26. <div class="head">
  27. <!-- Begin 所在收货地址 -->
  28. <!-- 用<span> 来组合行内元素 -->
  29. <span class="head_city_back">
  30. <span class="fl">送货至:&nbsp;</span>
  31. <span class="head_city">
  32. <span></span>
  33. <div class="head_city_bg">
  34. <div class="head_city_temp"></div>
  35. <div class="head_city_common">
  36. <h2>请选择所在的收货地区</h2>
  37. <table class="common_table" border="0" cellpadding="0" cellspacing="0" style="width: 235px; margin-top: 10px;">
  38. <tr>
  39. <th>A</th>
  40. <td class="common_head"><span>安徽</span><span>澳门</span></td>
  41. </tr>
  42. <tr>
  43. <th>B</th>
  44. <td class="common_head"><span>北京</span></td>
  45. </tr>
  46. <tr>
  47. <th>C</th>
  48. <td class="common_head"><span>重庆</span></td>
  49. </tr>
  50. <tr>
  51. <th>F</th>
  52. <td class="common_head"><span>福建</span></td>
  53. </tr>
  54. <tr>
  55. <th>G</th>
  56. <td class="common_head"><span>广东</span><span>广西</span><span>贵州</span><span>甘肃</span></td>
  57. </tr>
  58. <tr>
  59. <th>H</th>
  60. <td class="common_head"><span>河北</span><span>河南</span><span>黑龙江</span><span>海南</span><span>湖北</span><span>湖南</span></td>
  61. </tr>
  62. <tr>
  63. <th>J</th>
  64. <td class="common_head"><span>江苏</span><span>吉林</span><span>江西</span></td>
  65. </tr>
  66. <tr>
  67. <th>L</th>
  68. <td class="common_head"><span>辽宁</span></td>
  69. </tr>
  70. <tr>
  71. <th>N</th>
  72. <td class="common_head"><span>内蒙古</span><span>宁夏</span></td>
  73. </tr>
  74. <tr>
  75. <th>Q</th>
  76. <td class="common_head"><span>上海</span><span>山东</span><span>山西</span><span>四川</span><span>陕西</span></td>
  77. </tr>
  78. <tr>
  79. <th>T</th>
  80. <td class="common_head"><span>台湾</span><span>天津</span></td>
  81. </tr>
  82. <tr>
  83. <th>X</th>
  84. <td class="common_head"><span>西藏</span><span>香港</span><span>新疆</span></td>
  85. </tr>
  86. <tr>
  87. <th>Y</th>
  88. <td class="common_head"><span>云南</span></td>
  89. </tr>
  90. <tr>
  91. <th>Z</th>
  92. <td class="common_head"><span class="common_check">浙江</span></td>
  93. </tr>
  94. </table>
  95. </div>
  96. </div>
  97. </span>
  98. </span>
  99. <!-- End 收货所在地 -->
  100. <!-- Begin 任务栏 -->
  101. <span class="fr">
  102. <%
  103. if(!(user == null))
  104. {
  105. out.println("\t\t\t\t\t<span class=\"fl\">\n" +
  106. "\t\t\t\t\t\t<a href=\"information.jsp\">");
  107. out.println("欢迎回来!" + user.getName());
  108. out.println("</a>\n" +
  109. "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
  110. "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
  111. "\t\t\t\t\t\t |\n" +
  112. "\n" +
  113. "\t\t\t\t\t</span>");
  114. }
  115. else
  116. {
  117. out.println("\t\t\t\t\t<span class=\"fl\">\n" +
  118. "\t\t\t\t\t\t<a href=\"login.jsp\">你好,请登录&nbsp;</a>\n" +
  119. "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
  120. "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
  121. "\t\t\t\t\t\t |\n" +
  122. "\n" +
  123. "\t\t\t\t\t</span>");
  124. }
  125. %>
  126. <span class="headshow">
  127. <div class="headshow_list">
  128. <a href="#">收藏夹</a>
  129. <div class="headshow_list_bg">
  130. <div class="head_city_temp"></div>
  131. <div class="headshow_list_common">
  132. <ul>
  133. <li>
  134. <a href="#">收藏的宝贝</a>
  135. </li>
  136. <li>
  137. <a href="#">收藏的店铺</a>
  138. </li>
  139. </ul>
  140. </div>
  141. </div>
  142. </div>
  143. <%
  144. if(!(user == null))
  145. {
  146. out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
  147. "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
  148. "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
  149. "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
  150. "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
  151. "\t\t\t\t\t\t\t\t\t<ul>\n" +
  152. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  153. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"personcenter.jsp\">个人中心</a>\n" +
  154. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  155. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  156. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
  157. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  158. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  159. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
  160. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  161. "\t\t\t\t\t\t\t\t\t</ul>\n" +
  162. "\t\t\t\t\t\t\t\t</div>\n" +
  163. "\t\t\t\t\t\t\t</div>\n" +
  164. "\t\t\t\t\t\t</div>");
  165. }
  166. else
  167. {
  168. out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
  169. "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
  170. "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
  171. "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
  172. "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
  173. "\t\t\t\t\t\t\t\t\t<ul>\n" +
  174. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  175. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" id=\"not_admin\">个人中心</a>\n" +
  176. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  177. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  178. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
  179. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  180. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  181. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
  182. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  183. "\t\t\t\t\t\t\t\t\t</ul>\n" +
  184. "\t\t\t\t\t\t\t\t</div>\n" +
  185. "\t\t\t\t\t\t\t</div>\n" +
  186. "\t\t\t\t\t\t</div>");
  187. }
  188. %>
  189. <div class="headshow_list">
  190. <a href="#">网站导航</a>
  191. <div class="headshow_list_bg">
  192. <div class="head_city_temp"></div>
  193. <div class="headshow_list_common">
  194. <ul>
  195. <li>
  196. <a href="#">主题市场</a>
  197. </li>
  198. <li>
  199. <a href="newidea.jsp">创意市场</a>
  200. </li>
  201. <li>
  202. <a href="#">精彩推荐集</a>
  203. </li>
  204. </ul>
  205. </div>
  206. </div>
  207. </div>
  208. </span>
  209. <span class="fl">
  210. | 关注我们:
  211. </span>
  212. <span class="show_style">
  213. <a href="#" class="style1">新浪</a>
  214. <a href="#" class="style2">微信</a>
  215. </span>
  216. <span class="fr">
  217. |
  218. <a href="#">
  219. 手机版
  220. <img src="imgs/s_tel.png" align="absmiddle">
  221. </a>
  222. </span>
  223. </span>
  224. </div>
  225. </div>
  226. <!-- End 任务栏 -->
  227. <!-- Begin 任务栏下面 logo 搜索 购物车-->
  228. <div class="top">
  229. <div class="logo">
  230. <a href="index.jsp">
  231. <img src="imgs/logo.png" >
  232. </a>
  233. </div>
  234. <div class="search">
  235. <form action="">
  236. <input type="text" value="" class="search_input" />
  237. <input type="submit" value="搜索" class="search_button" />
  238. </form>
  239. <span class="f1">
  240. <a href="#">蛋糕</a>
  241. <a href="#">咖啡</a>
  242. <a href="#">新鲜美食</a>
  243. <a href="#">日用品</a>
  244. </span>
  245. </div>
  246. <div class="info_car">
  247. <div class="car_temp">购物车 [ <span>
  248. <%
  249. if(!(user == null))
  250. {
  251. out.println(user.getShoppingCart().getCart().size());
  252. }
  253. else
  254. {
  255. out.println(0);
  256. }
  257. %>
  258. </span> ]</div>
  259. <div class="car_bg">
  260. <%
  261. if(!(user == null))
  262. {
  263. out.println("<ul class=\"cars\">");
  264. HashMap map = user.getShoppingCart().getCart();
  265. Iterator iterator = map.entrySet().iterator();
  266. double count = 0.0;
  267. int num = 0;
  268. while(iterator.hasNext())
  269. {
  270. Map.Entry entry = (Map.Entry)iterator.next();
  271. out.println("\t\t\t\t<li>\n" +
  272. "\t\t\t\t\t<div class=\"img\">\n" +
  273. "\t\t\t\t\t\t<a href=\"#\">\n" +
  274. "\t\t\t\t\t\t\t<img src=\"imgs/fre_2.jpg\" width=\"58\" height=\"58\" >\n" +
  275. "\t\t\t\t\t\t</a>\n" +
  276. "\t\t\t\t\t</div>\n" +
  277. "\t\t\t\t\t<div class=\"name\">\n" +
  278. "\t\t\t\t\t\t<a href=\"#\">");
  279. product product = (bean.product)entry.getKey();
  280. count = count + (product.getPrice() * (int)entry.getValue());
  281. out.println(product.getProduct_name() + "</a>\n" +
  282. "\t\t\t\t\t</div>\n" +
  283. "\t\t\t\t\t<div class=\"price\">\n" +
  284. "\t\t\t\t\t\t<font color=\"#FF4E00\">&nbsp;&nbsp;¥");
  285. out.println(product.getPrice() + "</font>X" + entry.getValue() + "</div></li>");
  286. num++;
  287. }
  288. if(num == 0)
  289. {
  290. out.println("\t\t\t<div class=\"un_login\">\n" +
  291. "\t\t\t\t还没有商品呢!\n" +
  292. "\t\t\t\t<a href=\"food.jsp\" style=\"color: #FF4E00;\">现在就去选购</a>\n" +
  293. "\t\t\t\t心怡的商品!\n" +
  294. "\t\t\t</div>");
  295. }
  296. else
  297. {
  298. out.println("\t\t\t</ul>");
  299. out.println("\t\t\t<div class=\"price_sum\">\n" +
  300. "\t\t\t\t共计\n" +
  301. "\t\t\t\t<font color=\"#FF4E00\"> ¥</font>\n" +
  302. "\t\t\t\t<span>");
  303. out.println(count);
  304. out.println("</span>\n" +
  305. "\t\t\t</div>\n" +
  306. "\t\t\t<div class=\"price_account\">\n" +
  307. "\t\t\t\t<a href=\"buycar.jsp\">去购物车结算</a>\n" +
  308. "\t\t\t</div>");
  309. }
  310. }
  311. else
  312. {
  313. out.println("\t\t\t<div class=\"un_login\">\n" +
  314. "\t\t\t\t还未登录!\n" +
  315. "\t\t\t\t<a href=\"login.jsp\" style=\"color: #FF4E00;\">马上登录</a>\n" +
  316. "\t\t\t\t查看购物车!\n" +
  317. "\t\t\t</div>");
  318. }
  319. %>
  320. <!--End 购物车已登录-->
  321. </div>
  322. </div>
  323. </div>
  324. <!--End Head-->
  325. <!--Begin Menu -->
  326. <div class="menu_bg">
  327. <div class="menu">
  328. <!--Begin 商品分类详情 Begin-->
  329. <div class="nav">
  330. <div class="nav_t">全部商品分类</div>
  331. <div class="leftNav none">
  332. <ul>
  333. <li>
  334. <div class="fj">
  335. <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
  336. <span class="fl">进口食品、生鲜</span>
  337. </div>
  338. <div class="zj">
  339. <div class="zj_l">
  340. <div class="zj_l_c">
  341. <h2>零食 / 糖果 / 巧克力</h2>
  342. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  343. href="#">巧克力</a>|
  344. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  345. href="#">红枣</a>|
  346. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  347. </div>
  348. <div class="zj_l_c">
  349. <h2>零食 / 糖果 / 巧克力</h2>
  350. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  351. href="#">巧克力</a>|
  352. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  353. href="#">红枣</a>|
  354. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  355. </div>
  356. <div class="zj_l_c">
  357. <h2>零食 / 糖果 / 巧克力</h2>
  358. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  359. href="#">巧克力</a>|
  360. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  361. href="#">红枣</a>|
  362. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  363. </div>
  364. <div class="zj_l_c">
  365. <h2>零食 / 糖果 / 巧克力</h2>
  366. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  367. href="#">巧克力</a>|
  368. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  369. href="#">红枣</a>|
  370. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  371. </div>
  372. <div class="zj_l_c">
  373. <h2>零食 / 糖果 / 巧克力</h2>
  374. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  375. href="#">巧克力</a>|
  376. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  377. href="#">红枣</a>|
  378. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  379. </div>
  380. <div class="zj_l_c">
  381. <h2>零食 / 糖果 / 巧克力</h2>
  382. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  383. href="#">巧克力</a>|
  384. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  385. href="#">红枣</a>|
  386. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  387. </div>
  388. </div>
  389. <div class="zj_r">
  390. <a href="#"><img src="imgs/food_b1.jpg" width="236" height="200" /></a>
  391. <a href="#"><img src="imgs/food_b2.jpg" width="236" height="200" /></a>
  392. </div>
  393. </div>
  394. </li>
  395. <li>
  396. <div class="fj">
  397. <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
  398. <span class="fl">食品、饮料、酒</span>
  399. </div>
  400. <div class="zj" style="top:-40px;">
  401. <div class="zj_l">
  402. <div class="zj_l_c">
  403. <h2>零食 / 糖果 / 巧克力2</h2>
  404. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  405. href="#">巧克力</a>|
  406. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  407. href="#">红枣</a>|
  408. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  409. </div>
  410. <div class="zj_l_c">
  411. <h2>零食 / 糖果 / 巧克力</h2>
  412. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  413. href="#">巧克力</a>|
  414. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  415. href="#">红枣</a>|
  416. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  417. </div>
  418. </div>
  419. <div class="zj_r">
  420. <a href="#"><img src="imgs/fre_b1.jpg" width="236" height="200" /></a>
  421. <a href="#"><img src="imgs/fre_b2.jpg" width="236" height="200" /></a>
  422. </div>
  423. </div>
  424. </li>
  425. </ul>
  426. </div>
  427. </div>
  428. <!--End 商品分类详情 End-->
  429. <ul class="menu_r">
  430. <li><a href="index.jsp">首页</a></li>
  431. <li><a href="/controller.FoodServlet">美食</a></li>
  432. <li><a href="#">生鲜</a></li>
  433. <li><a href="#">团购</a></li>
  434. </ul>
  435. <div class="m_ad">双十一送好礼!</div>
  436. </div>
  437. </div>
  438. <!--End Menu-->
  439. <!--------content1--------->
  440. <div class="imgList1" >
  441. <div class="wrapper">
  442. <div class="nbnb-left" style="margin-left: -150px;">
  443. <div class="nbnb2">
  444. <form>
  445. <br>
  446. <h4>选择你喜欢的品牌 :</h4>
  447. <input type="checkbox" name="品牌" value="color 1" />
  448. <a href=""> DANISA/皇冠</a><br />
  449. <input type="checkbox" name="品牌" value="color2" />
  450. <a href=""> Three Squirrels/三只松鼠</a><br />
  451. <input type="checkbox" name="品牌" value="color3" />
  452. <a href=""> 良品铺子</a><br />
  453. <input type="checkbox" name="品牌" value="color4" />
  454. <a href=""> BE&CHEERY/百草味</a><br />
  455. <input type="checkbox" name="品牌" value="color5" />
  456. <a href=""> 魔法士</a><br />
  457. <input type="checkbox" name="品牌" value="color6" />
  458. <a href=""> 金鹏华泽</a><br />
  459. </form>
  460. </div>
  461. <div class="nbnb2">
  462. <form>
  463. <br>
  464. <h4>选择你喜欢吃的零食类型:</h4>
  465. <input type="checkbox" name="品牌" value="color 1" />
  466. <a href=""> 鸭肉类零食</a><br />
  467. <input type="checkbox" name="品牌" value="color2" />
  468. <a href=""> 膨化食品</a><br />
  469. <input type="checkbox" name="品牌" value="color3" />
  470. <a href=""> 传统糕点传统糕点</a><br />
  471. <input type="checkbox" name="品牌" value="color4" />
  472. <a href=""> 鱼系列</a><br />
  473. <input type="checkbox" name="品牌" value="color5" />
  474. <a href=""> 曲奇饼干</a><br />
  475. <input type="checkbox" name="品牌" value="color6" />
  476. <a href=""> 豆腐干</a><br />
  477. </form>
  478. </div>
  479. <br />
  480. <div class="nbnb2">
  481. <form>
  482. <h4>选择你喜欢的肉类产品 :</h4>
  483. <input type="checkbox" name="品牌" value="color 1" />
  484. <a href=""> 鸭掌全鸭</a><br />
  485. <input type="checkbox" name="品牌" value="color2" />
  486. <a href=""> 猪肉肠</a><br />
  487. <input type="checkbox" name="品牌" value="color3" />
  488. <a href=""> 鸭腿</a><br />
  489. <input type="checkbox" name="品牌" value="color4" />
  490. <a href=""> 猪肉脯</a><br />
  491. <input type="checkbox" name="品牌" value="color5" />
  492. <a href=""> 鸭脖鸭翅</a><br />
  493. </form>
  494. </div>
  495. <br />
  496. <div class="nbnb2">
  497. <form>
  498. <h4>选择你想要的省份特产:</h4>
  499. <input type="checkbox" name="颜色" value="color 1" />
  500. 广东省<br />
  501. <input type="checkbox" name="颜色" value="color2" />
  502. 江苏省<br />
  503. <input type="checkbox" name="颜色" value="color3" />
  504. 浙江省<br />
  505. <input type="checkbox" name="颜色" value="color4" />
  506. 安徽省<br />
  507. <input type="checkbox" name="颜色" value="color5" />
  508. 河南省<br />
  509. <input type="checkbox" name="颜色" value="color6" />
  510. 湖南省<br />
  511. <input type="checkbox" name="颜色" value="color6" />
  512. 福建省<br />
  513. </form>
  514. </div>
  515. <br />
  516. <div class="nbnb2">
  517. <form>
  518. <h4>选择折扣数:</h4>
  519. <input type="radio" name="颜色" value="color 1" />
  520. 9折<br />
  521. <input type="radio" name="颜色" value="color2" />
  522. 8折<br />
  523. <input type="radio" name="颜色" value="color3" />
  524. 7折<br />
  525. <input type="radio" name="颜色" value="color4" />
  526. 6折<br />
  527. <input type="radio" name="颜色" value="color5" />
  528. 5折<br />
  529. <input type="radio" name="颜色" value="color6" />
  530. 4折<br />
  531. <input type="radio" name="颜色" value="color6" />
  532. 3折<br />
  533. </form>
  534. </div>
  535. </div>
  536. <div class="nbnb-right" style=" margin-bottom: 300px;margin-top: -1050px;" >
  537. <div class="nbnb-top">
  538. <p> &nbsp; &nbsp; &nbsp; 所有商品:
  539. <%
  540. if(arrayList != null)
  541. {
  542. out.println(arrayList.size());
  543. }
  544. else
  545. {
  546. out.println(0);
  547. }
  548. %>件 &nbsp; &nbsp; &nbsp;
  549. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  550. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  551. &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  552. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  553. 分类:<a href="#">流行</a> &nbsp;| &nbsp;<a href="#">最新</a> &nbsp;|&nbsp;<a href="#">折扣</a>&nbsp;|&nbsp;<a href="#">价格从低到高</a></p>
  554. </div>
  555. <%
  556. if(!((ArrayList)session.getAttribute("Food") == null))
  557. {
  558. arrayList = (ArrayList)session.getAttribute("Food");
  559. }
  560. else
  561. {
  562. arrayList = new Food().getFoodList();
  563. }
  564. int count = 0;
  565. int i;
  566. product product = null;
  567. for (i = 0; i < arrayList.size(); i++)
  568. {
  569. product = (bean.product) arrayList.get(i);
  570. if(count == 0)
  571. {
  572. out.println("<ul style=\"margin-right: 150px;\">");
  573. }
  574. if(count < 3)
  575. {
  576. out.println("<li><a href=\"/controller.ProductServlet?product_name=" + product.getProduct_name() + "\">");
  577. out.println("\t\t\t\t\t\t\t<dl>\n" +
  578. "\t\t\t\t\t\t\t\t<dt><img src=\"imgs/chide1.jpg\"/></dt>\n" +
  579. "\t\t\t\t\t\t\t\t<dd>");
  580. out.println(product.getProduct_name());
  581. out.println("</dd>\n" + "\t\t\t\t\t\t\t\t<dd>¥");
  582. out.println(product.getPrice());
  583. out.println("</dd>\n" +
  584. "\t\t\t\t\t\t\t</dl>\n" +
  585. "\t\t\t\t\t\t</a>\n" +
  586. "\t\t\t\t\t</li>");
  587. count++;
  588. if(count == 3)
  589. {
  590. count = 0;
  591. out.println("</ul>");
  592. }
  593. }
  594. }
  595. if(i == arrayList.size())
  596. {
  597. out.println("</ul>");
  598. }
  599. %>
  600. </div>
  601. </div>
  602. <!--返回顶部-->
  603. <div class="gotop">
  604. <a href="buycar.jsp">
  605. <dl>
  606. <dt><img src="imgs/gt1.png"/></dt>
  607. <dd>去购<br />物车</dd>
  608. </dl>
  609. </a>
  610. <%
  611. if(user == null)
  612. {
  613. out.println("<a href=\"#\" id=\"not_admin1\">\n" +
  614. "\t\t\t<dl>\n" +
  615. "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
  616. "\t\t\t\t<dd>个人<br />中心</dd>\n" +
  617. "\t\t\t</dl>\n" +
  618. "\t\t</a>");
  619. }
  620. else
  621. {
  622. out.println("<a href=\"personcenter.jsp\" >\n" +
  623. "\t\t\t<dl>\n" +
  624. "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
  625. "\t\t\t\t<dd>个人<br />中心</dd>\n" +
  626. "\t\t\t</dl>\n" +
  627. "\t\t</a>");
  628. }
  629. %>
  630. <a href="#" class="toptop">
  631. <dl>
  632. <dt><img src="imgs/gt4.png"/></dt>
  633. <dd>返回<br />顶部</dd>
  634. </dl>
  635. </a>
  636. </div>
  637. <!--Begin Footer-->
  638. <div class="behind_bottom_bg behind_bottom_common" style="margin-left: 0px;">
  639. <div class="behind_bottom">
  640. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  641. <tr>
  642. <td width="72"><img src="imgs/b1.png" width="62" height="62" /></td>
  643. <td>
  644. <h2>正品保障</h2>正品行货 放心购买
  645. </td>
  646. </tr>
  647. </table>
  648. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  649. <tr>
  650. <td width="72"><img src="imgs/b2.png" width="62" height="62" /></td>
  651. <td>
  652. <h2>满38包邮</h2>满38包邮 免运费
  653. </td>
  654. </tr>
  655. </table>
  656. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  657. <tr>
  658. <td width="72"><img src="imgs/b3.png" width="62" height="62" /></td>
  659. <td>
  660. <h2>天天低价</h2> 天天低价 畅选无忧
  661. </td>
  662. </tr>
  663. </table>
  664. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  665. <tr>
  666. <td width="72"><img src="imgs/b4.png" width="62" height="62" /></td>
  667. <td>
  668. <h2>准时送达</h2>收货时间由你做主
  669. </td>
  670. </tr>
  671. </table>
  672. </div>
  673. </div>
  674. <div class="behind_nav" style="margin-left: 230px;">
  675. <dl>
  676. <dt><a href="#">新手上路</a></dt>
  677. <dd><a href="#">售后流程</a></dd>
  678. <dd><a href="#">购物流程</a></dd>
  679. <dd><a href="#">订购方式</a></dd>
  680. <dd><a href="#">隐私声明</a></dd>
  681. <dd><a href="#">推荐分享说明</a></dd>
  682. </dl>
  683. <dl>
  684. <dt><a href="#">配送与支付</a></dt>
  685. <dd><a href="#">货到付款区域</a></dd>
  686. <dd><a href="#">配送支付查询</a></dd>
  687. <dd><a href="#">支付方式说明</a></dd>
  688. </dl>
  689. <dl>
  690. <dt><a href="#">会员中心</a></dt>
  691. <dd><a href="#">资金管理</a></dd>
  692. <dd><a href="#">我的收藏</a></dd>
  693. <dd><a href="#">我的订单</a></dd>
  694. </dl>
  695. <dl>
  696. <dt><a href="#">服务保证</a></dt>
  697. <dd><a href="#">退换货原则</a></dd>
  698. <dd><a href="#">售后服务保证</a></dd>
  699. <dd><a href="#">产品质量保证</a></dd>
  700. </dl>
  701. <dl>
  702. <dt><a href="#">联系我们</a></dt>
  703. <dd><a href="#">网站故障报告</a></dd>
  704. <dd><a href="#">购物咨询</a></dd>
  705. <dd><a href="#">投诉与建议</a></dd>
  706. </dl>
  707. <div class="behind_tell_bg" style="margin-right: 60px;">
  708. <a href="#" class="bottom_style1">新浪微博</a>
  709. <a href="#" class="bottom_style2">腾讯微博</a>
  710. <p>
  711. 服务热线:<br/>
  712. <span>400-123-4567</span>
  713. </p>
  714. </div>
  715. </div>
  716. <div class="bottom_bg">
  717. <div class="bottom">
  718. 备案/许可证编号:京ICP备120093xxxx号 Copyright © 2015-2019 进口商城商城网 All Rights Reserved. <br />
  719. <a href="#"> <img src="imgs/b_1.gif" width="98" height="33" > </a>
  720. <a href="#"> <img src="imgs/b_2.gif" width="98" height="33" > </a>
  721. <a href="#"> <img src="imgs/b_3.gif" width="98" height="33" > </a>
  722. <a href="#"> <img src="imgs/b_4.gif" width="98" height="33" > </a>
  723. <a href="#"> <img src="imgs/b_5.gif" width="98" height="33" > </a>
  724. <a href="#"> <img src="imgs/b_6.gif" width="98" height="33" > </a>
  725. </div>
  726. </div>
  727. <script>
  728. document.getElementById("not_admin").onclick = function not_admin()
  729. {
  730. alert("您需要先登录");
  731. }
  732. document.getElementById("not_admin1").onclick = function not_admin()
  733. {
  734. alert("您需要先登录");
  735. }
  736. </script>
  737. </div>
  738. <!--End Footer -->
  739. </body>
  740. </html>

<%@ page import="bean.user" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="bean.product" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="Service.Food" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%user user = (bean.user) session.getAttribute("user");%>
<%ArrayList arrayList = (ArrayList)session.getAttribute("Food");%>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <title>美食列表</title>
      <link rel="stylesheet" type="text/css" href="style.css"/>
      <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
      <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
      <script type="text/javascript" src="js/menu.js"></script>
      
      <script type="text/javascript" src="js/n_nav.js"></script>
      
      <script type="text/javascript" src="js/toptop.js"> </script>
   </head>
   <body>
      <!-- Head Begin -->
      <div class="headbg">
         <div class="head">
            <!-- Begin 所在收货地址 -->
            <!-- 用<span> 来组合行内元素 -->
            <span class="head_city_back">
               <span class="fl">送货至:&nbsp;</span>
               <span class="head_city">
                  <span></span>
                  <div class="head_city_bg">
                     <div class="head_city_temp"></div>
                     <div class="head_city_common">
                        <h2>请选择所在的收货地区</h2>
                        
                        <table class="common_table" border="0" cellpadding="0" cellspacing="0" style="width: 235px; margin-top: 10px;">
                           <tr>
                              <th>A</th>
                              <td class="common_head"><span>安徽</span><span>澳门</span></td>
                           </tr>
                           <tr>
                              <th>B</th>
                              <td class="common_head"><span>北京</span></td>
                           </tr>
                           <tr>
                              <th>C</th>
                              <td class="common_head"><span>重庆</span></td>
                           </tr>
                           <tr>
                              <th>F</th>
                              <td class="common_head"><span>福建</span></td>
                           </tr>
                           <tr>
                              <th>G</th>
                              <td class="common_head"><span>广东</span><span>广西</span><span>贵州</span><span>甘肃</span></td>
                           </tr>
                           <tr>
                              <th>H</th>
                              <td class="common_head"><span>河北</span><span>河南</span><span>黑龙江</span><span>海南</span><span>湖北</span><span>湖南</span></td>
                           </tr>
                           <tr>
                              <th>J</th>
                              <td class="common_head"><span>江苏</span><span>吉林</span><span>江西</span></td>
                           </tr>
                           <tr>
                              <th>L</th>
                              <td class="common_head"><span>辽宁</span></td>
                           </tr>
                           <tr>
                              <th>N</th>
                              <td class="common_head"><span>内蒙古</span><span>宁夏</span></td>
                           </tr>
                           <tr>
                              <th>Q</th>
                              <td class="common_head"><span>上海</span><span>山东</span><span>山西</span><span>四川</span><span>陕西</span></td>
                           </tr>
                           <tr>
                              <th>T</th>
                              <td class="common_head"><span>台湾</span><span>天津</span></td>
                           </tr>
                           <tr>
                              <th>X</th>
                              <td class="common_head"><span>西藏</span><span>香港</span><span>新疆</span></td>
                           </tr>
                           <tr>
                              <th>Y</th>
                              <td class="common_head"><span>云南</span></td>
                           </tr>
                           <tr>
                              <th>Z</th>
                              <td class="common_head"><span class="common_check">浙江</span></td>
                           </tr>
                        </table>
                     </div>
                  </div>
               </span>
            </span>
            <!-- End 收货所在地 -->
            
            <!-- Begin 任务栏 -->
            <span class="fr">
            <%
               if(!(user == null))
               {
                  out.println("\t\t\t\t\t<span class=\"fl\">\n" +
                        "\t\t\t\t\t\t<a href=\"information.jsp\">");
                  out.println("欢迎回来!" + user.getName());
                  out.println("</a>\n" +
                        "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
                        "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
                        "\t\t\t\t\t\t |\n" +
                        "\n" +
                        "\t\t\t\t\t</span>");
               }
               else
               {
                  out.println("\t\t\t\t\t<span class=\"fl\">\n" +
                        "\t\t\t\t\t\t<a href=\"login.jsp\">你好,请登录&nbsp;</a>\n" +
                        "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
                        "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
                        "\t\t\t\t\t\t |\n" +
                        "\n" +
                        "\t\t\t\t\t</span>");
               }
            %>
               <span class="headshow">
                  <div class="headshow_list">
                     <a href="#">收藏夹</a>
                     <div class="headshow_list_bg">
                        <div class="head_city_temp"></div>
                        <div class="headshow_list_common">
                           <ul>
                              <li>
                                 <a href="#">收藏的宝贝</a>
                              </li>
                              <li>
                                 <a href="#">收藏的店铺</a>
                              </li>
                           </ul>
                        </div>
                     </div>
                  </div>
                  <%
                     if(!(user == null))
                     {
                        out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
                              "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
                              "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
                              "\t\t\t\t\t\t\t\t\t<ul>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"personcenter.jsp\">个人中心</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t</ul>\n" +
                              "\t\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t</div>");
                     }
                     else
                     {
                        out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
                              "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
                              "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
                              "\t\t\t\t\t\t\t\t\t<ul>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" id=\"not_admin\">个人中心</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t</ul>\n" +
                              "\t\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t</div>");
                     }
                  %>
                  <div class="headshow_list">
                     <a href="#">网站导航</a>
                     <div class="headshow_list_bg">
                        <div class="head_city_temp"></div>
                        <div class="headshow_list_common">
                           <ul>
                              <li>
                                 <a href="#">主题市场</a>
                              </li>
                              <li>
                                 <a href="newidea.jsp">创意市场</a>
                              </li>
                              <li>
                                 <a href="#">精彩推荐集</a>
                              </li>
                           </ul>
                        </div>
                     </div>
                  </div>
               </span>
               <span class="fl">
                  | 关注我们:
               </span>
               <span class="show_style">
                  <a href="#" class="style1">新浪</a>
                  <a href="#" class="style2">微信</a>
               </span>
               <span class="fr">
                  | 
                  <a href="#">
                     手机版
                     <img src="imgs/s_tel.png" align="absmiddle">
                  </a>
               </span>
            </span>
         </div>
      </div>
      <!-- End 任务栏 -->
      
      <!-- Begin 任务栏下面 logo 搜索 购物车-->
      <div class="top">
         <div class="logo">
            <a href="index.jsp">
               <img src="imgs/logo.png" >
            </a>
         </div>
         <div class="search">
            <form action="">
               <input type="text" value="" class="search_input" />
               <input type="submit" value="搜索" class="search_button" />
            </form>
            <span class="f1">
               <a href="#">蛋糕</a>
               <a href="#">咖啡</a>
               <a href="#">新鲜美食</a>
               <a href="#">日用品</a>
            </span>
         </div>
         <div class="info_car">
            <div class="car_temp">购物车 [ <span>
               <%
                  if(!(user == null))
                  {
                     out.println(user.getShoppingCart().getCart().size());
                  }
                  else
                  {
                     out.println(0);
                  }
               %>
            </span> ]</div>
            <div class="car_bg">
               <%
                  if(!(user == null))
                  {
                     out.println("<ul class=\"cars\">");
                     HashMap map = user.getShoppingCart().getCart();
                     Iterator iterator = map.entrySet().iterator();
                     double count = 0.0;
                     int num = 0;
                     while(iterator.hasNext())
                     {
                        Map.Entry entry = (Map.Entry)iterator.next();
                        out.println("\t\t\t\t<li>\n" +
                              "\t\t\t\t\t<div class=\"img\">\n" +
                              "\t\t\t\t\t\t<a href=\"#\">\n" +
                              "\t\t\t\t\t\t\t<img src=\"imgs/fre_2.jpg\" width=\"58\" height=\"58\" >\n" +
                              "\t\t\t\t\t\t</a>\n" +
                              "\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t<div class=\"name\">\n" +
                              "\t\t\t\t\t\t<a href=\"#\">");
                        product product = (bean.product)entry.getKey();
                        count = count + (product.getPrice() * (int)entry.getValue());
                        out.println(product.getProduct_name() + "</a>\n" +
                              "\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t<div class=\"price\">\n" +
                              "\t\t\t\t\t\t<font color=\"#FF4E00\">&nbsp;&nbsp;¥");
                        out.println(product.getPrice() + "</font>X" + entry.getValue() + "</div></li>");
                        num++;
                     }
                     if(num == 0)
                     {
                        out.println("\t\t\t<div class=\"un_login\">\n" +
                              "\t\t\t\t还没有商品呢!\n" +
                              "\t\t\t\t<a href=\"food.jsp\" style=\"color: #FF4E00;\">现在就去选购</a>\n" +
                              "\t\t\t\t心怡的商品!\n" +
                              "\t\t\t</div>");
                     }
                     else
                     {
                        out.println("\t\t\t</ul>");
                        out.println("\t\t\t<div class=\"price_sum\">\n" +
                              "\t\t\t\t共计\n" +
                              "\t\t\t\t<font color=\"#FF4E00\"> ¥</font>\n" +
                              "\t\t\t\t<span>");
                        out.println(count);
                        out.println("</span>\n" +
                              "\t\t\t</div>\n" +
                              "\t\t\t<div class=\"price_account\">\n" +
                              "\t\t\t\t<a href=\"buycar.jsp\">去购物车结算</a>\n" +
                              "\t\t\t</div>");
                     }
                  }
                  else
                  {
                     out.println("\t\t\t<div class=\"un_login\">\n" +
                           "\t\t\t\t还未登录!\n" +
                           "\t\t\t\t<a href=\"login.jsp\" style=\"color: #FF4E00;\">马上登录</a>\n" +
                           "\t\t\t\t查看购物车!\n" +
                           "\t\t\t</div>");
                  }
               %>
               <!--End 购物车已登录--> 
            </div>
         </div>
      </div>
      <!--End Head--> 
      <!--Begin Menu -->
      <div class="menu_bg">
          <div class="menu">
              <!--Begin 商品分类详情 Begin-->
              <div class="nav">
                  <div class="nav_t">全部商品分类</div>
                  <div class="leftNav none">
                      <ul>
                          <li>
                              <div class="fj">
                                  <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
                                  <span class="fl">进口食品、生鲜</span>
                              </div>
                              <div class="zj">
                                  <div class="zj_l">
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                  </div>
                                  <div class="zj_r">
                                      <a href="#"><img src="imgs/food_b1.jpg" width="236" height="200" /></a>
                                      <a href="#"><img src="imgs/food_b2.jpg" width="236" height="200" /></a>
                                  </div>
                              </div>
                          </li>
                          <li>
                              <div class="fj">
                                  <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
                                  <span class="fl">食品、饮料、酒</span>
                              </div>
                              <div class="zj" style="top:-40px;">
                                  <div class="zj_l">
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力2</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                      <div class="zj_l_c">
                                          <h2>零食 / 糖果 / 巧克力</h2>
                                          <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                                              href="#">巧克力</a>|
                                          <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                                              href="#">红枣</a>|
                                          <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                                      </div>
                                  </div>
                                  <div class="zj_r">
                                      <a href="#"><img src="imgs/fre_b1.jpg" width="236" height="200" /></a>
                                      <a href="#"><img src="imgs/fre_b2.jpg" width="236" height="200" /></a>
                                  </div>
                              </div>
                          </li>
                      </ul>
                  </div>
              </div>
              <!--End 商品分类详情 End-->
              <ul class="menu_r">
                  <li><a href="index.jsp">首页</a></li>
                  <li><a href="/controller.FoodServlet">美食</a></li>
                  <li><a href="#">生鲜</a></li>
                  <li><a href="#">团购</a></li>
              </ul>
              <div class="m_ad">双十一送好礼!</div>
          </div>
      </div>
      <!--End Menu-->
      
      <!--------content1--------->
      <div class="imgList1" >
         <div class="wrapper">
         <div class="nbnb-left" style="margin-left: -150px;">
            <div class="nbnb2">
               <form>
                  <br>
                  <h4>选择你喜欢的品牌 :</h4>
                  <input type="checkbox" name="品牌" value="color 1" />
                  <a href=""> DANISA/皇冠</a><br />
                  <input type="checkbox" name="品牌" value="color2" />
                  <a href=""> Three Squirrels/三只松鼠</a><br />
                  <input type="checkbox" name="品牌" value="color3" />
                  <a href=""> 良品铺子</a><br />
                  <input type="checkbox" name="品牌" value="color4" />
                  <a href=""> BE&CHEERY/百草味</a><br />
                  <input type="checkbox" name="品牌" value="color5" />
                  <a href=""> 魔法士</a><br />
                  <input type="checkbox" name="品牌" value="color6" />
                  <a href=""> 金鹏华泽</a><br />
               </form>
            </div>
            <div class="nbnb2">
               <form>
                  <br>
                  <h4>选择你喜欢吃的零食类型:</h4>
                  <input type="checkbox" name="品牌" value="color 1" />
                  <a href=""> 鸭肉类零食</a><br />
                  <input type="checkbox" name="品牌" value="color2" />
                  <a href=""> 膨化食品</a><br />
                  <input type="checkbox" name="品牌" value="color3" />
                  <a href=""> 传统糕点传统糕点</a><br />
                  <input type="checkbox" name="品牌" value="color4" />
                  <a href=""> 鱼系列</a><br />
                  <input type="checkbox" name="品牌" value="color5" />
                  <a href=""> 曲奇饼干</a><br />
                  <input type="checkbox" name="品牌" value="color6" />
                  <a href=""> 豆腐干</a><br />
               </form>
            </div>
            <br />
            <div class="nbnb2">
               <form>
                  <h4>选择你喜欢的肉类产品 :</h4>
                  <input type="checkbox" name="品牌" value="color 1" />
                  <a href=""> 鸭掌全鸭</a><br />
                  <input type="checkbox" name="品牌" value="color2" />
                  <a href=""> 猪肉肠</a><br />
                  <input type="checkbox" name="品牌" value="color3" />
                  <a href=""> 鸭腿</a><br />
                  <input type="checkbox" name="品牌" value="color4" />
                  <a href=""> 猪肉脯</a><br />
                  <input type="checkbox" name="品牌" value="color5" />
                  <a href=""> 鸭脖鸭翅</a><br />
               </form>
            </div>
            <br />
            <div class="nbnb2">
               <form>
                  <h4>选择你想要的省份特产:</h4>
                  <input type="checkbox" name="颜色" value="color 1" />
                  广东省<br />
                  <input type="checkbox" name="颜色" value="color2" />
                  江苏省<br />
                  <input type="checkbox" name="颜色" value="color3" />
                  浙江省<br />
                  <input type="checkbox" name="颜色" value="color4" />
                  安徽省<br />
                  <input type="checkbox" name="颜色" value="color5" />
                  河南省<br />
                  <input type="checkbox" name="颜色" value="color6" />
                  湖南省<br />
                  <input type="checkbox" name="颜色" value="color6" />
                  福建省<br />

               </form>
            </div>
            <br />
            <div class="nbnb2">
               <form>
                  <h4>选择折扣数:</h4>
                  <input type="radio" name="颜色" value="color 1" />
                  9折<br />
                  <input type="radio" name="颜色" value="color2" />
                  8折<br />
                  <input type="radio" name="颜色" value="color3" />
                  7折<br />
                  <input type="radio" name="颜色" value="color4" />
                  6折<br />
                  <input type="radio" name="颜色" value="color5" />
                  5折<br />
                  <input type="radio" name="颜色" value="color6" />
                  4折<br />
                  <input type="radio" name="颜色" value="color6" />
                  3折<br />
               </form>
            </div>
         </div>
         <div class="nbnb-right" style=" margin-bottom: 300px;margin-top: -1050px;" >
            <div class="nbnb-top">
               <p> &nbsp; &nbsp; &nbsp; 所有商品:
                  <%
                     if(arrayList != null)
                     {
                        out.println(arrayList.size());
                     }
                     else
                     {
                        out.println(0);
                     }
                  %>件 &nbsp; &nbsp; &nbsp;
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  分类:<a href="#">流行</a> &nbsp;| &nbsp;<a href="#">最新</a> &nbsp;|&nbsp;<a href="#">折扣</a>&nbsp;|&nbsp;<a href="#">价格从低到高</a></p>
            </div>

            <%
               if(!((ArrayList)session.getAttribute("Food") == null))
               {
                  arrayList = (ArrayList)session.getAttribute("Food");
               }
               else
               {
                  arrayList = new Food().getFoodList();
               }
               int count = 0;
               int i;
               product product = null;
               for (i = 0; i < arrayList.size(); i++)
               {
                  product = (bean.product) arrayList.get(i);
                  if(count == 0)
                  {
                     out.println("<ul style=\"margin-right: 150px;\">");
                  }
                  if(count < 3)
                  {
                     out.println("<li><a href=\"/controller.ProductServlet?product_name=" + product.getProduct_name() + "\">");
                     out.println("\t\t\t\t\t\t\t<dl>\n" +
                           "\t\t\t\t\t\t\t\t<dt><img src=\"imgs/chide1.jpg\"/></dt>\n" +
                           "\t\t\t\t\t\t\t\t<dd>");
                     out.println(product.getProduct_name());
                     out.println("</dd>\n" + "\t\t\t\t\t\t\t\t<dd>¥");
                     out.println(product.getPrice());
                     out.println("</dd>\n" +
                           "\t\t\t\t\t\t\t</dl>\n" +
                           "\t\t\t\t\t\t</a>\n" +
                           "\t\t\t\t\t</li>");
                     count++;
                     if(count == 3)
                     {
                        count = 0;
                        out.println("</ul>");
                     }
                  }
               }
               if(i == arrayList.size())
               {
                  out.println("</ul>");
               }
            %>
         </div>
      </div>
      <!--返回顶部-->
      <div class="gotop">
         <a href="buycar.jsp">
            <dl>
               <dt><img src="imgs/gt1.png"/></dt>
               <dd>去购<br />物车</dd>
            </dl>
         </a>
         <%
            if(user == null)
            {
               out.println("<a href=\"#\" id=\"not_admin1\">\n" +
                     "\t\t\t<dl>\n" +
                     "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
                     "\t\t\t\t<dd>个人<br />中心</dd>\n" +
                     "\t\t\t</dl>\n" +
                     "\t\t</a>");
            }
            else
            {
               out.println("<a href=\"personcenter.jsp\" >\n" +
                     "\t\t\t<dl>\n" +
                     "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
                     "\t\t\t\t<dd>个人<br />中心</dd>\n" +
                     "\t\t\t</dl>\n" +
                     "\t\t</a>");
            }
         %>
         <a href="#" class="toptop">
            <dl>
               <dt><img src="imgs/gt4.png"/></dt>
               <dd>返回<br />顶部</dd>
            </dl>
         </a>
      </div>
      
      <!--Begin Footer-->
      <div class="behind_bottom_bg behind_bottom_common" style="margin-left: 0px;">
         <div class="behind_bottom">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
               <tr>
                  <td width="72"><img src="imgs/b1.png" width="62" height="62" /></td>
                  <td>
                     <h2>正品保障</h2>正品行货 放心购买
                  </td>
               </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
               <tr>
                  <td width="72"><img src="imgs/b2.png" width="62" height="62" /></td>
                  <td>
                     <h2>满38包邮</h2>满38包邮 免运费
                  </td>
               </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
               <tr>
                  <td width="72"><img src="imgs/b3.png" width="62" height="62" /></td>
                  <td>
                     <h2>天天低价</h2> 天天低价 畅选无忧
                  </td>
               </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
               <tr>
                  <td width="72"><img src="imgs/b4.png" width="62" height="62" /></td>
                  <td>
                     <h2>准时送达</h2>收货时间由你做主
                  </td>
               </tr>
            </table>
         </div>
      </div>
      <div class="behind_nav" style="margin-left: 230px;">
         <dl>
            <dt><a href="#">新手上路</a></dt>
            <dd><a href="#">售后流程</a></dd>
            <dd><a href="#">购物流程</a></dd>
            <dd><a href="#">订购方式</a></dd>
            <dd><a href="#">隐私声明</a></dd>
            <dd><a href="#">推荐分享说明</a></dd>
         </dl>
         <dl>
            <dt><a href="#">配送与支付</a></dt>
            <dd><a href="#">货到付款区域</a></dd>
            <dd><a href="#">配送支付查询</a></dd>
            <dd><a href="#">支付方式说明</a></dd>
         </dl>
         <dl>
            <dt><a href="#">会员中心</a></dt>
            <dd><a href="#">资金管理</a></dd>
            <dd><a href="#">我的收藏</a></dd>
            <dd><a href="#">我的订单</a></dd>
         </dl>
         <dl>
            <dt><a href="#">服务保证</a></dt>
            <dd><a href="#">退换货原则</a></dd>
            <dd><a href="#">售后服务保证</a></dd>
            <dd><a href="#">产品质量保证</a></dd>
         </dl>
         <dl>
            <dt><a href="#">联系我们</a></dt>
            <dd><a href="#">网站故障报告</a></dd>
            <dd><a href="#">购物咨询</a></dd>
            <dd><a href="#">投诉与建议</a></dd>
         </dl>
         <div class="behind_tell_bg" style="margin-right: 60px;">
            <a href="#" class="bottom_style1">新浪微博</a>
            <a href="#" class="bottom_style2">腾讯微博</a>
            <p>
               服务热线:<br/>
               <span>400-123-4567</span>
            </p>
         </div>
      
      </div>
      <div class="bottom_bg">
         <div class="bottom">
            备案/许可证编号:京ICP备120093xxxx号 Copyright © 2015-2019 进口商城商城网 All Rights Reserved. <br />
            <a href="#"> <img src="imgs/b_1.gif" width="98" height="33" > </a>
            <a href="#"> <img src="imgs/b_2.gif" width="98" height="33" > </a>
            <a href="#"> <img src="imgs/b_3.gif" width="98" height="33" > </a>
            <a href="#"> <img src="imgs/b_4.gif" width="98" height="33" > </a>
            <a href="#"> <img src="imgs/b_5.gif" width="98" height="33" > </a>
            <a href="#"> <img src="imgs/b_6.gif" width="98" height="33" > </a>
         </div>
      </div>
         <script>
            document.getElementById("not_admin").onclick = function not_admin()
            {
               alert("您需要先登录");
            }
            document.getElementById("not_admin1").onclick = function not_admin()
            {
               alert("您需要先登录");
            }
         </script>
      </div>
      <!--End Footer -->
   </body>
</html>
  1. <%@ page import="bean.user" %>
  2. <%@ page import="java.util.HashMap" %>
  3. <%@ page import="java.util.Iterator" %>
  4. <%@ page import="java.util.Map" %>
  5. <%@ page import="bean.product" %>
  6. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  7. <%user user = (bean.user)session.getAttribute("user");%>
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11. <meta charset="utf-8">
  12. <title>零食巴士</title>
  13. <link rel="stylesheet" type="text/css" href="style.css"/>
  14. <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
  15. <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
  16. <script type="text/javascript" src="js/menu.js"></script>
  17. <script type="text/javascript" src="js/lunbo_adv.js"></script>
  18. <script type="text/javascript" src="js/toptop.js"> </script>
  19. </head>
  20. <body>
  21. <!-- Head Begin -->
  22. <div class="headbg">
  23. <div class="head">
  24. <!-- Begin 所在收货地址 -->
  25. <!-- 用<span> 来组合行内元素 -->
  26. <span class="head_city_back">
  27. <span class="fl">送货至:&nbsp;</span>
  28. <span class="head_city">
  29. <span></span>
  30. <div class="head_city_bg">
  31. <div class="head_city_temp"></div>
  32. <div class="head_city_common">
  33. <h2>请选择所在的收货地区</h2>
  34. <table class="common_table" border="0" cellpadding="0" cellspacing="0" style="width: 235px; margin-top: 10px;">
  35. <tr>
  36. <th>A</th>
  37. <td class="common_head"><span>安徽</span><span>澳门</span></td>
  38. </tr>
  39. <tr>
  40. <th>B</th>
  41. <td class="common_head"><span>北京</span></td>
  42. </tr>
  43. <tr>
  44. <th>C</th>
  45. <td class="common_head"><span>重庆</span></td>
  46. </tr>
  47. <tr>
  48. <th>F</th>
  49. <td class="common_head"><span>福建</span></td>
  50. </tr>
  51. <tr>
  52. <th>G</th>
  53. <td class="common_head"><span>广东</span><span>广西</span><span>贵州</span><span>甘肃</span></td>
  54. </tr>
  55. <tr>
  56. <th>H</th>
  57. <td class="common_head"><span>河北</span><span>河南</span><span>黑龙江</span><span>海南</span><span>湖北</span><span>湖南</span></td>
  58. </tr>
  59. <tr>
  60. <th>J</th>
  61. <td class="common_head"><span>江苏</span><span>吉林</span><span>江西</span></td>
  62. </tr>
  63. <tr>
  64. <th>L</th>
  65. <td class="common_head"><span>辽宁</span></td>
  66. </tr>
  67. <tr>
  68. <th>N</th>
  69. <td class="common_head"><span>内蒙古</span><span>宁夏</span></td>
  70. </tr>
  71. <tr>
  72. <th>Q</th>
  73. <td class="common_head"><span>上海</span><span>山东</span><span>山西</span><span>四川</span><span>陕西</span></td>
  74. </tr>
  75. <tr>
  76. <th>T</th>
  77. <td class="common_head"><span>台湾</span><span>天津</span></td>
  78. </tr>
  79. <tr>
  80. <th>X</th>
  81. <td class="common_head"><span>西藏</span><span>香港</span><span>新疆</span></td>
  82. </tr>
  83. <tr>
  84. <th>Y</th>
  85. <td class="common_head"><span>云南</span></td>
  86. </tr>
  87. <tr>
  88. <th>Z</th>
  89. <td class="common_head"><span class="common_check">浙江</span></td>
  90. </tr>
  91. </table>
  92. </div>
  93. </div>
  94. </span>
  95. </span>
  96. <!-- End 收货所在地 -->
  97. <!-- Begin 任务栏 -->
  98. <span class="fr">
  99. <%
  100. if(!(user == null))
  101. {
  102. out.println("\t\t\t\t\t<span class=\"fl\">\n" +
  103. "\t\t\t\t\t\t<a href=\"information.jsp\">");
  104. out.println("欢迎回来!" + user.getName());
  105. out.println("</a>\n" +
  106. "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
  107. "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
  108. "\t\t\t\t\t\t |\n" +
  109. "\n" +
  110. "\t\t\t\t\t</span>");
  111. }
  112. else
  113. {
  114. out.println("\t\t\t\t\t<span class=\"fl\">\n" +
  115. "\t\t\t\t\t\t<a href=\"/controller.LoginWebServlet\">你好,请登录&nbsp;</a>\n" +
  116. "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
  117. "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
  118. "\t\t\t\t\t\t |\n" +
  119. "\n" +
  120. "\t\t\t\t\t</span>");
  121. }
  122. %>
  123. <span class="headshow">
  124. <div class="headshow_list">
  125. <a href="#">收藏夹</a>
  126. <div class="headshow_list_bg">
  127. <div class="head_city_temp"></div>
  128. <div class="headshow_list_common">
  129. <ul>
  130. <li>
  131. <a href="#">收藏的宝贝</a>
  132. </li>
  133. <li>
  134. <a href="#">收藏的店铺</a>
  135. </li>
  136. </ul>
  137. </div>
  138. </div>
  139. </div>
  140. <%
  141. if(!(user == null))
  142. {
  143. out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
  144. "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
  145. "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
  146. "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
  147. "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
  148. "\t\t\t\t\t\t\t\t\t<ul>\n" +
  149. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  150. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"personcenter.jsp\">个人中心</a>\n" +
  151. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  152. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  153. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
  154. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  155. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  156. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
  157. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  158. "\t\t\t\t\t\t\t\t\t</ul>\n" +
  159. "\t\t\t\t\t\t\t\t</div>\n" +
  160. "\t\t\t\t\t\t\t</div>\n" +
  161. "\t\t\t\t\t\t</div>");
  162. }
  163. else
  164. {
  165. out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
  166. "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
  167. "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
  168. "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
  169. "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
  170. "\t\t\t\t\t\t\t\t\t<ul>\n" +
  171. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  172. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" id=\"not_admin\">个人中心</a>\n" +
  173. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  174. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  175. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
  176. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  177. "\t\t\t\t\t\t\t\t\t\t<li>\n" +
  178. "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
  179. "\t\t\t\t\t\t\t\t\t\t</li>\n" +
  180. "\t\t\t\t\t\t\t\t\t</ul>\n" +
  181. "\t\t\t\t\t\t\t\t</div>\n" +
  182. "\t\t\t\t\t\t\t</div>\n" +
  183. "\t\t\t\t\t\t</div>");
  184. }
  185. %>
  186. <div class="headshow_list">
  187. <a href="#">网站导航</a>
  188. <div class="headshow_list_bg">
  189. <div class="head_city_temp"></div>
  190. <div class="headshow_list_common">
  191. <ul>
  192. <li>
  193. <a href="#">主题市场</a>
  194. </li>
  195. <li>
  196. <a href="newidea.jsp">创意市场</a>
  197. </li>
  198. <li>
  199. <a href="#">精彩推荐集</a>
  200. </li>
  201. </ul>
  202. </div>
  203. </div>
  204. </div>
  205. </span>
  206. <span class="fl">
  207. | 关注我们:
  208. </span>
  209. <span class="show_style">
  210. <a href="#" class="style1">新浪</a>
  211. <a href="#" class="style2">微信</a>
  212. </span>
  213. <span class="fr">
  214. |
  215. <a href="#">
  216. 手机版
  217. <img src="imgs/s_tel.png" align="absmiddle">
  218. </a>
  219. </span>
  220. </span>
  221. </div>
  222. </div>
  223. <!-- End 任务栏 -->
  224. <!-- Begin 任务栏下面 logo 搜索 购物车-->
  225. <div class="top">
  226. <div class="logo">
  227. <a href="index.jsp">
  228. <img src="imgs/logo.png" >
  229. </a>
  230. </div>
  231. <div class="search">
  232. <form action="">
  233. <input type="text" value="" class="search_input" />
  234. <input type="submit" value="搜索" class="search_button" />
  235. </form>
  236. <span class="f1">
  237. <a href="#">蛋糕</a>
  238. <a href="#">咖啡</a>
  239. <a href="#">新鲜美食</a>
  240. <a href="#">日用品</a>
  241. </span>
  242. </div>
  243. <div class="info_car">
  244. <div class="car_temp">购物车 [ <span>
  245. <%
  246. if(!(user == null))
  247. {
  248. out.println(user.getShoppingCart().getCart().size());
  249. }
  250. else
  251. {
  252. out.println(0);
  253. }
  254. %>
  255. </span> ]</div>
  256. <div class="car_bg">
  257. <%
  258. if(!(user == null))
  259. {
  260. out.println("<ul class=\"cars\">");
  261. HashMap map = user.getShoppingCart().getCart();
  262. Iterator iterator = map.entrySet().iterator();
  263. double count = 0.0;
  264. int num = 0;
  265. while(iterator.hasNext())
  266. {
  267. Map.Entry entry = (Map.Entry)iterator.next();
  268. out.println("\t\t\t\t<li>\n" +
  269. "\t\t\t\t\t<div class=\"img\">\n" +
  270. "\t\t\t\t\t\t<a href=\"#\">\n" +
  271. "\t\t\t\t\t\t\t<img src=\"imgs/fre_2.jpg\" width=\"58\" height=\"58\" >\n" +
  272. "\t\t\t\t\t\t</a>\n" +
  273. "\t\t\t\t\t</div>\n" +
  274. "\t\t\t\t\t<div class=\"name\">\n" +
  275. "\t\t\t\t\t\t<a href=\"#\">");
  276. product product = (bean.product)entry.getKey();
  277. count = count + (product.getPrice() * (int)entry.getValue());
  278. out.println(product.getProduct_name() + "</a>\n" +
  279. "\t\t\t\t\t</div>\n" +
  280. "\t\t\t\t\t<div class=\"price\">\n" +
  281. "\t\t\t\t\t\t<font color=\"#FF4E00\">&nbsp;&nbsp;¥");
  282. out.println(product.getPrice() + "</font>X" + entry.getValue() + "</div></li>");
  283. num++;
  284. }
  285. if(num == 0)
  286. {
  287. out.println("\t\t\t<div class=\"un_login\">\n" +
  288. "\t\t\t\t还没有商品呢!\n" +
  289. "\t\t\t\t<a href=\"food.jsp\" style=\"color: #FF4E00;\">现在就去选购</a>\n" +
  290. "\t\t\t\t心怡的商品!\n" +
  291. "\t\t\t</div>");
  292. }
  293. else
  294. {
  295. out.println("\t\t\t</ul>");
  296. out.println("\t\t\t<div class=\"price_sum\">\n" +
  297. "\t\t\t\t共计\n" +
  298. "\t\t\t\t<font color=\"#FF4E00\"> ¥</font>\n" +
  299. "\t\t\t\t<span>");
  300. out.println(count);
  301. out.println("</span>\n" +
  302. "\t\t\t</div>\n" +
  303. "\t\t\t<div class=\"price_account\">\n" +
  304. "\t\t\t\t<a href=\"buycar.jsp\">去购物车结算</a>\n" +
  305. "\t\t\t</div>");
  306. }
  307. }
  308. else
  309. {
  310. out.println("\t\t\t<div class=\"un_login\">\n" +
  311. "\t\t\t\t还未登录!\n" +
  312. "\t\t\t\t<a href=\"login.jsp\" style=\"color: #FF4E00;\">马上登录</a>\n" +
  313. "\t\t\t\t查看购物车!\n" +
  314. "\t\t\t</div>");
  315. }
  316. %>
  317. </div>
  318. </div>
  319. </div>
  320. <!--End Head-->
  321. <!--Begin Menu -->
  322. <div class="menu_bg">
  323. <div class="menu">
  324. <!--Begin 商品分类详情 Begin-->
  325. <div class="nav">
  326. <div class="nav_t">全部商品分类</div>
  327. <div class="leftNav">
  328. <ul>
  329. <li>
  330. <div class="fj">
  331. <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
  332. <span class="fl">进口食品、生鲜</span>
  333. </div>
  334. <div class="zj">
  335. <div class="zj_l">
  336. <div class="zj_l_c">
  337. <h2>零食 / 糖果 / 巧克力</h2>
  338. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  339. href="#">巧克力</a>|
  340. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  341. href="#">红枣</a>|
  342. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  343. </div>
  344. <div class="zj_l_c">
  345. <h2>零食 / 糖果 / 巧克力</h2>
  346. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  347. href="#">巧克力</a>|
  348. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  349. href="#">红枣</a>|
  350. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  351. </div>
  352. <div class="zj_l_c">
  353. <h2>零食 / 糖果 / 巧克力</h2>
  354. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  355. href="#">巧克力</a>|
  356. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  357. href="#">红枣</a>|
  358. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  359. </div>
  360. <div class="zj_l_c">
  361. <h2>零食 / 糖果 / 巧克力</h2>
  362. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  363. href="#">巧克力</a>|
  364. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  365. href="#">红枣</a>|
  366. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  367. </div>
  368. <div class="zj_l_c">
  369. <h2>零食 / 糖果 / 巧克力</h2>
  370. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  371. href="#">巧克力</a>|
  372. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  373. href="#">红枣</a>|
  374. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  375. </div>
  376. <div class="zj_l_c">
  377. <h2>零食 / 糖果 / 巧克力</h2>
  378. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  379. href="#">巧克力</a>|
  380. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  381. href="#">红枣</a>|
  382. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  383. </div>
  384. </div>
  385. <div class="zj_r">
  386. <a href="#"><img src="imgs/food_b1.jpg" width="236" height="200" /></a>
  387. <a href="#"><img src="imgs/food_b2.jpg" width="236" height="200" /></a>
  388. </div>
  389. </div>
  390. </li>
  391. <li>
  392. <div class="fj">
  393. <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
  394. <span class="fl">食品、饮料、酒</span>
  395. </div>
  396. <div class="zj" style="top:-40px;">
  397. <div class="zj_l">
  398. <div class="zj_l_c">
  399. <h2>零食 / 糖果 / 巧克力2</h2>
  400. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  401. href="#">巧克力</a>|
  402. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  403. href="#">红枣</a>|
  404. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  405. </div>
  406. <div class="zj_l_c">
  407. <h2>零食 / 糖果 / 巧克力</h2>
  408. <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
  409. href="#">巧克力</a>|
  410. <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
  411. href="#">红枣</a>|
  412. <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
  413. </div>
  414. </div>
  415. <div class="zj_r">
  416. <a href="#"><img src="imgs/fre_b1.jpg" width="236" height="200" /></a>
  417. <a href="#"><img src="imgs/fre_b2.jpg" width="236" height="200" /></a>
  418. </div>
  419. </div>
  420. </li>
  421. <li>
  422. <div class="fj">
  423. <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
  424. <span class="fl">进口食品、生鲜</span>
  425. </div>
  426. </li>
  427. <li>
  428. <div class="fj">
  429. <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
  430. <span class="fl">食品、饮料、酒</span>
  431. </div>
  432. </li>
  433. <li>
  434. <div class="fj">
  435. <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
  436. <span class="fl">进口食品、生鲜</span>
  437. </div>
  438. </li>
  439. <li>
  440. <div class="fj">
  441. <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
  442. <span class="fl">食品、饮料、酒</span>
  443. </div>
  444. </li>
  445. <li>
  446. <div class="fj">
  447. <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
  448. <span class="fl">进口食品、生鲜</span>
  449. </div>
  450. </li>
  451. <li>
  452. <div class="fj">
  453. <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
  454. <span class="fl">食品、饮料、酒</span>
  455. </div>
  456. </li>
  457. </ul>
  458. </div>
  459. </div>
  460. <!--End 商品分类详情 End-->
  461. <ul class="menu_r">
  462. <li><a href="index.jsp">首页</a></li>
  463. <li><a href="/controller.FoodServlet">美食</a></li>
  464. <li><a href="#">生鲜</a></li>
  465. <li><a href="#">团购</a></li>
  466. <div id="showtime"></div>
  467. </ul>
  468. <div class="m_ad"> 双十一送好礼!</div>
  469. </div>
  470. </div>
  471. <!--End Menu-->
  472. <!-- Begin 具体内容 -->
  473. <div class="i_bg bg_color">
  474. <div class="i_ban_bg">
  475. <!--Begin Banner-->
  476. <div class="banner">
  477. <!--横幅广告-->
  478. <div id="adv">
  479. <dl>
  480. <dt> <a href="#" id="a1">1</a> <a href="#" id="a2">2</a> <a href="#" id="a3">3</a> </dt>
  481. <dd> <a href="#"><img src="imgs/ban1.jpg" id="banner" alt="广告" /></a> </dd>
  482. </dl>
  483. </div>
  484. </div>
  485. <!--End Banner End-->
  486. <div class="inews">
  487. <div class="news_t">
  488. <span class="fr"><a href="#">更多 ></a></span>新闻资讯
  489. </div>
  490. <ul>
  491. <li><span>[ 特惠 ]</span><a href="#">掬一轮明月 表无尽惦念</a></li>
  492. <li><span>[ 公告 ]</span><a href="#">好奇金装成长裤新品上市</a></li>
  493. <li><span>[ 特惠 ]</span><a href="#">大牌闪购 · 抢!</a></li>
  494. <li><span>[ 公告 ]</span><a href="#">发福利 买车就抢千元油卡</a></li>
  495. <li><span>[ 公告 ]</span><a href="#">家电低至五折</a></li>
  496. </ul>
  497. <ul>
  498. <li><span>[ 特惠 ]</span><a href="#">掬一轮明月 表无尽惦念</a></li>
  499. <li><span>[ 公告 ]</span><a href="#">好奇金装成长裤新品上市</a></li>
  500. <li><span>[ 特惠 ]</span><a href="#">大牌闪购 · 抢!</a></li>
  501. <li><span>[ 公告 ]</span><a href="#">发福利 买车就抢千元油卡</a></li>
  502. <li><span>[ 公告 ]</span><a href="#">家电低至五折</a></li>
  503. </ul>
  504. </div>
  505. </div>
  506. <!--Begin 热门商品-->
  507. <div class="content mar_10">
  508. <div class="hot_left_img">
  509. <div class="img"><img src="imgs/l_img.jpg" width="188" height="188" /></div>
  510. <div class="price_bg">
  511. <span class="price fl">¥53.00</span>
  512. <span class="fr">16R</span>
  513. </div>
  514. </div>
  515. <div class="hot_product">
  516. <div id="featureContainer">
  517. <div id="feature">
  518. <div id="block">
  519. <div id="botton-scroll">
  520. <ul class="featureUL">
  521. <li class="featureBox">
  522. <div class="box">
  523. <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
  524. </div>
  525. <div class="img_bg">
  526. <a href="Product.jsp"><img src="imgs/hot1.jpg" width="160"
  527. height="136" /></a>
  528. </div>
  529. <div class="name">
  530. <a href="Product.jsp">
  531. <h2>德国进口</h2>
  532. 德亚全脂纯牛奶200ml*48
  533. </a>
  534. </div>
  535. <div class="price">
  536. <font>¥<span>189</span></font> &nbsp; 26R
  537. </div>
  538. </div>
  539. </li>
  540. <li class="featureBox">
  541. <div class="box">
  542. <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
  543. </div>
  544. <div class="img_bg">
  545. <a href="Product.jsp"><img src="imgs/hot2.jpg" width="160"
  546. height="136" /></a>
  547. </div>
  548. <div class="name">
  549. <a href="Product.jsp">
  550. <h2>鸡尾酒</h2>
  551. 鸡尾酒/限定包装/3瓶装
  552. </a>
  553. </div>
  554. <div class="price">
  555. <font>¥<span>28</span></font> &nbsp; 25R
  556. </div>
  557. </div>
  558. </li>
  559. <li class="featureBox">
  560. <div class="box">
  561. <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
  562. </div>
  563. <div class="img_bg">
  564. <a href="#"><img src="imgs/hot3.jpg" width="160" height="136" /></a>
  565. </div>
  566. <div class="name">
  567. <a href="#">
  568. <h2>进口狗狗饼干</h2>
  569. 进口狗狗饼干套装8折促销
  570. </a>
  571. </div>
  572. <div class="price">
  573. <font>¥<span>368</span></font> &nbsp; 18R
  574. </div>
  575. </div>
  576. </li>
  577. <li class="featureBox">
  578. <div class="box">
  579. <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
  580. </div>
  581. <div class="img_bg">
  582. <a href="#"><img src="imgs/hot4.jpg" width="160" height="136" /></a>
  583. </div>
  584. <div class="name">
  585. <a href="#">
  586. <h2>品利特级橄榄油</h2>
  587. 750ml*4瓶装组合 西班牙原装进口
  588. </a>
  589. </div>
  590. <div class="price">
  591. <font>¥<span>280</span></font> &nbsp; 30R
  592. </div>
  593. </div>
  594. </li>
  595. </ul>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. <div class="content mar_20">
  603. <img src="imgs/mban_1.jpg" width="1200" height="110" />
  604. </div>
  605. <!-- End 热门商品 -->
  606. <!--Begin 进口 生鲜-->
  607. <div class="wordstyle1 mar_10">
  608. <span class="floor_num">1F</span>
  609. <span class="fl">进口 <b>·</b> 生鲜</span>
  610. <span class="info_mores fr"><a href="#">进口咖啡</a>&nbsp; &nbsp; | &nbsp; <a href="#">进口酒</a>&nbsp; &nbsp; | &nbsp; <a
  611. href="#">进口母婴</a>&nbsp; &nbsp; | &nbsp; <a href="#">新鲜蔬菜</a>&nbsp; &nbsp; | &nbsp; <a
  612. href="#">新鲜水果</a></span>
  613. </div>
  614. <div class="content">
  615. <div class="fresh_left">
  616. <div class="fre_ban">
  617. <div id="imgPlay1">
  618. <li><a href="#"><img src="imgs/fre_r.jpg" width="211" height="286" /></a></li>
  619. </div>
  620. </div>
  621. <div class="fresh_txt">
  622. <div class="fresh_txt_common">
  623. <a href="#">进口水果</a><a href="#">奇异果</a><a href="#">海鲜水产</a><a
  624. href="#">品质牛肉</a><a href="#">鲜活禽蛋</a><a href="#">进口酒</a><a
  625. href="#">进口奶粉</a><a href="#">鲜活禽蛋</a>
  626. </div>
  627. </div>
  628. </div>
  629. <div class="fresh_mid">
  630. <ul>
  631. <li>
  632. <div class="name"><a href="#">新鲜美味 进口美食</a></div>
  633. <div class="price">
  634. <font>¥<span>198.00</span></font> &nbsp; 26R
  635. </div>
  636. <div class="img"><a href="#"><img src="imgs/fre_1.jpg" width="185" height="155" /></a></div>
  637. </li>
  638. <li>
  639. <div class="name"><a href="#">新鲜美味 进口美食</a></div>
  640. <div class="price">
  641. <font>¥<span>198.00</span></font> &nbsp; 26R
  642. </div>
  643. <div class="img"><a href="#"><img src="imgs/fre_2.jpg" width="185" height="155" /></a></div>
  644. </li>
  645. <li>
  646. <div class="name"><a href="#">新鲜美味 进口美食</a></div>
  647. <div class="price">
  648. <font>¥<span>198.00</span></font> &nbsp; 26R
  649. </div>
  650. <div class="img"><a href="#"><img src="imgs/fre_3.jpg" width="185" height="155" /></a></div>
  651. </li>
  652. <li>
  653. <div class="name"><a href="#">新鲜美味 进口美食</a></div>
  654. <div class="price">
  655. <font>¥<span>198.00</span></font> &nbsp; 26R
  656. </div>
  657. <div class="img"><a href="#"><img src="imgs/fre_4.jpg" width="185" height="155" /></a></div>
  658. </li>
  659. <li>
  660. <div class="name"><a href="#">新鲜美味 进口美食</a></div>
  661. <div class="price">
  662. <font>¥<span>198.00</span></font> &nbsp; 26R
  663. </div>
  664. <div class="img"><a href="#"><img src="imgs/fre_5.jpg" width="185" height="155" /></a></div>
  665. </li>
  666. <li>
  667. <div class="name"><a href="#">新鲜美味 进口美食</a></div>
  668. <div class="price">
  669. <font>¥<span>198.00</span></font> &nbsp; 26R
  670. </div>
  671. <div class="img"><a href="#"><img src="imgs/fre_6.jpg" width="185" height="155" /></a></div>
  672. </li>
  673. </ul>
  674. </div>
  675. <div class="fresh_right">
  676. <ul>
  677. <li><a href="#"><img src="imgs/fre_b1.jpg" width="260" height="220" /></a></li>
  678. <li><a href="#"><img src="imgs/fre_b2.jpg" width="260" height="220" /></a></li>
  679. </ul>
  680. </div>
  681. </div>
  682. <!--End 进口 生鲜-->
  683. <!--Begin 食品饮料-->
  684. <div class="wordstyle1 mar_10">
  685. <span class="floor_num">2F</span>
  686. <span class="fl">食品饮料</span>
  687. <span class="info_mores fr"><a href="#">咖啡</a>&nbsp; &nbsp; | &nbsp; &nbsp;<a href="#">休闲零食</a>&nbsp; &nbsp; |
  688. &nbsp; &nbsp;<a href="#">饼干糕点</a>&nbsp; &nbsp; | &nbsp; &nbsp;<a href="#">冲饮谷物</a>&nbsp; &nbsp; | &nbsp;
  689. &nbsp;<a href="#">营养保健</a></span>
  690. </div>
  691. <div class="content">
  692. <div class="food_left">
  693. <div class="food_ban">
  694. <div id="imgPlay2">
  695. <li><a href="#"><img src="imgs/food_r.jpg" width="211" height="286" /></a></li>
  696. </div>
  697. </div>
  698. <div class="fresh_txt">
  699. <div class="fresh_txt_common">
  700. <a href="#">饼干糕点</a><a href="#">休闲零食</a><a href="#">饮料果汁</a><a href="#">牛奶乳品</a><a
  701. href="#">冲饮谷物</a><a href="#">营养保健</a><a href="#">冲饮谷物</a><a href="#">营养保健</a>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="fresh_mid">
  706. <ul>
  707. <li>
  708. <div class="name"><a href="#">莫斯利安酸奶</a></div>
  709. <div class="price">
  710. <font>¥<span>96.00</span></font> &nbsp; 25R
  711. </div>
  712. <div class="img"><a href="#"><img src="imgs/food_1.jpg" width="185" height="155" /></a></div>
  713. </li>
  714. <li>
  715. <div class="name"><a href="#">趣多多散装</a></div>
  716. <div class="price">
  717. <font>¥<span>96.00</span></font> &nbsp; 25R
  718. </div>
  719. <div class="img"><a href="#"><img src="imgs/food_2.jpg" width="185" height="155" /></a></div>
  720. </li>
  721. <li>
  722. <div class="name"><a href="#">休闲零食包</a></div>
  723. <div class="price">
  724. <font>¥<span>96.00</span></font> &nbsp; 25R
  725. </div>
  726. <div class="img"><a href="#"><img src="imgs/food_3.jpg" width="185" height="155" /></a></div>
  727. </li>
  728. <li>
  729. <div class="name"><a href="#">RIO鸡尾酒</a></div>
  730. <div class="price">
  731. <font>¥<span>96.00</span></font> &nbsp; 25R
  732. </div>
  733. <div class="img"><a href="#"><img src="imgs/food_4.jpg" width="185" height="155" /></a></div>
  734. </li>
  735. <li>
  736. <div class="name"><a href="#">不知名生物</a></div>
  737. <div class="price">
  738. <font>¥<span>96.00</span></font> &nbsp; 25R
  739. </div>
  740. <div class="img"><a href="#"><img src="imgs/food_5.jpg" width="185" height="155" /></a></div>
  741. </li>
  742. <li>
  743. <div class="name"><a href="#">进口红酒</a></div>
  744. <div class="price">
  745. <font>¥<span>96.00</span></font> &nbsp; 25R
  746. </div>
  747. <div class="img"><a href="#"><img src="imgs/food_6.jpg" width="185" height="155" /></a></div>
  748. </li>
  749. </ul>
  750. </div>
  751. <div class="fresh_right">
  752. <ul>
  753. <li><a href="#"><img src="imgs/food_b1.jpg" width="260" height="220" /></a></li>
  754. <li><a href="#"><img src="imgs/food_b2.jpg" width="260" height="220" /></a></li>
  755. </ul>
  756. </div>
  757. </div>
  758. <!--End 食品饮料 -->
  759. <!--Begin 猜你喜欢-->
  760. <div class="mar_10 wordstyle1">
  761. <span class="fl">猜你喜欢</span>
  762. </div>
  763. <div class="like">
  764. <div id="featureContainer1">
  765. <div id="feature1">
  766. <div id="block1">
  767. <div id="botton-scroll1">
  768. <ul class="featureUL">
  769. <li class="featureBox">
  770. <div class="box">
  771. <div class="img_bg">
  772. <a href="#"><img src="imgs/hot1.jpg" width="160" height="136" /></a>
  773. </div>
  774. <div class="name">
  775. <a href="#">
  776. <h2>德国进口</h2>
  777. 德亚全脂纯牛奶200ml*48
  778. </a>
  779. </div>
  780. <div class="price">
  781. <font>¥<span>189</span></font> &nbsp; 26R
  782. </div>
  783. </div>
  784. </li>
  785. <li class="featureBox">
  786. <div class="box">
  787. <div class="img_bg">
  788. <a href="#"><img src="imgs/hot2.jpg" width="160" height="136" /></a>
  789. </div>
  790. <div class="name">
  791. <a href="#">
  792. <h2>Rio鸡尾酒</h2>
  793. 鸡尾酒/限定包装/3瓶装
  794. </a>
  795. </div>
  796. <div class="price">
  797. <font>¥<span>88</span></font> &nbsp; 25R
  798. </div>
  799. </div>
  800. </li>
  801. <li class="featureBox">
  802. <div class="box">
  803. <div class="img_bg">
  804. <a href="#"><img src="imgs/hot3.jpg" width="160" height="136" /></a>
  805. </div>
  806. <div class="name">
  807. <a href="#">
  808. <h2>进口狗狗饼干</h2>
  809. 进口狗狗饼干套装8折促销
  810. </a>
  811. </div>
  812. <div class="price">
  813. <font>¥<span>368</span></font> &nbsp; 18R
  814. </div>
  815. </div>
  816. </li>
  817. <li class="featureBox">
  818. <div class="box">
  819. <div class="img_bg">
  820. <a href="#"><img src="imgs/hot4.jpg" width="160" height="136" /></a>
  821. </div>
  822. <div class="name">
  823. <a href="#">
  824. <h2>品利特级橄榄油</h2>
  825. 750ml*4瓶装组合 西班牙原装进口
  826. </a>
  827. </div>
  828. <div class="price">
  829. <font>¥<span>280</span></font> &nbsp; 30R
  830. </div>
  831. </div>
  832. </li>
  833. <li class="featureBox">
  834. <div class="box">
  835. <div class="img_bg">
  836. <a href="#"><img src="imgs/food_1.jpg" width="160" height="136" /></a>
  837. </div>
  838. <div class="name">
  839. <a href="#">
  840. <h2>莫斯利安酸奶</h2>
  841. 450ml*12瓶装组合 优质好酸奶
  842. </a>
  843. </div>
  844. <div class="price">
  845. <font>¥<span>96</span></font> &nbsp; 25R
  846. </div>
  847. </div>
  848. </li>
  849. </ul>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. <!--End 猜你喜欢-->
  856. <!--返回顶部-->
  857. <div class="gotop">
  858. <a href="buycar.jsp">
  859. <dl>
  860. <dt><img src="imgs/gt1.png"/></dt>
  861. <dd>去购<br />物车</dd>
  862. </dl>
  863. </a>
  864. <%
  865. if(user == null)
  866. {
  867. out.println("<a href=\"#\" id=\"not_admin1\">\n" +
  868. "\t\t\t<dl>\n" +
  869. "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
  870. "\t\t\t\t<dd>个人<br />中心</dd>\n" +
  871. "\t\t\t</dl>\n" +
  872. "\t\t</a>");
  873. }
  874. else
  875. {
  876. out.println("<a href=\"personcenter.jsp\" >\n" +
  877. "\t\t\t<dl>\n" +
  878. "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
  879. "\t\t\t\t<dd>个人<br />中心</dd>\n" +
  880. "\t\t\t</dl>\n" +
  881. "\t\t</a>");
  882. }
  883. %>
  884. <a href="#" class="toptop">
  885. <dl>
  886. <dt><img src="imgs/gt4.png"/></dt>
  887. <dd>返回<br />顶部</dd>
  888. </dl>
  889. </a>
  890. </div>
  891. <!--Begin Footer-->
  892. <div class="behind_bottom_bg behind_bottom_common">
  893. <div class="behind_bottom">
  894. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  895. <tr>
  896. <td width="72"><img src="imgs/b1.png" width="62" height="62" /></td>
  897. <td>
  898. <h2>正品保障</h2>正品行货 放心购买
  899. </td>
  900. </tr>
  901. </table>
  902. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  903. <tr>
  904. <td width="72"><img src="imgs/b2.png" width="62" height="62" /></td>
  905. <td>
  906. <h2>满38包邮</h2>满38包邮 免运费
  907. </td>
  908. </tr>
  909. </table>
  910. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  911. <tr>
  912. <td width="72"><img src="imgs/b3.png" width="62" height="62" /></td>
  913. <td>
  914. <h2>天天低价</h2>天天低价 畅选无忧
  915. </td>
  916. </tr>
  917. </table>
  918. <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
  919. <tr>
  920. <td width="72"><img src="imgs/b4.png" width="62" height="62" /></td>
  921. <td>
  922. <h2>准时送达</h2>收货时间由你做主
  923. </td>
  924. </tr>
  925. </table>
  926. </div>
  927. </div>
  928. <div class="behind_nav" >
  929. <dl>
  930. <dt><a href="#">新手上路</a></dt>
  931. <dd><a href="#">售后流程</a></dd>
  932. <dd><a href="#">购物流程</a></dd>
  933. <dd><a href="#">订购方式</a></dd>
  934. <dd><a href="#">隐私声明</a></dd>
  935. <dd><a href="#">推荐分享说明</a></dd>
  936. </dl>
  937. <dl>
  938. <dt><a href="#">配送与支付</a></dt>
  939. <dd><a href="#">货到付款区域</a></dd>
  940. <dd><a href="#">配送支付查询</a></dd>
  941. <dd><a href="#">支付方式说明</a></dd>
  942. </dl>
  943. <dl>
  944. <dt><a href="#">会员中心</a></dt>
  945. <dd><a href="#">资金管理</a></dd>
  946. <dd><a href="#">我的收藏</a></dd>
  947. <dd><a href="#">我的订单</a></dd>
  948. </dl>
  949. <dl>
  950. <dt><a href="#">服务保证</a></dt>
  951. <dd><a href="#">退换货原则</a></dd>
  952. <dd><a href="#">售后服务保证</a></dd>
  953. <dd><a href="#">产品质量保证</a></dd>
  954. </dl>
  955. <dl>
  956. <dt><a href="#">联系我们</a></dt>
  957. <dd><a href="/controller.ManagementServlet">网站故障报告</a></dd>
  958. <dd><a href="/controller.ManagementServlet">购物咨询</a></dd>
  959. <dd><a href="/controller.ManagementServlet">投诉与建议</a></dd>
  960. </dl>
  961. <div class="behind_tell_bg">
  962. <a href="#" class="bottom_style1">新浪微博</a>
  963. <a href="#" class="bottom_style2">腾讯微博</a>
  964. <p class="toptop">
  965. 服务热线:<br/>
  966. <span>400-123-4567</span>
  967. </p>
  968. </div>
  969. </div>
  970. <div class="bottom_bg">
  971. <div class="bottom">
  972. 备案/许可证编号:京ICP备120093xxxx号 Copyright © 2015-2019 进口商城商城网 All Rights Reserved. <br />
  973. <a href="#"> <img src="imgs/b_1.gif" width="98" height="33" > </a>
  974. <a href="#"> <img src="imgs/b_2.gif" width="98" height="33" > </a>
  975. <a href="#"> <img src="imgs/b_3.gif" width="98" height="33" > </a>
  976. <a href="#"> <img src="imgs/b_4.gif" width="98" height="33" > </a>
  977. <a href="#"> <img src="imgs/b_5.gif" width="98" height="33" > </a>
  978. <a href="#"> <img src="imgs/b_6.gif" width="98" height="33" > </a>
  979. </div>
  980. </div>
  981. <!--End Footer -->
  982. </div>
  983. <script>
  984. document.getElementById("not_admin").onclick = function not_admin()
  985. {
  986. alert("您需要先登录");
  987. }
  988. document.getElementById("not_admin1").onclick = function not_admin()
  989. {
  990. alert("您需要先登录");
  991. }
  992. </script>
  993. </body>
  994. </html>

<%@ page import="bean.user" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Map" %>
<%@ page import="bean.product" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%user user = (bean.user)session.getAttribute("user");%>
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <title>零食巴士</title>
   <link rel="stylesheet" type="text/css" href="style.css"/>
   <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
   <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>

   <script type="text/javascript" src="js/menu.js"></script>

   <script type="text/javascript" src="js/lunbo_adv.js"></script>

   <script type="text/javascript" src="js/toptop.js"> </script>
</head>
<body>
<!-- Head Begin -->
<div class="headbg">
   <div class="head">
      <!-- Begin 所在收货地址 -->
      <!-- 用<span> 来组合行内元素 -->
      <span class="head_city_back">
               <span class="fl">送货至:&nbsp;</span>
               <span class="head_city">
                  <span></span>
                  <div class="head_city_bg">
                     <div class="head_city_temp"></div>
                     <div class="head_city_common">
                        <h2>请选择所在的收货地区</h2>
                        
                        <table class="common_table" border="0" cellpadding="0" cellspacing="0" style="width: 235px; margin-top: 10px;">
                           <tr>
                              <th>A</th>
                              <td class="common_head"><span>安徽</span><span>澳门</span></td>
                           </tr>
                           <tr>
                              <th>B</th>
                              <td class="common_head"><span>北京</span></td>
                           </tr>
                           <tr>
                              <th>C</th>
                              <td class="common_head"><span>重庆</span></td>
                           </tr>
                           <tr>
                              <th>F</th>
                              <td class="common_head"><span>福建</span></td>
                           </tr>
                           <tr>
                              <th>G</th>
                              <td class="common_head"><span>广东</span><span>广西</span><span>贵州</span><span>甘肃</span></td>
                           </tr>
                           <tr>
                              <th>H</th>
                              <td class="common_head"><span>河北</span><span>河南</span><span>黑龙江</span><span>海南</span><span>湖北</span><span>湖南</span></td>
                           </tr>
                           <tr>
                              <th>J</th>
                              <td class="common_head"><span>江苏</span><span>吉林</span><span>江西</span></td>
                           </tr>
                           <tr>
                              <th>L</th>
                              <td class="common_head"><span>辽宁</span></td>
                           </tr>
                           <tr>
                              <th>N</th>
                              <td class="common_head"><span>内蒙古</span><span>宁夏</span></td>
                           </tr>
                           <tr>
                              <th>Q</th>
                              <td class="common_head"><span>上海</span><span>山东</span><span>山西</span><span>四川</span><span>陕西</span></td>
                           </tr>
                           <tr>
                              <th>T</th>
                              <td class="common_head"><span>台湾</span><span>天津</span></td>
                           </tr>
                           <tr>
                              <th>X</th>
                              <td class="common_head"><span>西藏</span><span>香港</span><span>新疆</span></td>
                           </tr>
                           <tr>
                              <th>Y</th>
                              <td class="common_head"><span>云南</span></td>
                           </tr>
                           <tr>
                              <th>Z</th>
                              <td class="common_head"><span class="common_check">浙江</span></td>
                           </tr>
                        </table>
                     </div>
                  </div>
               </span>
            </span>
      <!-- End 收货所在地 -->

      <!-- Begin 任务栏 -->
      <span class="fr">
               <%
                  if(!(user == null))
                  {
                     out.println("\t\t\t\t\t<span class=\"fl\">\n" +
                           "\t\t\t\t\t\t<a href=\"information.jsp\">");
                     out.println("欢迎回来!" + user.getName());
                     out.println("</a>\n" +
                           "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
                           "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
                           "\t\t\t\t\t\t |\n" +
                           "\n" +
                           "\t\t\t\t\t</span>");
                  }
                  else
                  {
                     out.println("\t\t\t\t\t<span class=\"fl\">\n" +
                           "\t\t\t\t\t\t<a href=\"/controller.LoginWebServlet\">你好,请登录&nbsp;</a>\n" +
                           "\t\t\t\t\t\t<a href=\"regist.jsp\" style=\"color: red;\">免费注册</a>\n" +
                           "\t\t\t\t\t\t | <a href=\"#\">我的订单</a>\n" +
                           "\t\t\t\t\t\t |\n" +
                           "\n" +
                           "\t\t\t\t\t</span>");
                  }
               %>
               <span class="headshow">
                  <div class="headshow_list">
                     <a href="#">收藏夹</a>
                     <div class="headshow_list_bg">
                        <div class="head_city_temp"></div>
                        <div class="headshow_list_common">
                           <ul>
                              <li>
                                 <a href="#">收藏的宝贝</a>
                              </li>
                              <li>
                                 <a href="#">收藏的店铺</a>
                              </li>
                           </ul>
                        </div>
                     </div>
                  </div>
                  <%
                     if(!(user == null))
                     {
                        out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
                              "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
                              "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
                              "\t\t\t\t\t\t\t\t\t<ul>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"personcenter.jsp\">个人中心</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t</ul>\n" +
                              "\t\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t</div>");
                     }
                     else
                     {
                        out.println("\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"headshow_list\">\n" +
                              "\t\t\t\t\t\t\t<a href=\"#\">客户服务</a>\n" +
                              "\t\t\t\t\t\t\t<div class=\"headshow_list_bg\">\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"head_city_temp\"></div>\n" +
                              "\t\t\t\t\t\t\t\t<div class=\"headshow_list_common\">\n" +
                              "\t\t\t\t\t\t\t\t\t<ul>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" id=\"not_admin\">个人中心</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">智能助手</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t<li>\n" +
                              "\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\">人工客服</a>\n" +
                              "\t\t\t\t\t\t\t\t\t\t</li>\n" +
                              "\t\t\t\t\t\t\t\t\t</ul>\n" +
                              "\t\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t\t</div>\n" +
                              "\t\t\t\t\t\t</div>");
                     }
                  %>
                  <div class="headshow_list">
                     <a href="#">网站导航</a>
                     <div class="headshow_list_bg">
                        <div class="head_city_temp"></div>
                        <div class="headshow_list_common">
                           <ul>
                              <li>
                                 <a href="#">主题市场</a>
                              </li>
                              <li>
                                 <a href="newidea.jsp">创意市场</a>
                              </li>
                              <li>
                                 <a href="#">精彩推荐集</a>
                              </li>
                           </ul>
                        </div>
                     </div>
                  </div>
               </span>
               <span class="fl">
                  | 关注我们:
               </span>
               <span class="show_style">
                  <a href="#" class="style1">新浪</a>
                  <a href="#" class="style2">微信</a>
               </span>
               <span class="fr">
                  |
                  <a href="#">
                     手机版
                     <img src="imgs/s_tel.png" align="absmiddle">
                  </a>
               </span>
            </span>
   </div>
</div>
<!-- End 任务栏 -->

<!-- Begin 任务栏下面 logo 搜索 购物车-->
<div class="top">
   <div class="logo">
      <a href="index.jsp">
         <img src="imgs/logo.png" >
      </a>
   </div>
   <div class="search">
      <form action="">
         <input type="text" value="" class="search_input" />
         <input type="submit" value="搜索" class="search_button" />
      </form>
      <span class="f1">
               <a href="#">蛋糕</a>
               <a href="#">咖啡</a>
               <a href="#">新鲜美食</a>
               <a href="#">日用品</a>
            </span>
   </div>
   <div class="info_car">
      <div class="car_temp">购物车 [ <span>
         <%
            if(!(user == null))
            {
               out.println(user.getShoppingCart().getCart().size());
            }
            else
            {
               out.println(0);
            }
         %>
      </span> ]</div>
      <div class="car_bg">
         <%
            if(!(user == null))
            {
               out.println("<ul class=\"cars\">");
               HashMap map = user.getShoppingCart().getCart();
               Iterator iterator = map.entrySet().iterator();
               double count = 0.0;
               int num = 0;
               while(iterator.hasNext())
               {
                  Map.Entry entry = (Map.Entry)iterator.next();
                  out.println("\t\t\t\t<li>\n" +
                        "\t\t\t\t\t<div class=\"img\">\n" +
                        "\t\t\t\t\t\t<a href=\"#\">\n" +
                        "\t\t\t\t\t\t\t<img src=\"imgs/fre_2.jpg\" width=\"58\" height=\"58\" >\n" +
                        "\t\t\t\t\t\t</a>\n" +
                        "\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t<div class=\"name\">\n" +
                        "\t\t\t\t\t\t<a href=\"#\">");
                  product product = (bean.product)entry.getKey();
                  count = count + (product.getPrice() * (int)entry.getValue());
                  out.println(product.getProduct_name() + "</a>\n" +
                        "\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t<div class=\"price\">\n" +
                        "\t\t\t\t\t\t<font color=\"#FF4E00\">&nbsp;&nbsp;¥");
                  out.println(product.getPrice() + "</font>X" + entry.getValue() + "</div></li>");
                  num++;
               }
               if(num == 0)
               {
                  out.println("\t\t\t<div class=\"un_login\">\n" +
                        "\t\t\t\t还没有商品呢!\n" +
                        "\t\t\t\t<a href=\"food.jsp\" style=\"color: #FF4E00;\">现在就去选购</a>\n" +
                        "\t\t\t\t心怡的商品!\n" +
                        "\t\t\t</div>");
               }
               else
               {
                  out.println("\t\t\t</ul>");
                  out.println("\t\t\t<div class=\"price_sum\">\n" +
                        "\t\t\t\t共计\n" +
                        "\t\t\t\t<font color=\"#FF4E00\"> ¥</font>\n" +
                        "\t\t\t\t<span>");
                  out.println(count);
                  out.println("</span>\n" +
                        "\t\t\t</div>\n" +
                        "\t\t\t<div class=\"price_account\">\n" +
                        "\t\t\t\t<a href=\"buycar.jsp\">去购物车结算</a>\n" +
                        "\t\t\t</div>");
               }
            }
            else
            {
               out.println("\t\t\t<div class=\"un_login\">\n" +
                     "\t\t\t\t还未登录!\n" +
                     "\t\t\t\t<a href=\"login.jsp\" style=\"color: #FF4E00;\">马上登录</a>\n" +
                     "\t\t\t\t查看购物车!\n" +
                     "\t\t\t</div>");
            }
         %>
      </div>
   </div>
</div>
<!--End Head-->

<!--Begin Menu -->
<div class="menu_bg">
   <div class="menu">
      <!--Begin 商品分类详情 Begin-->
      <div class="nav">
         <div class="nav_t">全部商品分类</div>
         <div class="leftNav">
            <ul>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
                     <span class="fl">进口食品、生鲜</span>
                  </div>
                  <div class="zj">
                     <div class="zj_l">
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                     </div>
                     <div class="zj_r">
                        <a href="#"><img src="imgs/food_b1.jpg" width="236" height="200" /></a>
                        <a href="#"><img src="imgs/food_b2.jpg" width="236" height="200" /></a>
                     </div>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
                     <span class="fl">食品、饮料、酒</span>
                  </div>
                  <div class="zj" style="top:-40px;">
                     <div class="zj_l">
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力2</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                        <div class="zj_l_c">
                           <h2>零食 / 糖果 / 巧克力</h2>
                           <a href="#">坚果</a>|<a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a
                              href="#">巧克力</a>|
                           <a href="#">口香糖</a>|<a href="#">海苔</a>|<a href="#">鱼干</a>|<a href="#">蜜饯</a>|<a
                              href="#">红枣</a>|
                           <a href="#">蜜饯</a>|<a href="#">红枣</a>|<a href="#">牛肉干</a>|<a href="#">蜜饯</a>|
                        </div>
                     </div>
                     <div class="zj_r">
                        <a href="#"><img src="imgs/fre_b1.jpg" width="236" height="200" /></a>
                        <a href="#"><img src="imgs/fre_b2.jpg" width="236" height="200" /></a>
                     </div>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
                     <span class="fl">进口食品、生鲜</span>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
                     <span class="fl">食品、饮料、酒</span>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
                     <span class="fl">进口食品、生鲜</span>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
                     <span class="fl">食品、饮料、酒</span>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav1.png" /></span>
                     <span class="fl">进口食品、生鲜</span>
                  </div>
               </li>
               <li>
                  <div class="fj">
                     <span class="n_img"><span></span><img src="imgs/nav2.png" /></span>
                     <span class="fl">食品、饮料、酒</span>
                  </div>
               </li>
            </ul>
         </div>
      </div>
      <!--End 商品分类详情 End-->
      <ul class="menu_r">
         <li><a href="index.jsp">首页</a></li>
         <li><a href="/controller.FoodServlet">美食</a></li>
         <li><a href="#">生鲜</a></li>
         <li><a href="#">团购</a></li>
         <div id="showtime"></div>
      </ul>

      <div class="m_ad"> 双十一送好礼!</div>
   </div>
</div>
<!--End Menu-->

<!-- Begin 具体内容 -->
<div class="i_bg bg_color">
   <div class="i_ban_bg">
      <!--Begin Banner-->
      <div class="banner">
         <!--横幅广告-->
         <div id="adv">
            <dl>
               <dt> <a href="#" id="a1">1</a> <a href="#" id="a2">2</a> <a href="#" id="a3">3</a> </dt>
               <dd> <a href="#"><img src="imgs/ban1.jpg" id="banner" alt="广告" /></a> </dd>
            </dl>
         </div>
      </div>

      <!--End Banner End-->
      <div class="inews">
         <div class="news_t">
            <span class="fr"><a href="#">更多 ></a></span>新闻资讯
         </div>
         <ul>
            <li><span>[ 特惠 ]</span><a href="#">掬一轮明月 表无尽惦念</a></li>
            <li><span>[ 公告 ]</span><a href="#">好奇金装成长裤新品上市</a></li>
            <li><span>[ 特惠 ]</span><a href="#">大牌闪购 · 抢!</a></li>
            <li><span>[ 公告 ]</span><a href="#">发福利 买车就抢千元油卡</a></li>
            <li><span>[ 公告 ]</span><a href="#">家电低至五折</a></li>
         </ul>
         <ul>
            <li><span>[ 特惠 ]</span><a href="#">掬一轮明月 表无尽惦念</a></li>
            <li><span>[ 公告 ]</span><a href="#">好奇金装成长裤新品上市</a></li>
            <li><span>[ 特惠 ]</span><a href="#">大牌闪购 · 抢!</a></li>
            <li><span>[ 公告 ]</span><a href="#">发福利 买车就抢千元油卡</a></li>
            <li><span>[ 公告 ]</span><a href="#">家电低至五折</a></li>
         </ul>
      </div>
   </div>

   <!--Begin 热门商品-->
   <div class="content mar_10">
      <div class="hot_left_img">
         <div class="img"><img src="imgs/l_img.jpg" width="188" height="188" /></div>
         <div class="price_bg">
            <span class="price fl">¥53.00</span>
            <span class="fr">16R</span>
         </div>
      </div>
      <div class="hot_product">
         <div id="featureContainer">
            <div id="feature">
               <div id="block">
                  <div id="botton-scroll">
                     <ul class="featureUL">
                        <li class="featureBox">
                           <div class="box">
                              <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
                              </div>
                              <div class="img_bg">
                                 <a href="Product.jsp"><img src="imgs/hot1.jpg" width="160"
                                                      height="136" /></a>
                              </div>
                              <div class="name">
                                 <a href="Product.jsp">
                                    <h2>德国进口</h2>
                                    德亚全脂纯牛奶200ml*48盒
                                 </a>
                              </div>
                              <div class="price">
                                 <font>¥<span>189</span></font> &nbsp; 26R
                              </div>
                           </div>
                        </li>
                        <li class="featureBox">
                           <div class="box">
                              <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
                              </div>
                              <div class="img_bg">
                                 <a href="Product.jsp"><img src="imgs/hot2.jpg" width="160"
                                                      height="136" /></a>
                              </div>
                              <div class="name">
                                 <a href="Product.jsp">
                                    <h2>鸡尾酒</h2>
                                    鸡尾酒/限定包装/3瓶装
                                 </a>
                              </div>
                              <div class="price">
                                 <font>¥<span>28</span></font> &nbsp; 25R
                              </div>
                           </div>
                        </li>
                        <li class="featureBox">
                           <div class="box">
                              <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
                              </div>
                              <div class="img_bg">
                                 <a href="#"><img src="imgs/hot3.jpg" width="160" height="136" /></a>
                              </div>
                              <div class="name">
                                 <a href="#">
                                    <h2>进口狗狗饼干</h2>
                                    进口狗狗饼干套装8折促销
                                 </a>
                              </div>
                              <div class="price">
                                 <font>¥<span>368</span></font> &nbsp; 18R
                              </div>
                           </div>
                        </li>
                        <li class="featureBox">
                           <div class="box">
                              <div class="hot_icon"><img src="imgs/hot.png" width="50" height="50" />
                              </div>
                              <div class="img_bg">
                                 <a href="#"><img src="imgs/hot4.jpg" width="160" height="136" /></a>
                              </div>
                              <div class="name">
                                 <a href="#">
                                    <h2>品利特级橄榄油</h2>
                                    750ml*4瓶装组合 西班牙原装进口
                                 </a>
                              </div>
                              <div class="price">
                                 <font>¥<span>280</span></font> &nbsp; 30R
                              </div>
                           </div>
                        </li>
                     </ul>
                  </div>
               </div>

            </div>
         </div>
      </div>
   </div>

   <div class="content mar_20">
      <img src="imgs/mban_1.jpg" width="1200" height="110" />
   </div>
   <!-- End 热门商品 -->

   <!--Begin 进口 生鲜-->
   <div class="wordstyle1 mar_10">
      <span class="floor_num">1F</span>
      <span class="fl">进口 <b>·</b> 生鲜</span>
      <span class="info_mores fr"><a href="#">进口咖啡</a>&nbsp; &nbsp; | &nbsp; <a href="#">进口酒</a>&nbsp; &nbsp; | &nbsp; <a
            href="#">进口母婴</a>&nbsp; &nbsp; | &nbsp; <a href="#">新鲜蔬菜</a>&nbsp; &nbsp; | &nbsp; <a
            href="#">新鲜水果</a></span>
   </div>
   <div class="content">
      <div class="fresh_left">
         <div class="fre_ban">
            <div id="imgPlay1">
               <li><a href="#"><img src="imgs/fre_r.jpg" width="211" height="286" /></a></li>
            </div>
         </div>
         <div class="fresh_txt">
            <div class="fresh_txt_common">
               <a href="#">进口水果</a><a href="#">奇异果</a><a href="#">海鲜水产</a><a
                  href="#">品质牛肉</a><a href="#">鲜活禽蛋</a><a href="#">进口酒</a><a
                  href="#">进口奶粉</a><a href="#">鲜活禽蛋</a>
            </div>
         </div>
      </div>
      <div class="fresh_mid">
         <ul>
            <li>
               <div class="name"><a href="#">新鲜美味 进口美食</a></div>
               <div class="price">
                  <font>¥<span>198.00</span></font> &nbsp; 26R
               </div>
               <div class="img"><a href="#"><img src="imgs/fre_1.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">新鲜美味 进口美食</a></div>
               <div class="price">
                  <font>¥<span>198.00</span></font> &nbsp; 26R
               </div>
               <div class="img"><a href="#"><img src="imgs/fre_2.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">新鲜美味 进口美食</a></div>
               <div class="price">
                  <font>¥<span>198.00</span></font> &nbsp; 26R
               </div>
               <div class="img"><a href="#"><img src="imgs/fre_3.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">新鲜美味 进口美食</a></div>
               <div class="price">
                  <font>¥<span>198.00</span></font> &nbsp; 26R
               </div>
               <div class="img"><a href="#"><img src="imgs/fre_4.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">新鲜美味 进口美食</a></div>
               <div class="price">
                  <font>¥<span>198.00</span></font> &nbsp; 26R
               </div>
               <div class="img"><a href="#"><img src="imgs/fre_5.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">新鲜美味 进口美食</a></div>
               <div class="price">
                  <font>¥<span>198.00</span></font> &nbsp; 26R
               </div>
               <div class="img"><a href="#"><img src="imgs/fre_6.jpg" width="185" height="155" /></a></div>
            </li>
         </ul>
      </div>
      <div class="fresh_right">
         <ul>
            <li><a href="#"><img src="imgs/fre_b1.jpg" width="260" height="220" /></a></li>
            <li><a href="#"><img src="imgs/fre_b2.jpg" width="260" height="220" /></a></li>
         </ul>
      </div>
   </div>
   <!--End 进口 生鲜-->

   <!--Begin 食品饮料-->
   <div class="wordstyle1 mar_10">
      <span class="floor_num">2F</span>
      <span class="fl">食品饮料</span>
      <span class="info_mores fr"><a href="#">咖啡</a>&nbsp; &nbsp; | &nbsp; &nbsp;<a href="#">休闲零食</a>&nbsp; &nbsp; |
               &nbsp; &nbsp;<a href="#">饼干糕点</a>&nbsp; &nbsp; | &nbsp; &nbsp;<a href="#">冲饮谷物</a>&nbsp; &nbsp; | &nbsp;
               &nbsp;<a href="#">营养保健</a></span>
   </div>
   <div class="content">
      <div class="food_left">
         <div class="food_ban">
            <div id="imgPlay2">
               <li><a href="#"><img src="imgs/food_r.jpg" width="211" height="286" /></a></li>
            </div>
         </div>
         <div class="fresh_txt">
            <div class="fresh_txt_common">
               <a href="#">饼干糕点</a><a href="#">休闲零食</a><a href="#">饮料果汁</a><a href="#">牛奶乳品</a><a
                  href="#">冲饮谷物</a><a href="#">营养保健</a><a href="#">冲饮谷物</a><a href="#">营养保健</a>
            </div>
         </div>
      </div>
      <div class="fresh_mid">
         <ul>
            <li>
               <div class="name"><a href="#">莫斯利安酸奶</a></div>
               <div class="price">
                  <font>¥<span>96.00</span></font> &nbsp; 25R
               </div>
               <div class="img"><a href="#"><img src="imgs/food_1.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">趣多多散装</a></div>
               <div class="price">
                  <font>¥<span>96.00</span></font> &nbsp; 25R
               </div>
               <div class="img"><a href="#"><img src="imgs/food_2.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">休闲零食包</a></div>
               <div class="price">
                  <font>¥<span>96.00</span></font> &nbsp; 25R
               </div>
               <div class="img"><a href="#"><img src="imgs/food_3.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">RIO鸡尾酒</a></div>
               <div class="price">
                  <font>¥<span>96.00</span></font> &nbsp; 25R
               </div>
               <div class="img"><a href="#"><img src="imgs/food_4.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">不知名生物</a></div>
               <div class="price">
                  <font>¥<span>96.00</span></font> &nbsp; 25R
               </div>
               <div class="img"><a href="#"><img src="imgs/food_5.jpg" width="185" height="155" /></a></div>
            </li>
            <li>
               <div class="name"><a href="#">进口红酒</a></div>
               <div class="price">
                  <font>¥<span>96.00</span></font> &nbsp; 25R
               </div>
               <div class="img"><a href="#"><img src="imgs/food_6.jpg" width="185" height="155" /></a></div>
            </li>
         </ul>
      </div>
      <div class="fresh_right">
         <ul>
            <li><a href="#"><img src="imgs/food_b1.jpg" width="260" height="220" /></a></li>
            <li><a href="#"><img src="imgs/food_b2.jpg" width="260" height="220" /></a></li>
         </ul>
      </div>
   </div>
   <!--End 食品饮料 -->

   <!--Begin 猜你喜欢-->
   <div class="mar_10 wordstyle1">
      <span class="fl">猜你喜欢</span>
   </div>
   <div class="like">
      <div id="featureContainer1">
         <div id="feature1">
            <div id="block1">
               <div id="botton-scroll1">
                  <ul class="featureUL">
                     <li class="featureBox">
                        <div class="box">
                           <div class="img_bg">
                              <a href="#"><img src="imgs/hot1.jpg" width="160" height="136" /></a>
                           </div>
                           <div class="name">
                              <a href="#">
                                 <h2>德国进口</h2>
                                 德亚全脂纯牛奶200ml*48盒
                              </a>
                           </div>
                           <div class="price">
                              <font>¥<span>189</span></font> &nbsp; 26R
                           </div>
                        </div>
                     </li>
                     <li class="featureBox">
                        <div class="box">
                           <div class="img_bg">
                              <a href="#"><img src="imgs/hot2.jpg" width="160" height="136" /></a>
                           </div>
                           <div class="name">
                              <a href="#">
                                 <h2>Rio鸡尾酒</h2>
                                 鸡尾酒/限定包装/3瓶装
                              </a>
                           </div>
                           <div class="price">
                              <font>¥<span>88</span></font> &nbsp; 25R
                           </div>
                        </div>
                     </li>
                     <li class="featureBox">
                        <div class="box">
                           <div class="img_bg">
                              <a href="#"><img src="imgs/hot3.jpg" width="160" height="136" /></a>
                           </div>
                           <div class="name">
                              <a href="#">
                                 <h2>进口狗狗饼干</h2>
                                 进口狗狗饼干套装8折促销
                              </a>
                           </div>
                           <div class="price">
                              <font>¥<span>368</span></font> &nbsp; 18R
                           </div>
                        </div>
                     </li>
                     <li class="featureBox">
                        <div class="box">
                           <div class="img_bg">
                              <a href="#"><img src="imgs/hot4.jpg" width="160" height="136" /></a>
                           </div>
                           <div class="name">
                              <a href="#">
                                 <h2>品利特级橄榄油</h2>
                                 750ml*4瓶装组合 西班牙原装进口
                              </a>
                           </div>
                           <div class="price">
                              <font>¥<span>280</span></font> &nbsp; 30R
                           </div>
                        </div>
                     </li>
                     <li class="featureBox">
                        <div class="box">
                           <div class="img_bg">
                              <a href="#"><img src="imgs/food_1.jpg" width="160" height="136" /></a>
                           </div>
                           <div class="name">
                              <a href="#">
                                 <h2>莫斯利安酸奶</h2>
                                 450ml*12瓶装组合 优质好酸奶
                              </a>
                           </div>
                           <div class="price">
                              <font>¥<span>96</span></font> &nbsp; 25R
                           </div>
                        </div>
                     </li>
                  </ul>
               </div>
            </div>
         </div>
      </div>
   </div>
   <!--End 猜你喜欢-->

   <!--返回顶部-->
   <div class="gotop">
      <a href="buycar.jsp">
         <dl>
            <dt><img src="imgs/gt1.png"/></dt>
            <dd>去购<br />物车</dd>
         </dl>
      </a>
      <%
         if(user == null)
          {
             out.println("<a href=\"#\" id=\"not_admin1\">\n" +
                   "\t\t\t<dl>\n" +
                   "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
                   "\t\t\t\t<dd>个人<br />中心</dd>\n" +
                   "\t\t\t</dl>\n" +
                   "\t\t</a>");
          }
          else
          {
             out.println("<a href=\"personcenter.jsp\" >\n" +
                   "\t\t\t<dl>\n" +
                   "\t\t\t\t<dt><img src=\"imgs/gt3.png\"/></dt>\n" +
                   "\t\t\t\t<dd>个人<br />中心</dd>\n" +
                   "\t\t\t</dl>\n" +
                   "\t\t</a>");
          }
      %>
      <a href="#" class="toptop">
         <dl>
            <dt><img src="imgs/gt4.png"/></dt>
            <dd>返回<br />顶部</dd>
         </dl>
      </a>
   </div>

   <!--Begin Footer-->
   <div class="behind_bottom_bg behind_bottom_common">
      <div class="behind_bottom">
         <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
            <tr>
               <td width="72"><img src="imgs/b1.png" width="62" height="62" /></td>
               <td>
                  <h2>正品保障</h2>正品行货 放心购买
               </td>
            </tr>
         </table>
         <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
            <tr>
               <td width="72"><img src="imgs/b2.png" width="62" height="62" /></td>
               <td>
                  <h2>满38包邮</h2>满38包邮 免运费
               </td>
            </tr>
         </table>
         <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
            <tr>
               <td width="72"><img src="imgs/b3.png" width="62" height="62" /></td>
               <td>
                  <h2>天天低价</h2>天天低价 畅选无忧
               </td>
            </tr>
         </table>
         <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
            <tr>
               <td width="72"><img src="imgs/b4.png" width="62" height="62" /></td>
               <td>
                  <h2>准时送达</h2>收货时间由你做主
               </td>
            </tr>
         </table>
      </div>
   </div>
   <div class="behind_nav" >
      <dl>
         <dt><a href="#">新手上路</a></dt>
         <dd><a href="#">售后流程</a></dd>
         <dd><a href="#">购物流程</a></dd>
         <dd><a href="#">订购方式</a></dd>
         <dd><a href="#">隐私声明</a></dd>
         <dd><a href="#">推荐分享说明</a></dd>
      </dl>
      <dl>
         <dt><a href="#">配送与支付</a></dt>
         <dd><a href="#">货到付款区域</a></dd>
         <dd><a href="#">配送支付查询</a></dd>
         <dd><a href="#">支付方式说明</a></dd>
      </dl>
      <dl>
         <dt><a href="#">会员中心</a></dt>
         <dd><a href="#">资金管理</a></dd>
         <dd><a href="#">我的收藏</a></dd>
         <dd><a href="#">我的订单</a></dd>
      </dl>
      <dl>
         <dt><a href="#">服务保证</a></dt>
         <dd><a href="#">退换货原则</a></dd>
         <dd><a href="#">售后服务保证</a></dd>
         <dd><a href="#">产品质量保证</a></dd>
      </dl>
      <dl>
         <dt><a href="#">联系我们</a></dt>
         <dd><a href="/controller.ManagementServlet">网站故障报告</a></dd>
         <dd><a href="/controller.ManagementServlet">购物咨询</a></dd>
         <dd><a href="/controller.ManagementServlet">投诉与建议</a></dd>
      </dl>
      <div class="behind_tell_bg">
         <a href="#" class="bottom_style1">新浪微博</a>
         <a href="#" class="bottom_style2">腾讯微博</a>
         <p class="toptop">
            服务热线:<br/>
            <span>400-123-4567</span>
         </p>
      </div>

   </div>
   <div class="bottom_bg">
      <div class="bottom">
         备案/许可证编号:京ICP备120093xxxx号 Copyright © 2015-2019 进口商城商城网 All Rights Reserved. <br />
         <a href="#"> <img src="imgs/b_1.gif" width="98" height="33" > </a>
         <a href="#"> <img src="imgs/b_2.gif" width="98" height="33" > </a>
         <a href="#"> <img src="imgs/b_3.gif" width="98" height="33" > </a>
         <a href="#"> <img src="imgs/b_4.gif" width="98" height="33" > </a>
         <a href="#"> <img src="imgs/b_5.gif" width="98" height="33" > </a>
         <a href="#"> <img src="imgs/b_6.gif" width="98" height="33" > </a>
      </div>
   </div>
   <!--End Footer -->
</div>
<script>
   document.getElementById("not_admin").onclick = function not_admin()
   {
      alert("您需要先登录");
   }
   document.getElementById("not_admin1").onclick = function not_admin()
   {
      alert("您需要先登录");
   }
</script>
</body>

</html>
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/794362
推荐阅读
相关标签
  

闽ICP备14008679号