| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 530 人关注过本帖
标题:[求助]请帮我做个注释
取消只看楼主 加入收藏
毕业设计
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-3-27
收藏
 问题点数:0 回复次数:0 
[求助]请帮我做个注释

<!--#include file="top.asp"--> <% dim page,class_name dim maxPerPage '每页显示的产品数 dim num_row '每行显示的产品个数 dim rows '显示的产品行数 num_row=2 '每行放置的产品数 rows=5 '放置的产品行数 maxperpage=num_row*rows myKeyword=Request("myKeyword") page=Request("page") session("oldUrl")="./" if (page="" or isempty(page)) then page=1 thisUrl="class_show2.asp?class_name="&request("class_name") session("oldUrl")=thisUrl&"&page="&page Set rs=Server.CreateObject("ADODB.RecordSet") if request("class_name")="" then sql="select * from shangping where order by sg_day DESC" else sql="select * from shangping where class_name='"&request("class_name")&"' order by sg_day DESC" end if rs.open sql,conn,1,1 rs.pagesize=MaxPerPage %> <script language=Javascript> <!-- function onChange(i){ childSort=document.all("child" + i); //theTd=document.all("td" + i); if(childSort.style.display=="none"){ // theTd.bgcolor="#ffffCC"; childSort.style.display="";} else{ // theTd.bgcolor="#FFFFCC"; childSort.style.display="none";} }

function jumpTo(i){ if(i==1){ this.document.location="<%=thisUrl%>";} if(i==2){ this.document.location="<%=thisUrl%>&page=<%=page-1%>";} if(i==3){ this.document.location="<%=thisUrl%>&page=<%=page+1%>";} if(i==4){ this.document.location="<%=thisUrl%>&page=<%=rs.pageCount%>";} } //--> </script> <div align="center"> <center> <table width="778" border="0" cellspacing="0" cellpadding="0"> <% j=1 if not (rs.eof or err) then rs.move (page-1)*maxPerPage do while not (rs.eof or err) if (j mod num_row)=1 then %> <tr><td colspan="<%=(num_row*2-1)%>"> <TABLE align=center bgcolor="#FFFFCC" border=0 cellPadding=0 cellSpacing=0 width="778"> <TBODY> <TR> <TD><IMG height=1 src="images/spacer.gif" width="1"></TD> </TR></TBODY></TABLE> </td></tr> <% response.write "<tr>" end if %> </center> <td width="<%=(100/num_row)%>%" align=center> <table width="98%" border="0" cellspacing="0" cellpadding="5" align="center"> <tr> <td width=100> <div align="center"> <a href="shangping_show.asp?id=<%=rs("id")%>" "> <%if rs("sp_spic")<>"" then%> </a><a href="shangping_show.asp?id=<%=rs("id")%>"><img border="0" src="images/<%=rs("sp_spic")%>" hspace="5" vspace="5" alt="点击查看详情"></a> <a href="shangping_show.asp?id=<%=rs("id")%>" "> <%else%> </a><a href="shangping_show.asp?id=<%=rs("id")%>"> <img ssrc="pic/nopic.jpg" border="0"> </a> <a href="shangping_show.asp?id=<%=rs("id")%>" "> <%end if%> </a></div> </td> <td width="200"> <p align="left"><a href="shangping_show.asp?id=<%=rs("id")%>" "><font color="#FF9933"><b><%=rs("sp_name")%></b><font color="#FF6600"></font></font></a> <br> <strike><font color="#666666">市场价: <s><%=rs("sc_jg")%>.00</s></font></strike> <br> <%if rs("cx")=true then %> 特价: <%=rs("cx_jg")%>.00<img src="images/tejia.gif"> <%else%> 商城价: <%=rs("hy_jg")%>.00 <br> vip价: <%=rs("vip_jg")%>.00 <%end if%> <br> <a href="shangping_show.asp?id=<%=rs("id")%>" "><font color="#FF9933">详细资料</font></a>   <a href="buybus.asp?id=<%=rs("id")%>"><img src="images/cart1.gif" border="0"></a></p> </td> </tr> </table> </td> <center> <% if (j mod num_row)=0 then response.write "</tr>" else %> <TD bgcolor="#FFFFCC" width="1"><IMG height=1 src="images/spacer.gif" width="1"></TD> <% end if j=j+1 if j>maxperpage then exit do rs.moveNext loop dim k k=(j-1) mod num_row if not (k=0) then response.write "<td colspan="&(num_row-k)&" width="&(cint(100/num_row)*(num_row-k))&">&nbsp;</td>" response.write "</tr>" end if %> <tr><td colspan="<%=(num_row*2-1)%>"> <TABLE align=center bgcolor="#FFFFCC" border=0 cellPadding=0 cellSpacing=0 width="100%"> <TBODY> <TR> <TD><IMG height=1 src="images/spacer.gif" width=1></TD> </TR></TBODY></TABLE> </td></tr> </table></center> </div> <br> <div align="right"> <p align="center">共<%=rs.recordCount%>个商品 第<%=page%>/<%=rs.pageCount%>页  <%if page>1 then%> <input type="button" name="Submit3" value="|&lt;&lt;" title="首页" onClick="Javascript:jumpTo(1)" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff"> <input type="button" name="Submit4" value=" &lt; " title="上页" onClick="Javascript:jumpTo(2)" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff"> <%else%> <input type="button" name="Submit3" value="|&lt;&lt;" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff" disabled> <input type="button" name="Submit4" value=" &lt; " style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff" disabled> <%end if if rs.recordCount>page*maxPerPage then%> <input type="button" name="Submit5" value=" &gt; " title="下页" onClick="Javascript:jumpTo(3)" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff"> <input type="button" name="Submit6" value="&gt;&gt;|" title="尾页" onClick="Javascript:jumpTo(4)" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff"> <%else%> <input type="button" name="Submit5" value=" &gt; " style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff" disabled> <input type="button" name="Submit6" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #ffffff" value="&gt;&gt;|" disabled> <%end if%> </div><br> <!--#include file="foot.asp"--> 哪位朋友能帮我给这个页面做个注释,谢谢 这是个显示商品大类中所有商品的页面

搜索更多相关主题的帖子: 注释 
2005-05-15 13:31
快速回复:[求助]请帮我做个注释
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016735 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved