<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
    <xsl:output method="html" indent="no" doctype-system="" encoding="utf-8" />

    <xsl:include href="/app/tools/rps/templates/global.xsl" />
    <xsl:include href="../shared_layouts/payors.xsl" />
    <xsl:include href="shared.xsl" />

    <!--
    This template is in the payors.xsl file listed above.
    Note that it is used for both the "account" and "crossed_account" commands.
    -->

    <xsl:template name="pickLayout">
        <div class="MainBaseSection">
            <xsl:call-template name="payorTransactionLayout" />
        </div>
    </xsl:template>

    <xsl:template name="submitButton">
        <xsl:call-template name="uiButton">
            <xsl:with-param name="className" select="'Form-button'" />
            <xsl:with-param name="elemType" select="'submit'" />
            <xsl:with-param name="type" select="'primary'" />
            <xsl:with-param name="name" select="'submit'" />
            <xsl:with-param name="id" select="'submitButton'" />
            <xsl:with-param name="content" select="'Update'" />
            <xsl:with-param name="disabled">
                <xsl:if test="$openRuns &gt; 0">
                    <xsl:text>true</xsl:text>
                </xsl:if>
            </xsl:with-param>
        </xsl:call-template>
    </xsl:template>

    <xsl:template name="cancelButton">
        <xsl:call-template name="uiButton">
            <xsl:with-param name="className" select="'Form-button'" />
            <xsl:with-param name="content" select="'Return to License'" />
            <xsl:with-param name="url">
                <xsl:text>?TrackLicenseID=</xsl:text>
                <xsl:value-of select="Params/TrackLicenseID" />
                <xsl:text>&amp;c=show&amp;tab=</xsl:text>
                <xsl:value-of select="$licenseTab" />
            </xsl:with-param>
        </xsl:call-template>
    </xsl:template>

</xsl:stylesheet>
