<!--                                                                  -->
<!--  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="albumsNoContractsLayout">
    <div class="section" id="auditReport">
    	<xsl:choose>
    		<xsl:when test="Report/Album">
    			<div class="reportNavWrapper">
    				<h2>
    					Albums And Tracks Without Contracts
    					<xsl:call-template name="helpIcon">
								<xsl:with-param name="tip">
								    Album only listings indicate no contracts are attached<xsl:value-of select="$tipBreak" />at the album or track level
								</xsl:with-param>
							</xsl:call-template>  
    				</h2>
						<xsl:call-template name="reportHeading" />
	    			<xsl:call-template name="reportNav" />
					</div>
		  		<xsl:call-template name="albumsNoContractsTable" />
		  		<xsl:call-template name="reportNav" />
					<br class="superBreak" />
					<br />
				</xsl:when>
				<xsl:otherwise>
					<p>No albums without contracts were found.</p>
				</xsl:otherwise>
			</xsl:choose>
		</div>
		
		<xsl:call-template name="backToStatementsHome" />
		
	</xsl:template>

	<xsl:template name="albumsNoContractsTable">
    <table class="textChart hiOn">
      <tr>
      	<th>Label</th>
      	<th>Catalog&#160;#</th>
      	<th>Album&#160;Title</th>
      	<th>Album Artist</th>
      	<th>Track&#160;No</th>
      	<th>Track&#160;Title</th>
      	<th>Track Artist</th>
      </tr>
      <xsl:for-each select="Report/Album">
        <tr class="row{position() mod 2}">
        	<td><xsl:value-of select="LabelName" /></td>
          <td><xsl:value-of select="CatalogNumber" /></td>
					<td>
						<a href="/rps/catalog?c=show&amp;AlbumID={AlbumID}"><xsl:value-of select="AlbumTitle" /></a>
					</td>
					<td><xsl:value-of select="AlbumArtistName" /></td>
					<td><xsl:value-of select="TrackOrder" /></td>
					<td><xsl:value-of select="TrackTitle" /></td>
					<td><xsl:value-of select="TrackArtistName" /></td>
        </tr>
      </xsl:for-each>
    </table>
  </xsl:template>

</xsl:stylesheet>
