2006-01-02

仅用xsl和asp实现分页功能

来源: 本站收集整理 作者:佚名 评论 0 条
 
<a>[ 首 ]</a>
<a title="前一页">[ <<< ] </a>
<a title="后一页"><xsl:attribute name="href">search_jieguo.asp?id=<xsl:value-of select="$pid -
$size"/></xsl:attribute>[ >>> ] </a>
<a><xsl:attribute name="href">search_jieguo.asp?id=<xsl:value-of select="$size"/></xsl:attribute>
[ 尾 ]</a>
</td></tr>
</table><br/>
<xsl:for-each select="PO[position()<=$pid and position()>($pid - $size)]">
<xsl:sort select="PO_ID" order="descending" data-type="number"/>
<xsl:call-template name="PO"/>
<br/><br/><br/>
</xsl:for-each>
<!-- 退出一级choose的另一个when条件分支!!!!! -->
</xsl:otherwise>
</xsl:choose>
<!-- --------------翻页链接到此结束----------- -->
<br/>
<xsl:if test="count(//PO)=0">

<div align="center"><b>
<img src="images/msg2.gif" align="absmiddle"/>
</b><font color="#CC0000" face="楷体CS" size="3"><b>
没有符合当前条件的订单</b></font>
<a><xsl:attribute name="href">lkxx.asp?po_id=<xsl:value-of select="PO_ID"/></xsl:attribute></a>
</div>
><br/><br/>
<input type="button" value="重新输入条件查询" onclick="location.href='search.asp'"/>
</xsl:if>
</xsl:template>






<!-- ------------------------------------------>
<xsl:template name="PO">
<table border="1" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td nowrap="nowrap" width="70"> 号码</td>
<td nowrap="nowrap" width="110"> 名称</td>
<td nowrap="nowrap" width="110"> 日期</td>
<td nowrap="nowrap" width="110"> 人员</td>
</tr>
<tr>
<td nowrap="nowrap"> <xsl:value-of select="num"/></td>
<td nowrap="nowrap"> <xsl:value-of select="username"/></td>
<td nowrap="nowrap"> <xsl:value-of select="dt"/></td>
<td nowrap="nowrap"> <xsl:value-of select="men"/></td>
</tr>
共5页: 上一页 [1] [2] [3] 4 [5] 下一页
(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:PHP学习宝典-第二章  
下一篇:SQLServer2005移植到Oracle10g经验总结
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号