<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<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="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="utf-8" />

<!--    <xsl:include href="/app/tools/common/production/templates/global.xsl" />  -->
    <xsl:include href="/app/tools/rps/templates/global.xsl" /> 


    <xsl:template name="pickLayout">
  
  	    <style type="text/css">
  		    #dashboard {
  			    background-image: url(/production/images/logos/<xsl:value-of select="User/ClientNameClean" />.gif);
  		    }
  	    </style>	
  
        <div class="section" id="dashboard">
			<h1>Welcome to RoyaltyShare</h1>
			Royalty solutions for a digital world!<br />      
			<fieldset class="menu">
				<legend>Royalty Tasks</legend>
				<ul>
				
					<xsl:if test="Access/app/tracker/main">
          	            <li id="revenueLink">
            	            <a href="/app/tracker" title="Manage revenue files"><img src="/production/images/icons/office/Document-(Add)-(32x32).gif" height="32" width="32" /></a>
            	            <h3><a href="/app/tracker">Manage revenue files</a></h3>
            	            <span class="subtle">Upload sales files for catalog auto-matching.</span>
          	            </li>
                    </xsl:if>
          
                    <xsl:if test="(Access/rps/catalog/show or Access/rps/catalog/da_show)">
						<li id="catalogLink">
							<a href="/rps/catalog" title="Maintain catalog"><img src="/production/images/icons/office/Music-(Alt-2)-(32x32).gif" height="32" width="32" /></a>
							<h3><a href="/rps/catalog">Maintain catalog</a></h3>
							<span class="subtle">Maintain catalog data: meta data and licenses.</span>
						</li>
					</xsl:if>
					
					<xsl:choose>
						<xsl:when test="Access/rps/artist_payee/show and Access/rps/label_payee/show">
	          	            <li id="payeeLink">
	            	            <a href="/rps/payee" title="Update payees"><img src="/production/images/icons/office/Edit-(32x32).gif" height="32" width="32" /></a>
	            	            <h3><a href="/rps/payee">Update payees</a></h3>
	            	            <span class="subtle">Update payees: Artist/Producer, Music Publisher/Admin/Agents and Labels.</span>
	          	            </li>
	                    </xsl:when>
						<xsl:when test="Access/rps/artist_payee/show">
	          	            <li id="payeeLink">
	            	            <a href="/rps/artist_payee" title="Update payees"><img src="/production/images/icons/office/Edit-(32x32).gif" height="32" width="32" /></a>
	            	            <h3><a href="/rps/artist_payee">Update payees</a></h3>
	            	            <span class="subtle">Update payees: Artist/Producer and Music Publisher/Admin/Agents.</span>
	          	            </li>
	                    </xsl:when>
						<xsl:when test="Access/rps/label_payee/show">
	          	            <li id="payeeLink">
	            	            <a href="/rps/label_payee" title="Update payees"><img src="/production/images/icons/office/Edit-(32x32).gif" height="32" width="32" /></a>
	            	            <h3><a href="/rps/label_payee">Update payees</a></h3>
                                <span class="subtle">Update label payees.</span>
	          	            </li>
	                    </xsl:when>
                    </xsl:choose>
          
                    <xsl:choose>
	                    <xsl:when test="Access/rps/artist_contract/show and Access/rps/label_contract/show">
	          	            <li id="contractLink">
	            	            <a href="/rps/contract" title="Configure contracts"><img src="/production/images/icons/office/Script-(32x32).gif" height="32" width="32" /></a>
	            	            <h3><a href="/rps/contract">Configure contracts</a></h3>
	            	            <span class="subtle">Configure artist/producer and label contracts.</span>
	          	            </li>
            	        </xsl:when>
            	        <xsl:when test="Access/rps/artist_contract/show">
            	          	<li id="contractLink">
            	            	<a href="/rps/artist_contract" title="Configure contracts"><img src="/production/images/icons/office/Script-(32x32).gif" height="32" width="32" /></a>
            	            	<h3><a href="/rps/artist_contract">Configure contracts</a></h3>
            	            	<span class="subtle">Configure artist and producer contracts.</span>
            	          	</li>
            	        </xsl:when>
            	        <xsl:when test="Access/rps/label_contract/show">
            	          	<li id="labelContractLink">
            	            	<a href="/rps/label_contract" title="Configure contracts"><img src="/production/images/icons/office/Script-(32x32).gif" height="32" width="32" /></a>
            	            	<h3><a href="/rps/label_contract">Configure contracts</a></h3>
            	            	<span class="subtle">Configure label contracts.</span>
            	          	</li>
            	        </xsl:when>
                    </xsl:choose>


                    <xsl:if test="Access/rps/statement">
      		            <li id="statementLink">
            	            <a href="/rps/statement" title="Review royalty statements"><img src="/production/images/icons/office/Dollar-(32x32).gif" height="32" width="32" /></a>
            	            <h3><a href="/rps/statement">Review royalty statements</a></h3>       
            	            <span class="subtle">   
                                <xsl:choose>
                      	            <xsl:when test="(Access/rps/statement/show_mechanical or Access/rps/statement/show_ca_mechanical or Access/rps/statement/show_uk_mechanical) and Access/rps/statement/show_artist and Access/rps/statement/show_label">
                        	            Review and print mechanical, artist/producer and label statements.
                      	            </xsl:when>
                      	            <xsl:when test="(Access/rps/statement/show_mechanical or Access/rps/statement/show_ca_mechanical or Access/rps/statement/show_uk_mechanical) and Access/rps/statement/show_artist">
                      		            Review and print mechanical and artist/producer statements.
                      	            </xsl:when>
                      	            <xsl:when test="(Access/rps/statement/show_mechanical or Access/rps/statement/show_ca_mechanical or Access/rps/statement/show_uk_mechanical) and Access/rps/statement/show_label">
                      		            Review and print mechanical and label statements.
                      	            </xsl:when>   
                      	            <xsl:when test="Access/rps/statement/show_mechanical or Access/rps/statement/show_ca_mechanical or Access/rps/statement/show_uk_mechanical">
                      		            Review and print mechanical statements.
                      	            </xsl:when>    
                                    <xsl:when test="Access/rps/statement/show_artist and Access/rps/statement/show_label">
                      		            Review and print artist and label statements.
                      	            </xsl:when>                    	            
                      	            <xsl:when test="Access/rps/statement/show_artist">
                      		            Review and print artist statements.
                      	            </xsl:when>                  	                    	       	
                      	            <xsl:when test="Access/rps/statement/show_label">
                      		            Review and print label statements.
                      	            </xsl:when>
                                </xsl:choose>
                            </span>
                        </li>
                    </xsl:if>
          
                    <li id="adminLink">
                        <a href="/rps/display?d=config" title="Administrative options"><img src="/production/images/icons/office/Gear-(Alt-2)-(32x32).gif" height="32" width="32" /></a>
                        <h3><a href="/rps/display?d=config">Administrative options</a></h3>
                        <span class="subtle">Access options and administrative features.</span>
                    </li>
          
				</ul>
				<br class="superBreak" />
			</fieldset>
			
			<xsl:if test="Access/app/reports/m">
      	        <fieldset class="menu">
        	        <legend>Sales Analytics</legend>
        	        <ul>
          	            <li id="salesLink">
            	            <a href="/app/reports" title="Review sales data"><img src="/production/images/icons/office/Pie-Chart2-(32x32).gif" height="32" width="32" /></a>
            	            <h3><a href="/app/reports">Review sales data</a></h3>
            	            <span class="subtle">Review current and historical sales data.</span>
          	            </li>
					</ul>
				</fieldset>
			</xsl:if>
            <br /><br />
        </div>
        
    </xsl:template>


</xsl:stylesheet>
