default.asp

来自「一套简单的购物车程序」· ASP 代码 · 共 51 行

ASP
51
字号
<!-- #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">&nbsp;<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") %>&amp;cat=<%= rs("catdescription") %>"><%= rs("catdescription") %></a></font>
      </li>
<% 
rs.MoveNext
Wend
rs.Close
dbc.Close
Set rs = Nothing
Set dbc = Nothing
%>
    </ul>
    <p>&nbsp;</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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