﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="xml" indent="yes"/>

    <xsl:template name="CoachWizardButtons">
        <xsl:param name="TemplatePathURL" select="'N/A'"></xsl:param>
        <xsl:param name="Source" select="'N/A'"></xsl:param>
        <xsl:param name="HostName" select="'N/A'"></xsl:param>
        <xsl:param name="BrandID" select="'N/A'"></xsl:param>
        <xsl:param name="IsCommunityAdmin" select="'N/A'"></xsl:param>
        <xsl:param name="PromoteKey" select="'N/A'"></xsl:param>


        <table class="tableMaster" cellpadding="10" cellspacing="0">
            <tr>
                <td>
                    <xsl:if test="$Source = 'CreateCoach'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/aboutus.png"
                                         title="Coach_selected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/CreateCoach.aspx?ID={$BrandID}">                                    
                                    <img src="{$TemplatePathURL}Web/Images/aboutus.png"
                                         title="Coach_selected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                    <xsl:if test="$Source != 'CreateCoach'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/aboutus_grey.png"
                                         title="Coach_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>                               
                                <a href="http://{$HostName}/CreateCoach.aspx?ID={$BrandID}">
                                    <img src="{$TemplatePathURL}Web/Images/aboutus_grey.png"
                                         title="Coach_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                </td>
                <td align="left">
                    <xsl:if test="$Source = 'MyServices'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/myservices.png"
                                         title="MyServices_Selected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/CoachServices.aspx?ID={$BrandID}">
                                    <img src="{$TemplatePathURL}Web/Images/myservices.png"
                                         title="MyServices_Selected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                    <xsl:if test="$Source != 'MyServices'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/myservices_grey.png"
                                         title="MyServices_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/CoachServices.aspx?ID={$BrandID}">                                    
                                    <img src="{$TemplatePathURL}Web/Images/myservices_grey.png"
                                         title="MyServices_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                </td>
                <td align="left">
                    <xsl:if test="$Source = 'MyImage'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">                                
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/myimage.png"
                                         title="MyImage_Selected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/CoachProfile.aspx?ID={$BrandID}">
                                    <img src="{$TemplatePathURL}Web/Images/myimage.png"
                                         title="MyImage_Selected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                    <xsl:if test="$Source != 'MyImage'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/myimage_grey.png"
                                         title="MyImage_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/CoachProfile.aspx?ID={$BrandID}">
                                    <img src="{$TemplatePathURL}Web/Images/myimage_grey.png"
                                         title="MyImage_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                </td>
                <td align="left">
                    <xsl:if test="$Source = 'ViewProfile'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/Customize_Selected.png"
                                         title="Customize_Selected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/{$PromoteKey}">
                                    <img src="{$TemplatePathURL}Web/Images/Customize_Selected.png"
                                         title="Customize_Selected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                    <xsl:if test="$Source != 'ViewProfile'">
                        <xsl:choose>
                            <xsl:when test="$BrandID &lt;= 0">
                                <a href="#">
                                    <img src="{$TemplatePathURL}Web/Images/Customize_Unselected.png"
                                         title="Customize_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:when>
                            <xsl:otherwise>
                                <a href="http://{$HostName}/{$PromoteKey}">
                                    <img src="{$TemplatePathURL}Web/Images/Customize_Unselected.png"
                                         title="Customize_Unselected" BORDER="0"></img>
                                </a>
                            </xsl:otherwise>
                        </xsl:choose>
                    </xsl:if>
                </td>
                <td width="100%"></td>
            </tr>
        </table>
    </xsl:template>
</xsl:stylesheet>
