﻿<?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="../GenericTemplates/Notes_LineBreak.xslt"/>
    
    <xsl:output method="xml" indent="no"/>
    
    <xsl:template match="/">
        <xsl:variable name="ItemID" select="normalize-space(AjaxRequest/LearnMore/Item/ItemID)" />
        <xsl:variable name="Item" select="normalize-space(AjaxRequest/LearnMore/Item/Item)" />
        <xsl:variable name="HostName" select="normalize-space(AjaxRequest/HostName)"/>
        <xsl:variable name="TemplateURL" select="normalize-space(AjaxRequest/TemplateURL)"/>
        <xsl:variable name="FirstName" select="normalize-space(AjaxRequest/LearnMore/FirstName)"/>
        <xsl:variable name="LastName" select="normalize-space(AjaxRequest/LearnMore/LastName)"/>
        <xsl:variable name="DisplayName" select="normalize-space(AjaxRequest/LearnMore/DisplayName)"/>
        <xsl:variable name="Email" select="normalize-space(AjaxRequest/LearnMore/Email)"/>
        <xsl:variable name="RequestDate" select="normalize-space(AjaxRequest/LearnMore/RequestedDate)"/>
        <xsl:variable name="RequestHelpStatement" select="AjaxRequest/Params/RequestHelpStatement"/>
        <xsl:variable name="IsSecureConnection" select="AjaxRequest/IsSecureConnection"/>

        <xsl:variable name="Protocol">
            <xsl:choose>
                <xsl:when test="$IsSecureConnection = 1">
                    <xsl:text>https://</xsl:text>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:text>http://</xsl:text>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:variable>

        <html>
            <head>
            </head>
            <body>
                <div id="divEmailDigest_Container" style="margin-left:3%;z-index: 1; background-color: #FFFFFF;">
                    <div style="padding-top: 10px; margin-bottom: 20px;">
                        <table  cellpadding="5" border="0" cellspacing="5">
                            <tr>
                                <td>
                                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <b>Program:&#xa0;</b>
                                        <a href="{$Protocol}{$HostName}/Goal.aspx?ID={$ItemID}" target="_blank" 
                                           style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; 
                                           font-weight:bold; color: #003366; cursor: pointer;">
                                            <xsl:value-of select ="$Item"/>
                                        </a>
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <b>User:&#xa0;</b>
                                        <xsl:value-of select ="$DisplayName"/>
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <b>Email:&#xa0;</b>
                                        <xsl:value-of select ="$Email"/>
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <b>Request Date:&#xa0;</b>
                                        <xsl:value-of select ="$RequestDate"/>
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <xsl:call-template name="break">
                                            <xsl:with-param name="text" select="$RequestHelpStatement" />
                                        </xsl:call-template>
                                    </span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </body>
        </html>
    </xsl:template>

</xsl:stylesheet>

