﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template name="Tab_WhatsNew">
        <xsl:param name="MenuDisplayStyle" select="'N/A'"/>
        <xsl:param name="ItemID" select="'N/A'" />
        <xsl:param name="TargetDiv">
            <xsl:text>divDashBoard_Content</xsl:text>
        </xsl:param>

        <div id="div_WhatsNew_Menu"
                         style="float:left; 
                            background-color: white;
                            border: 2px solid #385D8A;
                            margin:4px 4px 4px 0px; 
                            width:130px;
                            height:25px;
                            text-align:center;
                            display:{$MenuDisplayStyle}"
                         onClick='return GetItemNotifications("{$TargetDiv}","{$ItemID}")'
                         class="link">
            <span class="labelHeader">
                Track It
            </span>
        </div>
    </xsl:template>

    <xsl:template name="Tab_DreamIt">
        <xsl:param name="MenuDisplayStyle" select="'N/A'"/>
        <xsl:param name="ItemID" select="'N/A'" />

        <div id="div_DreamIt_Menu"
                         style="float:left; 
                            background-color: white;
                            border: 2px solid #385D8A;
                            margin:4px 4px 4px 0px; 
                            width:130px;
                            height:25px;
                            text-align:center;
                            display:{$MenuDisplayStyle}"
                         onClick='return GetDreamIT("divDashBoard_Content","{$ItemID}")'
                         class="link">
            <span class="labelHeader">
                Dream It
            </span>
        </div>
    </xsl:template>

    <xsl:template name="Tab_DoIt">
        <xsl:param name="MenuDisplayStyle" select="'N/A'"/>
        <xsl:param name="ItemID" select="'N/A'" />
        <xsl:param name ="Version" select="'N/A'"/>
        <xsl:param name ="OrderBy" select="'N/A'"/>
        <!--<xsl:with-param name="OrderBy" select="$OrderBy" />-->

        <xsl:variable name ="DoItOnClickHandler">
            <xsl:choose>
                <xsl:when test ="$Version = '1.1' or $Version = '1.2'">
                    return GetDoITData("divDashBoard_Content","<xsl:value-of select="$ItemID"></xsl:value-of>","Item","<xsl:value-of select="$Version"></xsl:value-of>",
                    "-1");
                </xsl:when>
                <xsl:otherwise>
                    return GetItemReport("divDashBoard_Content","<xsl:value-of select="$ItemID"></xsl:value-of>");
                </xsl:otherwise>
            </xsl:choose>
        </xsl:variable>

        <div id="div_DoIt_Menu"
                         style="float:left; 
                            background-color: white;
                            border: 2px solid #385D8A;
                            margin:4px 4px 4px 0px; 
                            width:130px;
                            height:25px;
                            text-align:center;
                            display:{$MenuDisplayStyle}"
                         onClick='{$DoItOnClickHandler}'
                         class="link">
            <span class="labelHeader">
                Do It
            </span>
        </div>
    </xsl:template>

    <xsl:template name="Tab_PlanIt">
        <xsl:param name="MenuDisplayStyle" select="'N/A'"/>
        <xsl:param name="ItemID" select="'N/A'" />

        <div id="div_PlanIt_Menu"
                         style="float:left; 
                            background-color: white;
                            border: 2px solid #385D8A;
                            margin:4px 4px 4px 0px; 
                            width:130px;
                            height:25px;
                            text-align:center;
                            display:{$MenuDisplayStyle}"
                             onClick='return Dashboard_GetPlanItAllGoals("divDashBoard_Content","0","{$ItemID}")'
                         class="link">
            <span class="labelHeader">
                Plan It
            </span>
        </div>
    </xsl:template>

    <xsl:template name="Tab_GoalDetail">
        <xsl:param name="MenuDisplayStyle" select="'N/A'"/>
        <xsl:param name="ItemID" select="'N/A'" />
        <xsl:param name="Version" select="'N/A'"/>

        <div id="div_GoalDetail_Menu"
                         style="float:left; 
                            background-color: white;
                            border: 2px solid #385D8A;
                            margin:4px 4px 4px 0px; 
                            width:130px;
                            height:25px;
                            text-align:center;
                            display:{$MenuDisplayStyle}"
                         onClick='goal_LoadGoalVersion("divGoalDetail_Content", "{$ItemID}", "{$Version}", "3","0");'
                         class="link">
            <span class="labelHeader">
                Goal Detail
            </span>
        </div>
    </xsl:template>

</xsl:stylesheet>
