<!--                                                                  -->
<!--  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="productsNoPricesLayout">
        <div class="AuditReport" id="auditReport">
            <h2 class="AuditReport-header">
                Products Without Prices
                <xsl:call-template name="helpIcon">
                    <xsl:with-param name="tip">
                        Lists products that do not have prices entered where a contract configured with % Wholesale or % Retail terms is attached to that album or track
                    </xsl:with-param>
                </xsl:call-template>
            </h2>
            <xsl:choose>
                <xsl:when test="Report/Product">
                    <xsl:call-template name="reportHeading" />
                    <xsl:call-template name="productsNoPricesTable" />
                    <xsl:call-template name="reportFooter" />
                </xsl:when>
                <xsl:otherwise>
                    <section class="Table-empty-results">
                        <p>No products without prices were found.</p>
                    </section>
                </xsl:otherwise>
            </xsl:choose>
            <xsl:call-template name="backToStatementsHome" />
        </div>
    </xsl:template>


    <xsl:template name="productsNoPricesTable">
        <table class="Table Table-with-highlight">
            <thead>
                <tr class="Table-row Table-row-header">
                    <th class="Table-col">Label</th>
                    <th class="Table-col">Catalog&#160;#</th>
                    <th class="Table-col">Album&#160;Title</th>
                    <th class="Table-col">Artist</th>
                    <th class="Table-col">Product&#160;Type</th>
                    <th class="Table-col">Product&#160;ID</th>
                    <th class="Table-col">UPC</th>
                    <th class="Table-col">Missing&#160;Price&#160;Level</th>
                </tr>
            </thead>
            <tbody>
                <xsl:for-each select="Report/Product">
                    <tr class="Table-row Table-row-data">
                        <td class="Table-col"><xsl:value-of select="LabelName" /></td>
                        <td class="Table-col"><xsl:value-of select="CatalogNumber" /></td>
                        <td class="Table-col">
                            <a href="product?c=show&amp;ProductID={ProductID}"><xsl:value-of select="AlbumTitle" /></a>
                        </td>
                        <td class="Table-col"><xsl:value-of select="ArtistName" /></td>
                        <td class="Table-col"><xsl:value-of select="ProductType" /></td>
                        <td class="Table-col">
                            <a href="product?c=show&amp;ProductID={ProductID}"><xsl:value-of select="ProductCode" /></a>
                        </td>
                        <td class="Table-col"><xsl:value-of select="UPC_EAN" /></td>
                        <td class="Table-col"><xsl:value-of select="MissingPriceLevel" /></td>
                    </tr>
                </xsl:for-each>
            </tbody>
        </table>
    </xsl:template>


</xsl:stylesheet>
