﻿<?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:import href="ManagerControl.xslt"/>
    <xsl:import href="EmployeeControl.xslt"/>

    <xsl:output method="xml" indent="yes"/>

    <xsl:template match="/">
        <xsl:variable name="ItemID" select="AjaxRequest/Params/ItemID"></xsl:variable>
		<xsl:variable name="DivID" select="AjaxRequest/Params/DivID"></xsl:variable>
        <xsl:variable name="TemplateURL" select="AjaxRequest/TemplateURL"></xsl:variable>


        <table class="tableMaster">
            <tr>

                <td width="30%" class="verticallyMiddle">
                    <xsl:call-template name="AddManagerRelationshipControl">
                        <xsl:with-param name="ItemID" select="$ItemID"></xsl:with-param>
                        <xsl:with-param name="Origin">
                            <xsl:text>ManagerAutoSuggest</xsl:text>
                        </xsl:with-param>
                    </xsl:call-template>
                </td>
                <td width="20%" class="verticallyMiddle textCenter">
                    <span class="packageTitle">Is a Manager/Coach For:</span>
                </td>

                <td  class="verticallyMiddle">
                    <xsl:call-template name="AddEmployeeRelationshipControl">
                        <xsl:with-param name="ItemID" select="$ItemID"></xsl:with-param>
                        <xsl:with-param name="Origin">
                            <xsl:text>EmployeeAutoSuggest</xsl:text>
                        </xsl:with-param>
                    </xsl:call-template>
                </td>
            </tr>
            <tr>
                <td>
                    <div>
                        <div class="verticallyMiddle onMouseOver divBrowseGradient spanBrowseGradientTextGray marginTop15" style="width:80px;line-height:25px;float:left;"
                            onmouseover="document.getElementById('img_Add1').src='{$TemplateURL}Web/Images/Ver_2_0/icon_add_over.png';"
                            onmouseout="document.getElementById('img_Add1').src='{$TemplateURL}Web/Images/Ver_2_0/icon_Add.png';"
                            onClick="CreateNewManagerEmployeeRelationship('{$DivID}','{$ItemID}');">
                            <img id="img_Add1" src="{$TemplateURL}Web/Images/Ver_2_0/icon_Add.png" align="absmiddle" style="padding-left:8px;" class="marginRight5"></img>
                            <span id="span_Cancel">ADD</span>
                        </div>
                        <div class="verticallyMiddle onMouseOver divBrowseGradient spanBrowseGradientTextGray marginTop15" style="width:80px;line-height:25px;float:right;"
                         onmouseover="document.getElementById('img_Cancel').src='{$TemplateURL}Web/Images/Ver_2_0/icon_add_over.png';"
                         onmouseout="document.getElementById('img_Cancel').src='{$TemplateURL}Web/Images/Ver_2_0/icon_Add.png';"
                         onClick="return portal_LoadManagerRelationships('{$DivID}','{$ItemID}');">
                            <img id="img_Cancel" src="{$TemplateURL}Web/Images/Ver_2_0/icon_Add.png" align="absmiddle" style="padding-left:8px;" class="marginRight5"></img>
                            <span id="span_Cancel">Cancel</span>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </xsl:template>
</xsl:stylesheet>
