<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template name="labelsNoContractsLayout">
    <div class="section" id="auditReport">
    	<xsl:choose>
    		<xsl:when test="Report/Label">
    			<div class="reportNavWrapper">
    				<h2>
    					Labels Without Contracts
    				</h2>
						<xsl:call-template name="reportHeading" />
	    			<xsl:call-template name="reportNav" />
					</div>
		  		<xsl:call-template name="labelsNoContractsTable" />
		  		<xsl:call-template name="reportNav" />
					<br class="superBreak" />
					<br />
				</xsl:when>
				<xsl:otherwise>
					<p>No labels without contracts were found.</p>
				</xsl:otherwise>
			</xsl:choose>
		</div>
		
		<xsl:call-template name="backToStatementsHome" />
		
	</xsl:template>

	<xsl:template name="labelsNoContractsTable">
    <table class="textChart hiOn">
      <tr>
      	<th>Label</th>
      	<th>Client Label #</th>
      	<th></th>
      </tr>
      <xsl:for-each select="Report/Label">
        <tr class="row{position() mod 2}">
        	<td><xsl:value-of select="LabelName" /></td>
            <td><xsl:value-of select="ClientLabelID" /></td>
			<td>
				<a href="/rps/catalog?c=list&amp;label={LabelID}">View Albums</a>
			</td>
        </tr>
      </xsl:for-each>
    </table>
  </xsl:template>

</xsl:stylesheet>
