📄 index.aspx
字号:
<HTML>
<HEAD>
<title>网上书店</title>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="Form1" runat="server">
<!--标题栏-->
<table height="80" cellSpacing="0" cellPadding="0" width="657" align="center" border="0">
<tr>
<td align="left" width="300"><IMG src="images/logo.jpg" width="189" border="0">
</td>
<td align="right"><IMG height="59" src="images/adver.jpg" width="468" border="0">
</td>
</tr>
</table>
<!--输出类别信息-->
<table class="text" borderColor="#d1daf1" height="20" cellSpacing="0" cellPadding="0" width="657"
align="center" bgColor="#d1daf1" border="1">
<tr align="left">
<td><A href="index.aspx?KindId=0">首页</A>
<asp:datalist id="myDataList" style="POSITION: absolute" runat="server" RepeatDirection="Horizontal">
<ItemTemplate>
<asp:HyperLink Text='<# Container.DataItem("KindName") >' NavigateUrl='<# "index.aspx?KindId=" & Container.DataItem("KindId") >' runat="server" ID="Hyperlink1"/>
</ItemTemplate>
<SeparatorTemplate>
</SeparatorTemplate>
</asp:datalist></td>
</tr>
</table>
<!--输出用户登录和书籍列表--><br>
<table width="657" align="center" border="0">
<TBODY>
<tr>
<td vAlign="top" width="150">
<!--输出用户登录-->
<table borderColor="#d1daf1" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff"
border="1">
<tr bgColor="#d1daf1">
<td align="left">
<!--这里调用了用户控件--><mycontrols:userlog id="myUserlog" runat="server"></mycontrols:userlog></MYCONTROLS:USERLOG></td>
</tr>
</table>
<!--输出查询按钮--><br>
<table borderColor="#d1daf1" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff"
border="1">
<tr bgColor="#d1daf1">
<td align="left">关键词:<asp:textbox id="txtKeyword" runat="server" CssClass="inputbox" Columns="10"></asp:textbox>
<p>字段:
<asp:dropdownlist id="dropKeyField" runat="server" CssClass="inputbox">
<asp:ListItem Value="BookName" Text="书名" />
<asp:ListItem Value="BookAuthor" Text="作者" />
</asp:dropdownlist><asp:button id="btnSearch" runat="server" CssClass="inputbutton" Text="查找"></asp:button></p>
</td>
</tr>
</table>
<!--输出打开购物车的链接--><br>
<table class="text" cellSpacing="0" cellPadding="0" width="150" bgColor="#ffffff" border="0">
<tr>
<td align="center">
<p><A onclick="open('myShoppingCart.aspx','购物车','resizable=0,scrollbars=1,status=no,toolbar=no,location=no,menu=no,width=660,height=400,left=100,top=100')"
href="#"><IMG height="50" src="images/car.gif" width="50" border="0"> </A>
</p>
</td>
</tr>
</table>
</td>
<td vAlign="top">
<!--输出书籍列表-->
<myreapter:CustomRepeater id="myCustomRepeater" runat="server">
</myreapter:CustomRepeater><ITEMTEMPLATE>
<TABLE class=text height=74 cellSpacing=1 cellPadding=0 width="100%"
align=center bgColor=#0099ff border=0>
<TR>
<TD height=70>
<TABLE class=text cellSpacing=0 cellPadding=0 width="100%"
align=center bgColor=#ffffff border=0>
<TR>
<TD align=center width="20%"><A
href='particular.aspx?BookId=<# Container.DataItem("BookId") %>'><IMG
height=87
src='showimage.aspx?BookId=<# Container.DataItem("BookId") %>'
width=67 border=0> </A></TD>
<TD align=left>名称:<# Container.DataItem("BookName") %>
<BR>作者:<# Container.DataItem("BookAuthor") >
<BR>价格:<# Container.DataItem("BookPrice") >元
<P><A
href='particular.aspx?BookId=<# Container.DataItem("BookId") >'><IMG
src="images/particular.gif" border=0> </A> <A
onclick="open('BuyBook.aspx?BookId=<# Container.DataItem("
href="#"
BookId?)>','购物车','resizable=0,scrollbars=1,status=no,toolbar=no,location=no,menu=no,width=660,height=400,left=100,top=100')">
<IMG src="images/buy.gif" border=0>
</A></P></TD></TR></TABLE></TD></TR></TABLE></ITEMTEMPLATE><SEPARATORTEMPLATE>
</SEPARATORTEMPLATE></MYREAPTER:CUSTOMREPEATER></td>
</tr>
</TBODY></table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -