假期每周总结一
作者:互联网
在过去的一周里,主要复习了在学校中复习的ajax技术
并且写了一个简单的菜品订单系统
package dao; import bean.Users; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanHandler; import util.DButil; import java.sql.SQLException; public class Userdao { private QueryRunner queryRunner =new QueryRunner(DButil.getDruidDataSource()); public boolean insert(Users users) { Object[] prams = {users.getNummber(),users.getName(),users.getSex(),users.getAddress(),users.getPassword()}; try { int result = queryRunner.update("insert into users(nummber,name,sex,address,password) value (?,?,?,?,?)",prams); if(result == 1) return true; } catch (SQLException e) { e.printStackTrace(); } return false; } public Users select(String nummber) { Users user = null; try { user = queryRunner.query("select * from users where nummber=?",new BeanHandler<Users>(Users.class),nummber); } catch (SQLException e) { e.printStackTrace(); } return user; } // public static void main(String[] args) { // Userdao userdao = new Userdao(); // System.out.println(userdao.select("1461519513@qq.com")); // } }
<!DOCTYPE html> <html lang="en"> <head> <!-- Basic page needs ============================================ --> <title>Home</title> <meta charset="utf-8"> <meta name="keywords" content=""/> <meta name="author" content="Magentech"> <meta name="robots" content="index, follow"/> <!-- Mobile specific metas ============================================ --> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <!-- Favicon ============================================ --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="ico/favicon.png"> <!-- Google web fonts ============================================ --> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'> <!-- Libs CSS ============================================ --> <link rel="stylesheet" href="css/bootstrap/css/bootstrap.min.css"> <link href="css/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <link href="js/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet"> <link href="js/owl-carousel/owl.carousel.css" rel="stylesheet"> <link href="css/themecss/lib.css" rel="stylesheet"> <link href="js/jquery-ui/jquery-ui.min.css" rel="stylesheet"> <!-- Theme CSS ============================================ --> <link href="css/themecss/so_megamenu.css" rel="stylesheet"> <link href="css/themecss/so-categories.css" rel="stylesheet"> <link href="css/themecss/so-listing-tabs.css" rel="stylesheet"> <link id="color_scheme" href="css/theme.css" rel="stylesheet"> <link href="css/responsive.css" rel="stylesheet"> <script type="text/javascript" src="jquery-3.5.1.js"></script> <script type="text/javascript"> $(function () { var sub = false; $('#search').blur(function () { if ($('#search').val() == "") { $('#subspan').text("查找不能为空"); sub = false; } else { $('#subspan').text(""); sub = true; } }) $('#form').submit(function () { if (sub) { return true; } else return false; }) }) </script> </head> <body class="common-home res layout-home1"> <div id="wrapper" class="wrapper-full banners-effect-7"> <!-- Header Container --> <header id="header" class=" variantleft type_1"> <!-- Header Top --> <div class="header-top"> <div class="container"> <div class="row"> <div class="header-top-left form-inline col-sm-6 col-xs-12 compact-hidden"> </div> <div class="header-top-right collapsed-block text-right col-sm-6 col-xs-12 compact-hidden"> <h5 class="tabBlockTitle visible-xs">More<a class="expander " href="#TabBlock-1"><i class="fa fa-angle-down"></i></a></h5> <div class="tabBlock" id="TabBlock-1"> <ul class="top-link list-inline"> <li class="account" id="my_account"> <a href="#" title="My Account" class="btn btn-xs dropdown-toggle" data-toggle="dropdown"> <span>账号</span> <span class="fa fa-angle-down"></span></a> <ul class="dropdown-menu "> <li><a href="register.jsp"><i class="fa fa-user"></i> 注册</a></li> <li><a href="login.jsp"><i class="fa fa-pencil-square-o"></i> 登录</a></li> <li><a href="trolley.jsp?email=<?php echo $email; ?>"><i class="fa fa-pencil-square-o"></i> 购物车</a></li> <li><a href="readorderstate.jsp?email=<?php echo $email; ?>"><i class="fa fa-pencil-square-o"></i> 我的订单</a></li> </ul> </li> </ul> </div> </div> </div> </div> </div> <!-- //Header Top --> <!-- Header center --> <div class="header-center left"> <div class="container"> <div class="row"> <!-- Logo --> <div class="navbar-logo col-md-3 col-sm-12 col-xs-12"> <a href="index.jsp"><img src="image/demo/logos/theme_logo.png" title="Your Store" alt="Your Store"/></a> </div> <!-- //end Logo --> <!-- Search --> <div id="sosearchpro" class="col-sm-7 search-pro"> <form method="GET" action="category.jsp" id="form"> <div id="search0" class="search input-group"> <div class="select_category filter_type icon-select"> <select class="no-border" name="chazhaoleixing"> <option value="名称"> 名称 </option> <option value="种类"> 种类 </option> </select> </div> <span id="subspan"></span> <input class="autosearch-input form-control" type="text" size="50" autocomplete="off" placeholder="查找" name="search" id="search"> <input type="hidden" value="<?php echo $email ?>" name="email"> <span class="input-group-btn"> <button type="submit" class="button-search btn btn-primary"><i class="fa fa-search"></i></button> </span> </div> <input type="hidden" name="route" value="search"/> </form> </div> <!-- //end Search --> <!-- Secondary menu --> <div class="col-md-2 col-sm-5 col-xs-12 shopping_cart pull-right"> <!--cart--> <div id="cart" class=" btn-group btn-shopping-cart"> <a data-loading-text="Loading..." class="top_cart dropdown-toggle" data-toggle="dropdown"> <div class="shopcart"> <span class="handle pull-left"></span> <span class="title">购物车</span> </div> </a> <ul class="tab-content content dropdown-menu pull-right shoppingcart-box" role="menu"> <li> <table class="table table-striped"> <tbody> <!-- 购物车内容--> <tr> <td class="text-center" style="width:70px"> <a href="product.jsp"> <img src="image/demo/shop/product/35.jpg" style="width:70px" alt="Filet Mign" title="Filet Mign" class="preview"> </a> </td> <td class="text-left"><a class="cart_product_name" href="product.jsp">Filet Mign</a></td> <td class="text-center"> x1</td> <td class="text-center"> $1,202.00</td> <td class="text-right"> <a href="product.jsp" class="fa fa-edit"></a> </td> <td class="text-right"> <a onclick="cart.remove('2');" class="fa fa-times fa-delete"></a> </td> </tr> <tr> <td class="text-center" style="width:70px"> <a href="product.jsp"> <img src="image/demo/shop/product/141.jpg" style="width:70px" alt="Canon EOS 5D" title="Canon EOS 5D" class="preview"> </a> </td> <td class="text-left"><a class="cart_product_name" href="product.jsp">Canon EOS 5D</a></td> <td class="text-center"> x1</td> <td class="text-center"> $60.00</td> <td class="text-right"> <a href="product.jsp" class="fa fa-edit"></a> </td> <td class="text-right"> <a onclick="cart.remove('1');" class="fa fa-times fa-delete"></a> </td> </tr> </tbody> </table> </li> <li> <div> <p class="text-right"><a class="btn view-cart" href="#"><i class="fa fa-shopping-cart"></i>购买</a> <a class="btn btn-mega checkout-cart" href="#"><i class="fa fa-share"></i>返回</a> </p> </div> </li> </ul> </div> <!--//cart--> </div> </div> </div> </div> <!-- //Header center --> <!-- Header Bottom --> <div class="header-bottom"> <div class="container"> <div class="row"> <div class="sidebar-menu col-md-3 col-sm-6 col-xs-12 "> <div class="responsive so-megamenu "> <div class="so-vertical-menu no-gutter compact-hidden"> <nav class="navbar-default"> <div class="container-megamenu vertical "> <div id="menuHeading"> <div class="megamenuToogle-wrapper"> <div class="megamenuToogle-pattern"> <div class="container"> 导航 </div> </div> </div> </div> <div class="navbar-header"> <button type="button" id="show-verticalmenu" data-toggle="collapse" class="navbar-toggle fa fa-list-alt"> </button> </div> </div> </nav> </div> </div> </div> <!-- Main menu --> <div class="megamenu-hori header-bottom-right col-md-9 col-sm-6 col-xs-12 "> <div class="responsive so-megamenu "> <nav class="navbar-default"> <div class=" container-megamenu horizontal"> <div class="navbar-header"> <button type="button" id="show-megamenu" data-toggle="collapse" class="navbar-toggle"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> Navigation </div> <div class="megamenu-wrapper"> <span id="remove-megamenu" class="fa fa-times"></span> <div class="megamenu-pattern"> <div class="container"> <ul class="megamenu " data-transition="slide" data-animationtime="250"> <li class="home hover"> <a href="index.jsp?email=<?php echo $email; ?>">主页</a> </li> <li class="with-sub-menu hover"> <p class="close-menu"></p> <a href="#" class="clearfix"> <strong>种类</strong></b> </a> <div class="sub-menu" style="width: 100%; right: auto;"> <div class="content"> <div class="row"> <div class="col-md-3"> <div class="column"> <a href="#" class="title-submenu">手机</a> <div> <ul class="row-list"> <li> <a href="category.html">Apple </a> </li> <li><a href="#">华为</a></li> <li><a href="#">vivo</a></li> <li><a href="#">oppo</a></li> <li><a href="#">魅族</a></li> <li><a href="#">小米</a></li> </ul> </div> </div> </div> <div class="col-md-3"> <div class="column"> <a href="#" class="title-submenu">平板电脑</a> <div> <ul class="row-list"> <li><a href="product.jsp">iPad</a> </li> <li><a href="#">华为</a></li> <li><a href="#">小米</a></li> </ul> </div> </div> </div> <div class="col-md-3"> <div class="column"> <a href="#" class="title-submenu">笔记本</a> <div> <ul class="row-list"> <li><a href="#">宏碁</a></li> <li><a href="#">外星人</a></li> <li><a href="#">红米</a></li> <li><a href="#">联想</a></li> </ul> </div> </div> </div> </div> </div> </div> </li> <li class="with-sub-menu hover"> <p class="close-menu"></p> <a href="#" class="clearfix"> <strong>品牌</strong> </a> <div class="sub-menu" style="width: 40%; "> <div class="content"> <div class="row"> <div class="col-md-6"> <ul class="row-list"> <li><a class="subcategory_item" href="#">iPhone</a> </li> <li><a class="subcategory_item" href="#">HUAWEI</a> </li> <li><a class="subcategory_item" href="#">OPPO</a> </li> <li><a class="subcategory_item" href="#">vivo</a> </li> <li><a class="subcategory_item" href="#">honor</a> </li> </ul> </div> <div class="col-md-6"> <ul class="row-list"> <li><a class="subcategory_item" href="#">Meizu</a> </li> <li><a class="subcategory_item" href="#">小米</a></li> <li><a class="subcategory_item" href="#">三星盖乐世</a> </li> <li><a class="subcategory_item" href="#">一加</a></li> </ul> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </nav> </div> </div> <!-- //end Main menu --> </div> </div> </div> <!-- Navbar switcher --> <!-- //end Navbar switcher --> </header> <!-- //Header Container --> <!-- Block Spotlight1 --> <section class="so-spotlight1 "> <div class="container"> <div class="row"> <div id="yt_header_right" class="col-lg-offset-3 col-lg-9 col-md-12"> <div class="slider-container "> <div id="so-slideshow" class="col-lg-8 col-md-8 col-sm-12 col-xs-12 two-block"> <div class="module slideshow no-margin"> <!-- 主页自动滑动的图片--> <div class="item"> <a href="#"><img src="image/demo/slider/slider-1.png" alt="slider1" class="img-responsive"></a> </div> <div class="item"> <a href="#"><img src="image/demo/slider/slider-2.png" alt="slider2" class="img-responsive"></a> </div> <div class="item"> <a href="#"><img src="image/demo/slider/slider-3.png" alt="slider3" class="img-responsive"></a> </div> </div> <div class="loadeding"></div> </div> <div class="module col-md-4 hidden-sm hidden-xs three-block "> <div class="modcontent clearfix"> <div class="htmlcontent-block"> <ul class="htmlcontent-home"> <!-- 这是滑动右侧的图片--> <li> <div class="banners"> <div> <a href="#"><img src="image/demo/cms/banner1.jpg" alt="banner1"></a> </div> </div> </li> <li> <div class="banners"> <div> <a href="#"><img src="image/demo/cms/banner2.jpg" alt="banner1"></a> </div> </div> </li> <li> <div class="banners"> <div> <a href="#"><img src="image/demo/cms/banner3.jpg" alt="banner1"></a> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </section> <div class="main-container container"> <div class="row"> <div id="content" class="col-sm-12"> <div class="module tab-slider titleLine"> <h3 class="modtitle">特色产品</h3> <div id="so_listing_tabs_1" class="so-listing-tabs first-load module"> <div class="loadeding"></div> <div class="ltabs-wrap"> <div class="ltabs-tabs-container" data-delay="300" data-duration="600" data-effect="starwars" data-ajaxurl="#" data-type_source="0"> <!--Begin Tabs--> <div class="ltabs-tabs-wrap"> <span class="ltabs-tab-selected">Jewelry & Watches </span> <span class="ltabs-tab-arrow">▼</span> <div class="item-sub-cat"> <ul class="ltabs-tabs cf"> <li class="ltabs-tab tab-sel" data-category-id="20" data-active-content=".items-category-20"> <!-- <span class="ltabs-tab-label"></span>--> </li> </ul> </div> </div> <!-- End Tabs--> </div> <div class="ltabs-items-container"> <!--Begin Items--> <div class="ltabs-items ltabs-items-selected items-category-20 grid" data-total="10"> <div class="ltabs-items-inner ltabs-slider "> <div class="ltabs-item product-layout"> <div class="product-item-container"> <div class="left-block"> <div class="product-image-container second_img "> <img src="img/p30.webp" alt="Apple Cinema 30"" class="img-responsive"/> </div> <!--Sale Label--> <!--full quick view block--> </div> <div class="right-block"> <div class="caption"> <h4><a href="product.jsp?pname=p30&email=<?php echo $email ?>">p30</a></h4> <div class="price"> <span class="price-new">3000</span> </div> </div> <div class="button-group"> <button class="addToCart" type="button" data-toggle="tooltip" title="加入购物车" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="">加入购物车</span> </button> </div> </div><!-- right block --> </div> </div> <div class="ltabs-item product-layout"> <div class="product-item-container"> <div class="left-block"> <div class="product-image-container second_img "> <img src="img/小米11.jpg" alt="Apple Cinema 30"" class="img-responsive"/> </div> <!--New Label--> <!--full quick view block--> <!--end full quick view block--> </div> <div class="right-block"> <div class="caption"> <h4><a href="product.jsp?pname=XiaoMi11&email=<?php echo $email ?>">XiaoMi11</a></h4> <div class="price"> <span class="price-new">5000</span> </div> </div> <div class="button-group"> <button class="addToCart" type="button" data-toggle="tooltip" title="加入购物车" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="">加入购物车</span> </button> </div> </div><!-- right block --> </div> </div> <div class="ltabs-item product-layout"> <div class="product-item-container"> <div class="left-block"> <div class="product-image-container second_img "> <img src="img/暗影骑士.webp" alt="Apple Cinema 30"" class="img-responsive"/> </div> <!--Sale Label--> <!--full quick view block--> <!--end full quick view block--> </div> <div class="right-block"> <div class="caption"> <h4><a href="product.jsp?pname=Shadow Knight&email=<?php echo $email ?>">Shadow Knight</a></h4> <div class="price"> <span class="price-new">7000</span> </div> </div> <div class="button-group"> <button class="addToCart" type="button" data-toggle="tooltip" title="加入购物车" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="">加入购物车</span> </button> </div> </div><!-- right block --> </div> </div> <div class="ltabs-item product-layout"> <div class="product-item-container"> <div class="left-block"> <div class="product-image-container second_img "> <img src="img/iPad.webp" alt="Apple Cinema 30"" class="img-responsive"/> </div> </div> <div class="right-block"> <div class="caption"> <h4><a href="product.jsp?pname=iPad pro&email=<?php echo $email ?>">iPad Pro</a></h4> <div class="price"> <span class="price-new">7000</span> </div> </div> <div class="button-group"> <button class="addToCart" type="button" data-toggle="tooltip" title="加入购物车" onclick="cart.add('42', '1');"><i class="fa fa-shopping-cart"></i> <span class="">加入购物车</span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="module "> <div class="modcontent clearfix"> <div class="banner-wraps "> <div class="m-banner row"> <div class="banner htmlconten1 col-lg-4 col-md-4 col-sm-6 col-xs-12"> <div class="banners"> <div> <a href="#"><img src="image/demo/cms/banner2-1.png" alt="banner1"></a> </div> </div> </div> <div class="htmlconten2 col-lg-4 col-md-4 col-sm-6 col-xs-12"> <div class="module banners"> <div> <a href="#"><img src="image/demo/cms/banner2-2.png" alt="banner1"></a> </div> </div> <div class="banners"> <div> <a href="#"><img src="image/demo/cms/banner2-3.png" alt="banner1"></a> </div> </div> </div> <div class="banner htmlconten3 hidden-sm col-lg-4 col-md-4 col-sm-6 col-xs-12"> <div class="banners"> <div> <a href="#"><img src="image/demo/cms/banner2-4.png" alt="banner1"></a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> var $typeheader = 'header-home1'; //--> </script> <!-- Footer Container --> <footer class="footer-container"> <div class="footer-bottom-block "> <div class=" container"> <div class="row"> <div class="col-sm-5 copyright-text">Copyright © 2017.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">网页模板</a> </div> <div class="col-sm-7"> <div class="block-payment text-right"><img src="image/demo/content/payment.png" alt="payment" title="payment"></div> </div> <!--Back To Top--> <div class="back-to-top"><i class="fa fa-angle-up"></i><span> Top </span></div> </div> </div> </div> <!-- /Footer Bottom Container --> </footer> <!-- //end Footer Container --> </div> <!-- Social widgets --> <section class="social-widgets visible-lg"> <ul class="items"> <li class="item item-01 facebook"><a href="" class="tab-icon"><span class="fa fa-facebook"></span></a> <div class="tab-content"> <div class="title"> <h5>FACEBOOK</h5> </div> <div class="loading"> <img src="image/theme/lazy-loader.gif" class="ajaxloader" alt="loader"> </div> </div> </li> <li class="item item-02 twitter"><a href="" class="tab-icon"><span class="fa fa-twitter"></span></a> <div class="tab-content"> <div class="title"> <h5>TWITTER FEEDS</h5> </div> <div class="loading"> <img src="image/theme/lazy-loader.gif" class="ajaxloader" alt="loader"> </div> </div> </li> <li class="item item-03 youtube"><a href="#" class="tab-icon"><span class="fa fa-youtube"></span></a> <div class="tab-content"> <div class="title"> <h5>YouTube</h5> </div> <div class="loading"><img src="image/theme/lazy-loader.gif" class="ajaxloader" alt="loader"></div> </div> </li> </ul> </section> <!-- End Social widgets --> <link rel='stylesheet' property='stylesheet' href='css/themecss/cpanel.css' type='text/css' media='all'/> <!-- Preloading Screen --> <div id="loader-wrapper"> <div id="loader"></div> <div class="loader-section section-left"></div> <div class="loader-section section-right"></div> </div> <!-- End Preloading Screen --> <!-- Include Libs & Plugins ============================================ --> <!-- Placed at the end of the document so the pages load faster --> <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> <script type="text/javascript" src="js/owl-carousel/owl.carousel.js"></script> <script type="text/javascript" src="js/themejs/libs.js"></script> <script type="text/javascript" src="js/unveil/jquery.unveil.js"></script> <script type="text/javascript" src="js/countdown/jquery.countdown.min.js"></script> <script type="text/javascript" src="js/dcjqaccordion/jquery.dcjqaccordion.2.8.min.js"></script> <script type="text/javascript" src="js/datetimepicker/moment.js"></script> <script type="text/javascript" src="js/datetimepicker/bootstrap-datetimepicker.min.js"></script> <script type="text/javascript" src="js/jquery-ui/jquery-ui.min.js"></script> <!-- Theme files ============================================ --> <script type="text/javascript" src="js/themejs/application.js"></script> <script type="text/javascript" src="js/themejs/toppanel.js"></script> <script type="text/javascript" src="js/themejs/so_megamenu.js"></script> <script type="text/javascript" src="js/themejs/addtocart.js"></script> <!--<script type="text/javascript" src="js/themejs/cpanel.js"></script>--> </body> </html>
标签:总结,return,users,每周,假期,购物车,nbsp,import,Users 来源: https://www.cnblogs.com/-0112/p/16440373.html