⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show.jsp

📁 网上快餐订购
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="com.restrant.entity.FoodBean"%>

<html ><!-- InstanceBegin template="/Templates/template.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<!-- InstanceBeginEditable name="doctitle" -->
		<title>主页</title>
		<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<style type="text/css">
<!--
.STYLE4 {
	font-weight: bold
}
-->
</style>

		<!-- InstanceEndEditable -->

<link href="styles.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
var str=null;
function disptime(){
	var time=new Date();
	var year=time.getYear();
	var month=time.getMonth()+1;
	var data=time.getDate();
	var Day=time.getDay();
	var stday=null;
	if(Day==0){
	stday="天";
	}else if(Day==1){
	stday="一";
	}
	else if(Day==2){
	stday="二";
	}else if(Day==3){
	stday="三";
	}else if(Day==4){
	stday="四";
	}else if(Day==5){
	stday="五";
	}else if(Day==6){
	stday="六";
	}
	
	str=year+"年"+month+"月"+data+"日 "+"   星期"+stday;
	document.fr.labletime.value=str;
	setTimeout("disptime()",100000);
}

</script>
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
</style>
</head>

<body onLoad="disptime()">

<table width="90%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td  width="20%"><img src="../images/jb_logo.jpg" width="220" height="99" /></td>
    <td class="STYLE1">&nbsp;
    <h1>我学我会 &nbsp; 网上订餐系统 </h1></td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%"  cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" >
      <tr>
        <td width="25%">&nbsp;</td>
        <td width="10%" align="center">网站首页</td>
        <td width="10%" align="center">关于我们</td>
        <td width="10%" align="center">订餐帮助</td>
        <td width="10%" align="center">网上订餐</td>
        <td width="10%" align="center">客服中心</td>
        <td  width="25%">&nbsp;</td>
      </tr>
    </table>
	<hr align="center" width="100%" noshade="noshade"/>	</td>
  </tr>
  <tr>
    <td rowspan="2" valign="top"><img src="../images/left_top.jpg" width="220" height="258" />      <form name="fr">
	<input  name="labletime"  type="text" size="25"  readonly="readonly"  width="120" style="border:none; "  />
	</form>
	<hr/><hr/>	</td>
    <td  valign="top"  align="center" style="height:72 "><img src="../images/001.jpg" width="95%"  height="72" />
	<br />
	<marquee scrollamount="5" direction="left">欢迎使用我学我会网上订餐系统,祝你用餐愉快!</marquee></td>
  </tr>
  <tr>
    <td align="center"  valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
					<table width="95%" border="0" cellpadding="0" cellspacing="0">
						<tr>
						</tr>
						<tr>
							<td colspan="6" align="right" valign="top" bgcolor="#CCCCCC">
								<img src="../images/lcart_cn.gif" width="97" height="23"
									border="0" />
							</td>
						</tr>
						<%
									List<FoodBean> foodList = (List<FoodBean>) session
									.getAttribute("FoodList");

							for (int i = 0; i < foodList.size(); i++) {
								FoodBean currentfood = (FoodBean) foodList.get(i);
								if (i % 2 == 0) {
						%>

						<tr>

							<td width="25%" height="143">
								<img src="../images/<%=currentfood.getFoodImage()%>" width="150"
									height="94" border="0" />
								<br />
								编号:<%=currentfood.getFoodId()%></td>
							<td colspan="2">
								<p class="style8">
									<strong><%=currentfood.getFoodName()%></strong>
								</p>
								<p>
									现价:人民币<%=currentfood.getFoodPrice()%>元
								</p>
								<p><%=currentfood.getRemark()%></p>

								<a
									href="/restrant/AddFoodToCart.do?id=<%=currentfood.getFoodId()%>">
									<img src="../images/buy_cn.gif" width="60" height="20"
										border="0" />
								</a>
								<a
									href="/restrant/ch01/details.jsp?id=<%=currentfood.getFoodId()%>">
									<img src="../images/detail_cn.gif" width="60" height="20"
										border="0" /> </a>


							</td>


							<%
							} else {
							%><td width="25%" height="143">
								<img src="../images/<%=currentfood.getFoodImage()%>" width="150"
									height="94" border="0" />
								<br />
								编号:<%=currentfood.getFoodId()%></td>
							<td colspan="2">
								<p class="style8">
									<strong><%=currentfood.getFoodName()%></strong>
								</p>
								<p>
									现价:人民币<%=currentfood.getFoodPrice()%>元
								</p>
								<p><%=currentfood.getRemark()%></p>

								
								<a
									href="/restrant/AddFoodToCart?id=<%=currentfood.getFoodId()%>">
									<img src="../images/buy_cn.gif" width="60" height="20"
										border="0" />
								</a>
								<a
									href="/restrant/ch01/details.jsp?id=<%=currentfood.getFoodId()%>">
									<img src="../images/detail_cn.gif" width="60" height="20"
										border="0" /> </a>
							</td>
						</tr>
						<%
							}
							}
						%>

					</table>
					<!-- InstanceEndEditable --></td>
  </tr>
  <tr bgcolor="#CCCCCC" >
    <td height="10" colspan="2" align="center">
    <h3>Copyrght@2007 北大青鸟阿博泰克北大青鸟信息技术有限公司所有</h3></td>
  </tr>
</table>

</body>

<!-- InstanceEnd --></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -