<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>品牌</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
td{font-size:9pt;line-height: 160%;}
body {
	margin-top: 5px;margin-left: 2px;
}
.style3 {color: #A84E22; font-weight: bold; }
#tabcss{
	BORDER-COLLAPSE: collapse;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #dddddd;
	border-left-color: #dddddd;
}#tabcss td {
	line-height: 24px;
	padding-left: 10px;
	padding-top: 2px;
	padding-bottom: 2px;
	color: #333333;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #dddddd;
	border-bottom-color: #dddddd;
}

-->
</style>
</head>

<body bgcolor="#fcfcfc">

<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" id="tabcss">
  <tr bgcolor="#E1EFFF"> 
    <td height="25" colspan="5"><b>品牌设置：</b></td>
  </tr>
  <tr bgcolor="#eeeeee"> 
    <td height="25" width=20%><div align="center">图片</div></td>
    <td width=15%> 
      <div align="center">品牌名称</div></td>
    <td width=35%> 
      <div align="center">链接</div></td>
    <td width=10%> 
      <div align="center">顺序</div></td>
	<td width=20%> 
      <div align="center"><b><a href='pinpaiadd.asp'>增 加</a></b></div></td>
  </tr>
  <%
i=0

sql="select * from x_pinpai order by num"

set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if rs.bof or rs.eof then
	response.write "<div align=center><br>没有记录! </div>"
else
	do while not rs.eof 
	id=rs("id")
	picpath=rs("picpath")
	url=rs("url")
	memo=rs("memo")
	num=rs("num")
%>
  <tr onMouseOver="this.style.background='#FFE4CA';" onMouseOut="this.style.background='#ffffff';"> 
    <td height="50" align=center><img src='<%=picpath%>' border='0'></td>
    <td><b><%=memo%></b></td>
	<td><%=url%></td>
	<td><%=num%></td>
    <td align="center">
	<a href="pinpaishow.asp?id=<%=id%>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="pinpaidel.asp?id=<%=id%>" onClick="return confirm('真的删除此记录?')">删除</a>
	</td>
  </tr>
  <%
	rs.movenext
	i=i+1
	loop
end if
%>
</table>
<br><br>
</body>
</html>
<%
rs.close
set rs=nothing
call connclose
%>

