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

📄 default1.asp

📁 本软件可以实现的功能如下:   用户管理
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%
dim sqlo
dim rso
dim filtersql
dim conn   
dim connstr
on error resume next
connstr="DBQ="+server.mappath("shopping.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
     set conn=server.createobject("ADODB.CONNECTION")
     conn.open connstr 
Dim i
i=1


set objRS=server.createobject("adodb.recordset")
filtersql="Select * from Products Where 首页显示 = True"
objRS.open filtersql,conn,1,1
%>
<html>
<head>
<title>精品盎然</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="style.css">
<script language="javascript">
function popwin2(id,path)
{		window.open("list.asp?id="+id+"&ppath="+path,"","height=400,width=500,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
</script>
</head>
<body bgcolor="00A36B">
<% do while not (objRS.eof or err)
      strCimageurl = objRS("小图片地址")%> <%if i=1 then%>
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="192"> 
      <table width="192" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2" bgcolor="EFD786" height="1"></td>
        </tr>
        <tr> 
          <td height="15" width="19"><img src="images/btop.gif" width="19" height="15"></td>
          <td valign="bottom"><%=objRS("类别")%></td>
        </tr>
        <tr bgcolor="EFD786"> 
          <td colspan="2" height="1"></td>
        </tr>
        <tr> 
          <td width="19" height="92" align="center" valign="middle"><img src="images/bleft.gif" width="19" height="92"></td>
          <td><a href="javascript:popwin2(<%=objRS("目录ID")%>)"><%if strCimageurl<>"" then%> 
            <img src="<%=objRS("小图片地址")%>" width="78" height="76" border="0" align="left"> 
            <%else%> <img src="images/gwm.gif" width="78" height="76" border="0" align="left"> 
            <%end if%></a>品名:<%=objRS("名称")%><br>价格:¥<%=objRS("价格")%><br><br><a href="javascript:popwin2(<%=objRS("目录ID")%>)">详细说明>>></a></td>
        </tr>
      </table>
    </td> <%end if
if i=2 then%>
    <td width="192"> 
      <table width="192" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2" bgcolor="EFD786" height="1"></td>
        </tr>
        <tr> 
          <td height="15" width="19"><img src="images/btop.gif" width="19" height="15"></td>
          <td valign="bottom"><%=objRS("类别")%></td>
        </tr>
        <tr bgcolor="EFD786"> 
          <td colspan="2" height="1"></td>
        </tr>
        <tr> 
          <td width="19" height="92" align="center" valign="middle"><img src="images/bleft.gif" width="19" height="92"></td>
          <td><a href="javascript:popwin2(<%=objRS("目录ID")%>)"><%if strCimageurl<>"" then%> 
            <img src="<%=objRS("小图片地址")%>" width="78" height="76" border="0" align="left"> 
            <%else%> <img src="images/gwm.gif" width="78" height="76" border="0" align="left"> 
            <%end if%></a>品名:<%=objRS("名称")%><br>价格:¥<%=objRS("价格")%><br><br><a href="javascript:popwin2(<%=objRS("目录ID")%>)">详细说明>>></a></td>
        </tr>
      </table>
    </td><%end if
if i=3 then%>
    <td width="192"> 
      <table width="192" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2" bgcolor="EFD786" height="1"></td>
        </tr>
        <tr> 
          <td height="15" width="19"><img src="images/btop.gif" width="19" height="15"></td>
          <td valign="bottom"><%=objRS("类别")%></td>
        </tr>
        <tr bgcolor="EFD786"> 
          <td colspan="2" height="1"></td>
        </tr>
        <tr> 
          <td width="19" height="92" align="center" valign="middle"><img src="images/bleft.gif" width="19" height="92"></td>
          <td><a href="javascript:popwin2(<%=objRS("目录ID")%>)"><%if strCimageurl<>"" then%> 
            <img src="<%=objRS("小图片地址")%>" width="78" height="76" border="0" align="left"> 
            <%else%> <img src="images/gwm.gif" width="78" height="76" border="0" align="left"> 
            <%end if%></a>品名:<%=objRS("名称")%><br>价格:¥<%=objRS("价格")%><br><br><a href="javascript:popwin2(<%=objRS("目录ID")%>)">详细说明>>></a></td>
        </tr>
      </table>
    </td>
    <td width="1" bgcolor="EFD786"></td>
  </tr>
  <tr> 
    <td colspan="3" height="1" bgcolor="EFD786"></td>
    <td width="1" bgcolor="EFD786"></td>
  </tr>
</table>
<br>    <%end if
if i=4 then%> 
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="192"> 
      <table width="192" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2" bgcolor="EFD786" height="1"></td>
        </tr>
        <tr> 
          <td height="15" width="19"><img src="images/btop.gif" width="19" height="15"></td>
          <td valign="bottom"><%=objRS("类别")%></td>
        </tr>
        <tr bgcolor="EFD786"> 
          <td colspan="2" height="1"></td>
        </tr>
        <tr> 
          <td width="19" height="92" align="center" valign="middle"><img src="images/bleft.gif" width="19" height="92"></td>
          <td><a href="javascript:popwin2(<%=objRS("目录ID")%>)"><%if strCimageurl<>"" then%> 
            <img src="<%=objRS("小图片地址")%>" width="78" height="76" border="0" align="left"> 
            <%else%> <img src="images/gwm.gif" width="78" height="76" border="0" align="left"> 
            <%end if%></a>品名:<%=objRS("名称")%><br>价格:¥<%=objRS("价格")%><br><br><a href="javascript:popwin2(<%=objRS("目录ID")%>)">详细说明>>></a></td>
        </tr>
      </table>
    </td>
    <%end if
if i=5 then%> 
    <td width="192"> 
      <table width="192" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2" bgcolor="EFD786" height="1"></td>
        </tr>
        <tr> 
          <td height="15" width="19"><img src="images/btop.gif" width="19" height="15"></td>
          <td valign="bottom"><%=objRS("类别")%></td>
        </tr>
        <tr bgcolor="EFD786"> 
          <td colspan="2" height="1"></td>
        </tr>
        <tr> 
          <td width="19" height="92" align="center" valign="middle"><img src="images/bleft.gif" width="19" height="92"></td>
          <td><a href="javascript:popwin2(<%=objRS("目录ID")%>)"><%if strCimageurl<>"" then%> 
            <img src="<%=objRS("小图片地址")%>" width="78" height="76" border="0" align="left"> 
            <%else%> <img src="images/gwm.gif" width="78" height="76" border="0" align="left"> 
            <%end if%></a>品名:<%=objRS("名称")%><br>价格:¥<%=objRS("价格")%><br><br><a href="javascript:popwin2(<%=objRS("目录ID")%>)">详细说明>>></a></td>
        </tr>
      </table>
    </td>
    <%end if
if i=6 then%> 
    <td width="192"> 
      <table width="192" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2" bgcolor="EFD786" height="1"></td>
        </tr>
        <tr> 
          <td height="15" width="19"><img src="images/btop.gif" width="19" height="15"></td>
          <td valign="bottom"><%=objRS("类别")%></td>
        </tr>
        <tr bgcolor="EFD786"> 
          <td colspan="2" height="1"></td>
        </tr>
        <tr> 
          <td width="19" height="92" align="center" valign="middle"><img src="images/bleft.gif" width="19" height="92"></td>
          <td><a href="javascript:popwin2(<%=objRS("目录ID")%>)"><%if strCimageurl<>"" then%> 
            <img src="<%=objRS("小图片地址")%>" width="78" height="76" border="0" align="left"> 
            <%else%> <img src="images/gwm.gif" width="78" height="76" border="0" align="left"> 
            <%end if%></a>品名:<%=objRS("名称")%><br>价格:¥<%=objRS("价格")%><br><br><a href="javascript:popwin2(<%=objRS("目录ID")%>)">详细说明>>></a></td>
        </tr>

⌨️ 快捷键说明

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