﻿<?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 match="/">
        <xsl:variable name="ManagerClientsXML" select="AjaxRequest/ManagerClientXML/."></xsl:variable>
        <xsl:variable name="PortalItemID" select="AjaxRequest/Params/PortalItemID"></xsl:variable>

        <table clss="tableMaster" cellspacing="2" cellpadding="2">
            <tr>
                <td class="verticallyMiddle">
                    <span class="labelGoalTitle marginRight10">Select Team Member:</span>
                </td>
                <td class="verticallyMiddle">
                    <select id="opt_TeamMember" style="width:200px;height:20px;"
                            onchange="LoadClientProfileOnDashboard('opt_TeamMember', '{$PortalItemID}','div_ClientProfile');">
                        <option>-Select-</option>
                        <xsl:for-each select="$ManagerClientsXML/ManagerClients">
                            <option value="{EmployeeUserID}" PortalItemID="{PortalItemID}">
                                <xsl:value-of select="ClientName"/> - <xsl:value-of select="PortalName"/>
                            </option>
                        </xsl:for-each>
                    </select>
                </td>
            </tr>
        </table>

        <div id="div_ClientProfile" style="display:none;margin-top:10px;"></div>
    </xsl:template>
</xsl:stylesheet>
