登录注册界面如下:
注册界面片段:
整体界面展示:
部分代码实现:(代码有删减)
C3P0配置信息如下:
package utils;
import java.sql.SQLException;
import javax.sql.DataSource;
import com.mchange.v2.c3p0.ComboPooledDataSource;
public class C3p0Utils {
public static DataSource ds= new ComboPooledDataSource();
static {
ComboPooledDataSource cpds = new ComboPooledDataSource();
ds=cpds;
}
public static DataSource getDataSource() {
return ds;
}
public static void main(String[] args) throws SQLException {
System.out.println(ds.getConnection());
}
}
主界面部分代码实现:
<nav class="navbar ow-navigation">
<div class="navbar-header">
<a title="Logo1" href="index.jsp" class="navbar-brand"><img src="images/logo.png"></a>
</div>
<div class="navbar-collapse collapse" id="navbar">
<ul class="nav navbar-nav">
<li><a title="登录" href="rooms.jsp">点我登录</a></li>
<li><a title="注册" href="service.jsp">点我注册</a></li>
</ul>
</div>
</nav><!-- Navigation -->
</div>
</div><!-- Menu Block /- -->
</header><!-- Header /- -->
<main>
<li data-transition="zoomout" data-slotamount="default" data-easein="easeInOut" data-easeout="easeInOut" data-masterspeed="2000" data-rotate="0" data-fstransition="fade" data-fsmasterspeed="1500" data-fsslotamount="7">
<img src="images/slider-1.jpg" alt="slider" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" data-bgparallax="10" class="rev-slidebg" data-no-retina>
<!-- LAYERS -->
<!-- LAYER NR. 1 -->
<div class="tp-caption tp-shape tp-shapewrapper" id="slide-layer-0"
data-x="['center','center','center','center']"
data-y="['middle','middle','middle','middle']"
data-basealign="slide"
data-height="full"
data-hoffset="['0','0','0','0']"
data-responsive="off"
data-responsive_offset="off"
data-start="0"
data-transform_idle="o:1;"
data-transform_in="opacity:0;s:2000;e:Power2.easeInOut;"
data-transform_out="opacity:0;s:500;s:500;"
data-voffset="['0','0','0','0']"
data-whitespace="nowrap"
data-width="full"
style="z-index: 5;background-color:rgba(0, 0, 0, 0.502);">
</div>
购物车界面部分代码如下:
//读取表单传入的商品ID及数量
String id=request.getParameter("itemID");
String num=request.getParameter("quantity");
// System.out.println("dsadad");
if(id!=null && num.length()!=0)
{ //从Sessionn中读取购物车
HashMap shoppingCar=(HashMap)session.getAttribute("shoppingCar");
if(shoppingCar==null)
shoppingCar=new HashMap();
//将商品加入到购物车中
该系统实现客户订房退房,点餐,费用计算和对应的管理员对商品的各种详细操作。
如果有任何需要,购买代买可以联系QQ:3281686985 (非诚勿扰)