www.gusucode.com > 凡人网络购物系统 2008源码程序 > huo.asp

    <!--#include file="conn.asp"-->
<!--#include file="IncAsp/venshop_top.asp"-->
<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top" height=300>
<!--#include file="IncAsp/venshop_log.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">
<%
if request("huo_id")<>"" then 
huo_id=Request.QueryString("huo_id")
If Not(isNumeric(huo_id)) Then
Response.Write "<p align=center>操作错误!</p>"
Response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_huo where huo_id="&huo_id&""
rs.open sql,conn,1,1  
if not rs.eof then%>	
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr><td valign="top" align="center">
<table border="0" width="99%" cellspacing="0" cellpadding="0">
<tr><td height="30" align="center" class="vtitle" valign="bottom"><%=rs("huo_name")%></td></tr>
<tr><td><hr size="1"></td></tr>
<tr><td>
<p style="line-height:150%; margin-top:0; margin-bottom:0">订 单 号:<%=rs("sub_number")%><br>
发货时间:<%=rs("huo_fadate")%><br>
发布日期:<%=rs("huo_date")%>
<%if rs("huo_pic")<>"" then%><p style="margin-top: 5px; margin-bottom: 5px"><img src="<%=rs("huo_pic")%>" onload="javascript:if(this.width>700) this.width=700;"></p><%end if%>
<p style="line-height:150%; margin-top:0; margin-bottom:0">补充说明:<br><%=rs("huo_content")%></td></tr>
	</table>
  </td></tr>
</table>
<%end if
rs.close
set rs=nothing
else

page=request("page")
if page="" then page=1
if not(isnumeric(page)) then page=1
if page<1 then page=1
page=int(page)
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_huo order by huo_id desc"
rs.open sql,conn,1,1%>
<table width="99%" cellpadding="0" cellspacing="0"> 
  <tr><td height="23" class="sort">&nbsp;<IMG src="Skin/<%=venshop_skin%>/home.gif" border=0 align="absmiddle"> 您的位置:  
	<a href="index.asp">首页</a> >>&nbsp;发货单:</td></tr>
  <tr><td valign="top" width="770" align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<%if rs.eof then%><tr><td><p style="line-height: 150%; margin-left: 10; margin-right: 10">No Date</td></tr>
<%else
rs.pagesize=30
totalrec=rs.recordcount
totalpage=rs.pagecount
if page>totalpage then page=totalpage
rs.absolutepage=page
rs.cachesize=rs.pagesize
i=0
do while not rs.eof and (i<rs.pagesize)
i=i+1%>
<tr><td height="26"><p style="line-height: 150%; margin-left: 10; margin-right: 10"><img border="0" src="img/newsq.gif" width="6" height="6"> <a href="huo.asp?huo_id=<%=rs("huo_id")%>" target=_blank><%=rs("huo_name")%></a> <font color="#808080">[<%=rs("huo_date")%>]</font></td></tr>
<tr><td height="2" background="Img/dot_menu.gif"></td></tr>
<%rs.movenext
loop
End If
rs.close
set rs=nothing%></table></td></tr></table><%end if%>
<%if huo_id="" then%><table cellspacing="0" cellpadding="0" width="99%">
<form action=huo.asp method=post><tr> 
<td height="23" align="center"> 
第<%=page%>页/共<%=totalpage%>页&nbsp;&nbsp;
<%if page-1>0 then%><a href="huo.asp?page=<%=page-1%>">上一页</a><%else%>上一页<%end if%>&nbsp;&nbsp;
<%if page+1<=totalpage then%><a href="huo.asp?page=<%=page+1%>">下一页</a><%else%>下一页<%end if%>&nbsp;&nbsp;
页面跳转:<input type="text" name="page" value="<%=page+1%>" size="1" style="text-align: center" class=input><input type="submit" value="GO" class=input></td></tr></form>
</table><%end if%>
</td></tr></table>
</td></tr></table></div>
<!--#include file="IncAsp/venshop_copy.asp"-->