Hi!
The first column on my page created by an xsl file is named order. It uses the position function to fill its column of textboxes when the page is loaded. Is there a way using the resort button below that if someone changes the value of some of the order numbers and then presses the resort button that the rows will be resorted chronologically based on the value of the order field's value?
<table style="font-size: 10pt" width="100%" border="1" bordercolor= "#418181" cellpadding="2"
cellspacing="0">
<tr style="background-color:#CBCCDA">
<td COLSPAN="3" ALIGN="CENTER"><B><xsl:value-of select="ud_CustomerName"/></B></td>
</tr>
<tr style="background-color:#CBCCDA">
<th>Order</th>
<th>Name</th>
<th>Phone 1</th>
</tr>
<xsl:apply-templates select="//contact"/>
<tr style="background-color:#CBCCDA">
<td COLSPAN="3" ALIGN="CENTER"><B><xsl:text>Users: </xsl:text>
<xsl:value-of select="count(//contact)"/></B>
<INPUT TYPE="BUTTON" onclick="" VALUE=http://www.webdeveloper.com/forum/archive/index.php/"Resort"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="contact">
<tr>
<xsl:attribute name="bgcolor">
<xsl:choose>
<xsl:when test="position() mod 2 = 1">#F0F1F5</xsl:when>
<xsltherwise>#E0DFE3</xsltherwise>
</xsl:choose>
</xsl:attribute>
<td align="center">
<INPUT maxLength="2" name="order" size="2" value="{position()}"/>
</td>
<td align="center">
<INPUT maxLength="30" name="name" size="30" value="{con_nam}"/>
</td>
<td align="center">
<INPUT maxLength="12" name="priphone" size="12" value="{con_mph}"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
Thank you for any suggestions.
The first column on my page created by an xsl file is named order. It uses the position function to fill its column of textboxes when the page is loaded. Is there a way using the resort button below that if someone changes the value of some of the order numbers and then presses the resort button that the rows will be resorted chronologically based on the value of the order field's value?
<table style="font-size: 10pt" width="100%" border="1" bordercolor= "#418181" cellpadding="2"
cellspacing="0">
<tr style="background-color:#CBCCDA">
<td COLSPAN="3" ALIGN="CENTER"><B><xsl:value-of select="ud_CustomerName"/></B></td>
</tr>
<tr style="background-color:#CBCCDA">
<th>Order</th>
<th>Name</th>
<th>Phone 1</th>
</tr>
<xsl:apply-templates select="//contact"/>
<tr style="background-color:#CBCCDA">
<td COLSPAN="3" ALIGN="CENTER"><B><xsl:text>Users: </xsl:text>
<xsl:value-of select="count(//contact)"/></B>
<INPUT TYPE="BUTTON" onclick="" VALUE=http://www.webdeveloper.com/forum/archive/index.php/"Resort"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="contact">
<tr>
<xsl:attribute name="bgcolor">
<xsl:choose>
<xsl:when test="position() mod 2 = 1">#F0F1F5</xsl:when>
<xsltherwise>#E0DFE3</xsltherwise>
</xsl:choose>
</xsl:attribute>
<td align="center">
<INPUT maxLength="2" name="order" size="2" value="{position()}"/>
</td>
<td align="center">
<INPUT maxLength="30" name="name" size="30" value="{con_nam}"/>
</td>
<td align="center">
<INPUT maxLength="12" name="priphone" size="12" value="{con_mph}"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
Thank you for any suggestions.