Compare commits

..

No commits in common. 'master' and 'xhy_branch' have entirely different histories.

@ -1,90 +0,0 @@
package com.itbaizhan.orm;
/**
* TLiuyan generated by MyEclipse Persistence Tools
*/
public class TLiuyan implements java.io.Serializable
{
private Integer id;//留言ID
private String neirong;//留言内容
private String liuyanshi;//留言时间
private String user_id;//用户ID
private String huifu;//回复内容
private String huifushi;//回复时间
private Tuser user;
public String getHuifu()//得到回复内容
{
return huifu;
}
public void setHuifu(String huifu)//设置回复内容
{
this.huifu = huifu;
}
public String getHuifushi()//得到回复时间
{
return huifushi;
}
public void setHuifushi(String huifushi)//设置回复时间
{
this.huifushi = huifushi;
}
public Integer getId()//得到回复ID
{
return id;
}
public void setId(Integer id)//设置回复ID
{
this.id = id;
}
public String getLiuyanshi()//得到回复时间
{
return liuyanshi;
}
public void setLiuyanshi(String liuyanshi)//设置回复时间
{
this.liuyanshi = liuyanshi;
}
public String getNeirong()//得到回复内容
{
return neirong;
}
public void setNeirong(String neirong)//设置回复内容
{
this.neirong = neirong;
}
public Tuser getUser()//得到留言用户
{
return user;
}
public void setUser(Tuser user)//设置留言用户
{
this.user = user;
}
public String getUser_id()//得到留言用户ID
{
return user_id;
}
public void setUser_id(String user_id)//设置留言用户ID
{
this.user_id = user_id;
}
}

@ -1,45 +0,0 @@
package com.itbaizhan.orm;
// 商品分类类
public class Tcatelog {
// 商品分类的ID
private String id; // 商品分类ID用于唯一标识商品分类
// 商品分类的名称
private String name; // 商品分类名称,用于描述商品所属的类别
// 商品是否已被删除的标记
private String del; // 商品分类是否删除的标记,"1"表示已删除,"0"表示未删除
// 获取商品分类的删除标记
public String getDel() {
return del; // 返回商品分类的删除状态
}
// 设置商品分类的删除标记
public void setDel(String del) {
this.del = del; // 设置商品分类的删除状态
}
// 获取商品分类的名称
public String getName() {
return name; // 返回商品分类的名称
}
// 设置商品分类的名称
public void setName(String name) {
this.name = name; // 设置商品分类的名称
}
// 获取商品分类的ID
public String getId() {
return id; // 返回商品分类的ID
}
// 设置商品分类的ID
public void setId(String id) {
this.id = id; // 设置商品分类的ID
}
}

@ -1,107 +0,0 @@
package com.itbaizhan.orm;
public class Tgoods //菜品信息类
{
private String id;//菜品的ID
private String catelog_id;//菜品类别的ID
private String bianhao;//菜品的编号
private String mingcheng;//菜品的名称
private String jieshao;//菜品的介绍
private String fujian;//菜品的图片
private int shichangjia;//菜品的市场价
private int tejia;//菜品的特价
private String del;//菜品是否删除标志
public String getBianhao()//得到菜品编号
{
return bianhao;
}
public void setBianhao(String bianhao)//设置菜品编号
{
this.bianhao = bianhao;
}
public String getCatelog_id()//得到菜品类别ID
{
return catelog_id;
}
public void setCatelog_id(String catelog_id)//设置菜品类别ID
{
this.catelog_id = catelog_id;
}
public String getDel()//得到菜品是否删除信息
{
return del;
}
public void setDel(String del)//设置菜品是否删除信息
{
this.del = del;
}
public String getFujian()//得到菜品图片信息
{
return fujian;
}
public void setFujian(String fujian)//设置菜品图片信息
{
this.fujian = fujian;
}
public String getId()//得到菜品ID信息
{
return id;
}
public void setId(String id)//设置菜品ID信息
{
this.id = id;
}
public String getJieshao()//得到菜品介绍信息
{
return jieshao;
}
public void setJieshao(String jieshao)//设置菜品介绍信息
{
this.jieshao = jieshao;
}
public String getMingcheng()//得到菜品名称信息
{
return mingcheng;
}
public void setMingcheng(String mingcheng)//设置菜品名称信息
{
this.mingcheng = mingcheng;
}
public int getShichangjia()//得到菜品市场价信息
{
return shichangjia;
}
public void setShichangjia(int shichangjia)//设置菜品市场价信息
{
this.shichangjia = shichangjia;
}
public int getTejia()//得到菜品特价信息
{
return tejia;
}
public void setTejia(int tejia)//设置菜品市特价信息
{
this.tejia = tejia;
}
}

@ -1,123 +0,0 @@
package com.itbaizhan.orm;
/**
* TOrder generated by MyEclipse Persistence Tools
*/
public class Torder implements java.io.Serializable
{
private String id;//订单ID
private String bianhao;//订单编号
private String shijian;//下单时间
private String zhuangtai;//订单状态
private String huifu;//回复内容
private String songhuodizhi;//送货地址
private String fukuanfangshi;//付款方式
private int jine=0;//总金额
private String user_id;//用户ID
/** 默认构造函数 */
public Torder()
{
}
public String getBianhao()//得到订单编号
{
return bianhao;
}
public void setBianhao(String bianhao)//设置订单编号
{
this.bianhao = bianhao;
}
public String getFukuanfangshi()//得到付款方式
{
return fukuanfangshi;
}
public void setFukuanfangshi(String fukuanfangshi)//设置付款方式
{
this.fukuanfangshi = fukuanfangshi;
}
public String getId()//得到订单ID
{
return id;
}
public void setId(String id)//设置订单ID
{
this.id = id;
}
public int getJine()//得到总金额
{
return jine;
}
public String getHuifu()//得到回复内容
{
return huifu;
}
public void setHuifu(String huifu)//设置回复内容
{
this.huifu = huifu;
}
public void setJine(int jine)//设置总金额
{
this.jine = jine;
}
public String getShijian()//得到下单时间
{
return shijian;
}
public void setShijian(String shijian)//设置下单时间
{
this.shijian = shijian;
}
public String getSonghuodizhi()//得到送货地址
{
return songhuodizhi;
}
public void setSonghuodizhi(String songhuodizhi)//设置送货地址
{
this.songhuodizhi = songhuodizhi;
}
public String getUser_id()//得到用户ID
{
return user_id;
}
public void setUser_id(String user_id)//设置用户ID
{
this.user_id = user_id;
}
public String getZhuangtai()//得到订单状态
{
return zhuangtai;
}
public void setZhuangtai(String zhuangtai)//设置订单状态
{
this.zhuangtai = zhuangtai;
}
}

@ -1,57 +0,0 @@
package com.itbaizhan.orm;
public class TorderItem
{
private String id;//订单明细ID
private String order_id;//订单ID
private String goods_id;//商品ID
private int goods_quantity;//商品数量
private Tgoods goods;//表里没有。自己加的
public int getGoods_quantity()//得到商品数量
{
return goods_quantity;
}
public void setGoods_quantity(int goods_quantity)//设置商品数量
{
this.goods_quantity = goods_quantity;
}
public String getGoods_id()//得到商品ID
{
return goods_id;
}
public void setGoods_id(String goods_id)//设置商品ID
{
this.goods_id = goods_id;
}
public String getId()//得到订单明细ID
{
return id;
}
public void setId(String id)//设置订单明细ID
{
this.id = id;
}
public String getOrder_id()//得到订单ID
{
return order_id;
}
public void setOrder_id(String order_id)//设置订单ID
{
this.order_id = order_id;
}
public Tgoods getGoods()//得到商品信息
{
return goods;
}
public void setGoods(Tgoods goods)//设置商品信息
{
this.goods = goods;
}
}

@ -1,54 +0,0 @@
package com.itbaizhan.orm;
public class Tuser
{
private String id;//用户ID
private String loginname;//用户登录账号
private String loginpw;//用户登录密码
private String name;//用户登录名
private String del;//是否删除标志
public String getId()//得到用户ID
{
return id;
}
public void setId(String id)//设置用户ID
{
this.id = id;
}
public String getLoginname()//得到用户登录账号
{
return loginname;
}
public void setLoginname(String loginname)//设置用户登录账号
{
this.loginname = loginname;
}
public String getLoginpw()//得到用户登录密码
{
return loginpw;
}
public String getDel()//得到用户是否删除信息
{
return del;
}
public void setDel(String del)//设置用户是否删除信息
{
this.del = del;
}
public void setLoginpw(String loginpw)//得到用户登录密码
{
this.loginpw = loginpw;
}
public String getName()//得到用户姓名
{
return name;
}
public void setName(String name)//设置用户姓名
{
this.name = name;
}
}

@ -1,62 +0,0 @@
package com.itbaizhan.orm;
public class Txinyong
{
private String id;//管理员给用户评价ID
private String shuxing;//管理员给用户评价属性
private String neirong;//管理员给用户评价内容
private String shijian;//管理员给用户评价时间
private String user_id;//用户ID
public String getId()//得到评价ID
{
return id;
}
public void setId(String id)//设置评价ID
{
this.id = id;
}
public String getShuxing()//得到评价属性
{
return shuxing;
}
public void setShuxing(String shuxing)//设置评价属性
{
this.shuxing = shuxing;
}
public String getNeirong()//得到评价内容
{
return neirong;
}
public void setNeirong(String neirong)//设置评价内容
{
this.neirong = neirong;
}
public String getShijian()//得到评价时间
{
return shijian;
}
public void setShijian(String shijian)//设置评价时间
{
this.shijian = shijian;
}
public String getUser_id()//得到用户ID
{
return user_id;
}
public void setUser_id(String user_id)//设置用户ID
{
this.user_id = user_id;
}
}

@ -1,713 +0,0 @@
* {
font-size: 12px;
<<<<<<< HEAD
font-family: " ";
=======
font-family: "ËÎÌå";
>>>>>>> remotes/origin/wyp_branch
}
td { line-height: 1.5; }
body {
font-size: 12px;
line-height: 1.5;
<<<<<<< HEAD
font-family: " ";
=======
font-family: "ËÎÌå";
>>>>>>> remotes/origin/wyp_branch
}
form,h1,h2,h3,ul,ol,div{ margin: 0; padding:0;}
td,th,div {
word-break:break-all;
word-wrap:break-word;
}
b,strong {
color:#666600;
}
li,dd {
list-style-type:none; margin:0px; padding:0px;
}
input[type=button]{
background-color: #F1F8B4;
}
h1 { color:#171B16; font-size:130%; font-weight:bold; }
h2 { color:#171B16; font-size:115%; font-weight:bold; }
h3 { color:#171B16; font-size:100%; font-weight:bold;}
<<<<<<< HEAD
a:link { font-size: 9pt; color: #000000; text-decoration: none; font-family: "" ""; }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none; font-family: "" ""; }
a:hover {color: red; font-family: "" "";}
=======
a:link { font-size: 9pt; color: #000000; text-decoration: none; font-family: ""ËÎÌå""; }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none; font-family: ""ËÎÌå""; }
a:hover {color: red; font-family: ""ËÎÌå"";}
>>>>>>> remotes/origin/wyp_branch
a img { border-style:none; }
b a {
color:#666600;
}
strong a {
color:#666600;
}
a b{
color:#666600;
}
a strong{
color:#666600;
}
input { border: 1px solid #ababab; }
<<<<<<< HEAD
/*.aΪ */
=======
/*.aΪÀàÃû*/
>>>>>>> remotes/origin/wyp_branch
.pubinputs {
height: 22px;
width:250px;
padding:4px 3px 2px 3px;
border-width:1px;
border-style:solid;
border-color:#999999 #dddddd #dddddd #999999;
}
.iptxt {
height:22px;
padding:4px 3px 2px 3px;
border-width:1px;
border-style:solid;
border-color:#999999 #dddddd #dddddd #999999;
}
.alltxt {
padding:4px 3px 2px 3px;
border-width:1px;
border-style:solid;
border-color:#999999 #dddddd #dddddd #999999;
}
.pubinput {
height: 24px;
width:250px;
padding-top:3px;
padding-bottom:0px;
}
.pubinputl {
height: 24px;
width:350px;
padding-top:3px;
padding-bottom:0px;
}
.np {
border:none;
}
.linerow{border-bottom: 1px solid #ACACAC;}
.coolbg {
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #F1F8B4;
padding:2px;
padding-right:5px;
padding-left:5px;
background: url(allbtbg2.gif) #EFF7D0;
cursor:pointer;
}
.coolbg2 {
border: 1px solid #000000;
background-color: #DFDDD2;
height:18px
}
.ll {
border-right: 2px solid #ACACAC;
border-bottom: 2px solid #ACACAC;
background-color: #E6E6E6
}
.bline {border-bottom: 1px dotted #BCBCBC; height:28px; background-color: #FFFFFF;}
#uploadfield{float:left;}
.bline2 {border-bottom: 1px solid #BCBCBC;}
.coolbt {
border-left: 1px solid #EFEFEF;
border-top: 1px solid #EFEFEF;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #E4F7D7;
cursor:pointer;
}
.coolbt2 {
border-left: 1px solid #EFEFEF;
border-top: 1px solid #EFEFEF;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #F7FCDA
}
.coolbg3 {
border: 1px solid #BDC5B4;
background-color: #DFDDD2;
height:20px;
width:140px;
text-align:right;
}
.coolbg61 {
line-height:26px;
width:380px;
border-top:1px solid #BDC5B4;
border-left:1px solid #BDC5B4;
border-right:1px solid #BDC5B4;
height:26px;
text-align:right;
background-color: #E7F3B1;
}
.coolbg62 {
border: 1px solid #BDC5B4;
background-color: #F8FDF0;
height:300px;
width:380px;
padding:5px;
}
.coolbg4 {
border-bottom: 1px solid #C9CFC1;
background-color: #EDEBE5;
height:20px;
width:190px;
text-align:right;
}
.coolbg5 {
border-top: 1px solid #BDC5B4;
background-color: #EDEBE5;
font-size:1pt;
height:6px;
width:190px;
}
.dlg {
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 360px;
line-height:160%;
}
.dlgws {
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 280px;
line-height:160%;
}
.dlgws div {
width: 100%;
}
.dlgTesttitle {
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 200px;
line-height:150%;
}
#_mysource{ z-index:5000; }
#_mywriter{ z-index:6000; }
.option1{ background-color: #DCECA6; }
.option2{ background-color: #F7FBD2; }
.option3{ background-color: #FFFFFF; }
.ininput{
width:96%;
height:20px;
border:1px solid #ffffff;
}
.nbt{
padding: 1px;
background-image:url('allbtbg.gif');
background-color:#ffffff;
border:1px solid #A5AF83;
}
.tdt{
padding-left: 6px;
}
.waitpage
{
top:0;
left:0;
filter:Alpha(opacity=70);
-moz-opacity:0.7;
position:absolute;
z-index:10000;
}
.divpre
{
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
}
.autoinput {
padding-left:3px;
width:90%;
height:22px
}
.bodytitle
{
margin:auto;
height:28px;
border:1px dotted #BFD67C;
background:url('wbg.gif');
margin-bottom:6px;
width:98%;
font-weight:bold;
}
.bodytitle div
{
float:left
}
.bodytitletxt
{
padding-left:6px;
line-height:28px;
}
.tbtitle td{ padding:3px; }
.tblist td{
background:#FFFFFF;
padding:6px;
<<<<<<< HEAD
}/* 通用样å¼<C3A5> */
* {
font-size: 12px; /* 设置默认字体大å°<C3A5>为12px */
font-family: ""; /* 设置默认字体(未指定具体字体) */
}
td {
line-height: 1.5; /* 设置表格å<C2BC>•元格的行高为1.5 */
}
/* 设置页é<C2B5>¢çš„基础字体样å¼<C3A5> */
body {
font-size: 12px; /* 设置全局字体大å°<C3A5> */
line-height: 1.5; /* 设置行高 */
font-family: ""; /* 设置全局字体(未指定具体字体) */
}
/* é‡<C3A9>置一äºå¸¸è§<C3A8>的元素的 margin å’Œ padding */
form, h1, h2, h3, ul, ol, div {
margin: 0; /* 去除å¤è¾¹è·<C3A8> */
padding: 0; /* 去除内边è·<C3A8> */
}
/* 设置表格å<C2BC>•元格的æ‡å­—æ<E28094>¢è¡Œæ¹å¼<C3A5> */
td, th, div {
word-break: break-all; /* 强制长å<C2BF>•è¯<C3A8>在任æ„<C3A6>ä½<C3A4>ç½®æ­å¼€æ<E282AC>¢è¡Œ */
word-wrap: break-word; /* 在å<C2A8>•è¯<C3A8>内强制æ<C2B6>¢è¡Œ */
}
/* 强调标签的字体颜色 */
b, strong {
color: #666600; /* 设置粗体文字颜色为深黄色 */
}
/* 去除列表项的默认样å¼<C3A5> */
li, dd {
list-style-type: none; /* 去除列表标记 */
margin: 0px; /* 去除å¤è¾¹è·<C3A8> */
padding: 0px; /* 去除内边è·<C3A8> */
}
/* è®¾ç½®æŒ‰é®æ ·å¼<C3A5> */
input[type=button] {
background-color: #F1F8B4; /* 设置按钮背景色为浅黄色 */
}
/* 标题样å¼<C3A5> */
h1 {
color: #171B16; /* 设置h1的颜色为深色 */
font-size: 130%; /* 设置h1字体大å°<C3A5>为130% */
font-weight: bold; /* 设置h1加粗 */
}
h2 {
color: #171B16; /* 设置h2的颜色为深色 */
font-size: 115%; /* 设置h2字体大å°<C3A5>为115% */
font-weight: bold; /* 设置h2加粗 */
}
h3 {
color: #171B16; /* 设置h3的颜色为深色 */
font-size: 100%; /* 设置h3字体大å°<C3A5>为100% */
font-weight: bold; /* 设置h3加粗 */
}
/* 设置链接的样å¼<C3A5> */
a:link {
font-size: 9pt; /* 设置未访问链接的字体大å°<C3A5> */
color: #000000; /* 设置未访问链接的字体颜色为黑色 */
text-decoration: none; /* 去除下划线 */
font-family: ""; /* 设置链接字体(未指定具体字体) */
}
a:visited {
font-size: 9pt; /* 设置已访问链接的字体大å°<C3A5> */
color: #000000; /* 设置已访问链接的字体颜色为黑色 */
text-decoration: none; /* 去除下划线 */
font-family: ""; /* 设置链接字体(未指定具体字体) */
}
a:hover {
color: red; /* é¼ æ ‡æ¬å<C2AC>œæ—¶ï¼Œé“¾æŽ¥é¢œè‰²å<C2B2>˜ä¸ºçº¢è‰² */
font-family: ""; /* 设置æ¬å<C2AC>œæ—¶å­—体(未指定具体字体) */
}
a img {
border-style: none; /* 去除链接中的图片边框 */
}
/* 让链接中的 b å’Œ strong 元素也使用ç¸å<C2B8>Œçš„颜色 */
b a {
color: #666600; /* 设置链接中的b标签颜色 */
}
strong a {
color: #666600; /* 设置链接中的strong标签颜色 */
}
a b {
color: #666600; /* 设置链接中的b标签颜色 */
}
a strong {
color: #666600; /* 设置链接中的strong标签颜色 */
}
/* 输入框样å¼<C3A5> */
input {
border: 1px solid #ababab; /* 设置输入框的边框为浅ç<E280A6>°è‰² */
}
/* 公共输入框样å¼<C3A5> */
.pubinputs {
height: 22px; /* 设置输入框高度 */
width: 250px; /* 设置输入框宽度 */
padding: 4px 3px 2px 3px; /* 设置内边è·<C3A8> */
border-width: 1px; /* 设置边框宽度 */
border-style: solid; /* 设置边框样å¼<C3A5>为实线 */
border-color: #999999 #dddddd #dddddd #999999; /* 设置四个边框的颜色 */
}
/* 普通输入框样å¼<C3A5> */
.iptxt {
height: 22px; /* 设置输入框高度 */
padding: 4px 3px 2px 3px; /* 设置内边è·<C3A8> */
border-width: 1px; /* 设置边框宽度 */
border-style: solid; /* 设置边框样å¼<C3A5>为实线 */
border-color: #999999 #dddddd #dddddd #999999; /* 设置四个边框的颜色 */
}
/* 包å<E280A6>«æ‡æœ¬æ¡†æ ·å¼<C3A5> */
.alltxt {
padding: 4px 3px 2px 3px; /* 设置内边è·<C3A8> */
border-width: 1px; /* 设置边框宽度 */
border-style: solid; /* 设置边框样å¼<C3A5>为实线 */
border-color: #999999 #dddddd #dddddd #999999; /* 设置四个边框的颜色 */
}
/* 具有特定样å¼<C3A5>的输入框 */
.pubinput {
height: 24px; /* 设置输入框高度 */
width: 250px; /* 设置输入框宽度 */
padding-top: 3px; /* 设置顶部内边è·<C3A8> */
padding-bottom: 0px; /* 设置底部内边è·<C3A8> */
}
.pubinputl {
height: 24px; /* 设置输入框高度 */
width: 350px; /* 设置输入框宽度 */
padding-top: 3px; /* 设置顶部内边è·<C3A8> */
padding-bottom: 0px; /* 设置底部内边è·<C3A8> */
}
/* 没有边框的样å¼<C3A5> */
.np {
border: none; /* 去除边框 */
}
/* 表格中æ¯<C3A6>一行的ä¸è¾¹æ¡† */
.linerow {
border-bottom: 1px solid #ACACAC; /* 设置ä¸è¾¹æ¡†ä¸º1pxç<78>°è‰²å®žçº¿ */
}
/* 按é®çš„æ ·å¼<C3A5> */
.coolbg {
border-right: 1px solid #ACACAC; /* 设置å<C2AE>³è¾¹æ¡† */
border-bottom: 1px solid #ACACAC; /* 设置底边框 */
background-color: #F1F8B4; /* 设置背景色 */
padding: 2px;
padding-right: 5px; /* 设置å<C2AE>³å†…è¾¹è·<C3A8> */
padding-left: 5px; /* 设置左内边è·<C3A8> */
background: url(allbtbg2.gif) #EFF7D0; /* 设置背景图片和背景色 */
cursor: pointer; /* 设置鼠标æ¬å<C2AC>œæ—¶çš„光标样å¼<C3A5>为æ‰å½¢ */
}
/* 按é®çš„æ ·å¼<C3A5> */
.coolbg2 {
border: 1px solid #000000; /* 设置边框为黑色 */
background-color: #DFDDD2; /* 设置背景色为浅ç<E280A6>°è‰² */
height: 18px; /* 设置高度 */
}
/* 列表项的样å¼<C3A5> */
.ll {
border-right: 2px solid #ACACAC; /* 设置å<C2AE>³è¾¹æ¡† */
border-bottom: 2px solid #ACACAC; /* 设置底边框 */
background-color: #E6E6E6; /* 设置背景色 */
}
/* 具有虚线ä¸è¾¹æ¡†çš„æ ·å¼<C3A5> */
.bline {
border-bottom: 1px dotted #BCBCBC; /* 设置虚线底边框 */
height: 28px; /* 设置高度 */
background-color: #FFFFFF; /* 设置背景色为白色 */
}
/* 上传字段的浮动样å¼<C3A5> */
#uploadfield {
float: left; /* 设置浮动到左侧 */
}
/* 具有实线ä¸è¾¹æ¡†çš„æ ·å¼<C3A5> */
.bline2 {
border-bottom: 1px solid #BCBCBC; /* 设置实线底边框 */
}
/* 按é®çš„æ ·å¼<C3A5> */
.coolbt {
border-left: 1px solid #EFEFEF; /* 设置左边框 */
border-top: 1px solid #EFEFEF; /* 设置上边框 */
border-right: 1px solid #ACACAC; /* 设置å<C2AE>³è¾¹æ¡† */
border-bottom: 1px solid #ACACAC; /* 设置底边框 */
background-color: #E4F7D7; /* 设置背景色 */
cursor: pointer; /* 设置鼠标æ¬å<C2AC>œæ—¶çš„光标样å¼<C3A5>为æ‰å½¢ */
}
/* å<>¦ä¸€ä¸ªæŒ‰é®çš„æ ·å¼<C3A5> */
.coolbt2 {
border-left: 1px solid #EFEFEF; /* 设置左边框 */
border-top: 1px solid #EFEFEF; /* 设置上边框 */
border-right: 1px solid #ACACAC; /* 设置å<C2AE>³è¾¹æ¡† */
border-bottom: 1px solid #ACACAC; /* 设置底边框 */
background-color: #F7FCDA; /* 设置背景色 */
}
/* å<>¦ä¸€ä¸ªæ ·å¼<C3A5>çš„æŒ‰é® */
.coolbg3 {
border: 1px solid #BDC5B4; /* 设置边框 */
background-color: #DFDDD2; /* 设置背景色 */
height: 20px; /* 设置高度 */
width: 140px; /* 设置宽度 */
text-align: right; /* 设置æ‡å­—å<E28094>³å¯¹é½<C3A9> */
}
/* æ ·å¼<C3A5>定义 */
.coolbg61 {
line-height: 26px; /* 设置行高 */
width: 380px; /* 设置宽度 */
border-top: 1px solid #BDC5B4; /* 设置上边框 */
border-left: 1px solid #BDC5B4; /* 设置左边框 */
border-right: 1px solid #BDC5B4; /* 设置å<C2AE>³è¾¹æ¡† */
height: 26px; /* 设置高度 */
text-align: right; /* 设置æ‡å­—å<E28094>³å¯¹é½<C3A9> */
background-color: #E7F3B1; /* 设置背景色 */
}
.coolbg62 {
border: 1px solid #BDC5B4; /* 设置边框 */
background-color: #F8FDF0; /* 设置背景色 */
height: 300px; /* 设置高度 */
width: 380px; /* 设置宽度 */
padding: 5px; /* 设置内边è·<C3A8> */
}
/* å<>¦ä¸€ç§<C3A7>背景样å¼<C3A5> */
.coolbg4 {
border-bottom: 1px solid #C9CFC1; /* 设置底边框 */
background-color: #EDEBE5; /* 设置背景色 */
height: 20px; /* 设置高度 */
width: 190px; /* 设置宽度 */
text-align: right; /* 设置æ‡å­—å<E28094>³å¯¹é½<C3A9> */
}
/* 背景颜色åŒè¾¹æ¡†çš„æ ·å¼<C3A5> */
.coolbg5 {
border-top: 1px solid #BDC5B4; /* 设置上边框 */
background-color: #EDEBE5; /* 设置背景色 */
font-size: 1pt; /* 设置字体大å°<C3A5> */
height: 6px; /* 设置高度 */
width: 190px; /* 设置宽度 */
}
/* 弹窗样å¼<C3A5> */
.dlg {
border: 2px solid #749F4D; /* 设置边框 */
background-color: #F0FAEB; /* 设置背景色 */
padding: 2px; /* 设置内边è·<C3A8> */
width: 360px; /* 设置宽度 */
line-height: 160%; /* 设置行高 */
}
/* æ ·å¼<C3A5>定义 */
.dlgws {
border: 2px solid #749F4D; /* 设置边框 */
background-color: #F0FAEB; /* 设置背景色 */
padding: 2px; /* 设置内边è·<C3A8> */
width: 280px; /* 设置宽度 */
line-height: 160%; /* 设置行高 */
}
.dlgws div {
width: 100%; /* 设置宽度 */
}
/* æµè¯•标题样å¼<C3A5> */
.dlgTesttitle {
border: 2px solid #749F4D; /* 设置边框 */
background-color: #F0FAEB; /* 设置背景色 */
padding: 2px; /* 设置内边è·<C3A8> */
width: 200px; /* 设置宽度 */
line-height: 150%; /* 设置行高 */
}
/* æ ·å¼<C3A5>定义 */
#_mysource {
z-index: 5000; /* 设置z-index */
}
#_mywriter {
z-index: 6000; /* 设置z-index */
}
/* æ ·å¼<C3A5>定义 */
.option1 {
background-color: #DCECA6; /* 设置背景色 */
}
.option2 {
background-color: #F7FBD2; /* 设置背景色 */
}
.option3 {
background-color: #FFFFFF; /* 设置背景色 */
}
/* 输入框样å¼<C3A5> */
.ininput {
width: 96%; /* 设置宽度 */
height: 20px; /* 设置高度 */
border: 1px solid #ffffff; /* 设置白色边框 */
}
/* æŒ‰é®æ ·å¼<C3A5> */
.nbt {
padding: 1px; /* 设置内边è·<C3A8> */
background-image: url('allbtbg.gif'); /* 设置背景图片 */
background-color: #ffffff; /* 设置背景色 */
border: 1px solid #A5AF83; /* 设置边框 */
}
/* 设置表格标题 */
.tdt {
padding-left: 6px; /* 设置左内边è·<C3A8> */
}
/* 页é<C2B5>¢ç­‰å¾…æ ·å¼<C3A5> */
.waitpage {
top: 0; /* 设置顶部ä½<C3A4>ç½® */
left: 0; /* 设置左侧ä½<C3A4>ç½® */
filter: Alpha(opacity=70); /* 设置é€<C3A9>明度 */
-moz-opacity: 0.7; /* 设置é€<C3A9>明度 */
position: absolute; /* 设置ç»<C3A7>对定ä½<C3A4> */
z-index: 10000; /* 设置层级 */
}
/* æ ·å¼<C3A5>定义 */
.divpre {
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale); /* 设置é€<C3A9>明度 */
}
/* 自动输入框样å¼<C3A5> */
.autoinput {
padding-left: 3px; /* 设置左内边è·<C3A8> */
width: 90%; /* 设置宽度 */
height: 22px; /* 设置高度 */
}
/* 标题样å¼<C3A5> */
.bodytitle {
margin: auto; /* 设置自动å¤è¾¹è·<C3A8> */
height: 28px; /* 设置高度 */
border: 1px dotted #BFD67C; /* 设置虚线边框 */
background: url('wbg.gif'); /* 设置背景图片 */
margin-bottom: 6px; /* 设置底部å¤è¾¹è·<C3A8> */
width: 98%; /* 设置宽度 */
font-weight: bold; /* 设置字体加粗 */
}
.bodytitle div {
float: left; /* 设置浮动为左 */
}
/* æ ‡é¢˜æ‡æœ¬æ ·å¼<C3A5> */
.bodytitletxt {
padding-left: 6px; /* 设置左内边è·<C3A8> */
line-height: 28px; /* 设置行高 */
}
/* 设置表格标题 */
.tbtitle td {
padding: 3px; /* 设置å<C2AE>•元格内边è·<C3A8> */
}
/* 列表样å¼<C3A5> */
.tblist td {
background: #FFFFFF; /* 设置背景色为白色 */
padding: 6px; /* 设置内边è·<C3A8> */
}
.tblist td.tbsname {
background: #F9FFE6; /* 设置背景色 */
padding: 6px; /* 设置内边è·<C3A8> */
}
=======
}
>>>>>>> remotes/origin/wyp_branch
.tblist td.tbsname{
background:#F9FFE6;
padding:6px;
}

@ -1,61 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="javascript">
function c()//判断是否有菜品类别信息输入
{
if(document.formAdd.name.value=="")
{
alert("请输入类别名称");
return false;
}
document.formAdd.submit();//输入菜品类别信息,提交
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/catelog?type=catelogAdd" name="formAdd" method="post">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类别名称:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="name" size="40"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="button" value="提交" onclick="c()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -1,70 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="javascript">
function catelogDel(id)//确定删除确定后跳转界面删除菜品类别的id
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/catelog?type=catelogDel&id="+id;
}
}
function catelogAdd()//菜品类别添加
{
var url="<%=path %>/admin/catelog/catelogAdd.jsp";
window.location.href=url;
}
</script>
</head>
<body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="10%">序号</td>
<td width="80%">类别名称</td>
<td width="10%">操作</td>
</tr>
<c:forEach items="${requestScope.catelogList}" var="catelog" varStatus="sta"><!-- 依次读取菜品信息 -->
<tr align='center' bgcolor="#FFFFFF" height="22">
<td bgcolor="#FFFFFF" align="center">
${sta.index+1}
</td>
<td bgcolor="#FFFFFF" align="center">
${catelog.name}
</td>
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="catelogDel(${catelog.id})"/>
</td>
</tr>
</c:forEach>
</table>
<table width='98%' border='0'style="margin-top:8px;margin-left: 8px;">
<tr>
<td>
<input type="button" value="添加菜品类别" style="width: 120px;" onclick="catelogAdd()" />
</td>
</tr>
</table>
</body>
</html>

@ -1,241 +0,0 @@
/* CSS Document */
<<<<<<< HEAD
/* Bodyæ ·å¼<C3A5> */
body{
padding:0px; /* 设置body的内边è·<C3A8>为0 */
margin:0px; /* 设置bodyçš„å¤è¾¹è·<C3A8>为0 */
font-size:12px; /* 设置默认字体大å°<C3A5>为12px */
}
/*==========TOP部分(头部区域)==========*/
.top_tab{
background-image:url(/dingcan/images/top_01.gif); /* 设置背景图片 */
background-repeat:repeat-x; /* 背景å¾ç‰‡æ°´å¹³é‡<C3A9>å¤<C3A5> */
height:90px; /* 设置顶部高度为90px */
width:100%; /* 设置顶部宽度为100% */
}
.top_logo{
width:197px; /* 设置logo宽度为197px */
background-image:url(/dingcan/images/top_02.gif); /* 设置logo的背景å¾ç‰‡ */
}
.top_tex{
background:url(/dingcan/images/top_03.gif) no-repeat; /* 设置top_tex区域的背景å¾ç‰‡ï¼Œä¸”ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
}
.top_r{
width:361px; /* 设置å<C2AE>³ä¾§åŒºåŸŸå®½åº¦ä¸º361px */
background:url(/dingcan/images/top_05.gif) no-repeat; /* 设置å<C2AE>³ä¾§åŒºåŸŸçš„背景å¾ç‰‡ï¼Œä¸<C3A4>é‡<C3A9>å¤<C3A5> */
}
/*========== å<>³ä¾§éƒ¨åˆ†ï¼ˆå<CB86>³ä¾§å†…容区域)==========*/
.right_body{
padding-left:5px; /* 设置å<C2AE>³ä¾§å†…容区左内边è·<C3A8>为5px */
padding-right:5px; /* 设置å<C2AE>³ä¾§å†…容区å<C2BA>³å†…è¾¹è·<C3A8>为5px */
}
.right_font{
font-size:13px; /* 设置字体大å°<C3A5>为13px */
cursor:hand; /* 设置鼠标æ¬å<C2AC>œæ—¶å<C2B6>˜ä¸ºæ‰å½¢ */
}
/*========== 内容区域样å¼<C3A5>(表格样å¼<C3A5>)==========*/
.cont_tab{
background-color:#4374A3; /* 设置背景颜色为深è“<C3A8>色 */
}
.cont_tab_l{
background-image:url(/dingcan/images/r_14.gif); /* 设置左边区域的背景图片 */
background-repeat:no-repeat; /* 背景ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
width:12px; /* 设置宽度为12px */
height:13px; /* 设置高度为13px */
}
.cont_tab_m{
background-image:url(/dingcan/images/r_16.gif); /* 设置中间区域的背景图片 */
background-repeat:repeat-x; /* 背景水平é‡<C3A9>å¤<C3A5> */
height:13px; /* 设置高度为13px */
}
.cont_tab_r{
background-image:url(/dingcan/images/r_14_r.gif); /* 设置å<C2AE>³è¾¹åŒºåŸŸçš„背景å¾ç‰‡ */
background-repeat:no-repeat; /* 背景ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
width:12px; /* 设置宽度为12px */
height:13px; /* 设置高度为13px */
}
.cont_tab_bl{
background-image:url(/dingcan/images/r_24.gif); /* 设置左下角区域的背景图片 */
background-repeat:no-repeat; /* 背景ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
width:12px; /* 设置宽度为12px */
height:13px; /* 设置高度为13px */
}
.cont_tab_bm{
background-image:url(/dingcan/images/r_29.gif); /* 设置底部区域的背景图片 */
background-repeat:repeat-x; /* 背景水平é‡<C3A9>å¤<C3A5> */
height:13px; /* 设置高度为13px */
}
.cont_tab_br{
background-image:url(/dingcan/images/r_24_r.gif); /* 设置å<C2AE>³ä¸è§åŒºåŸŸçš„背景å¾ç‰‡ */
background-repeat:no-repeat; /* 背景ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
width:12px; /* 设置宽度为12px */
height:13px; /* 设置高度为13px */
}
/*========== 左侧è<C2A7>œå<C593>•部分==========*/
.left_b_m{
line-height:13px; /* 设置行高为13px */
font-size:1px; /* 设置字体大å°<C3A5>为1px */
}
.left_mid{
padding-left:2px; /* 设置左侧内边è·<C3A8>为2px */
padding-right:1px; /* 设置å<C2AE>³ä¾§å†…è¾¹è·<C3A8>为1px */
}
.menu_first_img{
background-image:url(/dingcan/images/l_b_05.gif); /* 设置è<C2AE>œå<C593>•第一项的背景å¾ç‰‡ */
background-repeat:no-repeat; /* 背景ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
}
.menu_second_img{
background-image:url(/dingcan/images/l_b_03.gif); /* 设置è<C2AE>œå<C593>•第二项的背景å¾ç‰‡ */
background-repeat:no-repeat; /* 背景ä¸<C3A4>é‡<C3A9>å¤<C3A5> */
}
.mouse{
cursor:hand; /* é¼ æ ‡æ¬å<C2AC>œæ—¶å<C2B6>˜ä¸ºæ‰å½¢ */
width:176px; /* 设置宽度为176px */
height:29px; /* 设置高度为29px */
line-height:29px; /* 设置行高为29px */
}
.left{
background-image:url(/dingcan/images/menu_26.gif); /* 设置左侧è<C2A7>œå<C593>•项的背景å¾ç‰‡ */
height:29px; /* 设置高度为29px */
padding-bottom:4px; /* 设置底部内边è·<C3A8>为4px */
}
/*========== 页脚部分==========*/
#foot{
background-color:#4374A3; /* 设置背景颜色为深è“<C3A8>色 */
height:17px; /* 设置高度为17px */
font-size:12px; /* 设置字体大å°<C3A5>为12px */
color:#ffffff; /* 设置字体颜色为白色 */
letter-spacing:3px; /* 设置字æ¯<C3A6>é—´è·<C3A8>为3px */
text-align:center; /* 设置文本居中 */
padding-top:3px; /* 设置顶部内边è·<C3A8>为3px */
=======
body{
padding:0px;
margin:0px;
font-size:12px;
}
/*==========TOPÒ³ÃæÉèÖÃ==========*/
.top_tab{
background-image:url(/dingcan/images/top_01.gif);
background-repeat:repeat-x;
height:90px;
width:100%;
}
.top_logo{
width:197px;
background-image:url(/dingcan/images/top_02.gif);
}
.top_tex{
background:url(/dingcan/images/top_03.gif) no-repeat;
}
.top_r{
width:361px;
background:url(/dingcan/images/top_05.gif) no-repeat;
}
/*==========ÓÒ²àÒ³Ãæ(Ö÷ÄÚÈÝÏÔʾ²¿·Ö)ÉèÖÃ==========*/
.right_body{
padding-left:5px;
padding-right:5px;
}
.right_font{
font-size:13px;
cursor:hand;
}
/*==========ËùÓеÄͼƬÏà¹ØÁ¬½ÓÈ«²¿Ð´ÔÚCSS,ÕâÑùÊÇΪÁËÖÆ×÷¶àÑÕÉ«°æ±¾==========*/
.cont_tab{
background-color:#4374A3;
}
.cont_tab_l{
background-image:url(/dingcan/images/r_14.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
.cont_tab_m{
background-image:url(/dingcan/images/r_16.gif);
background-repeat:repeat-x;
height:13px;
}
.cont_tab_r{
background-image:url(/dingcan/images/r_14_r.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
.cont_tab_bl{
background-image:url(/dingcan/images/r_24.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
.cont_tab_bm{
background-image:url(/dingcan/images/r_29.gif);
background-repeat:repeat-x;
height:13px;
}
.cont_tab_br{
background-image:url(/dingcan/images/r_24_r.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
/*==========LEFTÒ³ÃæÉèÖÃ==========*/
.left_b_m{
line-height:13px;
font-size:1px;
}
.left_mid{
padding-left:2px;
padding-right:1px;
}
.menu_first_img{
background-image:url(/dingcan/images/l_b_05.gif);
background-repeat:no-repeat;
}.menu_second_img{
background-image:url(/dingcan/images/l_b_03.gif);
background-repeat:no-repeat;
}
.mouse{
cursor:hand;
width:176px;
height:29px;
line-height:29px;
}
.left{
background-image:url(/dingcan/images/menu_26.gif);
height:29px;
padding-bottom:4px;
}
/*==========Foot==========*/
#foot{
background-color:#4374A3;
height:17px;
font-size:12px;
color:#ffffff;
letter-spacing:3px;
text-align:center;
padding-top:3px;
>>>>>>> remotes/origin/wyp_branch
}

@ -1,187 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- 管理员界面 -->
<head>
<<<<<<< HEAD
<meta http-equiv="pragma" content="no-cache"/><%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
// 获取当前请求的上下文路径,通常用于生成相对路径
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- 管理员界面 -->
<head>
<!-- 禁止页面缓存 -->
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<!-- 引入外部CSS样式文件 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"/> <!-- CSS样式的路径是path/css/cont.css -->
<!-- JavaScript部分用于处理左侧栏的切换功能 -->
<script type="text/javascript">
function switchSysBar(){
// 获取当前页面的URL地址并去掉"/admin/cont.jsp"部分
var locate=location.href.replace('<%=path %>/admin/cont.jsp','');
// 获取图片路径,去掉域名部分,只保留文件路径
var ssrc=document.all("img1").src.replace(locate,'');
// 如果当前图片是/jiaju/images/cont_19.gif则切换为/jiaju/images/cont_1_19.gif并隐藏左侧栏
if (ssrc=="/jiaju/images/cont_19.gif") {
document.all("img1").src="/jiaju/images/cont_1_19.gif"; // 更新图片路径
document.all("frmTitle").style.display="none"; // 隐藏左侧栏
} else {
// 否则,恢复图片为默认状态,并显示左侧栏
document.all("img1").src="/jiaju/images/cont_19.gif";
document.all("frmTitle").style.display="";
}
}
</script>
</head>
<body>
<!-- 设置页面样式,隐藏滚动条 -->
<body style="overflow:hidden">
<!-- 页面结构,使用表格布局 -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="cont_tab">
<!-- 表格的行 -->
<tr>
<!-- 左侧栏包含iframe加载的内容 -->
<td width="180" id="frmTitle" align="center" valign="top">
<!-- 左侧栏的iframe加载路径为<%=path %>/admin/left.jsp -->
<iframe name="left" height="100%" width="180" src="<%=path %>/admin/left.jsp" frameborder="0" scrolling="no">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。
</iframe>
</td>
<!-- 主内容区 -->
<td align="center" valign="top" style="padding-right:8px;">
<!-- 内部表格,用于分割页面内容 -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td height="13" style="line-height:13px;">
<!-- 边框的分隔行 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_l">&nbsp;</td>
<td class="cont_tab_m">&nbsp;</td>
<td class="cont_tab_r">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- 主内容区的iframe -->
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td>
<!-- 右侧内容区的iframe加载路径为<%=path %>/admin/right.jsp -->
<iframe name="I1" height="100%" width="100%" src="<%=path %>/admin/right.jsp" border="0" frameborder="0" scrolling="auto">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。
</iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="13" style="line-height:13px;">
<!-- 底部分隔行 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_bl">&nbsp;</td>
<td class="cont_tab_bm">&nbsp;</td>
<td class="cont_tab_br">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
=======
<meta http-equiv="pragma" content="no-cache"/>
>>>>>>> remotes/origin/wyp_branch
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"/> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<!--脚本类型是JavaScript-->
<script type="text/javascript">
function switchSysBar(){
var locate=location.href.replace('<%=path %>/admin/cont.jsp',''); //定义一个变量locate取得当前url地址代替上述域名
var ssrc=document.all("img1").src.replace(locate,''); //将所有name = img1的图片地址中去掉刚才上面得到的路径 只留下类似images/*.gif的字符串
if (ssrc=="/jiaju/images/cont_19.gif") //如果图片是/jiaju/images/cont_19.gif则将它换成/jiaju/images/cont_1_19.gif并隐藏frmTitle
{
document.all("img1").src="/jiaju/images/cont_1_19.gif";
document.all("frmTitle").style.display="none"
}
else
{
document.all("img1").src="/jiaju/images/cont_19.gif";
document.all("frmTitle").style.display=""
} //否则将图片替换成/jiaju/images/cont_19.gif并显示frmTitle
}
</script>
</head>
<body>
<body style="overflow:hidden"> <!-- 隐藏滚动条 -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="cont_tab"> <!--表格宽度为100% 高度为100% 表中小格子边框为0小格子中文字距离小格子距离为0小格子之间距离为0小格子紧密的靠在一起样式为css中的cont_tab-->
<tr>
<td width="180" id="frmTitle" align="center" valign="top">
<iframe name="left" height="100%" width="180" src="<%=path %>/admin/left.jsp" frameborder="0" scrolling="no">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe> </td>
<!-- <td width="8" valign="middle" onClick="switchSysBar()"><img src="/jiaju/images/cont_19.gif" width="8" height="64" name="img1" id="img1" title="打开/关闭左侧栏" style="cursor:hand;"></td> -->
<td align="center" valign="top" style="padding-right:8px;"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td height="13" style=" line-height:13px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_l">&nbsp;</td>
<td class="cont_tab_m">&nbsp;</td>
<td class="cont_tab_r">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td><iframe name="I1" height="100%" width="100%" src="<%=path %>/admin/right.jsp" border="0" frameborder="0" scrolling="auto"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table></td>
</tr>
<tr>
<td height="13" style="line-height:13px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_bl">&nbsp;</td>
<td class="cont_tab_bm">&nbsp;</td>
<td class="cont_tab_br">&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

@ -1,81 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="<%=path %>/js/popup_shuaxin.js"></script>
<script type="text/javascript">
function userlogin() //会员登录
{
var url="<%=path %>/site/userlogin/userlogin.jsp";
var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200}); //pop类型为1内嵌iframe关闭后不重新加载页面
pop.setContent("contentUrl",url);
pop.setContent("title","会员登录");
pop.build();
pop.show();
}
function mycart() //我的购物车
{
<c:if test="${sessionScope.userType !=1}"> //判断是否登录了
alert("请先登录");
</c:if>
<c:if test="${sessionScope.userType==1}">
var url="<%=path %>/site/cart/mycart.jsp";
window.open(url,"_self");
</c:if>
}
function myorder()
{
<c:if test="${sessionScope.userType !=1}"> //判断是否登录了
alert("请先登录");
</c:if>
<c:if test="${sessionScope.userType==1}">
var url="<%=path %>/buy?type=myorder";
window.open(url,"_self");
</c:if>
}
</script>
</head>
<body>
<div id="menu">
<ul>
<li><a href="<%=path %>/goods?type=goodsNew">菜品信息</a></li>
<li><a href="<%=path %>/site/userreg/userreg.jsp">注册会员</a></li>
<li><a href="<%=path %>/site/goods/goodsSea.jsp">菜品查询</a></li>
<li><a href="#" onclick="mycart()">我的购物车</a></li>
<li><a href="#" onclick="myorder()">我的订单</a></li>
<li><a href="<%=path %>/liuyan?type=liuyanAll">系统留言板</a></li>
</ul>
</div>
<div id="search">
<form method="post" action="" style="color: white;font-family: 微软雅黑">
<c:if test="${sessionScope.userType ==1 }">
欢迎您:${sessionScope.user.name }&nbsp;&nbsp; <!--取得用户名-->
<a href="<%=path %>/user?type=userLogout" style="color: white;font-family: 微软雅黑">安全退出</a> &nbsp;&nbsp;
</c:if>
<c:if test="${sessionScope.userType !=1 }"> <!-- 如果未登录显示会员登录按钮 -->
<a href="#" onclick="userlogin()" style="color: white;font-family: 微软雅黑">会员登陆</a>
</c:if>
</form>
</div>
</body>
</html>

@ -1,158 +0,0 @@
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `t_admin`
-- ----------------------------
DROP TABLE IF EXISTS `t_admin`;
CREATE TABLE `t_admin` (
`userId` int(11) NOT NULL,
`userName` varchar(50) default NULL,
`userPw` varchar(50) default NULL,
PRIMARY KEY (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_admin
-- ----------------------------
INSERT INTO `t_admin` VALUES ('1', 'a', 'a');
-- ----------------------------
-- Table structure for `t_catelog`
-- ----------------------------
DROP TABLE IF EXISTS `t_catelog`;
CREATE TABLE `t_catelog` (
`id` varchar(50) NOT NULL,
`name` varchar(50) default NULL,
`del` varchar(50) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_catelog
-- ----------------------------
INSERT INTO `t_catelog` VALUES ('1393654966130', '凉拌菜', 'no');
INSERT INTO `t_catelog` VALUES ('1393654973698', '热炒菜', 'no');
INSERT INTO `t_catelog` VALUES ('1393654982744', '炖汤类', 'no');
-- ----------------------------
-- Table structure for `t_goods`
-- ----------------------------
DROP TABLE IF EXISTS `t_goods`;
CREATE TABLE `t_goods` (
`id` varchar(50) NOT NULL,
`catelog_id` varchar(50) default NULL,
`bianhao` varchar(500) default NULL,
`mingcheng` varchar(500) default NULL,
`jieshao` varchar(500) default NULL,
`fujian` varchar(500) default NULL,
`shichangjia` int(11) default NULL,
`tejia` int(11) default NULL,
`del` varchar(50) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_goods
-- ----------------------------
INSERT INTO `t_goods` VALUES ('1393655526789', '1393654966130', '0001', '凉拌金针菇', '用剪刀减去金针菇的根蒂部分再反复冲洗干净。较长的金针菇可以从中间剪开以方便食用红椒去籽切细锅中加水加1勺盐烧开后下入金针菇和红椒丝煮1分钟关火。&mdash;&mdash;只需1分钟金针菇很易熟时间煮长了反而容易塞', '/upload/1393655525402.jpg', '100', '100', 'no');
INSERT INTO `t_goods` VALUES ('1393655887280', '1393654982744', '0002', '三鲜豆腐羹', '豆腐洗净,切成小丁,切豆腐的时候可以从后往前切,切的同时可以用手压住,这样豆腐就不会总粘在刀上了大虾只取虾仁,并用小刀在虾背上划开,取出虾线,这样处理后做好的虾会更像虾球', '/upload/1393655885962.jpg', '100', '100', 'no');
INSERT INTO `t_goods` VALUES ('1393655949576', '1393654982744', '0003', '冬瓜薏仁鲫鱼汤', '薏米仁洗净后放水中浸泡一个小时枸杞洗净备用。冬瓜去皮切成块儿。鲫鱼去除内脏洗净备用开锅后放入葱段和姜片倒入少许料酒改文火慢炖50分钟', '/upload/1393655948031.jpg', '100', '100', 'no');
INSERT INTO `t_goods` VALUES ('1393656014209', '1393654973698', '0004', '糖醋排骨', '将排骨剁成长约5厘米的段然后洗干净放入锅中加上水没过排将锅烧开然后用勺子将上面的浮沫撇干净可以用大火烧开浮沫都飘起来这样很容易将浮沫撇的很干放入拍松的生姜块再加上八角、花椒、料酒、大葱一起煮小火盖上锅盖煮40分钟排骨熟', '/upload/1393656012959.jpg', '100', '100', 'no');
-- ----------------------------
-- Table structure for `t_liuyan`
-- ----------------------------
DROP TABLE IF EXISTS `t_liuyan`;
CREATE TABLE `t_liuyan` (
`id` int(11) NOT NULL auto_increment,
`neirong` varchar(200) default NULL,
`liuyanshi` varchar(2000) default NULL,
`user_id` varchar(50) default NULL,
`huifu` varchar(50) default NULL,
`huifushi` varchar(50) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_liuyan
-- ----------------------------
-- ----------------------------
-- Table structure for `t_order`
-- ----------------------------
DROP TABLE IF EXISTS `t_order`;
CREATE TABLE `t_order` (
`id` varchar(200) NOT NULL,
`bianhao` varchar(200) default NULL,
`shijian` varchar(200) default NULL,
`zhuangtai` varchar(200) default NULL,
`huifu` varchar(255) default NULL,
`songhuodizhi` varchar(200) default NULL,
`fukuanfangshi` varchar(200) default NULL,
`jine` int(11) default NULL,
`user_id` varchar(200) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_order
-- ----------------------------
-- ----------------------------
-- Table structure for `t_orderitem`
-- ----------------------------
DROP TABLE IF EXISTS `t_orderitem`;
CREATE TABLE `t_orderitem` (
`id` varchar(200) NOT NULL,
`order_id` varchar(200) default NULL,
`goods_id` varchar(50) default NULL,
`goods_quantity` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_orderitem
-- ----------------------------
INSERT INTO `t_orderitem` VALUES ('1393657633435', '1393657633280', '1393655303399', '1');
INSERT INTO `t_orderitem` VALUES ('1393657943847', '1393657943777', '1393655887280', '1');
INSERT INTO `t_orderitem` VALUES ('1393658063119', '1393658063033', '1393655949576', '1');
INSERT INTO `t_orderitem` VALUES ('1393658148327', '1393658147936', '1393655887280', '1');
INSERT INTO `t_orderitem` VALUES ('1393658173125', '1393658172985', '1393655949576', '1');
INSERT INTO `t_orderitem` VALUES ('1393658262440', '1393658262399', '1393655949576', '1');
INSERT INTO `t_orderitem` VALUES ('1393658284297', '1393658284160', '1393655949576', '1');
INSERT INTO `t_orderitem` VALUES ('1395033001797', '1395033001698', '1393655171464', '1');
INSERT INTO `t_orderitem` VALUES ('1395033002062', '1395033001698', '1393655526789', '1');
-- ----------------------------
-- Table structure for `t_user`
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` varchar(50) NOT NULL,
`loginname` varchar(50) default NULL,
`loginpw` varchar(50) default NULL,
`name` varchar(50) default NULL,
`del` varchar(50) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES ('1349561912257', 'a', 'a', 'ch', 'no');
-- ----------------------------
-- Table structure for `t_xinyong`
-- ----------------------------
DROP TABLE IF EXISTS `t_xinyong`;
CREATE TABLE `t_xinyong` (
`id` varchar(50) NOT NULL,
`shuxing` varchar(50) default NULL,
`neirong` varchar(50) default NULL,
`shijian` varchar(50) default NULL,
`user_id` varchar(50) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_xinyong
-- ----------------------------

@ -1,23 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- 返回该网页的根urlrequest.getScheme()返回协议的名称http。request.getServerName()获取服务器的名称localhostrequest.getServerPort()获取端口8080-->
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<!--使用JSTL标签库-->
<body>
<center>账号或密码错误</center>
</body>
</html>

@ -1,45 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
<<<<<<< HEAD
// 获取当前请求的上下文路径,用于生成相对路径
=======
>>>>>>> remotes/origin/wyp_branch
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<<<<<<< HEAD
<!-- 禁止页面缓存 -->
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<!-- 引入外部CSS样式文件 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" /> <!-- CSS文件路径为<%=path %>/css/cont.css -->
</head>
<body>
<!-- 页面中的footer部分 -->
<div id="foot"></div> <!-- 这是一个div元素作为页面的footer部分div的id为"foot" -->
<!-- 这个div元素通常用于显示页面底部的信息或分割作用。通过设置其CSS样式可以控制其显示效果如颜色、大小等。 -->
=======
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" /> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
</head>
<body>
<div id="foot"></div> <!-- div起到分割作用div的id=food 颜色为蓝色-->
>>>>>>> remotes/origin/wyp_branch
</body>
</html>

@ -1,157 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script type="text/javascript" src="<%=path %>/js/popup.js"></script>
<script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
<script language="javascript">
var i=0;
function catelogAll()//获得所有菜品类别函数
{
if(i==0)
{
document.getElementById("indicator").style.display="block";
loginService.catelogAll(callback);
i=1;
}
}
function callback(data)
{
document.getElementById("indicator").style.display="none";
DWRUtil.addOptions("catelog_id",data,"id","name");
}
function up() //上传图片函数 通过Popup.js打开对话框
{
var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});//pop类型为1内嵌iframe关闭后不重新加载页面
pop.setContent("contentUrl","<%=path %>/upload/upload.jsp");//跳转到上传界面
pop.setContent("title","文件上传");
pop.build();
pop.show();
}
function check()//检查信息是否输入完整
{
if(document.formAdd.catelog_id.value==0)
{
alert("请选择类别");
return false;
}
if(document.formAdd.bianhao.value=="")
{
alert("请输入编号");
return false;
}
if(document.formAdd.mingcheng.value=="")
{
alert("请输入名称");
return false;
}
return true;
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/goods?type=goodsAdd" name="formAdd" method="post">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类别:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<table border="0">
<tr>
<td>
<select name="catelog_id" id="catelog_id" style="width: 250px;" onclick="catelogAll()">
<option value="0">请选择类别</option>
</select>
</td>
<td>
<img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/>
<!-- 插入载入动画 -->
</td>
</tr>
</table>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
编号:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="bianhao" style="width: 250px;"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
名称:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="mingcheng" style="width: 250px;"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
介绍:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<FCK:editor instanceName="jieshao" basePath="/fckeditor" width="550" height="200" value="" toolbarSet="Basic">
</FCK:editor> <!-- 添加fck编辑器名字叫介绍基于路径/fckeditor初值为空基础形式 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
图片:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="fujian" id="fujian" style="width: 250px;" readonly="readonly"/>
<input type="button" value="上传" onclick="up()"/> <!-- 上传触发up函数 -->
<input type="hidden" name="fujian" id="fujian"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
价格:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="shichangjia" value="100" style="width: 250px;" onpropertychange="onchange1(this.value)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
<!--插入菜品的价格框onpropertychange当输入框属性变化时触发onchange1属性修改数据库菜品价格 下一句为按键之后触发将输入值为非数字的字符替换为空,粘贴之后触发将输入值为非数字的字符替换为空-->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="submit" value="提交" onclick="return check()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -1,93 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">菜品信息</a></h2>
<div class="entry"> <!-- 设置菜品图片样式 -->
<TABLE class=main border=0 cellSpacing=2 cellPadding=2>
<TR>
<c:forEach items="${requestScope.goodsList}" var="goods" varStatus="sta">
<c:if test="${sta.index%4==0}"><!-- 每行放4张图片 -->
</tr><tr>
</c:if>
<TD>
<TABLE onmouseover="this.style.backgroundColor='#FF6600'" onmouseout="this.style.backgroundColor=''" border=0 cellSpacing=1 cellPadding=2 width=98 bgColor=#e1e1e1 align=center height=100>
<TR>
<TD bgColor=#ffffff align=left>
<P align="center">
<A href="<%=path %>/goods?type=goodsDetailQian&id=${goods.id }"><IMG border=0 align=absMiddle src="<%=path %>/${goods.fujian }" width=150 height=140></A>
</>
<center><A href="<%=path %>/goods?type=goodsDetailQian&id=${goods.id }"><FONT color=#ff0000></FONT>${goods.mingcheng }</A></center>
</P>
</TD>
</TR>
</TABLE>
</TD>
</c:forEach>
</TR>
</TABLE>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div> <!-- clear:both该属性的值指出了不允许有浮动元素 -->
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,24 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<table align="center">
<tr>
<td>
<c:out value="${requestScope.goods.jieshao}" escapeXml="false"></c:out> <!--输出菜品的介绍信息将其中的xml文档解析出来 -->
</td>
</tr>
</table>
</body>
</html>

@ -1,110 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function buy1()
{
<c:if test="${sessionScope.userType !=1}">
alert("请先登录");
</c:if>
<c:if test="${sessionScope.userType==1}">
if(document.buy.quantity.value=="")
{
alert("请输入购买数量");
return false;
}
document.buy.submit();
</c:if>
}
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!--头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">菜品详细信息</a></h2>
<div class="entry">
<form action="<%=path %>/buy?type=addToCart" method="post" name="buy">
<table width="100%" border="0" cellpadding="9" cellspacing="9">
<tr>
<td align="left"><img width="220" height="180" src="<%=path %>/${requestScope.goods.fujian }" style="border:1px solid #ccc; padding:3px;"/></td>
</tr>
<tr>
<td align="left">商品编号:${requestScope.goods.bianhao }</td>
</tr>
<tr>
<td align="left">商品名称:${requestScope.goods.mingcheng }</td>
</tr>
<tr>
<td align="left">商品描述:<c:out value="${requestScope.goods.jieshao }" escapeXml="false"></c:out></td>
</tr>
<tr>
<td align="left">价格:${requestScope.goods.shichangjia }</td>
</tr>
<tr>
<td align="left">
数量:<input type="text" name="quantity" value="1" size="8" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
<!--插入菜品的数量框onpropertychange当输入框属性变化时触发onchange1属性修改数据库菜品价格 下一句为按键之后触发将输入值为非数字的字符替换为空,粘贴之后触发将输入值为非数字的字符替换为空-->
<input type="hidden" name="goods_id" value="${requestScope.goods.id }"/>
<input type="button" value="购买" style="width: 80px;height: 30px;" onclick="buy1()">
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,118 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script type="text/javascript" src="<%=path %>/js/popup.js"></script>
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function goodsDel(id)//删除之后跳转到删除成功界面并删除菜品的id传入菜品删除的界面
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/goods?type=goodsDel&id="+id;
}
}
function goodsPre(id)//添加菜品信息函数
{
window.location.href="<%=path %>/goods?type=goodsPre&id="+id;
}
function goodsAdd()//跳转到goodsAdd.jsp,完成菜品的添加
{
var url="<%=path %>/admin/goods/goodsAdd.jsp";
window.location.href=url;
}
function over(picPath)//鼠标移到图片二字时显示图片的函数,并定义了图片的显示格式
{
if (picPath=="")picPath="/img/default.jpg";
x = event.clientX;
y = event.clientY;
document.all.tip.style.display = "block";
document.all.tip.style.top = y;
document.all.tip.style.left = x+10;
document.all.photo.src = ".."+picPath;
}
function out()//鼠标移开图片二字的时候什么也不显示
{
document.all.tip.style.display = "none";
}
function goodsDetailHou(id)//商品具体的描述信息
{
var url="<%=path %>/goods?type=goodsDetailHou&id="+id;
var n="";
var w="480px";
var h="500px";
var s="resizable:no;help:no;status:no;scroll:yes"; //不可改变大小,无帮助栏,无状态栏,有滚动条
openWin(url,n,w,h,s);//打开一个这样的窗口 高500宽480不可改变大小无帮助栏无状态栏有滚动条
}
</script>
</head>
<body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="42" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="5%">序号</td>
<td width="7%">编号</td>
<td width="15%">名称</td>
<td width="7%">介绍</td>
<td width="7%">图片</td>
<td width="7%">价格</td>
<td width="7%">操作</td>
</tr>
<c:forEach items="${requestScope.goodsList}" var="goods" varStatus="sta">
<tr align='center' bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF" align="center">${sta.index+1}</td>
<td bgcolor="#FFFFFF" align="center">${goods.bianhao}</td>
<td bgcolor="#FFFFFF" align="center">${goods.mingcheng}</td>
<td bgcolor="#FFFFFF" align="center"><a href="#" onclick="goodsDetailHou(${goods.id})" class="pn-loperator">商品描述</a></td>
<!--a href="#"表示联接到当前页面-->
<td bgcolor="#FFFFFF" align="center"><div onmouseover = "over('<%=path %>/${goods.fujian}')" onmouseout = "out()" style="cursor:hand;">图片</div></td>
<!-- 当鼠标移上去显示菜品的图片,鼠标移开时什么也不显示 -->
<td bgcolor="#FFFFFF" align="center">${goods.shichangjia}</td> <!--市场价,即菜品的价格 -->
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="goodsDel(${goods.id})"/>
<input type="button" value="编辑" onclick="goodsPre(${goods.id})"/>
</td>
</tr>
</c:forEach>
</table>
<table width='98%' border='0'style="margin-top:8px;margin-left: 8px;">
<tr>
<td>
<input type="button" value="添加菜品信息" style="width: 120px;" onclick="goodsAdd()" />
</td>
</tr>
</table>
<div id="tip" style="position:absolute;display:none;border:0px;width:80px; height:80px;">
<!-- 通过绝对定位来对图片定位,下面进一步定义图片的显示格式 -->
<TABLE id="tipTable" border="0" bgcolor="#ffffee">
<TR align="center">
<TD><img id="photo" src="" height="150" width="150"></TD>
</TR>
</TABLE>
</div>
</body>
</html>

@ -1,93 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">菜品信息</a></h2>
<div class="entry"> <!-- 设置菜品图片样式 -->
<TABLE class=main border=0 cellSpacing=2 cellPadding=2>
<TR>
<c:forEach items="${requestScope.goodsList}" var="goods" varStatus="sta">
<c:if test="${sta.index%4==0}"> <!-- 每行放4张图片 -->
</tr><tr>
</c:if>
<TD>
<TABLE onmouseover="this.style.backgroundColor='#FF6600'" onmouseout="this.style.backgroundColor=''" border=0 cellSpacing=1 cellPadding=2 width=98 bgColor=#e1e1e1 align=center height=100>
<TR>
<TD bgColor=#ffffff align=left>
<P align="center">
<A href="<%=path %>/goods?type=goodsDetailQian&id=${goods.id }"><IMG border=0 align=absMiddle src="<%=path %>/${goods.fujian }" width=150 height=140></A>
</>
<center><A href="<%=path %>/goods?type=goodsDetailQian&id=${goods.id }"><FONT color=#ff0000></FONT>${goods.mingcheng }</A></center>
</P>
</TD>
</TR>
</TABLE>
</TD>
</c:forEach>
</TR>
</TABLE>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,159 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script type="text/javascript" src="<%=path %>/js/popup.js"></script>
<script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
<script language="javascript">
var i=0;//获取菜品的所有类别
function catelogAll()
{
if(i==0)
{
document.getElementById("indicator").style.display="block";
loginService.catelogAll(callback);
i=1;
}
}
function callback(data)
{
document.getElementById("indicator").style.display="none";
DWRUtil.addOptions("catelog_id",data,"id","name");//创建一系列属性 查询出来的数据分别填充 菜品类别id菜品的id菜品的名字
}
function up() //上传图片函数 通过Popup.js打开对话框
{
var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200}); //pop类型为1内嵌iframe关闭后不重新加载页面
pop.setContent("contentUrl","<%=path %>/upload/upload.jsp");
pop.setContent("title","文件上传"); //跳转到上传界面
pop.build();
pop.show();
}
function check() //检查信息是否输入完整
{
if(document.formAdd.catelog_id.value==0)
{
alert("请选择类别");
return false;
}
if(document.formAdd.bianhao.value=="")
{
alert("请输入编号");
return false;
}
if(document.formAdd.mingcheng.value=="")
{
alert("请输入名称");
return false;
}
return true;
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/goods?type=goodsEdit" name="formAdd" method="post">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类别:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<table border="0">
<tr>
<td>
<select name="catelog_id" id="catelog_id" style="width: 250px;" onclick="catelogAll()">
<option value="0">请选择类别</option> <!--下拉菜单 -->
</select>
</td>
<td>
<img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/> <!--插入载入动画 -->
</td>
</tr>
</table>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
编号:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="bianhao" style="width: 250px;" value="${requestScope.goods.bianhao }"/> <!--获取菜品的编号-->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
名称:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="mingcheng" style="width: 250px;" value="${requestScope.goods.mingcheng }"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
介绍:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<FCK:editor instanceName="jieshao" basePath="/fckeditor"
width="550" height="200" value="${requestScope.goods.jieshao }" toolbarSet="Basic">
</FCK:editor> <!-- 插入fck基本格式的编辑器 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
图片:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="fujian" id="fujian" value="${requestScope.goods.fujian }" style="width: 250px;" readonly="readonly"/><!--规定图片为只读属性-->
<input type="button" value="上传" onclick="up()"/>
<input type="hidden" name="fujian" id="fujian"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
价格:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="shichangjia" value="${requestScope.goods.shichangjia }" style="width: 250px;" onpropertychange="onchange1(this.value)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
<!--插入菜品的价格框onpropertychange当输入框属性变化时触发onchange1属性修改数据库菜品价格 下一句为按键之后触发将输入值为非数字的字符替换为空,粘贴之后触发将输入值为非数字的字符替换为空 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="hidden" name="id" value="${requestScope.goods.id }"/>
<input type="submit" value="提交" onclick="return check()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -1,92 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">菜品信息</a></h2>
<div class="entry">
<TABLE class=main border=0 cellSpacing=2 cellPadding=2>
<TR>
<c:forEach items="${requestScope.goodsList}" var="goods" varStatus="sta">
<c:if test="${sta.index%4==0}">
</tr><tr>
</c:if>
<TD>
<TABLE onmouseover="this.style.backgroundColor='#FF6600'" onmouseout="this.style.backgroundColor=''" border=0 cellSpacing=1 cellPadding=2 width=98 bgColor=#e1e1e1 align=center height=100>
<TR>
<TD bgColor=#ffffff align=left>
<P align="center">
<A href="<%=path %>/goods?type=goodsDetailQian&id=${goods.id }"><IMG border=0 align=absMiddle src="<%=path %>/${goods.fujian }" width=150 height=140></A>
</>
<center><A href="<%=path %>/goods?type=goodsDetailQian&id=${goods.id }"><FONT color=#ff0000></FONT>${goods.mingcheng }</A></center>
</P>
</TD>
</TR>
</TABLE>
</TD>
</c:forEach>
</TR>
</TABLE>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,90 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<!-- <h2 class="title"><a href="#">菜品信息</a></h2> -->
<div class="entry">
<form name="ff" method="post" action="<%=path %>/goods?type=goodsRes">
<table align="left" border="0" cellpadding="9" cellspacing="9">
<tr align='center'>
<td style="width: 60px;" align="left">
菜品名称:
</td>
<td align="left">
<input name="mingcheng" type="text" style="width: 200px;" />
</td>
</tr>
<tr align='center'>
<td style="width: 60px;" align="left"></td>
<td align="left">
<input type="submit" value="查询"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,62 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="javascript">
function c()//没有输入任何信息,提示请输入信息内容。
{
if(document.formAdd.huifu.value=="")
{
alert("请输入信息内容");
return false;
}
document.formAdd.submit();//否则,将回复信息发送
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/order?type=huifuAdd" name="formAdd" method="post">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
信息内容:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="text" name="huifu" size="40"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="hidden" name="id" value="<%=request.getParameter("id") %>"/>
<input type="button" value="提交" onclick="c()"/>&nbsp; <!-- 提交时触发c函数判断是否未回复内容 -->
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -1,97 +0,0 @@
/* CSS Document */
<<<<<<< HEAD
/* Body部分样式 */
body{
margin:0px; /* 设置页面的外边距为0去除默认的外边距 */
padding:50px 0px 0px 0px; /* 设置页面的内边距上边距为50px其他边距为0 */
background-color:#5c86ad; /* 设置背景颜色为淡蓝色 */
font-size:12px; /* 设置字体大小为12px */
color:#133B61; /* 设置文字颜色为深蓝色 */
}
/* Index页面部分样式 */
/* tab1的样式 */
.tab1{
background-image:url(/dingcan/images/dx_01.gif); /* 设置背景图片 */
background-repeat:no-repeat; /* 背景不重复 */
height:160px; /* 设置高度为160px */
width:708px; /* 设置宽度为708px */
}
/* tab2的样式 */
.tab2{
background-image:url(/dingcan/images/dx_02.gif); /* 设置背景图片 */
background-repeat:no-repeat; /* 背景不重复 */
width:273px; /* 设置宽度为273px */
height:200px; /* 设置高度为200px */
padding-left:335px; /* 设置左内边距为335px */
padding-right:90px; /* 设置右内边距为90px */
font-size:12px; /* 设置字体大小为12px */
letter-spacing: 3px; /* 设置字母间距为3px */
color:#18345A; /* 设置字体颜色为深蓝色 */
padding-top:10px; /* 设置顶部内边距为10px */
}
/* tab3的样式 */
.tab3{
background-image:url(/dingcan/images/dx_03.gif); /* 设置背景图片 */
background-repeat:no-repeat; /* 背景不重复 */
width:708px; /* 设置宽度为708px */
height:216px; /* 设置高度为216px */
}
/* .id 样式,可能用于表单中的输入框或其他元素 */
.id{
height:18px; /* 设置元素高度为18px */
border:1px solid #255FAD; /* 设置边框颜色为蓝色宽度为1px实线 */
filter: Alpha(Opacity=60); /* 设置透明度为60%仅适用于IE浏览器 */
}
/* 输入框悬停效果 */
input:hover{
background-color:#A0D1FF; /* 设置鼠标悬停时输入框的背景颜色为浅蓝色 */
}
=======
body{
margin:0px;
padding:50px 0px 0px 0px;
background-color:#5c86ad;
font-size:12px;
color:#133B61;
}
/*indexҳ<78><D2B3>CSS<53><53><EFBFBD><EFBFBD>*/
.tab1{
background-image:url(/dingcan/images/dx_01.gif);
background-repeat:no-repeat;
height:160px;
width:708px;
}
.tab2{
background-image:url(/dingcan/images/dx_02.gif);
background-repeat:no-repeat;
width:273px;
height:200px;
padding-left:335px;
padding-right:90px;
font-size:12px;
letter-spacing: 3px;
color:#18345A;
padding-top:10px;
}
.tab3{
background-image:url(/dingcan/images/dx_03.gif);
background-repeat:no-repeat;
width:708px;
height:216px;
}
.id{
height:18px;
border:1px solid #255FAD;
filter: Alpha(Opacity=60);
}
input:hover{
background-color:#A0D1FF;
}
>>>>>>> remotes/origin/wyp_branch

@ -1,23 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
String path = request.getContextPath(); //获得当前的项目根目录路径赋值给path
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- XHTML namespace命名空间 通过http://www.w3.org/1999/xhtml来识别网页标记-->
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/> <!-- 清除浏览器中的缓存它和其它几句合起来用就可以使你再次进入曾经访问过的页面时ie浏览器必须从服务端下载最新的内容达到刷新的效果。 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/> <!-- 向搜索引擎说明你的网页的关键词 -->
<meta http-equiv="description" content="This is my page"/> <!-- 告诉搜索引擎你的站点的主要内容 -->
</head>
<frameset rows="100,*,20" cols="*" framespacing="0" frameborder="no" border="0"> <!-- 设置浏览器划分成左右100像素剩余20像素上下不分框架与框架间保留的空白的距离为0没有框架边框框架边框厚度为0 -->
<frame src="<%=path %>/admin/top.jsp" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" frameborder="0" />
<frame src="<%=path %>/admin/cont.jsp" name="mainFrame" id="mainFrame" frameborder="0" />
<frame src="<%=path %>/admin/foot.jsp" name="footFrame" id="footFrame" frameborder="0" />
</frameset> <!--框架显示的界面分别是path的值/admin/top.jspcont.jspfoot.jsp 框架没有滚动条 无法调整框架的大小id="topframe",框架边框厚度为0-->
<noframes><body></body></noframes> <!--noframes 元素可为那些不支持框架的浏览器显示文本 body中无文本-->
</html>

@ -1,469 +0,0 @@
<<<<<<< HEAD
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
<<<<<<< HEAD
String path = request.getContextPath(); // 获取应用的上下文路径
%>
=======
String path = request.getContextPath();
%>
>>>>>>> remotes/origin/wyp_branch
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<<<<<<< HEAD
<meta http-equiv="pragma" content="no-cache"/> <!-- 禁用缓存 -->
<meta http-equiv="cache-control" content="no-cache"/> <!-- 禁用缓存 -->
<meta http-equiv="expires" content="0"/> <!-- 禁用缓存 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/> <!-- 页面关键字 -->
<meta http-equiv="description" content="This is my page"/> <!-- 页面描述 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"> <!-- 引入外部CSS样式文件 -->
<style type="text/css">
.STYLE1 {color: #FFFFFF; font-size: 12px;} <!-- 样式定义 -->
</style>
<script type="text/javascript">
// 展示子菜单功能
function show(str) {
var str1="td"+str; // 用于标识当前菜单项
var str="show"+str; // 用于显示相应的子菜单
// 设置所有菜单项背景为默认
document.getElementById("td1").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td2").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td3").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td4").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td5").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td6").style.background="url('/dingcan/images/l_b_03.gif')";
// 隐藏所有子菜单
document.getElementById("show1").style.display="none";
document.getElementById("show2").style.display="none";
document.getElementById("show3").style.display="none";
document.getElementById("show4").style.display="none";
document.getElementById("show5").style.display="none";
document.getElementById("show6").style.display="none";
// 显示当前点击的子菜单并改变背景色
document.getElementById(str1).style.background="url('/dingcan/images/l_b_05.gif')";
document.getElementById(str).style.display="block"; // 将子菜单设为块级元素显示
}
// 展示另一个菜单功能
function sho(str) {
var str1="t"+str; // 用于标识当前菜单项
var str="sho"+str; // 用于显示相应的子菜单
// 设置所有菜单项背景为默认
document.getElementById("t1").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t2").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t3").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t4").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t5").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t6").style.background="url('/dingcan/images/2_14.gif')";
// 隐藏所有子菜单
document.getElementById("sho1").style.display="none";
document.getElementById("sho2").style.display="none";
document.getElementById("sho3").style.display="none";
document.getElementById("sho4").style.display="none";
document.getElementById("sho5").style.display="none";
document.getElementById("sho6").style.display="none";
// 显示当前点击的子菜单并改变背景色
document.getElementById(str1).style.background="url('/dingcan/images/3_13.gif')";
document.getElementById(str).style.display="block"; // 将子菜单设为块级元素显示
}
=======
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/> <!--左侧菜单栏的代码描述如下 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<style type="text/css">
.STYLE1 {color: #FFFFFF;font-size: 12px;}
</style>
<script type="text/javascript">
function show(str)
{
var str1="td"+str;
var str="show"+str;
document.getElementById("td1").style.background="url('/dingcan/images/l_b_03.gif')";//每添加一个菜单,都要在这里添加。 getElementById得到id=td1的值即修改登录密码
document.getElementById("td2").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td3").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td4").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td5").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td6").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("show1").style.display="none";
document.getElementById("show2").style.display="none";
document.getElementById("show3").style.display="none";
document.getElementById("show4").style.display="none";
document.getElementById("show5").style.display="none";
document.getElementById("show6").style.display="none";
document.getElementById(str1).style.background="url('/dingcan/images/l_b_05.gif')";
document.getElementById(str).style.display="block";//变成块级元素
}//迭代使用show函数使用show函数完成叠菜单
function sho(str)
{
var str1="t"+str;
var str="sho"+str;
document.getElementById("t1").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t2").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t3").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t4").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t5").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t6").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho1").style.display="none";
document.getElementById("sho2").style.display="none";
document.getElementById("sho3").style.display="none";
document.getElementById("sho4").style.display="none";
document.getElementById("sho5").style.display="none";
document.getElementById("sho6").style.display="none";
document.getElementById(str1).style.background="url('/dingcan/images/3_13.gif')";
document.getElementById(str).style.display="block";
}
>>>>>>> remotes/origin/wyp_branch
</script>
</head>
<body>
<<<<<<< HEAD
<!-- 左侧导航菜单 -->
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48"><img src="/dingcan/images/left_09.gif" width="48" height="34"></td>
<td align="center" background="/dingcan/images/left_10.gif"><span class="STYLE1">导航菜单</span></td> <!-- 导航菜单标题 -->
<td width="48"><img src="/dingcan/images/l_09.gif" width="48" height="34"></td>
=======
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0"> <!--表格宽度为180 高度为100% 表中小格子边框为0无边框小格子中文字距离小格子距离为0小格子之间距离为0小格子紧密的靠在一起-->
<tr>
<td height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <!-- 在表中再建立一个表分成3部分放入图片组成一栏 -->
<tr>
<td width="48"><img src="/dingcan/images/left_09.gif" width="48" height="34"></td>
<td align="center" background="/dingcan/images/left_10.gif"><span class="STYLE1">导航菜单</span></td> <!--定义行内元素导航菜单样式为STYLE1-->
<td width="48"><img src="/dingcan/images/l_09.gif" width="48" height="34"></td> <!--在34高度上插入3个图片组成一栏 -->
>>>>>>> remotes/origin/wyp_branch
</tr>
</table>
</td>
</tr>
<tr>
<<<<<<< HEAD
<td valign="top" background="/dingcan/images/left_bg_03.gif" class="left_mid">
<!-- 菜单项 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- 修改登录密码 -->
<tr>
<td class="menu_first_img mouse" id="td1" onClick="show(1)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
=======
<td valign="top" background="/dingcan/images/left_bg_03.gif" class="left_mid"> <!-- 放置顶端图片 为left_mid类型-->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="menu_first_img mouse" id="td1" onClick="show(1)">&nbsp; <!-- 点击触发show1即打开下拉菜单 -->
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;"> <!-- 这一行左边距30px -->
>>>>>>> remotes/origin/wyp_branch
修改登录密码
</span>
</td>
</tr>
<<<<<<< HEAD
<!-- 子菜单1修改登录密码 -->
<tr>
<td id="show1" style="display:none;">
=======
<!-- 1111 -->
<tr>
<td id="show1" style="display:none;">
>>>>>>> remotes/origin/wyp_branch
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<<<<<<< HEAD
<a href="<%=path %>/admin/userinfo/userPw.jsp" target="I1" style="color: black;">修改登录密码</a>
=======
<a href="<%=path %>/admin/userinfo/userPw.jsp" target="I1" style="color: black;">修改登录密码</a> <!-- 点击修改密码进入path/admin/userinfo/userPw.jsp界面 -->
>>>>>>> remotes/origin/wyp_branch
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<<<<<<< HEAD
<!-- 菜品类别管理 -->
=======
<!-- 1111 -->
<!-- 1111 -->
>>>>>>> remotes/origin/wyp_branch
<tr>
<td class="menu_first_img mouse" id="td2" onClick="show(2)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
菜品类别管理
</span>
</td>
<<<<<<< HEAD
</tr>
<!-- 子菜单2菜品类别管理和添加菜品类别 -->
=======
</tr>
>>>>>>> remotes/origin/wyp_branch
<tr>
<td id="show2" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<<<<<<< HEAD
<a href="<%=path %>/catelog?type=catelogMana" target="I1" style="color: black;">菜品类别管理</a>
=======
<a href="<%=path %>/catelog?type=catelogMana" target="I1" style="color: black;">菜品类别管理</a> <!-- ?是AJAX技术后面可以接传递的参数 -->
>>>>>>> remotes/origin/wyp_branch
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<<<<<<< HEAD
</tr>
=======
</tr>
>>>>>>> remotes/origin/wyp_branch
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/catelog/catelogAdd.jsp" target="I1" style="color: black;">添加菜品类别</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<<<<<<< HEAD
<!-- 更多菜单项略... -->
=======
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td3" onClick="show(3)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
菜品信息管理
</span>
</td>
</tr>
<tr>
<td id="show3" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/goods?type=goodsMana" target="I1" style="color: black;">菜品信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/goods/goodsAdd.jsp" target="I1" style="color: black;">菜品信息添加</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td4" onClick="show(4)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
会员信息管理
</span>
</td>
</tr>
<tr>
<td id="show4" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/user?type=userMana" target="I1" style="color: black;">会员信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td5" onClick="show(5)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
订单信息管理
</span>
</td>
</tr>
<tr>
<td id="show5" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/order?type=orderMana" target="I1" style="color: black;">订单信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td6" onClick="show(6)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
留言信息管理
</span>
</td>
</tr>
<tr>
<td id="show6" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/liuyan?type=liuyanMana" target="I1" style="color: black;">留言信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
>>>>>>> remotes/origin/wyp_branch
</table>
</td>
</tr>
<tr>
<<<<<<< HEAD
<td height="13">
<!-- 底部区域 -->
<table width="100%" border="0
=======
<td height="13"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48"><img src="/dingcan/images/left_31.gif" width="48" height="13"></td>
<td background="/dingcan/images/left_32.gif" class="left_b_m">&nbsp;</td>
<td width="48"><img src="/dingcan/images/left_31_l.gif" width="48" height="13"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
>>>>>>> remotes/origin/wyp_branch
=======
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<ul>
<!-- <li>
<h2>会员登录</h2>
<p>Mauris vitae nisl n ornare, orci in consectetuer hendrerit, volutpat.</p>
</li> -->
<li>
<h2>菜品类别</h2>
<ul>
<c:forEach items="${sessionScope.catelogList}" var="catelog">
<li><a href="<%=path %>/goods?type=goodsByCatelog&catelog_id=${catelog.id}">${catelog.name}</a></li>
</c:forEach>
</ul>
</li>
<li>
</li>
</ul>
</body>
</html>
>>>>>>> remotes/origin/wyc_branch

@ -1,62 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base target="_self"/>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="javascript">
function c()//无内容提示请输入回复内容
{
if(document.formAdd.huifu.value=="")
{
alert("请输入回复内容");
return false;
}
document.formAdd.submit();//有内容将内容提交
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/liuyan?type=liuyanHuifu" name="formAdd" method="post">
<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
<tr bgcolor="#EEF4EA">
<td colspan="3" background="<%=path %>/img/wbg.gif" class='title'><span>信息交流</span></td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
回复内容:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="huifu" size="80"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="hidden" name="id" value="<%=request.getParameter("id") %>"/> <!-- 获得id属性 -->
<input type="button" value="提交" onclick="c()"/>&nbsp; <!-- 触发之前定义的是否有内容的判断 -->
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -1,80 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function liuyanDel(id)//确认是否删除
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/liuyan?type=liuyanDel&id="+id;//跳转页面,进行留言删除
}
}
function liuyanHuifu(id)//留言回复函数
{
var strUrl = "<%=path %>/admin/liuyan/liuyanHuifu.jsp?id="+id;
var ret = window.open(strUrl,"","dialogWidth:700px; dialogHeight:400px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
//建立一个模型对话框对话框高度为400宽度为700无状态栏窗口无滚动栏不可调整大小
window.location.reload(); //重新加载页面
}
</script>
</head>
<body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="14" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="4%">序号</td>
<td width="20%">信息内容</td>
<td width="8%">发布时间</td>
<td width="8%">回复信息</td>
<td width="8%">回复时间</td>
<td width="8%">操作</td>
</tr>
<c:forEach items="${requestScope.liuyanList}" var="liuyan" varStatus="sta">
<tr align='center' bgcolor="#FFFFFF" height="22">
<td bgcolor="#FFFFFF" align="center">
${sta.index+1 } <!-- 设置序号从1开始 -->
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.neirong }
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.liuyanshi }
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.huifu }
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.huifushi }
</td>
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="liuyanDel(${liuyan.id })"/><!-- 执行liuyanDelid-->
<input type="button" value="回复" onclick="liuyanHuifu(${liuyan.id })"/><!-- 执行liuyanHuifuid-->
</td>
</tr>
</c:forEach>
</table>
</body>
</html>

@ -1,111 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();//获得当前的项目根目录路径赋值给path
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<style type="text/css">
BODY {
FONT-FAMILY: 宋体, Arial, Helvetica, sans-serif; BACKGROUND: url(<%=path %>/images/LoginBg.jpg) #669acc repeat-x left top; FONT-SIZE: 12px
}
#Sizer {
MARGIN: 114px auto 0px; WIDTH: 656px; BACKGROUND: url(<%=path %>/images/LoginBg2.jpg); HEIGHT: 364px; OVERFLOW: hidden
}
TABLE {
MARGIN-TOP: 60px; WIDTH: 400px; MARGIN-LEFT: 120px
}
TABLE THEAD {
TEXT-ALIGN: left; LINE-HEIGHT: 40px; TEXT-INDENT: 50px; HEIGHT: 40px; FONT-WEIGHT: bold;font-family: 微软雅黑
}
TABLE TH {
TEXT-ALIGN: right; LINE-HEIGHT: 35px; WIDTH: 100px; HEIGHT: 35px; FONT-WEIGHT: normal;font-family: 微软雅黑
}
TABLE TD SPAN {
LINE-HEIGHT: 30px; CURSOR: pointer; TEXT-DECORATION: underline;font-family: 微软雅黑
}
.txt {
LINE-HEIGHT: 16px; WIDTH: 200px; HEIGHT: 16px;font-family: 微软雅黑
}
.cktxt {
LINE-HEIGHT: 16px; WIDTH: 100px; HEIGHT: 16px;font-family: 微软雅黑
}
</style>
<script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
<script language="javascript">
function check1() //上面引入javascript文件来引入对象处理 #sizer上边距为114像素右边距自动下边距0宽度656px背景为图片高度为364px内容区内容溢出内容被修剪并且其余内容是不可见的
{
if(document.ThisForm.userName.value=="")
{
alert("请输入账号");
document.ThisForm.userName.focus();
return false;
} //如果账号为空提示输入账号使用focus使得在点击文本框时获得光标点击到外边时光标消失
document.getElementById("indicator").style.display="block"; //设置为块级元素使得两块级元素之间换行载入动画的id叫indicator
loginService.login(document.ThisForm.userName.value,document.ThisForm.userPw.value,0,callback); //使用src里面定义的loginService来实现对账号密码的验证之后执行callback函数
}
function callback(data) //账号密码错误,提示账号或密码错误,账号密码正确,提示通过验证,系统登录成功
{
document.getElementById("indicator").style.display="none";
if(data=="no")
{
alert("账号或密码错误");
}
if(data=="yes")
{
alert("通过验证,系统登录成功");
window.location.href="<%=path %>/loginSuccess.jsp";
}
}
</script>
</head>
<body>
<DIV id=Sizer>
<FORM method=post name=ThisForm action="<%=path %>/admin/index.jsp"> <!-- 表单的数据发送到action属性的页面 -->
<TABLE border=0 cellSpacing=0 cellPadding=0> <!--表中小格子边框为0小格子中文字距离小格子距离为0小格子之间距离为0小格子紧密的靠在一起-->
<THEAD> <!-- 表格的表头 tr行td列 横跨2列 对齐为居中 字体样式是23像素-->
<TR><TD colSpan=2 align="center" style="font-size: 23px;">基于JSP的高校快餐店订餐系统
</TD></TR>
</THEAD>
<TBODY>
<TR>
<TH>账号:</TH>
<TD><INPUT class=txt type=text name=userName></TD> <!-- 输入框类为txt 类型为文本 -->
</TR>
<TR>
<TH>密码:</TH>
<TD><INPUT class=txt type=password name=userPw></TD>
</TR>
<TR>
<TH>&nbsp;</TH>
<TD>
<INPUT class=btn value=系统登录 type=button name=submit style="font-family: 微软雅黑" onClick="check1()"> <!-- 类名为btn点击触发check1事件检查账号密码是否符合规范 -->
&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT class=btn value=重新输入 type=reset name=reset style="font-family: 微软雅黑">
<img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/> <!-- 插入载入中动画 -->
</TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</DIV>
</body>
</html>

@ -1,28 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<script type="text/javascript">
function tiao()
{
window.location.href="<%=path %>/admin/index.jsp"; //把url改变为<%=path %>/admin/index.jsp
}
setTimeout(tiao,1300) //1.3秒之后执行tiao功能跳转到index.jsp
</script>
<br> <br> <br> <br> <br> <br> <br> <br> <br>
<center><img src="<%=path %>/images/loading.gif"></center> <!-- 在此期间展示载入动画 -->
</body>
</html>

@ -1,23 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<div style="color: green;" align="left">${requestScope.msg}</div> <!-- 返回的request作用域里面的msg属性的值 -->
</body>
</html>

@ -1,157 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type='text/javascript' src='<%=path %>/dwr/interface/cartService.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
<script type="text/javascript">
function delGoodsFromCart(goodsId) //删除购物车里的货物
{
document.getElementById("indicator1").style.display="block";
cartService.delGoodsFromCart(goodsId,callback111);
}
function clearCart() //清空购物车
{
document.getElementById("indicator1").style.display="block";
cartService.clearCart(callback111);
}
function modiNum(goodsId,quantity) //改变购物车里物品的数量
{
var r1= /^[0-9]*[1-9][0-9]*$/  //正整数
var val=r1.test(quantity); //quantity为你要判断的字符 执行返回结果 true 或 false
if(val==false)
{
alert("数量必须是数字,请重新输入");
}
else //否则调用modiNum函数改变购物车中物品的数量
{
document.getElementById("indicator1").style.display="block";
cartService.modiNum(goodsId,quantity,callback111);
}
}
function callback111(data) //判断是否订单符合库存
{
document.getElementById("indicator1").style.display="none";
if(data=="no")
{
alert("库存不足");
}
if(data=="yes") //够库存,重新加载该页面
{
document.location.reload(true);
}
}
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">我的购物车</a></h2>
<div class="entry">
<table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" style="margin-top:8px">
<tr align="center" bgcolor="#FAFAF1" height="22">
<td>商品名称</td>
<td>购买价格</td>
<td>购买数量</td>
<td>总金额</td>
<td>操作</td>
</tr>
<c:forEach items="${sessionScope.cart.items}" var="item">
<tr align='center' bgcolor="#FFFFFF" height="22">
<td bgcolor="#FFFFFF" align="center">${item.value.goods.mingcheng}</td>
<td bgcolor="#FFFFFF" align="center">¥:${item.value.goods.tejia}</td>
<td bgcolor="#FFFFFF" align="center"><input type="text" onChange="modiNum(${item.value.goods.id},this.value)" value="${item.value.goods_quantity}" size="4"/></td>
<!-- 改变数量 -->
<td bgcolor="#FFFFFF" align="center">${item.value.goods.tejia * item.value.goods_quantity}</td>
<!-- 总金额=特价*数量 -->
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" style="width: 50px;height: 20px;" onclick="delGoodsFromCart(${item.value.goods.id})">
</td>
</tr>
</c:forEach>
<tr>
<td colspan="5" class="Order_Total" align="right">
<br>
总金额:<span id="totalMoney">${sessionScope.cart.totalPrice}</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<img id="indicator1" src="<%=path %>/images/loading.gif" style="display:none"/>
</td>
</tr>
</table>
<table>
<tr height="7"><td></td></tr>
<tr>
<td width="120"></td>
<td>
<input type="button" value="清空" style="width: 80px;height: 30px;" onclick="clearCart()">
</td>
<td>
<input type="button" value="继续" style="width: 80px;height: 30px;" onclick="javascript:window.location.href='<%=path %>/site/default.jsp'">
</td>
<td>
<input type="button" value="结账" style="width: 80px;height: 30px;" onclick="javascript:window.location.href='<%=path %>/site/order/orderQueren.jsp'">
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,113 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function orderDetail(order_id)//订单明细函数
{
var strUrl="<%=path %>/buy?type=orderDetail&order_id="+order_id;//传入参数
var ret = window.open(strUrl,"","dialogWidth:800px; dialogHeight:500px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
//点击订单明细弹出窗口宽800px高500px无状态栏目录栏可见有滚动栏不可改变大小
}
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 我的订单页面的头部菜单栏daohang.jsp -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 我的订单页面的头部菜单栏daohang.jsp -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">我的订单</a></h2>
<div class="entry">
<c:forEach items="${requestScope.orderList}" var="order">
<fieldset style="width:95%; margin-left:5px;"><legend class="fieldtitle"></legend>
<table class="bill" width="97%" cellpadding="4" cellspacing="4">
<tr>
<td>订单编号:${order.bianhao}</td>
</tr>
<tr>
<td>下单时间:${order.shijian}</td>
</tr>
<tr>
<td>
订单状态:
<c:if test="${order.zhuangtai=='no'}"> <!-- if的插入 -->
未受理
</c:if>
<c:if test="${order.zhuangtai=='yes'}">
已受理
</c:if>
</td>
</tr>
<tr>
<td>排队计时:${order.huifu}</td>
</tr>
<tr>
<td>送货地址:${order.songhuodizhi}</td>
</tr>
<tr>
<td>付款方式:${order.fukuanfangshi}</td>
</tr>
<tr>
<td>总金额:${order.jine}&nbsp;
<a href="#" onclick="orderDetail(${order.id})"/>订单明细</a>
</td>
</tr>
</table>
</fieldset>
<br/>
</c:forEach>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧菜品类别 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧菜品类别 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p> <a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,180 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'orderDetail.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
a:link { color: #000000; text-decoration: none } //链接平常的状态,超链接无下划线
a:visited { color: #000000; text-decoration: none } //链接被访问之后,超链接无下划线
a:active { color: #000000; text-decoration: none } //鼠标放到连接上的时候,超链接无下划线
a:hover { color: #ff0000; text-decoration: none; position: relative; right: 0px; top: 1px } //连接被按下的时候,超链接无下划线,相对定位(随窗口大小变化而变化)
.C_Font{ font-weight:bold;}
.Red{ color:#FF0000; font-weight:bold;}
.Sell_Title{ text-align:center;background:url(<%=path %>/images/icon_sell.gif) top no-repeat left;
font-weight:bold; font-size:14px; color:#FFFFFF; height:30px;}
.UserName{ padding:4px 0;}
.UserName input{ width:100px; border:1px solid #666;}
.UserRegster{ padding:5px 8px 5px 0;}
.UserRegster a,.UserRegster a:link,.UserRegster a:visited{ color:#f50;}
.UserRegster input{ background:url(<%=path %>/images/button.gif) no-repeat; width:73px; height:23px; border:0px; cursor:hand;}
.LoginTitle{text-align:center;background:url(<%=path %>/images/icon_login.gif) top no-repeat left;font-weight:bold; font-size:14px; color:#FFFFFF; height:30px;}
.Logo{ text-align:center; vertical-align:top; margin:8px 0;}
.Item01Menu{ text-align:right; vertical-align:top;}
.Item01Menu a{ padding:2px 10px; background:url(<%=path %>/images/dot_main01.gif) no-repeat left;}
.C_Item_Title{ background:url(<%=path %>/images/icon05.gif) no-repeat center;font-weight:bold; text-align:center; color:#fff; height:34px;}
.C_Item_Title a,.C_Item_Title a:link,.C_Item_Title a:visited{font-weight:bold; text-align:center; color:#fff;}
.C_login_Title{ background:url(<%=path %>/images/heng.gif) no-repeat center;font-weight:bold;font-size:12px; text-align:center; color:#fff; height:34px; padding-top:10px;}
.C_Sell_Title{ background:url(<%=path %>/images/icon03.gif) no-repeat center;font-weight:bold; text-align:center; color:#fff; height:34px; padding-top:10px;}
.C_DC_Title{ background:url(<%=path %>/images/DC.gif) no-repeat center;font-weight:bold; text-align:center; color:#fff; height:34px; padding-top:10px;}
.C_Sort_Title{ background:url(<%=path %>/images/heng.gif) no-repeat center;font-weight:bold;font-size:12px; text-align:center; color:#fff; height:34px; padding-top:10px;}
.C_Sort_Title a,.C_Sort_Title a:link,.C_Sort_Title a:visited{ color:#fff;}
.C_Search_Title{ background:url(<%=path %>/images/Recomm_05.gif) no-repeat center;font-weight:bold; text-align:center; color:#fff; height:34px; padding-top:10px;}
.C_Help_Title{ padding:4px 0;}
.C_Help_Title a{ background:url(<%=path %>/images/icon_sell.gif) no-repeat center;font-weight:bold; color:#fff; height:24px; padding-left:15px; width:175px; padding-top:5px;}
.C_Help_Title a,.C_Help_Title a:link,.C_Help_Title a:visited{ color:#fff;}
.C_Goods_Title{ border:1px solid #ccc; background:url(<%=path %>/images/Bule_46.gif) repeat-x; margin-bottom:5px; height:32px;}
.C_Goods_Border{ border-top:4px solid #4380CC; padding-top:10px;}
.C_Item_bg{ background:url(<%=path %>/images/Bule_56.gif) repeat-y; padding:3px 8px;}
.C_pages{ padding:5px 10px; text-align:center;}
.C_Input{ background:url(<%=path %>/images/button2.gif) no-repeat; width:73px; height:23px; border:0px; cursor:hand; color:#333;}
.input{ color:#f50;height:18px; }
.C_Input02{background:url(<%=path %>/images/button.gif) no-repeat; width:73px; height:23px; border:0px; cursor:hand; color:#333;}
.C_Input03{background:url(<%=path %>/images/btn_2.png) no-repeat; width:69px; height:28px; border:0px; cursor:hand; color:#fff;}
.Register{background:url(<%=path %>/images/btn_1.png) no-repeat; width:105px; height:28px; border:0px; cursor:hand; text-align:center; padding-top:6px;}
//no-repeat不平铺
.Order_Table{ margin:15px 0;}
.Order_Table td{ font-size:14px;}
.Order_Font{ color:#FF0000; font-weight:bold;}
.Order_Title{ font-size:14px; font-weight:bold; padding:4px 5px;}
.Order_Total{ font-weight:bold; padding:5px 10px 0 10px; color:#FF0000; text-align:center; font-size:14px;}
.Car_Leftbg{ background:url(<%=path %>/images/Car_05.gif) repeat-y left; width:8px;}
.Car_Rightbg{ background:url(<%=path %>/images/Car_13.gif) repeat-y right; width:8px;}
.C_Carbg_Default{ background:url(<%=path %>/images/Car_21.gif) no-repeat center;font-size:12px; text-align:center; width:150px;}
.C_Carbg_Current{ background:url(<%=path %>/images/Car_18.gif) no-repeat center;font-size:12px; text-align:center; color:#fff; width:150px;}
.Onlinpay{
}
.Onlinpay input{ background:url(<%=path %>/images/Car_icon_07.gif) no-repeat center; width:115px; height:30px; border:0px; cursor:hand; padding-bottom:8px; padding-right:8px;}
.textBox{
border-bottom:1px;
border-left:1px;
border-right:1px;
border-top:1px;
border-color:#666666;
border-style:solid;
}
.itemTitle {
font-family: "黑体", "Arial Black";
font-size: 16px;
line-height: 40px;
font-weight: 200;
color: #000000;
text-decoration: none;
letter-spacing: 5px;
} //字母间距5px
.blueText {
font-family: "宋体", System;
font-size: 12px;
line-height: 20px;
color: #0033CC;
text-decoration: none;
}
.redText {
font-family: "宋体", System;
font-size: 12px;
line-height: 20px;
color: #FF0000;
text-decoration: none;
}
.text {
font-family: "宋体", System;
font-size: 12px;
line-height: 20px;
color: #000000;
text-decoration: none;
}
.body {
margin-left: 0px;
margin-top: 2px;
margin-right: 0px;
margin-bottom: 2px;
background-image: url(<%=path %>/images/backGroup.gif);
}
.header_menu{background:url(<%=path %>/images/header_menu_02.gif) repeat-x;}
.whiteTitle{
font-family: "宋体", System;
font-size: 13px;
line-height: 20px;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
.whiteText {
font-family: "宋体", System;
font-size: 12px;
line-height: 20px;
color: #FFFFFF;
text-decoration: none;
}
.blackTitle {
font-family: "宋体", System;
font-size: 12px;
font-weight: bold;
line-height: 20px;
color: #000000;
text-decoration: none;
}
</style>
</head>
<body class="body" leftmargin="0" rightmargin="0">
<table cellspacing="1" cellpadding="0" width="100%" border="0" bgcolor="#F7F3F7">
<tr height="26">
<td class="blackTitle" align="center">商品名称</td>
<td class="blackTitle" align="center">购买数量</td>
<td class="blackTitle" align="center">购买价格</td>
</tr>
<c:forEach items="${requestScope.orderItemList}" var="orderItem">
<tr class="text" align="center" bgcolor="#FFFFFF">
<td>${orderItem.goods.mingcheng}</td>
<td>${orderItem.goods_quantity}</td>
<td>${orderItem.goods.tejia}</td>
</tr>
</c:forEach>
</table>
</body>
</html>

@ -1,121 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function orderDetail(order_id)//订单明细信息
{
var url="<%=path %>/buy?type=orderDetail&order_id="+order_id; //跳转页面
var n="";
var w="600px";//宽度
var h="500px";//高度
var s="resizable:no;help:no;status:no;scroll:yes"; //不可调整大小 无帮助栏 无状态栏 有滚动条
openWin(url,n,w,h,s);
}
function orderDel(id)
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/order?type=orderDel&id="+id; //?后传入参数,&为参数间的分隔符
}
}
function orderShouli(id)
{
if(confirm('您确定受理订单吗?'))
{
window.location.href="<%=path %>/order?type=orderShouli&id="+id;
}
}
function huifuAdd(id)
{
var url="<%=path %>/admin/order/huifuAdd.jsp?id="+id;
window.location.href=url;
}
function userDetail(id)
{
var url="<%=path %>/user?type=userDetail&id="+id;
window.location.href=url;
}
</script>
</head>
<body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="44" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="4%">序号</td>
<td width="10%">订单编号</td>
<td width="10%">下单时间</td>
<td width="10%">状态</td>
<td width="10%">排队计时</td>
<td width="15%">送货地址</td>
<td width="10%">付款方式</td>
<td width="10%">总金额</td>
<td width="10%">明细</td>
<td width="10%">用户信息</td>
<td width="10%">操作</td>
</tr>
<c:forEach items="${requestScope.orderList}" var="order" varStatus="ss">
<tr align='center' bgcolor="#FFFFFF" height="22"> <!--取得订单的各种信息序号从1开始-->
<td bgcolor="#FFFFFF" align="center">${ss.index+1}</td>
<td bgcolor="#FFFFFF" align="center">${order.bianhao}</td>
<td bgcolor="#FFFFFF" align="center">${order.shijian}</td>
<td bgcolor="#FFFFFF" align="center">
<c:if test="${order.zhuangtai=='no'}"> <!-- 如果状态=no显示未受理点击受理订单触发受理订单orderShouliid函数 -->
未受理&nbsp;&nbsp;&nbsp;<a href="#" style="color: red" onclick="orderShouli(${order.id})" class="pn-loperator">受理订单</a>
</c:if>
<c:if test="${order.zhuangtai=='yes'}"> <!--如果状态=yes显示已受理-->
已受理
</c:if>
</td>
<td bgcolor="#FFFFFF" align="center">
${order.huifu}
&nbsp;&nbsp;&nbsp;<a href="#" style="color: red" onclick="huifuAdd(${order.id})" class="pn-loperator">计时</a>
<!-- 点击计时可以触发huifuAddid函数来为用户进行消息回复如几点过来取-->
</td>
<td bgcolor="#FFFFFF" align="center">${order.songhuodizhi}</td>
<td bgcolor="#FFFFFF" align="center">${order.fukuanfangshi}</td>
<td bgcolor="#FFFFFF" align="center">${order.jine}</td> <!-- 获得付款方式,送货地址,总金额信息 -->
<td><input value="明细" type="button" onclick="orderDetail(${order.id})"/></td>
<!-- 点击明细触发前面定义的订单明细orderDetailid-->
<td><input value="查看用户" type="button" onclick="userDetail('${order.user_id}')"/></td>
<!-- 点击查看用户触发前面定义的用户明细userDetailid-->
<td>
<input type="button" onclick="orderDel(${order.id})" value="删除"/>
</td>
</tr>
</c:forEach>
</table>
</body>
</html>

@ -1,123 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <!-- 订单填写界面 -->
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function back1() //返回之前的页面
{
window.history.go(-1);
}
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部各种功能 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部各种功能 -->
<div id="page">
<div id="page-bgtop">
<!--右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">填写订单</a></h2>
<div class="entry">
<form action="<%=path %>/buy?type=orderSubmit" name="f" method="post">
<table width="98%" align="center" border="0" cellpadding="9" cellspacing="9">
<tr align='center'>
<td width="20%" bgcolor="#FFFFFF" align="left">
收货人帐号:
</td>
<td width="80%" bgcolor="#FFFFFF" align="left">
<input type="text" readonly="readonly" value="${sessionScope.user.loginname}"/>
</td>
</tr>
<tr align='center'>
<td width="20%" bgcolor="#FFFFFF" align="left">
收货人姓名:
</td>
<td width="80%" bgcolor="#FFFFFF" align="left">
<input type="text" readonly="readonly" value="${sessionScope.user.name}"/>
</td>
</tr>
<tr align='center'>
<td width="20%" bgcolor="#FFFFFF" align="left">
送货地址:
</td>
<td width="80%" bgcolor="#FFFFFF" align="left">
<input type="text" name="songhuodizhi"/>
</td>
</tr>
<tr align='center'>
<td width="20%" bgcolor="#FFFFFF" align="left">
付款方式:
</td>
<td width="80%" bgcolor="#FFFFFF" align="left">
<select name="fukuanfangshi" style="width:155px;">
<option value="货到付款">货到付款</option>
</select> <!-- 下拉菜单 -->
</td>
</tr>
</table>
<table>
<tr height="7"><td></td></tr>
<tr>
<td width="120"></td>
<td>
<input type="button" value="返回" style="width: 80px;height: 30px;" onclick="back1()">
</td>
<td>
<input type="button" value="提交订单" style="width: 80px;height: 30px;" onclick="javascript:document.f.submit();">
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧菜品类别 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧菜品类别 -->
<div style="clear: both;">&nbsp;</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,94 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function back1()//返回之前的界面
{
window.history.go(-1);
}
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<!-- 头部各种功能 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部各种功能 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#"></a></h2>
<div class="entry">
<table width="99%" border="0" cellpadding="5" cellspacing="5" bgcolor="#FFFFFF" align="center" style="margin-top:8px">
<tr>
<td align="left" style="color: red">恭喜您,订单提交成功!</td>
</tr>
<tr>
<td style="font-size: 15px;">订单编号:${requestScope.order.bianhao }</td>
</tr>
<tr>
<td style="font-size: 15px;">总金额:${requestScope.order.jine }</td>
</tr>
<tr>
<td style="font-size: 15px;">下单日期:${requestScope.order.shijian }</td>
</tr>
<tr>
<td style="font-size: 15px;">送货地址:${requestScope.order.songhuodizhi }</td>
</tr>
<tr>
<td style="font-size: 15px;">付款方式:${requestScope.order.fukuanfangshi }</td>
</tr>
</table>
</div>
</div>
</div>
<!-- 右侧 -->
<!-- 左侧菜品类别 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include>
</div>
<!-- 左侧菜品类别 -->
<div style="clear: both;">&nbsp;</div> <!--clear:both该属性的值指出了不允许有浮动元素 -->
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,188 +0,0 @@
var tcolor={
cColor:"#EEEEEE", //蒙皮颜色
bColor:"#FFFFFF", //背景颜色
tColor:"#9C9E9C", //标题背景颜色,边框颜色
wColor:"#FFFFFF" //标题文字颜色
};
function popclose()
{
var a = parent.document.getElementById("dialogBoxClose");
a.click();
}
if(!Array.prototype.push){
Array.prototype.push=function(){
var startLength=this.length;
for(var i=0;i<arguments.length;i++)
this[startLength+i]=arguments[i];
return this.length;
}
};
function G(){
//alert("aa");
var elements=new Array();
for(var i=0;i<arguments.length;i++){
var element=arguments[i];
if(typeof element=='string')
element=document.getElementById(element);
if(arguments.length==1)
return element;elements.push(element)
};
return elements
};
Function.prototype.bind=function(object){
var __method=this;
return function(){__method.apply(object,arguments)}
};
Function.prototype.bindAsEventListener=function(object){
var __method=this;
return function(event){__method.call(object,event||window.event)}
};
Object.extend=function(destination,source){
for(property in source){destination[property]=source[property]};return destination
};
if(!window.Event){var Event=new Object()};
Object.extend(Event,{observers:false,element:function(event){return event.target||event.srcElement},isLeftClick:function(event){return(((event.which)&&(event.which==1))||((event.button)&&(event.button==1)))},pointerX:function(event){return event.pageX||(event.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(event){return event.pageY||(event.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(event){if(event.preventDefault){event.preventDefault();event.stopPropagation()}else{event.returnValue=false;event.cancelBubble=true}},findElement:function(event,tagName){var element=Event.element(event);while(element.parentNode&&(!element.tagName||(element.tagName.toUpperCase()!=tagName.toUpperCase())))element=element.parentNode;return element},_observeAndCache:function(element,name,observer,useCapture){if(!this.observers)this.observers=[];if(element.addEventListener){this.observers.push([element,name,observer,useCapture]);element.addEventListener(name,observer,useCapture)}else if(element.attachEvent){this.observers.push([element,name,observer,useCapture]);element.attachEvent('on'+name,observer)}},unloadCache:function(){if(!Event.observers)return;for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null};Event.observers=false},observe:function(element,name,observer,useCapture){var element=G(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.attachEvent))name='keydown';this._observeAndCache(element,name,observer,useCapture)},stopObserving:function(element,name,observer,useCapture){var element=G(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.detachEvent))name='keydown';if(element.removeEventListener){element.removeEventListener(name,observer,useCapture)}else if(element.detachEvent){element.detachEvent('on'+name,observer)}}});
Event.observe(window,'unload',Event.unloadCache,false);
var Class=function(){
var _class=function(){
this.initialize.apply(this,arguments)
};
for(i=0;i<arguments.length;i++){
superClass=arguments[i];for(member in superClass.prototype){_class.prototype[member]=superClass.prototype[member]}
};
_class.child=function(){return new Class(this)};
_class.extend=function(f){for(property in f){_class.prototype[property]=f[property]}};
return _class
};
function space(flag){
if(flag=="begin"){
var ele=document.getElementById("ft");
if(typeof(ele)!="undefined"&&ele!=null)
ele.id="ft_popup";
ele=document.getElementById("usrbar");
if(typeof(ele)!="undefined"&&ele!=null)
ele.id="usrbar_popup"
}
else if(flag=="end"){
var ele=document.getElementById("ft_popup");
if(typeof(ele)!="undefined"&&ele!=null)ele.id="ft";
ele=document.getElementById("usrbar_popup");
if(typeof(ele)!="undefined"&&ele!=null)ele.id="usrbar"}
};
// Popup Class begin....
var Popup=new Class();
Popup.prototype={
iframeIdName:'ifr_popup', //iframe的名字
initialize:function(config){
this.config=Object.extend({ //属性设置
contentType:1, //pop类型 1. 内嵌iframe2. 显示给定的html 3. confirm框 4. alert框
isHaveTitle:true, //是否有标题栏
scrollType:'yes', //内嵌iframe是否可以滚动
isBackgroundCanClick:false, //背景是否可以点击
isSupportDraging:true, //是否支持拖动
isShowShadow:true, //是否显示阴影
isReloadOnClose:true, //关闭后是否重新加载页面
width:400, //宽度
height:300 //高度
},config||{});
this.info={ //参数
shadowWidth:0, //阴影宽度
title:"", //标题
contentUrl:"", //iframe的url
contentHtml:"", //内容的html
callBack:null, //回调函数
parameter:null, //调用的参数 如 {id:"divCall",str:"点击确定后显示的字符串",obj:pop}
confirmCon:"", //confirm的内容
alertCon:"", //alert的内容
someHiddenTag:"select,object,embed", //自动隐藏的页面元素
someDisabledBtn:"", //禁用的btn
someHiddenEle:"", //隐藏的匀速
overlay:0, //覆盖
coverOpacity:0 //蒙皮不透明度
};
this.color=tcolor;
this.dropClass=null;
this.someToHidden=[];
this.someToDisabled=[];
if(!this.config.isHaveTitle)
this.config.isSupportDraging=false;
this.iniBuild()
},
setContent:function(arrt,val){ //设置内容,即 this.info 的参数内容
if(val!=''){
switch(arrt){
case 'width':this.config.width=val;break;
case 'height':this.config.height=val;break;
case 'title':this.info.title=val;break;
case 'contentUrl':this.info.contentUrl=val;break;
case 'contentHtml':this.info.contentHtml=val;break;
case 'callBack':this.info.callBack=val;break;
case 'parameter':this.info.parameter=val;break;
case 'confirmCon':this.info.confirmCon=val;break;
case 'alertCon':this.info.alertCon=val;break;
case 'someHiddenTag':this.info.someHiddenTag=val;break;
case 'someHiddenEle':this.info.someHiddenEle=val;break;
case 'someDisabledBtn':this.info.someDisabledBtn=val;break;
case 'overlay':this.info.overlay=val}
}
},
iniBuild:function(){
G('dialogCase')?G('dialogCase').parentNode.removeChild(G('dialogCase')):function(){};
var oDiv=document.createElement('span');oDiv.id='dialogCase';document.body.appendChild(oDiv)
},
build:function(){
var baseZIndex=10001+this.info.overlay*10;
var showZIndex=baseZIndex+2;this.iframeIdName='ifr_popup'+this.info.overlay;
//关闭按钮
//var path="http://img.baidu.com/hi/img/";
//var close='<input type="image" id="dialogBoxClose" src="'+path+'dialogclose.gif" border="0" width="16" height="16" align="absmiddle" title="关闭"/>';
var close='<img id="dialogBoxClose" title="关闭" src=/dingcan/images/dialogclose.gif />';
var cB='filter: alpha(opacity='+this.info.coverOpacity+');opacity:'+this.info.coverOpacity/100+';';
var cover='<div id="dialogBoxBG" style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+baseZIndex+';'+cB+'background-color:'+this.color.cColor+';display:none;"></div>';
var mainBox='<div id="dialogBox" style="border:1px solid '+this.color.tColor+';display:none;z-index:'+showZIndex+';position:relative;width:'+this.config.width+'px;"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="'+this.color.bColor+'">';if(this.config.isHaveTitle){mainBox+='<tr height="24" bgcolor="'+this.color.tColor+'"><td><table style="-moz-user-select:none;height:24px;" width="100%" border="0" cellpadding="0" cellspacing="0" ><tr>'+'<td width="6" height="24"></td><td id="dialogBoxTitle" style="color:'+this.color.wColor+';font-size:14px;font-weight:bold;">'+this.info.title+'&nbsp;</td>'+'<td id="dialogClose" width="20" align="right" valign="middle">'+close+'</td><td width="6"></td></tr></table></td></tr>'}
else{mainBox+='<tr height="10"><td align="right">'+close+'</td></tr>'};
mainBox+='<tr style="height:'+this.config.height+'px" valign="top"><td id="dialogBody" style="position:relative;"></td></tr></table></div>'+'<div id="dialogBoxShadow" style="display:none;z-index:'+baseZIndex+';"></div>';
if(!this.config.isBackgroundCanClick){G('dialogCase').innerHTML=cover+mainBox;G('dialogBoxBG').style.height=document.body.scrollHeight}
else G('dialogCase').innerHTML=mainBox;Event.observe(G('dialogBoxClose'),"click",this.reset.bindAsEventListener(this),false);
if(this.config.isSupportDraging){dropClass=new Dragdrop(this.config.width,this.config.height,this.info.shadowWidth,this.config.isSupportDraging,this.config.contentType);G("dialogBoxTitle").style.cursor="move"};this.lastBuild()},lastBuild:function(){var confirm='<div style="width:100%;height:100%;text-align:center;"><div style="margin:20px 20px 0 20px;font-size:14px;line-height:16px;color:#000000;">'+this.info.confirmCon+'</div><div style="margin:20px;"><input id="dialogOk" type="button" value=" 确定 "/>&nbsp;<input id="dialogCancel" type="button" value=" 取消 "/></div></div>';
var alert='<div style="width:100%;height:100%;text-align:center;"><div style="margin:20px 20px 0 20px;font-size:14px;line-height:16px;color:#000000;">'+this.info.alertCon+'</div><div style="margin:20px;"><input id="dialogYES" type="button" value=" 确定 "/></div></div>';
var baseZIndex=10001+this.info.overlay*10;var coverIfZIndex=baseZIndex+4;
if(this.config.contentType==1){var openIframe="<iframe width='100%' style='height:"+this.config.height+"px' name='"+this.iframeIdName+"' id='"+this.iframeIdName+"' src='"+this.info.contentUrl+"' frameborder='0' scrolling='"+this.config.scrollType+"'></iframe>";
var coverIframe="<div id='iframeBG' style='position:absolute;top:0px;left:0px;width:1px;height:1px;z-index:"+coverIfZIndex+";filter: alpha(opacity=00);opacity:0.00;background-color:#ffffff;'><div>";G("dialogBody").innerHTML=openIframe+coverIframe}
else if(this.config.contentType==2){G("dialogBody").innerHTML=this.info.contentHtml}else if(this.config.contentType==3){G("dialogBody").innerHTML=confirm;Event.observe(G('dialogOk'),"click",this.forCallback.bindAsEventListener(this),false);
Event.observe(G('dialogCancel'),"click",this.close.bindAsEventListener(this),false)}else if(this.config.contentType==4){G("dialogBody").innerHTML=alert;Event.observe(G('dialogYES'),"click",this.close.bindAsEventListener(this),false)}},reBuild:function(){G('dialogBody').height=G('dialogBody').clientHeight;this.lastBuild()},show:function(){this.hiddenSome();this.middle();if(this.config.isShowShadow)this.shadow()},forCallback:function(){return this.info.callBack(this.info.parameter)},shadow:function(){var oShadow=G('dialogBoxShadow');var oDialog=G('dialogBox');oShadow['style']['position']="absolute";oShadow['style']['background']="#000";oShadow['style']['display']="";oShadow['style']['opacity']="0.2";oShadow['style']['filter']="alpha(opacity=20)";oShadow['style']['top']=oDialog.offsetTop+this.info.shadowWidth;oShadow['style']['left']=oDialog.offsetLeft+this.info.shadowWidth;oShadow['style']['width']=oDialog.offsetWidth;oShadow['style']['height']=oDialog.offsetHeight},middle:function(){if(!this.config.isBackgroundCanClick)G('dialogBoxBG').style.display='';
var oDialog=G('dialogBox');
oDialog['style']['position']="absolute";
oDialog['style']['display']='';
//取得页面的宽度和高度
var sClientWidth=document.body.clientWidth;
var sClientHeight=document.body.clientHeight;
var sScrollTop=document.body.scrollTop;
//
var sleft=(sClientWidth/2)-(oDialog.offsetWidth/2);
var iTop=-80+(sClientHeight/2+sScrollTop)-(oDialog.offsetHeight/2);
var sTop=iTop>0?iTop:(sClientHeight/2+sScrollTop)-(oDialog.offsetHeight/2);
if(sTop<1)sTop="20";if(sleft<1)sleft="20";
oDialog['style']['left']=sleft+"px"; //左侧位置
oDialog['style']['top']=220+"px" //顶部位置
},
reset:function(){if(this.config.isReloadOnClose){top.location.reload()};this.close()},close:function(){G('dialogBox').style.display='none';
if(!this.config.isBackgroundCanClick)G('dialogBoxBG').style.display='none';
if(this.config.isShowShadow)G('dialogBoxShadow').style.display='none';G('dialogBody').innerHTML='';
this.showSome()},hiddenSome:function(){var tag=this.info.someHiddenTag.split(",");
if(tag.length==1&&tag[0]=="")tag.length=0;
for(var i=0;i<tag.length;i++){this.hiddenTag(tag[i])};
var ids=this.info.someHiddenEle.split(",");
if(ids.length==1&&ids[0]=="")ids.length=0;
for(var i=0;i<ids.length;i++){this.hiddenEle(ids[i])};
var ids=this.info.someDisabledBtn.split(",");
if(ids.length==1&&ids[0]=="")ids.length=0;
for(var i=0;i<ids.length;i++){this.disabledBtn(ids[i])};
space("begin")},disabledBtn:function(id){var ele=document.getElementById(id);
if(typeof(ele)!="undefined"&&ele!=null&&ele.disabled==false){ele.disabled=true;this.someToDisabled.push(ele)}},hiddenTag:function(tagName){var ele=document.getElementsByTagName(tagName);
if(ele!=null){for(var i=0;i<ele.length;i++){if(ele[i].style.display!="none"&&ele[i].style.visibility!='hidden'){ele[i].style.visibility='hidden';this.someToHidden.push(ele[i])}}}},hiddenEle:function(id){var ele=document.getElementById(id);if(typeof(ele)!="undefined"&&ele!=null){ele.style.visibility='hidden';this.someToHidden.push(ele)}},showSome:function(){for(var i=0;i<this.someToHidden.length;i++){this.someToHidden[i].style.visibility='visible'};for(var i=0;i<this.someToDisabled.length;i++){this.someToDisabled[i].disabled=false};space("end")}};var Dragdrop=new Class();Dragdrop.prototype={initialize:function(width,height,shadowWidth,showShadow,contentType){this.dragData=null;this.dragDataIn=null;this.backData=null;this.width=width;this.height=height;this.shadowWidth=shadowWidth;this.showShadow=showShadow;this.contentType=contentType;this.IsDraging=false;this.oObj=G('dialogBox');Event.observe(G('dialogBoxTitle'),"mousedown",this.moveStart.bindAsEventListener(this),false)},moveStart:function(event){this.IsDraging=true;if(this.contentType==1){G("iframeBG").style.display="";G("iframeBG").style.width=this.width;G("iframeBG").style.height=this.height};Event.observe(document,"mousemove",this.mousemove.bindAsEventListener(this),false);Event.observe(document,"mouseup",this.mouseup.bindAsEventListener(this),false);Event.observe(document,"selectstart",this.returnFalse,false);this.dragData={x:Event.pointerX(event),y:Event.pointerY(event)};this.backData={x:parseInt(this.oObj.style.left),y:parseInt(this.oObj.style.top)}},mousemove:function(event){if(!this.IsDraging)return;var iLeft=Event.pointerX(event)-this.dragData["x"]+parseInt(this.oObj.style.left);var iTop=Event.pointerY(event)-this.dragData["y"]+parseInt(this.oObj.style.top);if(this.dragData["y"]<parseInt(this.oObj.style.top))iTop=iTop-12;else if(this.dragData["y"]>parseInt(this.oObj.style.top)+25)iTop=iTop+12;this.oObj.style.left=iLeft;this.oObj.style.top=iTop;if(this.showShadow){G('dialogBoxShadow').style.left=iLeft+this.shadowWidth;G('dialogBoxShadow').style.top=iTop+this.shadowWidth};this.dragData={x:Event.pointerX(event),y:Event.pointerY(event)};document.body.style.cursor="move"},mouseup:function(event){if(!this.IsDraging)return;if(this.contentType==1)G("iframeBG").style.display="none";document.onmousemove=null;document.onmouseup=null;var mousX=Event.pointerX(event)-(document.documentElement.scrollLeft||document.body.scrollLeft);var mousY=Event.pointerY(event)-(document.documentElement.scrollTop||document.body.scrollTop);if(mousX<1||mousY<1||mousX>document.body.clientWidth||mousY>document.body.clientHeight){this.oObj.style.left=this.backData["x"];this.oObj.style.top=this.backData["y"];if(this.showShadow){G('dialogBoxShadow').style.left=this.backData.x+this.shadowWidth;G('dialogBoxShadow').style.top=this.backData.y+this.shadowWidth}};this.IsDraging=false;document.body.style.cursor="";Event.stopObserving(document,"selectstart",this.returnFalse,false)},returnFalse:function(){return false}};

@ -1,188 +0,0 @@
var tcolor={
cColor:"#EEEEEE", //蒙皮颜色
bColor:"#FFFFFF", //背景颜色
tColor:"#9C9E9C", //标题背景颜色,边框颜色
wColor:"#FFFFFF" //标题文字颜色
};
function popclose()
{
var a = parent.document.getElementById("dialogBoxClose");
a.click();
}
if(!Array.prototype.push){
Array.prototype.push=function(){
var startLength=this.length;
for(var i=0;i<arguments.length;i++)
this[startLength+i]=arguments[i];
return this.length;
}
};
function G(){
//alert("aa");
var elements=new Array();
for(var i=0;i<arguments.length;i++){
var element=arguments[i];
if(typeof element=='string')
element=document.getElementById(element);
if(arguments.length==1)
return element;elements.push(element)
};
return elements
};
Function.prototype.bind=function(object){
var __method=this;
return function(){__method.apply(object,arguments)}
};
Function.prototype.bindAsEventListener=function(object){
var __method=this;
return function(event){__method.call(object,event||window.event)}
};
Object.extend=function(destination,source){
for(property in source){destination[property]=source[property]};return destination
};
if(!window.Event){var Event=new Object()};
Object.extend(Event,{observers:false,element:function(event){return event.target||event.srcElement},isLeftClick:function(event){return(((event.which)&&(event.which==1))||((event.button)&&(event.button==1)))},pointerX:function(event){return event.pageX||(event.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(event){return event.pageY||(event.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(event){if(event.preventDefault){event.preventDefault();event.stopPropagation()}else{event.returnValue=false;event.cancelBubble=true}},findElement:function(event,tagName){var element=Event.element(event);while(element.parentNode&&(!element.tagName||(element.tagName.toUpperCase()!=tagName.toUpperCase())))element=element.parentNode;return element},_observeAndCache:function(element,name,observer,useCapture){if(!this.observers)this.observers=[];if(element.addEventListener){this.observers.push([element,name,observer,useCapture]);element.addEventListener(name,observer,useCapture)}else if(element.attachEvent){this.observers.push([element,name,observer,useCapture]);element.attachEvent('on'+name,observer)}},unloadCache:function(){if(!Event.observers)return;for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null};Event.observers=false},observe:function(element,name,observer,useCapture){var element=G(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.attachEvent))name='keydown';this._observeAndCache(element,name,observer,useCapture)},stopObserving:function(element,name,observer,useCapture){var element=G(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.detachEvent))name='keydown';if(element.removeEventListener){element.removeEventListener(name,observer,useCapture)}else if(element.detachEvent){element.detachEvent('on'+name,observer)}}});
Event.observe(window,'unload',Event.unloadCache,false);
var Class=function(){
var _class=function(){
this.initialize.apply(this,arguments)
};
for(i=0;i<arguments.length;i++){
superClass=arguments[i];for(member in superClass.prototype){_class.prototype[member]=superClass.prototype[member]}
};
_class.child=function(){return new Class(this)};
_class.extend=function(f){for(property in f){_class.prototype[property]=f[property]}};
return _class
};
function space(flag){
if(flag=="begin"){
var ele=document.getElementById("ft");
if(typeof(ele)!="undefined"&&ele!=null)
ele.id="ft_popup";
ele=document.getElementById("usrbar");
if(typeof(ele)!="undefined"&&ele!=null)
ele.id="usrbar_popup"
}
else if(flag=="end"){
var ele=document.getElementById("ft_popup");
if(typeof(ele)!="undefined"&&ele!=null)ele.id="ft";
ele=document.getElementById("usrbar_popup");
if(typeof(ele)!="undefined"&&ele!=null)ele.id="usrbar"}
};
// Popup Class begin....
var Popup=new Class();
Popup.prototype={
iframeIdName:'ifr_popup', //iframe的名字
initialize:function(config){
this.config=Object.extend({ //属性设置
contentType:1, //pop类型 1. 内嵌iframe2. 显示给定的html 3. confirm框 4. alert框
isHaveTitle:true, //是否有标题栏
scrollType:'yes', //内嵌iframe是否可以滚动
isBackgroundCanClick:false, //背景是否可以点击
isSupportDraging:true, //是否支持拖动
isShowShadow:true, //是否显示阴影
isReloadOnClose:true, //关闭后是否重新加载页面
width:400, //宽度
height:300 //高度
},config||{});
this.info={ //参数
shadowWidth:0, //阴影宽度
title:"", //标题
contentUrl:"", //iframe的url
contentHtml:"", //内容的html
callBack:null, //回调函数
parameter:null, //调用的参数 如 {id:"divCall",str:"点击确定后显示的字符串",obj:pop}
confirmCon:"", //confirm的内容
alertCon:"", //alert的内容
someHiddenTag:"select,object,embed", //自动隐藏的页面元素
someDisabledBtn:"", //禁用的btn
someHiddenEle:"", //隐藏的匀速
overlay:0, //覆盖
coverOpacity:0 //蒙皮不透明度
};
this.color=tcolor;
this.dropClass=null;
this.someToHidden=[];
this.someToDisabled=[];
if(!this.config.isHaveTitle)
this.config.isSupportDraging=false;
this.iniBuild()
},
setContent:function(arrt,val){ //设置内容,即 this.info 的参数内容
if(val!=''){
switch(arrt){
case 'width':this.config.width=val;break;
case 'height':this.config.height=val;break;
case 'title':this.info.title=val;break;
case 'contentUrl':this.info.contentUrl=val;break;
case 'contentHtml':this.info.contentHtml=val;break;
case 'callBack':this.info.callBack=val;break;
case 'parameter':this.info.parameter=val;break;
case 'confirmCon':this.info.confirmCon=val;break;
case 'alertCon':this.info.alertCon=val;break;
case 'someHiddenTag':this.info.someHiddenTag=val;break;
case 'someHiddenEle':this.info.someHiddenEle=val;break;
case 'someDisabledBtn':this.info.someDisabledBtn=val;break;
case 'overlay':this.info.overlay=val}
}
},
iniBuild:function(){
G('dialogCase')?G('dialogCase').parentNode.removeChild(G('dialogCase')):function(){};
var oDiv=document.createElement('span');oDiv.id='dialogCase';document.body.appendChild(oDiv)
},
build:function(){
var baseZIndex=10001+this.info.overlay*10;
var showZIndex=baseZIndex+2;this.iframeIdName='ifr_popup'+this.info.overlay;
//关闭按钮
//var path="http://img.baidu.com/hi/img/";
//var close='<input type="image" id="dialogBoxClose" src="'+path+'dialogclose.gif" border="0" width="16" height="16" align="absmiddle" title="关闭"/>';
var close='<img id="dialogBoxClose" title="关闭" src=/dingcan/images/dialogclose.gif />';
var cB='filter: alpha(opacity='+this.info.coverOpacity+');opacity:'+this.info.coverOpacity/100+';';
var cover='<div id="dialogBoxBG" style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+baseZIndex+';'+cB+'background-color:'+this.color.cColor+';display:none;"></div>';
var mainBox='<div id="dialogBox" style="border:1px solid '+this.color.tColor+';display:none;z-index:'+showZIndex+';position:relative;width:'+this.config.width+'px;"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="'+this.color.bColor+'">';if(this.config.isHaveTitle){mainBox+='<tr height="24" bgcolor="'+this.color.tColor+'"><td><table style="-moz-user-select:none;height:24px;" width="100%" border="0" cellpadding="0" cellspacing="0" ><tr>'+'<td width="6" height="24"></td><td id="dialogBoxTitle" style="color:'+this.color.wColor+';font-size:14px;font-weight:bold;">'+this.info.title+'&nbsp;</td>'+'<td id="dialogClose" width="20" align="right" valign="middle">'+close+'</td><td width="6"></td></tr></table></td></tr>'}
else{mainBox+='<tr height="10"><td align="right">'+close+'</td></tr>'};
mainBox+='<tr style="height:'+this.config.height+'px" valign="top"><td id="dialogBody" style="position:relative;"></td></tr></table></div>'+'<div id="dialogBoxShadow" style="display:none;z-index:'+baseZIndex+';"></div>';
if(!this.config.isBackgroundCanClick){G('dialogCase').innerHTML=cover+mainBox;G('dialogBoxBG').style.height=document.body.scrollHeight}
else G('dialogCase').innerHTML=mainBox;Event.observe(G('dialogBoxClose'),"click",this.reset.bindAsEventListener(this),false);
if(this.config.isSupportDraging){dropClass=new Dragdrop(this.config.width,this.config.height,this.info.shadowWidth,this.config.isSupportDraging,this.config.contentType);G("dialogBoxTitle").style.cursor="move"};this.lastBuild()},lastBuild:function(){var confirm='<div style="width:100%;height:100%;text-align:center;"><div style="margin:20px 20px 0 20px;font-size:14px;line-height:16px;color:#000000;">'+this.info.confirmCon+'</div><div style="margin:20px;"><input id="dialogOk" type="button" value=" 确定 "/>&nbsp;<input id="dialogCancel" type="button" value=" 取消 "/></div></div>';
var alert='<div style="width:100%;height:100%;text-align:center;"><div style="margin:20px 20px 0 20px;font-size:14px;line-height:16px;color:#000000;">'+this.info.alertCon+'</div><div style="margin:20px;"><input id="dialogYES" type="button" value=" 确定 "/></div></div>';
var baseZIndex=10001+this.info.overlay*10;var coverIfZIndex=baseZIndex+4;
if(this.config.contentType==1){var openIframe="<iframe width='100%' style='height:"+this.config.height+"px' name='"+this.iframeIdName+"' id='"+this.iframeIdName+"' src='"+this.info.contentUrl+"' frameborder='0' scrolling='"+this.config.scrollType+"'></iframe>";
var coverIframe="<div id='iframeBG' style='position:absolute;top:0px;left:0px;width:1px;height:1px;z-index:"+coverIfZIndex+";filter: alpha(opacity=00);opacity:0.00;background-color:#ffffff;'><div>";G("dialogBody").innerHTML=openIframe+coverIframe}
else if(this.config.contentType==2){G("dialogBody").innerHTML=this.info.contentHtml}else if(this.config.contentType==3){G("dialogBody").innerHTML=confirm;Event.observe(G('dialogOk'),"click",this.forCallback.bindAsEventListener(this),false);
Event.observe(G('dialogCancel'),"click",this.close.bindAsEventListener(this),false)}else if(this.config.contentType==4){G("dialogBody").innerHTML=alert;Event.observe(G('dialogYES'),"click",this.close.bindAsEventListener(this),false)}},reBuild:function(){G('dialogBody').height=G('dialogBody').clientHeight;this.lastBuild()},show:function(){this.hiddenSome();this.middle();if(this.config.isShowShadow)this.shadow()},forCallback:function(){return this.info.callBack(this.info.parameter)},shadow:function(){var oShadow=G('dialogBoxShadow');var oDialog=G('dialogBox');oShadow['style']['position']="absolute";oShadow['style']['background']="#000";oShadow['style']['display']="";oShadow['style']['opacity']="0.2";oShadow['style']['filter']="alpha(opacity=20)";oShadow['style']['top']=oDialog.offsetTop+this.info.shadowWidth;oShadow['style']['left']=oDialog.offsetLeft+this.info.shadowWidth;oShadow['style']['width']=oDialog.offsetWidth;oShadow['style']['height']=oDialog.offsetHeight},middle:function(){if(!this.config.isBackgroundCanClick)G('dialogBoxBG').style.display='';
var oDialog=G('dialogBox');
oDialog['style']['position']="absolute";
oDialog['style']['display']='';
//取得页面的宽度和高度
var sClientWidth=document.body.clientWidth;
var sClientHeight=document.body.clientHeight;
var sScrollTop=document.body.scrollTop;
//
var sleft=(sClientWidth/2)-(oDialog.offsetWidth/2);
var iTop=-80+(sClientHeight/2+sScrollTop)-(oDialog.offsetHeight/2);
var sTop=iTop>0?iTop:(sClientHeight/2+sScrollTop)-(oDialog.offsetHeight/2);
if(sTop<1)sTop="20";if(sleft<1)sleft="20";
oDialog['style']['left']=sleft+"px"; //左侧位置
oDialog['style']['top']=220+"px" //顶部位置
},
reset:function(){if(this.config.isReloadOnClose){top.location.reload()};this.close()},close:function(){G('dialogBox').style.display='none';window.location.reload();
if(!this.config.isBackgroundCanClick)G('dialogBoxBG').style.display='none';
if(this.config.isShowShadow)G('dialogBoxShadow').style.display='none';G('dialogBody').innerHTML='';
this.showSome()},hiddenSome:function(){var tag=this.info.someHiddenTag.split(",");
if(tag.length==1&&tag[0]=="")tag.length=0;
for(var i=0;i<tag.length;i++){this.hiddenTag(tag[i])};
var ids=this.info.someHiddenEle.split(",");
if(ids.length==1&&ids[0]=="")ids.length=0;
for(var i=0;i<ids.length;i++){this.hiddenEle(ids[i])};
var ids=this.info.someDisabledBtn.split(",");
if(ids.length==1&&ids[0]=="")ids.length=0;
for(var i=0;i<ids.length;i++){this.disabledBtn(ids[i])};
space("begin")},disabledBtn:function(id){var ele=document.getElementById(id);
if(typeof(ele)!="undefined"&&ele!=null&&ele.disabled==false){ele.disabled=true;this.someToDisabled.push(ele)}},hiddenTag:function(tagName){var ele=document.getElementsByTagName(tagName);
if(ele!=null){for(var i=0;i<ele.length;i++){if(ele[i].style.display!="none"&&ele[i].style.visibility!='hidden'){ele[i].style.visibility='hidden';this.someToHidden.push(ele[i])}}}},hiddenEle:function(id){var ele=document.getElementById(id);if(typeof(ele)!="undefined"&&ele!=null){ele.style.visibility='hidden';this.someToHidden.push(ele)}},showSome:function(){for(var i=0;i<this.someToHidden.length;i++){this.someToHidden[i].style.visibility='visible'};for(var i=0;i<this.someToDisabled.length;i++){this.someToDisabled[i].disabled=false};space("end")}};var Dragdrop=new Class();Dragdrop.prototype={initialize:function(width,height,shadowWidth,showShadow,contentType){this.dragData=null;this.dragDataIn=null;this.backData=null;this.width=width;this.height=height;this.shadowWidth=shadowWidth;this.showShadow=showShadow;this.contentType=contentType;this.IsDraging=false;this.oObj=G('dialogBox');Event.observe(G('dialogBoxTitle'),"mousedown",this.moveStart.bindAsEventListener(this),false)},moveStart:function(event){this.IsDraging=true;if(this.contentType==1){G("iframeBG").style.display="";G("iframeBG").style.width=this.width;G("iframeBG").style.height=this.height};Event.observe(document,"mousemove",this.mousemove.bindAsEventListener(this),false);Event.observe(document,"mouseup",this.mouseup.bindAsEventListener(this),false);Event.observe(document,"selectstart",this.returnFalse,false);this.dragData={x:Event.pointerX(event),y:Event.pointerY(event)};this.backData={x:parseInt(this.oObj.style.left),y:parseInt(this.oObj.style.top)}},mousemove:function(event){if(!this.IsDraging)return;var iLeft=Event.pointerX(event)-this.dragData["x"]+parseInt(this.oObj.style.left);var iTop=Event.pointerY(event)-this.dragData["y"]+parseInt(this.oObj.style.top);if(this.dragData["y"]<parseInt(this.oObj.style.top))iTop=iTop-12;else if(this.dragData["y"]>parseInt(this.oObj.style.top)+25)iTop=iTop+12;this.oObj.style.left=iLeft;this.oObj.style.top=iTop;if(this.showShadow){G('dialogBoxShadow').style.left=iLeft+this.shadowWidth;G('dialogBoxShadow').style.top=iTop+this.shadowWidth};this.dragData={x:Event.pointerX(event),y:Event.pointerY(event)};document.body.style.cursor="move"},mouseup:function(event){if(!this.IsDraging)return;if(this.contentType==1)G("iframeBG").style.display="none";document.onmousemove=null;document.onmouseup=null;var mousX=Event.pointerX(event)-(document.documentElement.scrollLeft||document.body.scrollLeft);var mousY=Event.pointerY(event)-(document.documentElement.scrollTop||document.body.scrollTop);if(mousX<1||mousY<1||mousX>document.body.clientWidth||mousY>document.body.clientHeight){this.oObj.style.left=this.backData["x"];this.oObj.style.top=this.backData["y"];if(this.showShadow){G('dialogBoxShadow').style.left=this.backData.x+this.shadowWidth;G('dialogBoxShadow').style.top=this.backData.y+this.shadowWidth}};this.IsDraging=false;document.body.style.cursor="";Event.stopObserving(document,"selectstart",this.returnFalse,false)},returnFalse:function(){return false}};

@ -1,188 +0,0 @@
var tcolor={
cColor:"#EEEEEE", //蒙皮颜色
bColor:"#FFFFFF", //背景颜色
tColor:"#9C9E9C", //标题背景颜色,边框颜色
wColor:"#FFFFFF" //标题文字颜色
};
function popclose()
{
var a = parent.document.getElementById("dialogBoxClose");
a.click();
}
if(!Array.prototype.push){
Array.prototype.push=function(){
var startLength=this.length;
for(var i=0;i<arguments.length;i++)
this[startLength+i]=arguments[i];
return this.length;
}
};
function G(){
//alert("aa");
var elements=new Array();
for(var i=0;i<arguments.length;i++){
var element=arguments[i];
if(typeof element=='string')
element=document.getElementById(element);
if(arguments.length==1)
return element;elements.push(element)
};
return elements
};
Function.prototype.bind=function(object){
var __method=this;
return function(){__method.apply(object,arguments)}
};
Function.prototype.bindAsEventListener=function(object){
var __method=this;
return function(event){__method.call(object,event||window.event)}
};
Object.extend=function(destination,source){
for(property in source){destination[property]=source[property]};return destination
};
if(!window.Event){var Event=new Object()};
Object.extend(Event,{observers:false,element:function(event){return event.target||event.srcElement},isLeftClick:function(event){return(((event.which)&&(event.which==1))||((event.button)&&(event.button==1)))},pointerX:function(event){return event.pageX||(event.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(event){return event.pageY||(event.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(event){if(event.preventDefault){event.preventDefault();event.stopPropagation()}else{event.returnValue=false;event.cancelBubble=true}},findElement:function(event,tagName){var element=Event.element(event);while(element.parentNode&&(!element.tagName||(element.tagName.toUpperCase()!=tagName.toUpperCase())))element=element.parentNode;return element},_observeAndCache:function(element,name,observer,useCapture){if(!this.observers)this.observers=[];if(element.addEventListener){this.observers.push([element,name,observer,useCapture]);element.addEventListener(name,observer,useCapture)}else if(element.attachEvent){this.observers.push([element,name,observer,useCapture]);element.attachEvent('on'+name,observer)}},unloadCache:function(){if(!Event.observers)return;for(var i=0;i<Event.observers.length;i++){Event.stopObserving.apply(this,Event.observers[i]);Event.observers[i][0]=null};Event.observers=false},observe:function(element,name,observer,useCapture){var element=G(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.attachEvent))name='keydown';this._observeAndCache(element,name,observer,useCapture)},stopObserving:function(element,name,observer,useCapture){var element=G(element);useCapture=useCapture||false;if(name=='keypress'&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.detachEvent))name='keydown';if(element.removeEventListener){element.removeEventListener(name,observer,useCapture)}else if(element.detachEvent){element.detachEvent('on'+name,observer)}}});
Event.observe(window,'unload',Event.unloadCache,false);
var Class=function(){
var _class=function(){
this.initialize.apply(this,arguments)
};
for(i=0;i<arguments.length;i++){
superClass=arguments[i];for(member in superClass.prototype){_class.prototype[member]=superClass.prototype[member]}
};
_class.child=function(){return new Class(this)};
_class.extend=function(f){for(property in f){_class.prototype[property]=f[property]}};
return _class
};
function space(flag){
if(flag=="begin"){
var ele=document.getElementById("ft");
if(typeof(ele)!="undefined"&&ele!=null)
ele.id="ft_popup";
ele=document.getElementById("usrbar");
if(typeof(ele)!="undefined"&&ele!=null)
ele.id="usrbar_popup"
}
else if(flag=="end"){
var ele=document.getElementById("ft_popup");
if(typeof(ele)!="undefined"&&ele!=null)ele.id="ft";
ele=document.getElementById("usrbar_popup");
if(typeof(ele)!="undefined"&&ele!=null)ele.id="usrbar"}
};
// Popup Class begin....
var Popup=new Class();
Popup.prototype={
iframeIdName:'ifr_popup', //iframe的名字
initialize:function(config){
this.config=Object.extend({ //属性设置
contentType:1, //pop类型 1. 内嵌iframe2. 显示给定的html 3. confirm框 4. alert框
isHaveTitle:true, //是否有标题栏
scrollType:'yes', //内嵌iframe是否可以滚动
isBackgroundCanClick:false, //背景是否可以点击
isSupportDraging:true, //是否支持拖动
isShowShadow:true, //是否显示阴影
isReloadOnClose:true, //关闭后是否重新加载页面
width:400, //宽度
height:300 //高度
},config||{});
this.info={ //参数
shadowWidth:0, //阴影宽度
title:"", //标题
contentUrl:"", //iframe的url
contentHtml:"", //内容的html
callBack:null, //回调函数
parameter:null, //调用的参数 如 {id:"divCall",str:"点击确定后显示的字符串",obj:pop}
confirmCon:"", //confirm的内容
alertCon:"", //alert的内容
someHiddenTag:"select,object,embed", //自动隐藏的页面元素
someDisabledBtn:"", //禁用的btn
someHiddenEle:"", //隐藏的匀速
overlay:0, //覆盖
coverOpacity:0 //蒙皮不透明度
};
this.color=tcolor;
this.dropClass=null;
this.someToHidden=[];
this.someToDisabled=[];
if(!this.config.isHaveTitle)
this.config.isSupportDraging=false;
this.iniBuild()
},
setContent:function(arrt,val){ //设置内容,即 this.info 的参数内容
if(val!=''){
switch(arrt){
case 'width':this.config.width=val;break;
case 'height':this.config.height=val;break;
case 'title':this.info.title=val;break;
case 'contentUrl':this.info.contentUrl=val;break;
case 'contentHtml':this.info.contentHtml=val;break;
case 'callBack':this.info.callBack=val;break;
case 'parameter':this.info.parameter=val;break;
case 'confirmCon':this.info.confirmCon=val;break;
case 'alertCon':this.info.alertCon=val;break;
case 'someHiddenTag':this.info.someHiddenTag=val;break;
case 'someHiddenEle':this.info.someHiddenEle=val;break;
case 'someDisabledBtn':this.info.someDisabledBtn=val;break;
case 'overlay':this.info.overlay=val}
}
},
iniBuild:function(){
G('dialogCase')?G('dialogCase').parentNode.removeChild(G('dialogCase')):function(){};
var oDiv=document.createElement('span');oDiv.id='dialogCase';document.body.appendChild(oDiv)
},
build:function(){
var baseZIndex=10001+this.info.overlay*10;
var showZIndex=baseZIndex+2;this.iframeIdName='ifr_popup'+this.info.overlay;
//关闭按钮
//var path="http://img.baidu.com/hi/img/";
//var close='<input type="image" id="dialogBoxClose" src="'+path+'dialogclose.gif" border="0" width="16" height="16" align="absmiddle" title="关闭"/>';
var close='<img id="dialogBoxClose" title="关闭" src=/dingcan/images/dialogclose.gif />';
var cB='filter: alpha(opacity='+this.info.coverOpacity+');opacity:'+this.info.coverOpacity/100+';';
var cover='<div id="dialogBoxBG" style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+baseZIndex+';'+cB+'background-color:'+this.color.cColor+';display:none;"></div>';
var mainBox='<div id="dialogBox" style="border:1px solid '+this.color.tColor+';display:none;z-index:'+showZIndex+';position:relative;width:'+this.config.width+'px;"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="'+this.color.bColor+'">';if(this.config.isHaveTitle){mainBox+='<tr height="24" bgcolor="'+this.color.tColor+'"><td><table style="-moz-user-select:none;height:24px;" width="100%" border="0" cellpadding="0" cellspacing="0" ><tr>'+'<td width="6" height="24"></td><td id="dialogBoxTitle" style="color:'+this.color.wColor+';font-size:14px;font-weight:bold;">'+this.info.title+'&nbsp;</td>'+'<td id="dialogClose" width="20" align="right" valign="middle">'+close+'</td><td width="6"></td></tr></table></td></tr>'}
else{mainBox+='<tr height="10"><td align="right">'+close+'</td></tr>'};
mainBox+='<tr style="height:'+this.config.height+'px" valign="top"><td id="dialogBody" style="position:relative;"></td></tr></table></div>'+'<div id="dialogBoxShadow" style="display:none;z-index:'+baseZIndex+';"></div>';
if(!this.config.isBackgroundCanClick){G('dialogCase').innerHTML=cover+mainBox;G('dialogBoxBG').style.height=document.body.scrollHeight}
else G('dialogCase').innerHTML=mainBox;Event.observe(G('dialogBoxClose'),"click",this.reset.bindAsEventListener(this),false);
if(this.config.isSupportDraging){dropClass=new Dragdrop(this.config.width,this.config.height,this.info.shadowWidth,this.config.isSupportDraging,this.config.contentType);G("dialogBoxTitle").style.cursor="move"};this.lastBuild()},lastBuild:function(){var confirm='<div style="width:100%;height:100%;text-align:center;"><div style="margin:20px 20px 0 20px;font-size:14px;line-height:16px;color:#000000;">'+this.info.confirmCon+'</div><div style="margin:20px;"><input id="dialogOk" type="button" value=" 确定 "/>&nbsp;<input id="dialogCancel" type="button" value=" 取消 "/></div></div>';
var alert='<div style="width:100%;height:100%;text-align:center;"><div style="margin:20px 20px 0 20px;font-size:14px;line-height:16px;color:#000000;">'+this.info.alertCon+'</div><div style="margin:20px;"><input id="dialogYES" type="button" value=" 确定 "/></div></div>';
var baseZIndex=10001+this.info.overlay*10;var coverIfZIndex=baseZIndex+4;
if(this.config.contentType==1){var openIframe="<iframe width='100%' style='height:"+this.config.height+"px' name='"+this.iframeIdName+"' id='"+this.iframeIdName+"' src='"+this.info.contentUrl+"' frameborder='0' scrolling='"+this.config.scrollType+"'></iframe>";
var coverIframe="<div id='iframeBG' style='position:absolute;top:0px;left:0px;width:1px;height:1px;z-index:"+coverIfZIndex+";filter: alpha(opacity=00);opacity:0.00;background-color:#ffffff;'><div>";G("dialogBody").innerHTML=openIframe+coverIframe}
else if(this.config.contentType==2){G("dialogBody").innerHTML=this.info.contentHtml}else if(this.config.contentType==3){G("dialogBody").innerHTML=confirm;Event.observe(G('dialogOk'),"click",this.forCallback.bindAsEventListener(this),false);
Event.observe(G('dialogCancel'),"click",this.close.bindAsEventListener(this),false)}else if(this.config.contentType==4){G("dialogBody").innerHTML=alert;Event.observe(G('dialogYES'),"click",this.close.bindAsEventListener(this),false)}},reBuild:function(){G('dialogBody').height=G('dialogBody').clientHeight;this.lastBuild()},show:function(){this.hiddenSome();this.middle();if(this.config.isShowShadow)this.shadow()},forCallback:function(){return this.info.callBack(this.info.parameter)},shadow:function(){var oShadow=G('dialogBoxShadow');var oDialog=G('dialogBox');oShadow['style']['position']="absolute";oShadow['style']['background']="#000";oShadow['style']['display']="";oShadow['style']['opacity']="0.2";oShadow['style']['filter']="alpha(opacity=20)";oShadow['style']['top']=oDialog.offsetTop+this.info.shadowWidth;oShadow['style']['left']=oDialog.offsetLeft+this.info.shadowWidth;oShadow['style']['width']=oDialog.offsetWidth;oShadow['style']['height']=oDialog.offsetHeight},middle:function(){if(!this.config.isBackgroundCanClick)G('dialogBoxBG').style.display='';
var oDialog=G('dialogBox');
oDialog['style']['position']="absolute";
oDialog['style']['display']='';
//取得页面的宽度和高度
var sClientWidth=document.body.clientWidth;
var sClientHeight=document.body.clientHeight;
var sScrollTop=document.body.scrollTop;
//
var sleft=(sClientWidth/2)-(oDialog.offsetWidth/2);
var iTop=-80+(sClientHeight/2+sScrollTop)-(oDialog.offsetHeight/2);
var sTop=iTop>0?iTop:(sClientHeight/2+sScrollTop)-(oDialog.offsetHeight/2);
if(sTop<1)sTop="20";if(sleft<1)sleft="20";
oDialog['style']['left']=sleft+"px"; //左侧位置
oDialog['style']['top']=220+"px" //顶部位置
},
reset:function(){if(this.config.isReloadOnClose){top.location.reload()};this.close()},close:function(){G('dialogBox').style.display='none';
if(!this.config.isBackgroundCanClick)G('dialogBoxBG').style.display='none';
if(this.config.isShowShadow)G('dialogBoxShadow').style.display='none';G('dialogBody').innerHTML='';
this.showSome()},hiddenSome:function(){var tag=this.info.someHiddenTag.split(",");
if(tag.length==1&&tag[0]=="")tag.length=0;
for(var i=0;i<tag.length;i++){this.hiddenTag(tag[i])};
var ids=this.info.someHiddenEle.split(",");
if(ids.length==1&&ids[0]=="")ids.length=0;
for(var i=0;i<ids.length;i++){this.hiddenEle(ids[i])};
var ids=this.info.someDisabledBtn.split(",");
if(ids.length==1&&ids[0]=="")ids.length=0;
for(var i=0;i<ids.length;i++){this.disabledBtn(ids[i])};
space("begin")},disabledBtn:function(id){var ele=document.getElementById(id);
if(typeof(ele)!="undefined"&&ele!=null&&ele.disabled==false){ele.disabled=true;this.someToDisabled.push(ele)}},hiddenTag:function(tagName){var ele=document.getElementsByTagName(tagName);
if(ele!=null){for(var i=0;i<ele.length;i++){if(ele[i].style.display!="none"&&ele[i].style.visibility!='hidden'){ele[i].style.visibility='hidden';this.someToHidden.push(ele[i])}}}},hiddenEle:function(id){var ele=document.getElementById(id);if(typeof(ele)!="undefined"&&ele!=null){ele.style.visibility='hidden';this.someToHidden.push(ele)}},showSome:function(){for(var i=0;i<this.someToHidden.length;i++){this.someToHidden[i].style.visibility='visible'};for(var i=0;i<this.someToDisabled.length;i++){this.someToDisabled[i].disabled=false};space("end")}};var Dragdrop=new Class();Dragdrop.prototype={initialize:function(width,height,shadowWidth,showShadow,contentType){this.dragData=null;this.dragDataIn=null;this.backData=null;this.width=width;this.height=height;this.shadowWidth=shadowWidth;this.showShadow=showShadow;this.contentType=contentType;this.IsDraging=false;this.oObj=G('dialogBox');Event.observe(G('dialogBoxTitle'),"mousedown",this.moveStart.bindAsEventListener(this),false)},moveStart:function(event){this.IsDraging=true;if(this.contentType==1){G("iframeBG").style.display="";G("iframeBG").style.width=this.width;G("iframeBG").style.height=this.height};Event.observe(document,"mousemove",this.mousemove.bindAsEventListener(this),false);Event.observe(document,"mouseup",this.mouseup.bindAsEventListener(this),false);Event.observe(document,"selectstart",this.returnFalse,false);this.dragData={x:Event.pointerX(event),y:Event.pointerY(event)};this.backData={x:parseInt(this.oObj.style.left),y:parseInt(this.oObj.style.top)}},mousemove:function(event){if(!this.IsDraging)return;var iLeft=Event.pointerX(event)-this.dragData["x"]+parseInt(this.oObj.style.left);var iTop=Event.pointerY(event)-this.dragData["y"]+parseInt(this.oObj.style.top);if(this.dragData["y"]<parseInt(this.oObj.style.top))iTop=iTop-12;else if(this.dragData["y"]>parseInt(this.oObj.style.top)+25)iTop=iTop+12;this.oObj.style.left=iLeft;this.oObj.style.top=iTop;if(this.showShadow){G('dialogBoxShadow').style.left=iLeft+this.shadowWidth;G('dialogBoxShadow').style.top=iTop+this.shadowWidth};this.dragData={x:Event.pointerX(event),y:Event.pointerY(event)};document.body.style.cursor="move"},mouseup:function(event){if(!this.IsDraging)return;if(this.contentType==1)G("iframeBG").style.display="none";document.onmousemove=null;document.onmouseup=null;var mousX=Event.pointerX(event)-(document.documentElement.scrollLeft||document.body.scrollLeft);var mousY=Event.pointerY(event)-(document.documentElement.scrollTop||document.body.scrollTop);if(mousX<1||mousY<1||mousX>document.body.clientWidth||mousY>document.body.clientHeight){this.oObj.style.left=this.backData["x"];this.oObj.style.top=this.backData["y"];if(this.showShadow){G('dialogBoxShadow').style.left=this.backData.x+this.shadowWidth;G('dialogBoxShadow').style.top=this.backData.y+this.shadowWidth}};this.IsDraging=false;document.body.style.cursor="";Event.stopObserving(document,"selectstart",this.returnFalse,false)},returnFalse:function(){return false}};

@ -1,474 +0,0 @@
/*
* 打开新窗口 f:链接地址 n:窗口的名称 w:窗口的宽度 h:窗口的高度 s:窗口是否有滚动条1有滚动条0没有滚动条
*/
function openWin(f, n, w, h, s)
{
var result=window.open(f,n,"dialogHeight:"+h+";dialogWidth:"+w+";"+s);
if(result==true)
{
window.location.reload(true);
}
else
{
//window.location.reload(true);
}
}
/*
* 删除记录
*/
function del(url, info)
{
//if (openDeleteDialog(url, info))
//{
//window.location.reload(true);
//}
if (confirm(info))
{
var result=window.open(url,"window123","dialogHeight:234px;dialogWidth:271px;resizable:no;help:no;status:no;scroll:no");
if(result==true)
{
window.location.reload(true);
}
else
{
}
}
else
{
}
}
/*
* 校验checkbox
*/
function checkAll(chkName, checkboxName, pageSize) {
var src = event.srcElement;
var chkN = eval("document.all." + chkName);
if (src.checked) {
chkN[0].checked = true;
chkN[1].checked = true;
for (var i = 0; i < pageSize; i++) {
var chk = eval("document.all." + checkboxName + i);
if (chk) {
chk.checked = true;
}
}
} else {
chkN[0].checked = false;
chkN[1].checked = false;
for (var i = 0; i < pageSize; i++) {
var chk = eval("document.all." + checkboxName + i);
if (chk) {
chk.checked = false;
}
}
}
}
/*
*
*/
function makePages(maxPage, selectedPage, selectName) {
var sel = eval("document.all." + selectName);
sel.length = 0;
for (var i = 1; i <= maxPage; i++) {
sel.options[i] = new Option(i, i);
if (sel.options[i] == selectedPage) {
sel.options[i].selected = true;
}
}
}
/*
* 替换字符串
*/
function replaceStr(str) {
var re = "/( )/gi";
str = str.replace(re, "");
re = "/\</gi";
str = str.replace(re, "&lt;");
return str;
}
/*
* 去掉左边空格
*/
function LTrim(str) {
var whitespace = new String(" \t\n\r");
var s = new String(str);
if (whitespace.indexOf(s.charAt(0)) != -1) {
var j = 0, i = s.length;
while (j < i && whitespace.indexOf(s.charAt(j)) != -1) {
j++;
}
s = s.substring(j, i);
}
return s;
}
/*
* 去掉右边空格
*/
function RTrim(str) {
var whitespace = new String(" \t\n\r");
var s = new String(str);
if (whitespace.indexOf(s.charAt(s.length - 1)) != -1) {
var i = s.length - 1;
while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1) {
i--;
}
s = s.substring(0, i + 1);
}
return s;
}
/*
* 去掉两边空格
*/
function Trim(str) {
return RTrim(LTrim(str));
}
/*
*
*/
function exeOperation(exePath) {
var obj = new ActiveXObject("Microsoft.XMLHTTP");
obj.open("post", exePath, false);
obj.send();
var res = obj.responseText;
var rs = Trim(res);
if (rs.indexOf('true', 0) != -1) {
return true;
} else {
return false;
}
}
/*
*
*/
function exeValidate(exePath) {
var obj = new ActiveXObject("Microsoft.XMLHTTP");
obj.open("post", exePath, false);
obj.send();
var res = obj.responseText;
var rs = Trim(res);
if (rs.indexOf('validate_login_user', 0) != -1) {
return true;
} else {
return false;
}
}
/*
* 显示
*/
function validate_date(exePath) {
var obj = new ActiveXObject("Microsoft.XMLHTTP");
obj.open("post", exePath, false);
obj.send();
var res = obj.responseText;
var rs = Trim(res);
var begin_str = "<!--begin-->";
var beginIndex = rs.indexOf(begin_str) + begin_str.length;
var endIndex = rs.indexOf("<!--end-->");
rs = ((beginIndex >= 0) && (endIndex >= 0)) ? rs.substring(beginIndex,
endIndex) : "";
return Trim(rs);
}
/*
* 校验是否数字
*/
function checkNumber(name, TempS) {
for (Count = 0; Count < TempS.length; Count++) {
TempChar = TempS.substring(Count, Count + 1);
RefString = "0123456789";
if (RefString.indexOf(TempChar, 0) == -1) {
alert("请输入数字");
eval("document.all." + name).focus();
return false;
}
}
}
/*
* 是否有非法字符
*/
function chksafe(a) {
fibdn = new Array("'", "\\");
i = fibdn.length;
j = a.length;
for (ii = 0; ii < i; ii++) {
for (jj = 0; jj < j; jj++) {
temp1 = a.charAt(jj);
temp2 = fibdn[ii];
if (temp1 == temp2) {
return false;
}
}
}
return true;
}
/*
*
*/
function fucCheckNUM(NUM) {
var i, j, strTemp;
strTemp = "0123456789";
if (NUM.length == 0)
return false;
for (i = 0; i < NUM.length; i++) {
j = strTemp.indexOf(NUM.charAt(i));
if (j == -1) {
return false;
}
}
return true;
}
/*
*
*/
function fucCheckLength(strTemp) {
var i, sum;
sum = 0;
for (i = 0; i < strTemp.length; i++) {
if ((strTemp.charCodeAt(i) >= 0) && (strTemp.charCodeAt(i) <= 255)) {
sum = sum + 1;
} else {
sum = sum + 2;
}
}
return sum;
}
/*
*
*/
function chkElements(name, errMsg, max_length, lengthMsg) {
var el_name = eval("document.all." + name);
var v = el_name.value;
if (!chksafe(v)) {
el_name.focus();
alert(errMsg);
return false;
} else if (fucCheckLength(v) > max_length) {
el_name.focus();
alert(lengthMsg);
return false;
}
return true;
}
/*
* 校验空字符串
*/
function checkNullStr(name, msg) {
var el_name = eval("document.all." + name);
if (Trim(el_name.value).length == 0) {
alert(msg);
el_name.focus();
return false;
}
return true;
}
/*
* 显示日期控jian
*/
function GetDate(nText, para) {
var v_url = para == "1" ? "./common/data.html" : "../../common/data.html";
var reVal = window
.open(
v_url,
'data',
"status:no;center:yes;scroll:no;resizable:no;dialogWidth:255px;dialogHeight:260px");
if (reVal != null) {
var n = eval("document.all." + nText);
n.value = reVal;
}
}
/*
* 按比例缩小图片
*/
function DrawImage(ImgD, iwidth, iheight) {
var flag = false;
var image = new Image();
image.src = ImgD.src;
if (image.width > 0 && image.height > 0) {
flag = true;
if (image.width / image.height >= iwidth / iheight) {
if (image.width > iwidth) {
ImgD.width = iwidth;
ImgD.height = (image.height * iwidth) / image.width;
} else {
ImgD.width = image.width;
ImgD.height = image.height;
}
// ImgD.alt=image.width+"×"+image.height;
} else {
if (image.height > iheight) {
ImgD.height = iheight;
ImgD.width = (image.width * iheight) / image.height;
} else {
ImgD.width = image.width;
ImgD.height = image.height;
}
// ImgD.alt=image.width+"×"+image.height;
}
}
ImgD.style.visibility = "visible";
}
/*
* 回车键转为Tab键
*/
function enterTab() {
if (event.keyCode == 13) {
oElement = document.activeElement;
if (oElement.tagName != "TEXTAREA" && oElement.type != "button")
event.keyCode = 9;
return;
}
}
/*
*
*/
function objectEval(text) {
text = text.replace(/\n/g, " ");
text = text.replace(/\r/g, " ");
if (text.match(/^\s*\{.*\}\s*$/)) {
text = "[" + text + "]";
}
return eval(text)[0];
}
/*
* 打开领导查询页面 action - 查询的Action method - 调用的方法 title - 标题message name -
* 员工选择域的name
*/
function openLeaderQuery(action, method, title, name) {
openWin("../../common/selectStaff.jsp?action=" + action + "&method="
+ method + "&title=" + title + "&name=" + name,
"public_leader_find_page", "400", "150");
}
/*
* 第一行变色
*/
function chgColor() {
var v_table = document.all["PowerTable"];
var v_row = v_table.rows[1];
var len = v_row.cells.length;
for (var i = 0; i < len; i++) {
var v_cell = v_row.cells[i];
v_cell.style.backgroundColor = "yellow";
}
}
/*
* 第一行变色
*/
function chgColor2() {
var v_table = document.all["PowerTable"];
var rows_count = v_table.rows.length;
var v_row, v_cell, temp_len, len;
var rowspan = 0;
// get rowspan
if (v_table.rows.length > 1) {
len = v_table.rows[1].cells.length;
for (var r = 2; r < rows_count; r++) {
v_row = v_table.rows[r];
temp_len = v_row.cells.length;
if (temp_len == len) {
rowspan = r - 1;
break;
}
}
rowspan = (rowspan > 0) ? (rowspan + 1) : rows_count;
for (var r = 1; r < rowspan; r++) {
v_row = v_table.rows[r];
for (var t = 0; t < v_row.cells.length; t++) {
v_cell = v_row.cells[t];
v_cell.style.backgroundColor = "yellow";
}
}
}
}
/*
* 添加页面载入后触发的shijian
*/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof(window.onload) != "function") {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
// adsName:名称,adsUrl:地址,sTime:时间(小时) add by wujie 2005.12.12
function PopAds(adsName, adsUrl, sTime, number, w, h, s) {
if (document.cookie.indexOf(adsName) == -1) {
window.open(adsUrl, adsName);
self.focus();
var expireDate = new Date();
var lefttime = 1000 * (3600 * sTime);
expireDate.setTime(expireDate.getTime() + lefttime);
document.cookie = adsName + "=yes" + "; expires="
+ expireDate.toGMTString() + ";";
}
openWin(adsUrl, number, w, h, s);
}

@ -1,748 +0,0 @@
<<<<<<< HEAD
=======
>>>>>>> remotes/origin/wyp_branch
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
<<<<<<< HEAD
/* Body <20><EFBFBD> */
body {
margin: 0; /* <20>駁膄憭𤥁器頝<E599A8> */
padding: 0; /* <20>駁膄<E9A781><E88684>器頝<E599A8> */
background: url(/dingcan/images/img01.jpg) repeat-x left top; /* 霈曄蔭<E69B84>峕艶<E5B395><EFBFBD>撟嗉悟<E59789>嗅銁璅芸<E79285>銝𠰴像<F0A0B0B4><E5838F> */
font-family: Arial, Helvetica, sans-serif; /* 霈曄蔭摮𦯀<E691AE>銝態rial<61><6C>elvetica<63>騯ans-serif */
font-size: 12px; /* 霈曄蔭摮𦯀<E691AE>憭批<E686AD><EFBFBD>12px */
color: #66665E; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧銝箸<E98A9D><E7AEB8>啗𠧧 */
}
/* <20><><EFBFBD><EFBFBD><EFBFBD>嚗á1, h2, h3嚗<33> */
h1, h2, h3 {
margin: 0; /* <20>駁膄憭𤥁器頝<E599A8> */
text-transform: uppercase; /* 撠<><E692A0>摮𡑒蓮<F0A19192>蛹憭批<E686AD> */
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif; /* 霈曄蔭摮𦯀<E691AE>蝟餃<E89D9F> */
font-weight: normal; /* 霈曄蔭摮𦯀<E691AE><F0A6AF80><EFBFBD>銝箸迤撣<E8BFA4> */
color: #0C95C9; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧銝箄<E98A9D><E7AE84><EFBFBD> */
}
/* <20><><EFBFBD><E6BCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>雿枏之撠<E4B98B> */
h1 { font-size: 44px; } /* h1<68><31><EFBFBD>霈曄蔭銝<E894AD>44px */
h2 { font-size: 18px; } /* h2<68><32><EFBFBD>霈曄蔭銝<E894AD>18px */
/* 畾菔氜<E88F94><E6B09C><EFBFBD>摨誩<E691A8>銵典<E98AB5><E585B8><EFBFBD><E58CA7>𡑒”<F0A19192><E2809D>甅撘<E79485> */
p, ul, ol {
margin-top: 0; /* <20>駁膄銝𡃏器頝<E599A8> */
line-height: 240%; /* 霈曄蔭銵屸<E98AB5><EFBFBD>240% */
text-align: justify; /* 霈曄蔭<E69B84><E894AD>𧋦撖寥<E69296>銝箔舅蝡臬笆朣<E7AC86> */
}
ul, ol { } /* <20>删鸌摰𡁏甅撘<E79485> */
/* 撘閧鍂<E996A7><EFBFBD> */
blockquote { }
/* <20>暹𦻖<E69AB9><F0A6BB96>甅撘<E79485> */
a { color: #0C95C9; } /* 霈曄蔭<E69B84>暹𦻖<E69AB9><F0A6BB96><EFBFBD>摮烾<E691AE><E783BE>脖蛹<E88496>肽𠧧 */
a:hover { text-decoration: none; } /* 曌䭾<E69B8C><E4ADBE><EFBFBD><E7A08D>嗅縧<E59785><EFBFBD><E694AF>垍瑪 */
a img { border: none; } /* <20>駁膄<E9A781><EFBFBD>颲寞<E9A2B2> */
/* <20><EFBFBD>瘚桀𢆡<E6A180><EFBFBD> */
img.left {
float: left; /* <20><EFBFBD>瘚桀𢆡<E6A180>啣椰靘<E6A4B0> */
margin: 7px 30px 0 0; /* 霈曄蔭<E69B84><EFBFBD><E69B84><EFBFBD><EFBFBD>颲寡<E9A2B2> */
}
img.right {
float: right; /* <20><EFBFBD>瘚桀𢆡<E6A180>啣𢰧靘<F0A2B0A7> */
margin: 7px 0 0 30px; /* 霈曄蔭<E69B84><EFBFBD><E69B84><EFBFBD><EFBFBD>颲寡<E9A2B2> */
}
/* <20><EFBFBD>瘞游像<E6B8B8><E5838F><EFBFBD><EFBFBD> */
hr { display: none; }
/* <20>𡑒”1<E2809D><31>甅撘<E79485> */
.list1 { }
.list1 li {
float: left; /* <20>𡑒”憿寞筑<E5AF9E><EFBFBD>撌虫儒 */
line-height: normal;
}
.list1 li img {
margin: 0 30px 30px 0; /* 霈曄蔭<E69B84><EFBFBD><E69B84><EFBFBD><EFBFBD>颲寡<E9A2B2> */
}
.list1 li.alt img {
margin-right: 0; /* alt蝐餃<E89D90>銵券★<E588B8>唾器頝肽挽蝵桐蛹0 */
}
#wrapper { }
/* Header <20><EFBFBD> */
/* 憭湧<E686AD>摰孵膥 */
#header-wrapper { }
/* 憭湧<E686AD><E6B9A7><EFBFBD> */
#header {
width: 920px; /* 霈曄蔭憭湧<E686AD><E6B9A7><EFBFBD>捐摨虫蛹920px */
height: 45px; /* 霈曄蔭憭湧<E686AD><E6B9A7><EFBFBD><EFBFBD>摨虫蛹45px */
margin: 0 auto; /* 瘞游像撅<E5838F>葉 */
}
/* <20>𨅯<EFBFBD><F0A885AF><EFBFBD><E585B8><EFBFBD> */
#menu {
float: left; /* <20>𨅯<EFBFBD>瘚桀𢆡<E6A180>啣椰靘<E6A4B0> */
width: 540px; /* 霈曄蔭<E69B84>𨅯<EFBFBD><F0A885AF><EFBFBD>捐摨虫蛹540px */
height: 45px; /* 霈曄蔭<E69B84>𨅯<EFBFBD><F0A885AF><EFBFBD><EFBFBD>摨虫蛹45px */
}
#menu ul {
margin: 0;
padding: 10px 0px 0px 5px; /* 霈曄蔭<E69B84><E894AD>器頝<E599A8> */
list-style: none; /* <20>駁膄<E9A781>𡑒”憿寧<E686BF>暺䁅恕<E48185><EFBFBD> */
line-height: normal;
}
#menu li {
display: block;
float: left; /* <20>𡑒”憿寞筑<E5AF9E><EFBFBD>撌虫儒 */
}
#menu a {
display: block;
float: left; /* <20>暹𦻖瘚桀𢆡<E6A180>啣椰靘<E6A4B0> */
margin-right: 3px;
padding: 3px 8px 2px 8px; /* 霈曄蔭<E69B84>暹𦻖<E69AB9><F0A6BB96>器頝<E599A8> */
text-decoration: none; /* <20>駁膄銝见<E98A9D><EFBFBD> */
text-transform: capitalize; /* 撠<><E692A0>摮烾<E691AE>摮埈<E691AE>憭批<E686AD> */
font-family: Arial, Helvetica, sans-serif; /* 霈曄蔭摮𦯀<E691AE>蝟餃<E89D9F> */
font-size: 12px; /* 霈曄蔭摮𦯀<E691AE>憭批<E686AD><EFBFBD>12px */
color: #FFFFFF; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧銝箇蒾<E7AE87><E892BE> */
}
#menu a:hover { text-decoration: underline; } /* 曌䭾<E69B8C><E4ADBE><EFBFBD><E7A08D>嗆遬蝷箔<E89DB7><E7AE94>垍瑪 */
#menu .current_page_item a {
height: 20px;
background: #FEC200 url(/dingcan/images/img02.jpg) repeat-x left top; /* 霈曄蔭敶枏<E695B6>憿菟𢒰憿寧<E686BF><E5AFA7>峕艶憸𡏭𠧧<F0A18FAD><F0A0A7A7><EFBFBD><E3A69B> */
color: #FFFFFF; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧銝箇蒾<E7AE87><E892BE> */
}
#menu .first {
background: none; /* 蝚砌<E89D9A>銝芾<E98A9D><E88ABE>閖★<E99696><EFBFBD><E3B098><EFBFBD> */
}
/* <20>𦦵揣獢<E68FA3>甅撘<E79485> */
#search {
float: right; /* <20>𦦵揣獢<E68FA3><EFBFBD><EFBFBD><E585B8>喃儒 */
width: 305px; /* 霈曄蔭<E69B84>𦦵揣獢<E68FA3><E78DA2>摰賢漲 */
height: 45px; /* 霈曄蔭<E69B84>𦦵揣獢<E68FA3><E78DA2>擃睃漲 */
}
#search form {
float: right; /* 銵典<E98AB5>瘚桀𢆡<E6A180>啣𢰧靘<F0A2B0A7> */
margin: 0;
padding: 12px 30px 0 0;
}
#search fieldset {
margin: 0;
padding: 0;
border: none; /* <20>駁膄fieldset<65><74>器獢<E599A8> */
}
#search input {
float: left; /* 颲枏<E9A2B2><EFBFBD><EFBFBD><EFBFBD>撌虫儒 */
font: 12px Georgia, "Times New Roman", Times, serif;
border: none; /* <20>駁膄颲寞<E9A2B2> */
}
#search-text {
width: 135px; /* 霈曄蔭颲枏<E9A2B2><EFBFBD>捐摨<E68D90> */
height: 18px; /* 霈曄蔭擃睃漲 */
padding: 3px 0 0 5px; /* 霈曄蔭<E69B84><E894AD>器頝<E599A8> */
border: 1px solid #333333; /* 霈曄蔭颲寞<E9A2B2> */
background: #ECF9E4; /* 霈曄蔭<E69B84>峕艶<E5B395><E889B6> */
color: #000000; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧 */
}
#search-submit {
height: 21px; /* 霈曄蔭<E69B84>𣂷漱<F0A382B7>厰僼擃睃漲 */
margin-left: 10px; /* 霈曄蔭撌西器頝<E599A8> */
padding: 0px 5px; /* 霈曄蔭<E69B84><E894AD>器頝<E599A8> */
background: #000000; /* 霈曄蔭<E69B84>峕艶<E5B395>脖蛹暺𤏸𠧧 */
color: #FFFFFF; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧銝箇蒾<E7AE87><E892BE> */
}
/* Page<67><EFBFBD> */
#page {
width: 920px; /* 霈曄蔭憿菟𢒰摰賢漲銝<E6BCB2>920px */
margin: 0 auto; /* 憿菟𢒰撅<F0A292B0><EFBFBD>曄內 */
}
#page-bgtop {
padding-top: 30px; /* 霈曄蔭憿園<E686BF><E59C92><EFBFBD>器頝<E599A8> */
}
/* LOGO<47><EFBFBD><E585B8><EFBFBD> */
#logo {
width: 860px; /* 霈曄蔭LOGO<47><4F>捐摨<E68D90> */
height: 134px; /* 霈曄蔭LOGO<47><4F><EFBFBD><EFBFBD> */
margin: 0 auto; /* LOGO撅<4F>葉 */
background: url(/dingcan/images/img04.jpg) no-repeat right top; /* 霈曄蔭LOGO<47><4F><EFBFBD><EFBFBD>臬㦛<E887AC><E3A69B> */
}
#logo h1, #logo p {
margin: 0px;
line-height: normal;
text-transform: lowercase;
font-weight: normal;
color: #FFFFFF; /* 霈曄蔭LOGO<47><4F><EFBFBD><EFBFBD><EFBFBD><E5B395><EFBFBD>憸𡏭𠧧銝箇蒾<E7AE87><E892BE> */
}
#logo p {
text-transform: lowercase; /* 霈曄蔭<E69B84><E894AD>𧋦銝箏<E98A9D><E7AE8F><EFBFBD> */
font-size: 10px; /* 霈曄蔭摮𦯀<E691AE>憭批<E686AD> */
}
#logo h1 {
padding-top: 54px; /* 霈曄蔭LOGO<47><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>颲寡<E9A2B2> */
font-size: 34px; /* 霈曄蔭LOGO<47><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>雿枏之撠<E4B98B> */
}
#logo a {
text-decoration: none; /* <20>駁膄<E9A781>暹𦻖銝见<E98A9D><EFBFBD> */
color: #FFFFFF; /* 霈曄蔭<E69B84>暹𦻖憸𡏭𠧧銝箇蒾<E7AE87><E892BE> */
}
/* Content<6E><EFBFBD><E585B8><EFBFBD> */
#content {
float: right; /* <20><>捆瘚桀𢆡<E6A180>啣𢰧靘<F0A2B0A7> */
width: 658px; /* 霈曄蔭<E69B84><E894AD><EFBFBD><EFBFBD><E7AE8F><EFBFBD>捐摨<E68D90> */
padding-top: 10px; /* 霈曄蔭憿園<E686BF><E59C92><EFBFBD>器頝<E599A8> */
padding-right: 30px; /* 霈曄蔭<E69B84>喃儒<E59683><E58492>器頝<E599A8> */
}
/* Post<73><EFBFBD><E585B8><EFBFBD> */
.post {
background: url(/dingcan/images/img07.jpg) repeat-x left bottom; /* 霈曄蔭<E69B84>峕艶<E5B395><EFBFBD> */
margin-bottom: 25px; /* 霈曄蔭摨閖<E691A8>憭𤥁器頝<E599A8> */
}
.post .title {
height: 30px;
color: #549900; /* 霈曄蔭<E69B84><E894AD><EFBFBD>憸𡏭𠧧銝箇遛<E7AE87><E9819B> */
}
.post .title a {
text-decoration: none; /* <20>駁膄<E9A781><E88684><EFBFBD><EFBFBD>暹𦻖銝见<E98A9D><EFBFBD> */
color: #585D60; /* 霈曄蔭<E69B84><E894AD><EFBFBD><EFBFBD>暹𦻖憸𡏭𠧧 */
}
.post .date { }
.post .meta {
margin-top: -10px; /* 霈曄蔭meta<74><EFBFBD><E585B8><EFBFBD><EFBFBD>憭𤥁器頝<E599A8> */
padding: 2px 30px 2px 16px;
background: url(/dingcan/images/img03.gif) no-repeat left 8px; /* 霈曄蔭<E69B84>峕艶 */
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 10px;
color: #66665E; /* 霈曄蔭meta摮𦯀<E691AE>憸𡏭𠧧 */
}
.post .meta span {
display: block; /* 霈曄蔭meta span銝箏<E98A9D>蝥批<E89DA5><EFBFBD> */
margin-top: -10px; /* 霈曄蔭銝𠰴<E98A9D>颲寡<E9A2B2> */
}
.post .entry {
padding: 10px 0; /* 霈曄蔭<E69B84>∠𤌍<E288A0><F0A48C8D><EFBFBD><E68D86><EFBFBD>颲寡<E9A2B2> */
}
/* Sidebar<61><EFBFBD><E585B8><EFBFBD> */
#sidebar {
float: left; /* 靘扯器<E689AF>𤩺筑<F0A4A9BA><EFBFBD>撌虫儒 */
width: 177px; /* 霈曄蔭靘扯器<E689AF>誩捐摨<E68D90> */
padding-left: 22px; /* 霈曄蔭撌血<E6928C>颲寡<E9A2B2> */
font-family: Arial, Helvetica, sans-serif; /* 霈曄蔭摮𦯀<E691AE> */
font-size: 11px; /* 霈曄蔭摮𦯀<E691AE>憭批<E686AD> */
color: #585D60; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧 */
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none; /* <20>駁膄暺䁅恕<E48185>𡑒”<F0A19192><EFBFBD> */
line-height: normal;
}
#sidebar li {
margin-bottom: 30px; /* 霈曄蔭<E69B84>𡑒”憿孵<E686BF><E5ADB5><EFBFBD>颲寡<E9A2B2> */
padding: 0 0 10px 0px;
}
#sidebar p {
margin: 0; /* <20>駁膄畾菔氜<E88F94><E6B09C><EFBFBD>颲寡<E9A2B2> */
padding: 0px 10px; /* 霈曄蔭<E69B84><E894AD>器頝<E599A8> */
}
#sidebar h2 {
height: 26px;
margin: 0 0 10px 0px;
padding: 12px 0 2px 7px; /* 霈曄蔭<E69B84><E894AD>器頝<E599A8> */
text-transform: capitalize; /* 霈曄蔭擐硋<E69390>瘥滚之<E6BB9A><E4B98B> */
font-size: 18px; /* 霈曄蔭摮𦯀<E691AE>憭批<E686AD> */
font-weight: normal;
color: #464F54; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧 */
}
/* Footer <20><EFBFBD> */
#footer {
width: 920px; /* 霈曄蔭憿菔<E686BF>摰賢漲 */
height: 49px; /* 霈曄蔭憿菔<E686BF>擃睃漲 */
margin: 0 auto; /* 憿菔<E686BF><EFBFBD><EFBFBD>曄內 */
padding-top: 50px; /* 霈曄蔭憿菔<E686BF>憿園<E686BF><E59C92><EFBFBD>器頝<E599A8> */
}
#footer-bgcontent {
margin: 0px;
padding: 0px;
height: 99px; /* 霈曄蔭憿菔<E686BF><E88F94><EFBFBD><EFBFBD><E68D86><EFBFBD><EFBFBD> */
background: #394144; /* 霈曄蔭<E69B84>峕艶<E5B395><E889B6> */
}
#footer p {
margin: 0;
text-align: center; /* 霈曄蔭<E69B84><E894AD>𧋦撅<F0A78BA6>葉 */
line-height: normal;
text-transform: uppercase; /* 霈曄蔭<E69B84><E894AD><EFBFBD>憭批<E686AD> */
font-size: 10px; /* 霈曄蔭摮𦯀<E691AE>憭批<E686AD> */
color: #FFFFFF; /* 霈曄蔭摮𦯀<E691AE>憸𡏭𠧧 */
}
#footer a {
color: #E5FFC4; /* 霈曄蔭<E69B84>暹𦻖憸𡏭𠧧 */
=======
body {
margin: 0;
padding: 0;
background: url(/dingcan/images/img01.jpg) repeat-x left top;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #66665E;
}
h1, h2, h3 {
margin: 0;
text-transform: uppercase;
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
font-weight: normal;
color: #0C95C9;
}
h1 { font-size: 44px; }
h2 { font-size: 18px; }
h3 { }
p, ul, ol {
margin-top: 0;
line-height: 240%;
text-align: justify;
}
ul, ol { }
blockquote { }
a { color: #0C95C9; }
a:hover { text-decoration: none; }
a img {
border: none;
}
img.left {
float: left;
margin: 7px 30px 0 0;
}
img.right {
float: right;
margin: 7px 0 0 30px;
}
hr { display: none; }
.list1 {
}
.list1 li {
float: left;
line-height: normal;
}
.list1 li img {
margin: 0 30px 30px 0;
}
.list1 li.alt img {
margin-right: 0;
}
#wrapper {
}
/* Header */
#header-wrapper {
}
#header {
width: 920px;
height: 45px;
margin: 0 auto;
}
/* Menu */
#menu {
float: left;
width: 540px;
height: 45px;
}
#menu ul {
margin: 0;
padding: 10px 0px 0px 5px;
list-style: none;
line-height: normal;
}
#menu li {
display: block;
float: left;
}
#menu a {
display: block;
float: left;
margin-right: 3px;
padding: 3px 8px 2px 8px;
text-decoration: none;
text-transform: capitalize;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
}
#menu a:hover { text-decoration: underline; }
#menu .current_page_item a {
height: 20px;
background: #FEC200 url(/dingcan/images/img02.jpg) repeat-x left top;
color: #FFFFFF;
}
#menu .first {
background: none;
}
/* Search */
#search {
float: right;
width: 305px;
height: 45px;
}
#search form {
float: right;
margin: 0;
padding: 12px 30px 0 0;
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
float: left;
font: 12px Georgia, "Times New Roman", Times, serif;
border: none;
}
#search-text {
width: 135px;
height: 18px;
padding: 3px 0 0 5px;
border: 1px solid #333333;
background: #ECF9E4;
color: #000000;
}
#search-submit {
height: 21px;
margin-left: 10px;
padding: 0px 5px;
background: #000000;
color: #FFFFFF;
}
/* Page */
#page {
width: 920px;
margin: 0 auto;
}
#page-bgtop {
padding-top: 30px;
}
/** LOGO */
#logo {
width: 860px;
height: 134px;
margin: 0 auto;
background: url(/dingcan/images/img04.jpg) no-repeat right top;
}
#logo h1, #logo p {
margin: 0px;
line-height: normal;
text-transform: lowercase;
font-weight: normal;
color: #FFFFFF;
}
#logo p {
text-transform: lowercase;
font-size: 10px;
}
#logo h1 {
padding-top: 54px;
font-size: 34px;
}
#logo a {
text-decoration: none;
color: #FFFFFF;
}
/* Content */
#content {
float: right;
width: 658px;
padding-top: 10px;
padding-right: 30px;
}
/* 楷冞 */
.post {
background: url(/dingcan/images/img07.jpg) repeat-x left bottom;
margin-bottom: 25px;
}
.post .title {
height: 30px;
color: #549900;
}
.post .title a {
text-decoration: none;
color: #585D60;
}
.post .date {
}
.post .meta {
margin-top: -10px;
padding: 2px 30px 2px 16px;
background: url(/dingcan/images/img03.gif) no-repeat left 8px;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 10px;
color: #66665E;
}
.post .meta span {
display: block;
margin-top: -10px;
}
.post .meta a { }
.post .entry {
padding: 10px 0;
}
.post .links {
margin: 0 250px 0 0;
padding: 0 0 0 0px;
}
.post .links .comments {
}
.post .links .permalink {
padding-left: 17px;
}
/* 耜晚戲 */
#sidebar {
float: left;
width: 177px;
padding-left: 22px;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #585D60;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}
#sidebar li {
margin-bottom: 30px;
padding: 0 0 10px 0px;
}
#sidebar li ul {
}
#sidebar li li {
margin: 0;
padding: 7px 10px 10px 7px;
background: url(/dingcan/images/img07.jpg) repeat-x left bottom;
}
#sidebar p {
margin: 0;
padding: 0px 10px;
}
#sidebar h2 {
height: 26px;
margin: 0 0 10px 0px;
padding: 12px 0 2px 7px;
text-transform: capitalize;
font-size: 18px;
font-weight: normal;
color: #464F54;
}
#sidebar p {
line-height: 200%;
}
#sidebar a {
text-align: left;
text-decoration: none;
font-weight: normal;
color: #585D60;
}
/* ゜盪 */
#calendar {
}
#calendar caption {
padding-bottom: 5px;
font-weight: bold;
}
#calendar table {
width: 100%;
border-collapse: collapse;
border-bottom: 1px solid #24130F;
border-left: 1px solid #24130F;
border-right: 1px solid #24130F;
}
#calendar thead th {
padding: 5px 0;
text-align: center;
border-top: 1px solid #24130F;
border-left: 1px solid #24130F;
background: #24130F;
}
#calendar tbody td {
padding: 5px 0;
text-align: center;
border-top: 1px solid #24130F;
border-left: 1px solid #24130F;
border-bottom: 1px solid #24130F;
}
#calendar tfoot td {
padding: 5px;
border-left: 1px solid #24130F;
border-bottom: 1px solid #24130F;
}
#calendar tfoot #next {
border-top: 1px solid #24130F;
text-align: right;
}
#calendar tfoot #prev {
border-top: 1px solid #24130F;
}
#calendar .pad {
border-bottom: 1px solid #24130F;
}
#calendar #today {
background: #24130F;
}
/* Footer */
#footer {
width: 920px;
height: 49px;
margin: 0 auto;
padding-top: 50px;
}
#footer-bgcontent {
margin: 0px;
padding: 0px;
height: 99px;
background: #394144;
}
#footer p {
margin: 0;
text-align: center;
line-height: normal;
text-transform: uppercase;
font-size: 10px;
color: #FFFFFF;
}
#footer a {
color: #E5FFC4;
>>>>>>> remotes/origin/wyp_branch
}

@ -1,42 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
<<<<<<< HEAD
// 获取当前请求的上下文路径,通常用于生成相对路径
String path = request.getContextPath();
=======
String path = request.getContextPath();
>>>>>>> remotes/origin/wyp_branch
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<<<<<<< HEAD
<!-- 设置页面缓存相关的meta标签 -->
<meta http-equiv="pragma" content="no-cache"> <!-- 禁止浏览器缓存 -->
<meta http-equiv="cache-control" content="no-cache"> <!-- 禁止缓存控制 -->
<meta http-equiv="expires" content="0"> <!-- 设置过期时间为0表示不缓存 -->
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
=======
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
>>>>>>> remotes/origin/wyp_branch
</head>
<body>
<<<<<<< HEAD
<!-- 页面主体内容 -->
welcome. <br> <!-- 输出 "welcome" 文本并换行 -->
=======
welcome. <br>
>>>>>>> remotes/origin/wyp_branch
</body>
</html>

@ -1,23 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<center>通过验证,登录成功</center>
</body>
</html>

@ -1,28 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getAttribute("path").toString();
String message = request.getAttribute("message").toString();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<html>
<script language="javascript">
<% if(message != null) { %>
alert("<%=message%>"); //如果 message不为空弹出message信息
<% } %>
<% if(path != null) { %>
document.location.href = "<%=path%>"; //如果路径不为空跳转到取得的path路径
<% } else {%>
window.history.back(); //否则返回历史记录中上一界面
<% } %>
</script>
<body>
</body>
</html>

@ -1 +0,0 @@
Subproject commit 7ef20de6fbfb1a60e420462747344546a2e84615

@ -1,93 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
<<<<<<< HEAD
// 获取当前请求的上下文路径,通常用于生成相对路径
=======
>>>>>>> remotes/origin/wyp_branch
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<<<<<<< HEAD
<!-- 设置页面缓存相关的meta标签 -->
<meta http-equiv="pragma" content="no-cache"/> <!-- 禁止浏览器缓存 -->
<meta http-equiv="cache-control" content="no-cache"/> <!-- 禁止缓存控制 -->
<meta http-equiv="expires" content="0"/> <!-- 设置过期时间为0表示不缓存 -->
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<!-- 引入外部CSS样式文件 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" />
<!-- JavaScript部分用于处理用户操作 -->
<script type="text/javascript">
// 处理注销操作,弹出确认框
function logout() {
// 弹出确认框,确认退出系统
if(confirm("确定要退出本系统吗??")) {
// 如果确认退出,跳转到登录页面
window.parent.location="<%=path %>/login.jsp";
}
}
// 返回首页的操作
function index() {
// 跳转到首页
window.parent.location="<%=path %>/site/default.jsp";
}
</script>
</head>
<body style="background:url(/dingcan/images/top_05.jpg)">
<!-- 页面顶部的标题部分字体白色字号30px距离左边20px距离顶部30px -->
<span style="float:left;margin-left: 20px;color: white;font-size: 30px;margin-top: 30px;">
基于JSP的高校快餐店订餐系统
</span>
<!-- 页面右侧操作链接部分 -->
<span style="float:right;margin-right: 30px;margin-top: 30px;">
<!-- 注销退出链接 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="logout()">注销退出</a>
<!-- 返回首页链接 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="index()">返回首页</a>
</span>
=======
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" /> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<script type="text/javascript">
function logout()
{
if(confirm("确定要退出本系统吗??"))
{
window.parent.location="<%=path %>/login.jsp";
} //点击确定返回后台登录界面
}
function index()
{
window.parent.location="<%=path %>/site/default.jsp";
}//返回首页
</script>
</head>
<body style="background:url(/dingcan/images/top_05.jpg)">
<span style="float:left;margin-left: 20px;color: white;font-size: 30px;margin-top: 30px;">基于JSP的高校快餐店订餐系统</span>
<!-- 标题向左浮动距离左边20像素白色字体30像素距离顶端30像素 -->
<span style="float:right;margin-right: 30px;margin-top: 30px;">
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="logout()">注销退出</a> <!-- 向右浮动 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="index()">返回首页</a>
</span>
>>>>>>> remotes/origin/wyp_branch
</body>
</html>

@ -1,49 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.jspsmart.upload.*" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!--功能已删除-->
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<%
try
{
String fujianPath=request.getParameter("fujianPath");//获得图片路径
String fujianYuashiMing=request.getParameter("fujianYuashiMing");//获得图片的原始名
fujianYuashiMing=java.net.URLDecoder.decode(fujianYuashiMing,"UTF-8");//图片原始名的编码方式
System.out.println(fujianYuashiMing+fujianPath);//输出图片的原始名和路径
SmartUpload su = new SmartUpload(); // 新建一个SmartUpload对象
su.initialize(pageContext); // 初始化
su.setContentDisposition(null);
// 设定contentDisposition为null以禁止浏览器自动打开文件
//保证点击链接后是下载文件。若不设定,则下载的文件扩展名为
//doc时浏览器将自动用word打开它。扩展名为pdf时将用acrobat打开
su.downloadFile(fujianPath, null, new String(fujianYuashiMing.getBytes(), "ISO8859-1")); // 下载中文文件
out.clear();
out=pageContext.pushBody();
}
catch(Exception e)
{%>
<script type="text/javascript">
alert("文件不存在。请联系管理人员");
window.history.back();
</script>
<%}
%>
</body>
</html>

@ -1,285 +0,0 @@
<<<<<<< HEAD
package com.itbaizhan.action;
import java.io.IOException;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.itbaizhan.dao.DB;
import com.itbaizhan.orm.Tuser;
import com.itbaizhan.service.liuService;
public class user_servlet extends HttpServlet
{
public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
String type = req.getParameter("type");
if(type.endsWith("userReg"))
{
userReg(req, res);
}
if(type.endsWith("userLogout"))
{
userLogout(req, res);
}
if(type.endsWith("userMana"))
{
userMana(req, res);
}
if(type.endsWith("userDel"))
{
userDel(req, res);
}
if(type.endsWith("userDetail"))
{
userDetail(req, res);
}
}
public void userReg(HttpServletRequest req, HttpServletResponse res)
{
String id = String.valueOf(new Date().getTime());
String loginname = req.getParameter("loginname");
String loginpw = req.getParameter("loginpw");
String name = req.getParameter("name");
String del = "no";
String s = liuService.panduan_zhanghao(loginname);
if(s.equals("yizhan"))
{
req.setAttribute("message", "账号已占用,请重新选择账号");
req.setAttribute("path", "site/userreg/userreg.jsp");
String targetURL = "/common/success.jsp";
dispatch(targetURL, req, res);
}
else
{
String sql = "insert into t_user values(?,?,?,?,?)";
Object[] params = {id, loginname, loginpw, name, del};
DB mydb = new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("message", "注册成功,请登录");
req.setAttribute("path", "site/default.jsp");
String targetURL = "/common/success.jsp";
dispatch(targetURL, req, res);
}
}
public void userLogout(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
HttpSession session = req.getSession();
session.setAttribute("userType", null);
session.setAttribute("user", null);
req.setAttribute("message", "成功退出系统");
req.setAttribute("path", "site/default.jsp");
String targetURL = "/common/success.jsp";
dispatch(targetURL, req, res);
}
public void userMana(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
List userList = new ArrayList();
String sql = "select * from t_user where del='no'";
Object[] params = {};
DB mydb = new DB();
try
{
mydb.doPstm(sql, params);
ResultSet rs = mydb.getRs();
while(rs.next())
{
Tuser user = new Tuser();
user.setId(rs.getString("id"));
user.setLoginname(rs.getString("loginname"));
user.setLoginpw(rs.getString("loginpw"));
user.setLoginpw(rs.getString("loginpw"));
user.setName(rs.getString("name"));
userList.add(user);
}
rs.close();
}
catch(Exception e)
{
e.printStackTrace();
}
mydb.closed();
req.setAttribute("userList", userList);
req.getRequestDispatcher("admin/user/userMana.jsp").forward(req, res);
}
public void userDel(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
String id = req.getParameter("id");
String sql = "update t_user set del='yes' where id=?";
Object[] params = {id};
DB mydb = new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("msg", "用户信息删除成功");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
}
public void userDetail(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
String id = req.getParameter("id");
List userList = new ArrayList();
String sql = "select * from t_user where id=?";
Object[] params = {id};
DB mydb = new DB();
try
{
mydb.doPstm(sql, params);
ResultSet rs = mydb.getRs();
while(rs.next())
{
Tuser user = new Tuser();
user.setId(rs.getString("id"));
user.setLoginname(rs.getString("loginname"));
user.setLoginpw(rs.getString("loginpw"));
user.setLoginpw(rs.getString("loginpw"));
user.setName(rs.getString("name"));
userList.add(user);
}
rs.close();
}
catch(Exception e)
{
e.printStackTrace();
}
mydb.closed();
req.setAttribute("userList", userList);
req.setAttribute("xinyongList", liuService.getxinyongList(id));
req.getRequestDispatcher("admin/user/userDetail.jsp").forward(req, res);
}
public void dispatch(String targetURI, HttpServletRequest request, HttpServletResponse response)
{
RequestDispatcher dispatch = getServletContext().getRequestDispatcher(targetURI);
try
{
dispatch.forward(request, response);
}
catch (ServletException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
}
public void init(ServletConfig config) throws ServletException
{
super.init(config);
}
public void destroy()
{
}
}
=======
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function xinyongAdd(user_id) //添加用户信用评价模块
{ //引入外部js文件增加页面的整洁性和代码的可维护性
var url="<%=path %>/admin/xinyong/xinyongAdd.jsp?user_id="+user_id;
window.location.href=url; //跳转到用户id的xinyongAdd.jsp界面
}
</script>
</head>
<body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="14" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="4%">序号</td>
<td width="10%">账号</td>
<td width="10%">密 码</td>
<td width="10%">姓名</td>
<td width="10%">操作</td>
</tr>
<c:forEach items="${requestScope.userList}" var="user" varStatus="ss"> <!-- 获取用户信息输出序号初值为1 -->
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td bgcolor="#FFFFFF" align="center">
${ss.index+1}<!--设置序号从1开始 -->
</td>
<td bgcolor="#FFFFFF" align="center">
${user.loginname}
</td>
<td bgcolor="#FFFFFF" align="center">
${user.loginpw}
</td>
<td bgcolor="#FFFFFF" align="center">
${user.name} <!-- 取得用户的各种信息 -->
</td>
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="添加信用评价" onclick="xinyongAdd(${user.id})"/> <!-- 触发添加信用jsp文件 -->
</td>
</tr>
</c:forEach>
</table>
<c:forEach items="${requestScope.xinyongList}" var="xinyong" varStatus="sta">
&nbsp;&nbsp;&nbsp;
<fieldset style="width:60%; margin-left:5px;"><legend class="fieldtitle"></legend> <!-- 使用fieldset来为这几条加上框 -->
<table class="bill" width="97%" cellpadding="4" cellspacing="4" border="0">
<tr>
<td style="width: 100">属性:${xinyong.shuxing}</td>
</tr>
<tr>
<td style="width: 100">评价内容:${xinyong.neirong}</td>
</tr>
<tr>
<td style="width: 100">评价时间:${xinyong.shijian}</td>
</tr>
</table>
</fieldset>
<br/>
</c:forEach>
</body>
</html>
>>>>>>> remotes/origin/wyp_branch

@ -1,117 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
<<<<<<< HEAD
String path = request.getContextPath(); // 获取应用的上下文路径
=======
String path = request.getContextPath();
>>>>>>> remotes/origin/wyp_branch
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<<<<<<< HEAD
<!-- 引入样式文件 -->
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<!-- 引入公共 JavaScript 文件 -->
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<!-- 用户删除操作的 JavaScript 函数 -->
<script language="javascript">
function userDel(id)
{
// 弹出确认框,确认是否删除
if(confirm('您确定删除吗?'))
{
// 如果确认删除,跳转到对应的删除页面,并传递用户 ID
window.location.href="<%=path %>/user?type=userDel&id="+id;
=======
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function userDel(id)
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/user?type=userDel&id="+id; //如果确认删除,则会跳转到这个界面,?后为传入的参数,提示用户信息删除完毕
>>>>>>> remotes/origin/wyp_branch
}
}
</script>
</head>
<body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="14" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<<<<<<< HEAD
<td width="4%">序号</td> <!-- 序号 -->
<td width="10%">账号</td> <!-- 用户账号 -->
<td width="10%">密 码</td> <!-- 用户密码 -->
<td width="10%">姓名</td> <!-- 用户姓名 -->
<td width="10%">操作</td> <!-- 操作按钮 -->
</tr>
<!-- 循环遍历用户列表,展示用户信息 -->
<c:forEach items="${requestScope.userList}" var="user" varStatus="ss">
<tr align='center' bgcolor="#FFFFFF"
onMouseMove="javascript:this.bgColor='red';"
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td bgcolor="#FFFFFF" align="center">
${ss.index+1} <!-- 设置序号,从 1 开始 -->
</td>
<td bgcolor="#FFFFFF" align="center">
${user.loginname} <!-- 显示用户账号 -->
</td>
<td bgcolor="#FFFFFF" align="center">
${user.loginpw} <!-- 显示用户密码 -->
</td>
<td bgcolor="#FFFFFF" align="center">
${user.name} <!-- 显示用户姓名 -->
</td>
<td bgcolor="#FFFFFF" align="center">
<!-- 删除按钮,点击后会调用 userDel 函数 -->
<input type="button" value="删除" onclick="userDel(${user.id})"/>
=======
<td width="4%">序号</td>
<td width="10%">账号</td>
<td width="10%">密 码</td>
<td width="10%">姓名</td>
<td width="10%">操作</td>
</tr>
<c:forEach items="${requestScope.userList}" var="user" varStatus="ss"> <!-- 对于每一项 取得用户名将序号初值设置为1-->
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td bgcolor="#FFFFFF" align="center">
${ss.index+1}
</td>
<td bgcolor="#FFFFFF" align="center">
${user.loginname}
</td>
<td bgcolor="#FFFFFF" align="center">
${user.loginpw}
</td>
<td bgcolor="#FFFFFF" align="center">
${user.name}
</td>
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="userDel(${user.id})"/> <!-- 删除时删除主键用户ID完成对整个数据项的删除 -->
>>>>>>> remotes/origin/wyp_branch
</td>
</tr>
</c:forEach>
</table>
</body>
</html>

@ -1,96 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- 修改密码模块 -->
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
<script language="javascript">
function check()
{
var userPwReal="${sessionScope.admin.userPw}"; //从session范围里取得管理员的密码赋值给userPwReal
if(document.formPw.userPw.value !=userPwReal) //如果取得的输入密码与原密码不同,提示原密码不正确
{
alert("原密码不正确");
return ;
}
if(document.formPw.userPw1.value =="") //如果新密码设置为空,提示新密码不能为空
{
alert("新密码不能空");
return ;
}
document.getElementById("indicator").style.display="block"; //将每一栏设置成块级,自动换行
loginService.adminPwEdit(document.formPw.userPw1.value,callback);
//调用loginService.adminPwEdit函数来对用户的账号密码是否正确做判断
}
function callback(data)//callback函数原密码与新密码通过后执行callback提示修改成功
{
document.getElementById("indicator").style.display="none";
alert("修改成功");
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form method="post" action="<%=path %>/userPwEdit.action" name="formPw">
<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
<tr bgcolor="#EEF4EA">
<td colspan="2" background="<%=path %>/img/wbg.gif" class='title'><span>密码修改</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="25%" bgcolor="#FFFFFF" align="right">
登录名:
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="text" value="${sessionScope.admin.userName }" name="userName" size="20" disabled="disabled"/>
<!--登录名取得是session范围里取得管理员的用户名disabled="disabled"为禁止输入-->
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="25%" bgcolor="#FFFFFF" align="right">
原密码:
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="password" name="userPw" id="userPw" size="22"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="25%" bgcolor="#FFFFFF" align="right">
新密码:
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="password" id="userPw1" name="userPw1" size="22"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="button" value="修改" onclick="check()"/>
&nbsp;&nbsp;&nbsp;
<input type="reset" value="重置"/>
<img id="indicator" src="<%=path %>/images/loading.gif" alt="Loading..." style="display:none"/> <!-- 插入载入动画 -->
</td>
</tr>
</table>
</form>
</body>
</html>

@ -1,122 +0,0 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><!-- 会员注册页面 -->
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link href="<%=path %>/css/qiantai.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function check1()//会员注册界面信息完整判断
{
if(document.form1.loginname.value=="")
{
alert("请输入账号");
return false;
}
if(document.form1.loginpw.value=="")
{
alert("请输入密码");
return false;
}
document.form1.submit();
}
</script>
</head>
<body>
<div id="wrapper">
<div id="logo">
<h1><a href="#">基于JSP的高校快餐店订餐系统
</a></h1>
<p><em><a href="#">&nbsp;</a></em></p>
</div>
<hr/>
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
<!-- 进入daohang.jsp导航页面设置如果缓存区满了就输出数据。-->
</div>
<!--标题头部部分-->
<div id="page">
<div id="page-bgtop">
<!-- 中间 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">&nbsp;&nbsp;会员注册 </a></h2>
<div class="entry">
<form action="<%=path %>/user?type=userReg" name="form1" method="post">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="20%" height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;">
账号:
</td>
<td width="80%" bgcolor="#FFFFFF">
&nbsp;
<input type="text" name="loginname" style="width: 200px;"/>
</td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;">
密码:
</td>
<td bgcolor="#FFFFFF">
&nbsp;
<input type="password" name="loginpw" style="width: 200px;"/>
</td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#F9F9F9" style="font-size: 11px;">
姓名:
</td>
<td bgcolor="#FFFFFF">
&nbsp;
<input type="text" name="name" style="width: 200px;"/>
</td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#F9F9F9">
&nbsp;
</td>
<td bgcolor="#FFFFFF">
&nbsp;
<input type="button" value="注册" onclick="check1();"/>
<input type="reset" value="重置"/>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!-- 中间 -->
<!-- 左侧 -->
<div id="sidebar">
<jsp:include flush="true" page="/site/inc/left.jsp"></jsp:include><!--进入left.jsp左侧菜品类别页面设置如果缓存区满了就输出数据。-->
</div>
<!-- 左侧 -->
<div style="clear: both;">&nbsp;</div> <!--clear:both该属性的值指出了不允许有浮动元素 -->
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<p><a href="<%=path %>/login.jsp">系统后台</a></p>
</div>
</div>
</div>
</body>
</html>

@ -1,195 +0,0 @@
<<<<<<< HEAD
<<<<<<< HEAD
<%@page import="java.text.SimpleDateFormat"%> <!-- 引入 SimpleDateFormat 用于格式化日期 -->
<%@page import="java.util.Date"%> <!-- 引入 Date 类用于获取当前日期和时间 -->
<%@ page language="java" pageEncoding="UTF-8"%> <!-- 设置页面的语言为 Java 和字符编码为 UTF-8 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <!-- 引入 JSTL 核心标签库 -->
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> <!-- 引入 JSTL 格式化标签库 -->
<%@ page isELIgnored="false"%> <!-- 启用表达式语言 (EL) -->
<%
String path = request.getContextPath(); // 获取应用的上下文路径
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- 定义 HTML 文档的 XML 命名空间 -->
<head>
<meta http-equiv="pragma" content="no-cache" /> <!-- 防止页面被缓存 -->
<meta http-equiv="cache-control" content="no-cache" /> <!-- 设置缓存控制 -->
<meta http-equiv="expires" content="0" /> <!-- 设置页面的过期时间 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" /> <!-- 页面关键词 -->
<meta http-equiv="description" content="This is my page" /> <!-- 页面描述 -->
<!-- 引入页面样式表 -->
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<!-- 定义 JavaScript 函数,用于验证表单内容 -->
<script language="javascript">
function c()
{
// 如果评价内容为空,弹出提示框
if(document.formAdd.neirong.value=="")
{
alert("请输入评价内容");
return false; // 阻止表单提交
}
document.formAdd.submit(); // 提交表单
=======
=======
>>>>>>> remotes/origin/wyc_branch
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- 1.插入时间格式的包.2.插入处理时间的包。34.使用JSTLJSP标准标签库5.使得EL不当成字符串处理-->
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script language="javascript">
function c() //如果评价内容为空,提示请输入评论内容
{
if(document.formAdd.neirong.value=="")
{
alert("请输入评价内容");
return false;
}
document.formAdd.submit(); //如果不为空则提交信息
<<<<<<< HEAD
>>>>>>> remotes/origin/wyp_branch
=======
>>>>>>> remotes/origin/wyc_branch
}
</script>
</head>
<<<<<<< HEAD
<<<<<<< HEAD
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'> <!-- 设置页面背景 -->
<form action="<%=path %>/xinyong?type=xinyongAdd" name="formAdd" method="post"> <!-- 表单提交地址和方法 -->
=======
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'> <!-- 距离左边为2距离上面为9背景图片为。。 -->
<form action="<%=path %>/xinyong?type=xinyongAdd" name="formAdd" method="post"> <!--表单的方法为提交 -->
>>>>>>> remotes/origin/wyp_branch
=======
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'> <!-- 距离左边为2距离上面为9背景图片为。。 -->
<form action="<%=path %>/xinyong?type=xinyongAdd" name="formAdd" method="post"> <!--表单的方法为提交 -->
>>>>>>> remotes/origin/wyc_branch
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<<<<<<< HEAD
<<<<<<< HEAD
<!-- 评价属性选择 -->
=======
>>>>>>> remotes/origin/wyp_branch
=======
>>>>>>> remotes/origin/wyc_branch
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价属性:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<<<<<<< HEAD
<<<<<<< HEAD
<!-- 评价属性的选择按钮 -->
=======
>>>>>>> remotes/origin/wyp_branch
=======
>>>>>>> remotes/origin/wyc_branch
<input type="radio" name="shuxing" value="好评" checked="checked" style="border: 0px;"/>好评
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="shuxing" value="差评" style="border: 0px;"/>差评
</td>
</tr>
<<<<<<< HEAD
<<<<<<< HEAD
<!-- 评价内容输入框 -->
=======
>>>>>>> remotes/origin/wyp_branch
=======
>>>>>>> remotes/origin/wyc_branch
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价内容:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<<<<<<< HEAD
<<<<<<< HEAD
<input type="text" name="neirong" size="40"/> <!-- 用户输入评价内容 -->
</td>
</tr>
<!-- 自动填写当前时间 -->
=======
<input type="text" name="neirong" size="40"/>
</td>
</tr>
>>>>>>> remotes/origin/wyp_branch
=======
<input type="text" name="neirong" size="40"/>
</td>
</tr>
>>>>>>> remotes/origin/wyc_branch
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价时间:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<<<<<<< HEAD
<<<<<<< HEAD
<input type="text" name="shijian" size="40" value="<%=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date())%>"/> <!-- 使用 SimpleDateFormat 获取当前日期和时间 -->
</td>
</tr>
<!-- 隐藏用户ID和表单操作按钮 -->
=======
=======
>>>>>>> remotes/origin/wyc_branch
<input type="text" name="shijian" size="40" value="<%=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date())%>"/>
<!-- 取得系统当前时间格式为yyyy年-MM月-dd号 HH点mm分 -->
</td>
</tr>
<<<<<<< HEAD
>>>>>>> remotes/origin/wyp_branch
=======
>>>>>>> remotes/origin/wyc_branch
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<<<<<<< HEAD
<<<<<<< HEAD
<input type="hidden" name="user_id" value="<%=request.getParameter("user_id") %>"/> <!-- 获取传入的 user_id -->
<input type="reset" value="重置"/>&nbsp; <!-- 重置按钮 -->
=======
<input type="hidden" name="user_id" value="<%=request.getParameter("user_id") %>"/> <!-- 插入隐藏域获得用户的id -->
<input type="button" value="提交" onclick="c()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
>>>>>>> remotes/origin/wyp_branch
=======
<input type="hidden" name="user_id" value="<%=request.getParameter("user_id") %>"/> <!-- 插入隐藏域获得用户的id -->
<input type="button" value="提交" onclick="c()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
>>>>>>> remotes/origin/wyc_branch
</td>
</tr>
</table>
</form>
</body>
</html>
Loading…
Cancel
Save