[Rapforums-developer] src/stylesheets/edu/fullcoll/uportal/channels/rap/forum thread.xsl,1.5,1.6
Status: Beta
Brought to you by:
brippe
From: Brad R. <br...@us...> - 2005-02-07 23:59:45
|
Update of /cvsroot/rapforums/src/stylesheets/edu/fullcoll/uportal/channels/rap/forum In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32691 Modified Files: thread.xsl Log Message: no message Index: thread.xsl =================================================================== RCS file: /cvsroot/rapforums/src/stylesheets/edu/fullcoll/uportal/channels/rap/forum/thread.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** thread.xsl 4 Feb 2005 00:35:54 -0000 1.5 --- thread.xsl 7 Feb 2005 23:59:31 -0000 1.6 *************** *** 14,29 **** <xsl:variable name="mediaPath" select="'media/edu/fullcoll/uportal/channels/rap'"/> <!-- helper functions --> <xsl:template name="incr"> ! <xsl:param name="current"/> ! <xsl:param name="max"/> ! <xsl:call-template name="loop"> ! <xsl:with-param name="current" select="$current + 1"/> ! <xsl:with-param name="max" select="$max"/> ! </xsl:call-template> </xsl:template> ! <xsl:template name="loop"> <xsl:param name="current"/> <xsl:param name="max"/> <xsl:if test="number($current) <= number($max)"> <!-- loop code to perform work goes here --> --- 14,33 ---- <xsl:variable name="mediaPath" select="'media/edu/fullcoll/uportal/channels/rap'"/> + <xsl:variable name="lastNumOnPg">0</xsl:variable> + <!-- helper functions --> <xsl:template name="incr"> ! <xsl:param name="current"/> ! <xsl:param name="max"/> ! <xsl:call-template name="loop"> ! <xsl:with-param name="current" select="$current + 1"/> ! <xsl:with-param name="max" select="$max"/> ! </xsl:call-template> </xsl:template> ! ! <xsl:template name="loop"> <xsl:param name="current"/> <xsl:param name="max"/> + <xsl:if test="number($current) <= number($max)"> <!-- loop code to perform work goes here --> *************** *** 43,47 **** <xsl:otherwise> <a> ! <xsl:attribute name="href"><xsl:value-of select="$baseActionURL"/>?mode=thread&forum=<xsl:value-of select="/rap/rapforum/forumid"/>&thread=<xsl:value-of select="/rap/rapforum/threadid"/>&t=5&lpg=<xsl:value-of select="$lastNumOnPg"/></xsl:attribute> <xsl:value-of select="$current"/> </a> --- 47,51 ---- <xsl:otherwise> <a> ! <xsl:attribute name="href"><xsl:value-of select="$baseActionURL"/>?mode=thread&forum=<xsl:value-of select="/rap/rapforum/forumid"/>&thread=<xsl:value-of select="/rap/rapforum/threadid"/>&lpg=<xsl:value-of select="$lastNumOnPg"/></xsl:attribute> <xsl:value-of select="$current"/> </a> *************** *** 155,165 **** </font> </td> <td align="right"> ! comments available: <a> <xsl:attribute name="class">uportal-text-small</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> <xsl:attribute name="alt">PDF</xsl:attribute> ! <xsl:attribute name="href"><xsl:value-of select="$serverInfo"/>/thread2pdf.jsp?mode=pdf&forum=<xsl:value-of select="/rap/rapforum/forumid"/>&thread=<xsl:value-of select="/rap/rapforum/threadid"/>&lpg=<xsl:value-of select="$lastNumOnPg"/></xsl:attribute> <img src="{$mediaPath}/pdf_logo.gif" width="16" height="16" border="0"/> PDF Format </a> --- 159,170 ---- </font> </td> + <td align="right"> ! comments available: <a> <xsl:attribute name="class">uportal-text-small</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> <xsl:attribute name="alt">PDF</xsl:attribute> ! <xsl:attribute name="href"><xsl:value-of select="$serverInfo"/>/thread2pdf.jsp?mode=pdf&forum=<xsl:value-of select="/rap/rapforum/forumid"/>&thread=<xsl:value-of select="/rap/rapforum/threadid"/>&lpg=<xsl:value-of select="/rap/rapforum/numcomments"/></xsl:attribute> <img src="{$mediaPath}/pdf_logo.gif" width="16" height="16" border="0"/> PDF Format </a> |