<!--                                                                  -->
<!--  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="tracksNoTimingsLayout">
        <div class="section" id="auditReport">

		    <div class="reportNavWrapper">
			    <h2>
				    Tracks Without Timings
				    <xsl:call-template name="helpIcon">
						<xsl:with-param name="tip">
							Lists tracks with no song timings which have active licenses attached<xsl:value-of select="$tipBreak" /> 
							where the license is configured with a rate type of &quot;Stat Rate&quot;
						</xsl:with-param>
					</xsl:call-template> 
					<xsl:if test="Access/rps/report/tracks_no_timings and Access/rps/report/ca_tracks_no_timings">
					    <xsl:call-template name="mechReportSwitcher" />
					</xsl:if>  
			    </h2>
			    <xsl:if test="Report/Track">
    				<xsl:call-template name="reportHeading" />
    			    <xsl:call-template name="reportNav" />
			    </xsl:if>
			</div>
			
			<xsl:if test="Report/Track">
      		    <xsl:call-template name="tracksNoTimingsTable" />
      		    <xsl:call-template name="reportNav" />
    		    <br class="superBreak" />
    		    <br />
		    </xsl:if>

		    <xsl:if test="not(Report/Track)">
			    <p>No tracks with missing times were found.</p>
		    </xsl:if>

	    </div>		
		<xsl:call-template name="backToStatementsHome" />		
	</xsl:template>


	<xsl:template name="tracksNoTimingsTable">
        <table class="textChart hiOn">
            <tr>
      	        <th>Label</th>
              	<th>Catalog&#160;#</th>
              	<th>Album&#160;Title</th>
              	<th>Artist</th>
              	<th class="amount">Track&#160;#</th>
                <th>Track&#160;Name</th>
            </tr>
            <xsl:for-each select="Report/Track">
                <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="TrackArtistName" /></td>
					<td class="amount"><xsl:value-of select="TrackNumber" /></td>
					<td>
						<a href="/rps/track?c=show&amp;TrackID={TrackID}"><xsl:value-of select="TrackTitle" /></a>
					</td>
                </tr>
            </xsl:for-each>
        </table>
    </xsl:template>
    

</xsl:stylesheet>
