?? index.jsp
字號(hào):
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!--文件頭開(kāi)始-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="達(dá)內(nèi)電子商務(wù)門(mén)戶">
<title>達(dá)內(nèi)電子商務(wù)門(mén)戶</title>
<link rel="stylesheet" href="css/styles.css" type="text/css" />
<LINK href="css/tarena.css" rel=stylesheet>
<script language="JavaScript" src="js/tarena.js"></script>
</head>
<body
onLoad="MM_preloadImages('images/index_on.gif','images/reg_on.gif','images/order_on.gif','../images/top/topxmas/jp_on.gif','../images/top/topxmas/download_on.gif','../images/top/topxmas/bbs_on.gif','../images/top/topxmas/designwz_on.gif')"
topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
id="table2">
<tr>
<td align="left" width="7%" background="images/top_bg.gif">
<img src="images/logo.gif" width="286" height="58">
</td>
<td width="62%" background="images/top_bg.gif">
</td>
<td width="31%" background="images/top_bg.gif" align="right">
<img src="images/top_r.gif" width="352" height="58" border="0">
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/dh_bg.gif" align="left" height="12">
<table width="100" border="0" cellspacing="0" cellpadding="0"
align="center">
<tr>
<td width="5%">
</td>
<td width="10%">
<a href="listproducts.do" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','images/index_on.gif',1)">
<img name="Image1" border="0" src="images/index.gif" width="90"
height="36"> </a>
</td>
<td width="10%">
<a href="userinfo.do" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image2','','images/reg_on.gif',1)">
<img name="Image2" border="0" src="images/reg.gif" width="92"
height="36"> </a>
</td>
<td width="10%">
<a href="shopcart.jsp" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image4','','images/carts_on.gif',1)">
<img name="Image4" border="0" src="images/cart.gif" width="92"
height="36"> </a>
</td>
<td width="10%">
<a href="order.do" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image5','','images/order_on.gif',1)">
<img name="Image5" border="0" src="images/order.gif" width="92"
height="36"> </a>
</td>
<td width="10%">
<a href="logout.do" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image6','','images/exit_on.gif',1)">
<img name="Image6" border="0" src="images/exit.gif" width="92"
height="36"> </a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="1" cellpadding="3" align="center" border="0"
width="98%">
<tr>
<td width="65%">
<BR>
>> 歡迎訪問(wèn)
<b>達(dá)內(nèi)電子商務(wù)門(mén)戶</b>
</td>
<td width="35%" align="right">
<a href="login.jsp">登錄</a>
<a href="init.do">注冊(cè)</a>
</td>
</tr>
</table>
<!--文件體開(kāi)始-->
<table cellspacing=1 cellpadding=3 align=center class=tableBorder2>
<tr>
<td height=25 valign=middle>
<img src="images/Forum_nav.gif" align="absmiddle">
<a href=index.jsp>達(dá)內(nèi)電子商務(wù)門(mén)戶</a> →
<img border="0" src="images/dog.gif" width="19" height="18">
歡迎
<font color="red">${user.userId }</font>光臨!
<c:if test="${!empty admin}">
<a href="listUsers.do">所有用戶</a> <a
href="categoryInit.do">添加商品</a>
<form action="searchOrder.do" method="post">
訂單類型<select name="status">
<option>
---請(qǐng)選擇---
</option>
<option value="等待處理">
等待處理
</option>
<option value="處理中">
處理中
</option>
<option value="已發(fā)貨">
已發(fā)貨
</option>
</select>
<input type="submit" value="查詢" Class="ButtonStyle">
</form>
</c:if>
</td>
<td height=25 valign=middle>
<form action="searchProduct.do" method="post">
查找商品
<input type="text" name="name" size="10">
<input type="submit" value="查詢" Class="ButtonStyle">
</form>
</td>
</tr>
</table>
<br>
<form action="loginAction.do" method=post name="login">
<table cellpadding=3 cellspacing=1 align=center class=tableborder1>
<tr>
<td valign=middle align=center height=25
background="images/bg2.gif" width="">
<font color="#ffffff"><b>序號(hào)</b> </font>
</td>
<td valign=middle align=center height=25
background="images/bg2.gif" width="">
<font color="#ffffff"><b>產(chǎn)品名稱</b> </font>
</td>
<td valign=middle align=center height=25
background="images/bg2.gif" width="">
<font color="#ffffff"><b>價(jià)格</b> </font>
</td>
<td valign=middle align=center height=25
background="images/bg2.gif" width="">
<font color="#ffffff"><b>操作</b> </font>
</td>
</tr>
<c:forEach items="${product}" var="item">
<tr>
<td class=tablebody2 valign=middle align=center width="">
${item.productId }
</td>
<td class=tablebody1 valign=middle width="">
<a href="detail.do?pid=${item.productId }">${item.name }</a>
</td>
<td class=tablebody2 valign=middle align=center width="">
${item.baseprice }
</td>
<c:if test="${empty admin}">
<td class=tablebody1 valign=middle align=center width="">
<a href="addItem.do?pid=${item.productId }"> <img border="0"
src="images/car_new.gif" width="97" height="18"> </a>
</td>
</c:if>
<c:if test="${!empty admin}">
<td class=tablebody1 valign=middle align=center width="">
<a href="deleteProduct.do?pid=${item.productId }">刪除</a>
</td>
</c:if>
</tr>
</c:forEach>
<tr>
<td colspan="4" align="center">
<c:if test="${pro.currentIndex>1}">
<a href="listproducts.do?page=1">首頁(yè)</a>
<a href="listproducts.do?page=${pro.currentIndex-1}">上一頁(yè)</a>
</c:if>
<c:if test="${pro.currentIndex<pro.maxPage}">
<a href="listproducts.do?page=${pro.currentIndex+1}">下一頁(yè)</a>
<a href="listproducts.do?page=${pro.maxPage}">尾頁(yè)</a>
</c:if>
當(dāng)前第${pro.currentIndex}頁(yè) 共有${pro.maxPage }頁(yè)
</td>
</tr>
</table>
</form>
<!--文件尾開(kāi)始-->
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center" height="28">
<tr>
<td height="17" background="images/bot_bg.gif">
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center">
<tr>
<td bgcolor="#f1f1f6" height="53" valign="center">
<p align="center">
Copyright ©2004 - 2005
<a href="http://www.tarena.com.cn"><b><font
face="Verdana,">Tarena</font> </b><font color=#CC0000>.com.cn</font>
</a>
<br>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -