﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:import href="BrandOverViewContent.xslt"/>
    <!--<xsl:import href="BrandOverViewServices.xslt"/>
    <xsl:import href="BrandOverViewImage.xslt"/>-->

    <xsl:template match="/">
        <xsl:variable name ="BrandID" select="normalize-space(Brand/BrandID)"></xsl:variable>
        <xsl:variable name ="SelectedBrandTabID" select="normalize-space(Brand/SelectedBrandTabID)"></xsl:variable>
        <xsl:variable name="IsAuthenticated" select="normalize-space(Brand/IsAuthenticated)"></xsl:variable>
        <xsl:variable name="UserPermission" select="normalize-space(Brand/UserPermission)"></xsl:variable>
        <xsl:variable name="BrandTabType" select="normalize-space(Brand/TabTypeID)"></xsl:variable>
        <xsl:variable name="IsCommunityAdmin" select="normalize-space(Brand/IsCommunityAdmin)"></xsl:variable>
        <xsl:variable name="RoleName" select="normalize-space(Brand/UserRoles/Role/RoleName)"/>
        <xsl:variable name ="HeaderHTML" select="normalize-space(Brand/HeaderHTML)"></xsl:variable>
        <xsl:variable name ="FooterHTML" select="normalize-space(Brand/FooterHTML)"></xsl:variable>
        <xsl:if test ="$BrandTabType = 3">
            <div id="divHeaderHTMLContainer" style="margin:15px;">
                <xsl:value-of select ="$HeaderHTML" disable-output-escaping ="yes"/>
            </div>
        </xsl:if>
        <div id='divSelectedTab' style='margin:15px;' class='borderStanderd brandHeaderBorder'>
            <table cellpadding="0" cellspacing="0" width="100%" style="padding-left:10px;padding-right:10px;padding-top:2px;padding-bottom:2px;background-color:White;">
                <tr>
                    <td>
                        <div id="divBrandOverViewContent" width="790px;">
                            <xsl:call-template name="BrandOverViewContent">
                                <xsl:with-param name="BrandID" select="$BrandID"></xsl:with-param>
                                <xsl:with-param name="SelectedBrandTabID" select="$SelectedBrandTabID"></xsl:with-param>
                                <xsl:with-param name="BrandProfileSectionID" select="Brand/BrandProfileSectionID"></xsl:with-param>
                                <xsl:with-param name="SectionTitle" select="Brand/SectionTitle"></xsl:with-param>
                                <xsl:with-param name="SectionHTML" select="Brand/SectionHTML"></xsl:with-param>
                                <xsl:with-param name="SectionSummary" select="Brand/SectionSummary"></xsl:with-param>
                                <xsl:with-param name="IsAuthenticated" select="$IsAuthenticated"></xsl:with-param>
                                <xsl:with-param name="TimeStamp" select="Brand/TimeStamp"></xsl:with-param>
                                <xsl:with-param name="UserPermission" select="$UserPermission"></xsl:with-param>
                                <xsl:with-param name="BrandTabType" select="$BrandTabType"></xsl:with-param>
                                <xsl:with-param name="IsCommunityAdmin" select="$IsCommunityAdmin"></xsl:with-param>
                                <xsl:with-param name="RoleName" select="$RoleName"></xsl:with-param>
                            </xsl:call-template>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <xsl:if test ="$BrandTabType = 3">
            <div id="divFooterHTMLContainer" style="margin:15px;">
                <xsl:value-of select ="$FooterHTML" disable-output-escaping ="yes"/>
            </div>
        </xsl:if>

        <!--<td width="150px">
                    <div id="divImg" style="text-align: left;">
                        <xsl:call-template name="BrandOverViewImage">
                            <xsl:with-param name="BrandID" select="$BrandID"></xsl:with-param>
                            <xsl:with-param name="BrandPanelImageURL" select="Brand/BrandPanelImageURL"></xsl:with-param>
                            <xsl:with-param name="IsAuthenticated" select="$IsAuthenticated"></xsl:with-param>
                            <xsl:with-param name="UserPermission" select="$UserPermission"></xsl:with-param>
                        </xsl:call-template>
                    </div>
                    <div id="divAddress" style="margin-top:15px;">
                        <div>
                            <span class="labelSize14">
                                <xsl:value-of select="Brand/CompanyName"/>
                            </span>
                        </div>
                        <xsl:if test="normalize-space(Brand/Address1) != ''">
                            <div>
                                <span class="labelSize11">
                                    <xsl:value-of select="Brand/Address1"/>
                                </span>
                            </div>
                        </xsl:if>
                        <div>
                            <span class="labelSize11">
                                <xsl:if test="normalize-space(Brand/City) != ''">
                                    <xsl:value-of select="Brand/City"/>,
                                </xsl:if>
                                <xsl:if test="normalize-space(Brand/State) != ''">
                                    &#xa0;<xsl:value-of select ="Brand/State"/>
                                </xsl:if>
                                <xsl:if test="normalize-space(Brand/PostalCode) != ''">
                                    &#xa0;<xsl:value-of select ="Brand/PostalCode"/>
                                </xsl:if>
                            </span>
                        </div>
                        <xsl:if test="normalize-space(Brand/Phone) != ''">
                            <div>
                                <span class="labelSize11">
                                    Phone - <xsl:value-of select="Brand/Phone"/>
                                </span>
                            </div>
                        </xsl:if>
                    </div>
                    
         <div id="divAddress" style="margin-top:15px;">
                        <div>
                            <span class="labelSize14">
                                <xsl:value-of select="Brand/CompanyName"/>
                            </span>
                        </div>
                        <xsl:if test="normalize-space(Brand/Address1) != ''">
                            <div>
                                <span class="labelSize11">
                                    <xsl:value-of select="Brand/Address1"/>
                                </span>
                            </div>
                        </xsl:if>
                        <div>
                            <span class="labelSize11">
                                <xsl:if test="normalize-space(Brand/City) != ''">
                                    <xsl:value-of select="Brand/City"/>,
                                </xsl:if>&#xa0;<xsl:value-of select ="Brand/State"/>&#xa0;<xsl:value-of select ="Brand/PostalCode"/>
                            </span>
                        </div>
                        <xsl:if test="normalize-space(Brand/Phone) != ''">
                            <div>
                                <span class="labelSize11">
                                    Phone - <xsl:value-of select="Brand/Phone"/>
                                </span>
                            </div>
                        </xsl:if>
                    </div>
         
                    <div id="divServices" style="margin-top:15px;">
                        <xsl:call-template name="BrandOverViewServices">
                            <xsl:with-param name="BrandID" select="$BrandID"></xsl:with-param>
                            <xsl:with-param name="BrandPanelSummaryHTML" select="Brand/BrandPanelSummaryHTML"></xsl:with-param>
                            <xsl:with-param name="IsAuthenticated" select="$IsAuthenticated"></xsl:with-param>
                            <xsl:with-param name="TimeStamp" select="Brand/TimeStamp"></xsl:with-param>
                            <xsl:with-param name="UserPermission" select="$UserPermission"></xsl:with-param>
                        </xsl:call-template>
                    </div>
                </td>
                <td width="15px"></td>
                <td width="625px">-->
    </xsl:template>
</xsl:stylesheet>
