Merge remote-tracking branch 'remotes/origin/wyp_branch' into develop

# Conflicts:
#	base.css
#	cont.css
#	cont.jsp
#	foot.jsp
#	index.css
#	left.jsp
#	qiantai.css
#	right.jsp
#	top.jsp
#	userDetail.jsp
#	userMana.jsp
#	xinyongAdd.jsp
develop
IE-WEB 8 months ago
commit c17773f6fa

@ -1,6 +1,10 @@
* {
font-size: 12px;
<<<<<<< HEAD
font-family: " ";
=======
font-family: "宋体";
>>>>>>> remotes/origin/wyp_branch
}
td { line-height: 1.5; }
@ -8,7 +12,11 @@ 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;}
@ -34,9 +42,15 @@ 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 {
@ -54,7 +68,11 @@ a strong{
}
input { border: 1px solid #ababab; }
<<<<<<< HEAD
/*.aΪ */
=======
/*.a为类名*/
>>>>>>> remotes/origin/wyp_branch
.pubinputs {
height: 22px;
width:250px;
@ -281,6 +299,7 @@ border:1px solid #ffffff;
.tblist td{
background:#FFFFFF;
padding:6px;
<<<<<<< HEAD
}/* 通用样式 */
* {
font-size: 12px; /* 设置默认字体大小为12px */
@ -685,6 +704,9 @@ input {
padding: 6px; /* 设置内边距 */
}
=======
}
>>>>>>> remotes/origin/wyp_branch
.tblist td.tbsname{
background:#F9FFE6;
padding:6px;

@ -0,0 +1,61 @@
<%@ 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>

@ -0,0 +1,70 @@
<%@ 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,5 +1,6 @@
/* CSS Document */
<<<<<<< HEAD
/* Body样式 */
body{
padding:0px; /* 设置body的内边距为0 */
@ -128,4 +129,113 @@ body{
letter-spacing:3px; /* 设置字母间距为3px */
text-align:center; /* 设置文本居中 */
padding-top:3px; /* 设置顶部内边距为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
}

@ -6,6 +6,7 @@
<!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" %>
<%
// 获取当前请求的上下文路径,通常用于生成相对路径
@ -116,6 +117,9 @@
</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"/>

@ -0,0 +1,23 @@
<%@ 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,12 +1,16 @@
<%@ 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"/>
@ -25,5 +29,17 @@
<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>

@ -0,0 +1,157 @@
<%@ 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>

@ -0,0 +1,24 @@
<%@ 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>

@ -0,0 +1,118 @@
<%@ 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>

@ -0,0 +1,159 @@
<%@ 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>

@ -0,0 +1,62 @@
<%@ 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,5 +1,6 @@
/* CSS Document */
<<<<<<< HEAD
/* Body部分样式 */
body{
margin:0px; /* 设置页面的外边距为0去除默认的外边距 */
@ -52,3 +53,45 @@ body{
input:hover{
background-color:#A0D1FF; /* 设置鼠标悬停时输入框的背景颜色为浅蓝色 */
}
=======
body{
margin:0px;
padding:50px 0px 0px 0px;
background-color:#5c86ad;
font-size:12px;
color:#133B61;
}
/*indexÒ³ÃæCSSÉèÖÃ*/
.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,11 +1,17 @@
<%@ 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"/> <!-- 禁用缓存 -->
@ -63,10 +69,63 @@
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>
@ -76,11 +135,22 @@
<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">
@ -88,13 +158,26 @@
<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">
@ -102,7 +185,11 @@
<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>
@ -113,15 +200,24 @@
</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">
@ -131,14 +227,22 @@
<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">
@ -156,11 +260,160 @@
</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

@ -0,0 +1,62 @@
<%@ 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>

@ -0,0 +1,80 @@
<%@ 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>

@ -0,0 +1,23 @@
<%@ 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>

@ -0,0 +1,121 @@
<%@ 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,9 +1,14 @@
<<<<<<< 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 样式 */
body {
margin: 0; /* 去除外边距 */
@ -322,4 +327,422 @@ hr { display: none; }
#footer a {
color: #E5FFC4; /* 设置链接颜色 */
=======
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,12 +1,17 @@
<%@ 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"> <!-- 禁止缓存控制 -->
@ -15,11 +20,23 @@
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<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>

@ -0,0 +1,23 @@
<%@ 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>

@ -0,0 +1,28 @@
<%@ 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,12 +1,16 @@
<%@ 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"/> <!-- 禁止缓存控制 -->
@ -52,5 +56,38 @@
<!-- 返回首页链接 -->
<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,3 +1,4 @@
<<<<<<< HEAD
package com.itbaizhan.action;
import java.io.IOException;
@ -197,3 +198,88 @@ public class user_servlet extends HttpServlet
{
}
}
=======
<%@ 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

@ -3,7 +3,11 @@
<%@ 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">
@ -15,6 +19,7 @@ String path = request.getContextPath(); // 获取应用的上下文路径
<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" />
@ -30,6 +35,18 @@ String path = request.getContextPath(); // 获取应用的上下文路径
{
// 如果确认删除,跳转到对应的删除页面,并传递用户 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>
@ -41,6 +58,7 @@ String path = request.getContextPath(); // 获取应用的上下文路径
<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> <!-- 用户密码 -->
@ -67,6 +85,30 @@ String path = request.getContextPath(); // 获取应用的上下文路径
<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>

@ -1,3 +1,4 @@
<<<<<<< HEAD
<%@page import="java.text.SimpleDateFormat"%> <!-- 引入 SimpleDateFormat 用于格式化日期 -->
<%@page import="java.util.Date"%> <!-- 引入 Date 类用于获取当前日期和时间 -->
<%@ page language="java" pageEncoding="UTF-8"%> <!-- 设置页面的语言为 Java 和字符编码为 UTF-8 -->
@ -33,54 +34,121 @@ String path = request.getContextPath(); // 获取应用的上下文路径
}
document.formAdd.submit(); // 提交表单
=======
<%@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(); //如果不为空则提交信息
>>>>>>> remotes/origin/wyp_branch
}
</script>
</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
<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
<!-- 评价属性选择 -->
=======
>>>>>>> remotes/origin/wyp_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
<!-- 评价属性的选择按钮 -->
=======
>>>>>>> remotes/origin/wyp_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
<!-- 评价内容输入框 -->
=======
>>>>>>> remotes/origin/wyp_branch
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价内容:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<<<<<<< HEAD
<input type="text" name="neirong" size="40"/> <!-- 用户输入评价内容 -->
</td>
</tr>
<!-- 自动填写当前时间 -->
=======
<input type="text" name="neirong" size="40"/>
</td>
</tr>
>>>>>>> remotes/origin/wyp_branch
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价时间:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<<<<<<< HEAD
<input type="text" name="shijian" size="40" value="<%=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date())%>"/> <!-- 使用 SimpleDateFormat 获取当前日期和时间 -->
</td>
</tr>
<!-- 隐藏用户ID和表单操作按钮 -->
=======
<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>
>>>>>>> remotes/origin/wyp_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
<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
</td>
</tr>
</table>

Loading…
Cancel
Save