?? default.asp
字號:
<!-- #include file="db.inc" -->
<%
'if user returns to the homepage after shopping, clean up the session variables
If Request.QueryString ("end") = 1 Then
Session.Abandon
End If
%>
<html>
<head>
<title>ePoster Store - Online art shop</title>
</head>
<body>
<table border="0" width="600" cellpadding="4">
<tr>
<td width="100%" colspan="2" valign="top"><h5><img src="images/eplogo.gif" alt="eplogo.gif (2683 bytes)" align="left" WIDTH="399" HEIGHT="78"><font face="Tahoma">Welcome to the ePhoto store
- a live demo of</font><a href="http://www.URLogy.com/asp/ashopkart.asp"><img src="../images/asklogox.gif" alt="a.shopKart(tm)" align="right" border="0" WIDTH="107" HEIGHT="38"></a></h5>
</td>
</tr>
<tr>
<td width="120" bgcolor="#004080" valign="top"> <p><font face="Arial" color="#FFFFFF"><small><small>This
is a sample site. None of the products are actualy for sale, nore is there a secure
server.</small></small></font></td>
<td width="480"><h3><font face="Tahoma">Shop for posters with:</font> </h3>
<ul>
<%
'create recordset to show categories from database
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "categories", dbc, adOpenForwardOnly,adLockReadOnly,adCmdTable
While Not rs.EOF
%>
<li><font face="Tahoma"><a HREF="products.asp?id=<%= rs("categoryID") %>&cat=<%= rs("catdescription") %>"><%= rs("catdescription") %></a></font>
</li>
<%
rs.MoveNext
Wend
rs.Close
dbc.Close
Set rs = Nothing
Set dbc = Nothing
%>
</ul>
<p> </td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -