﻿<?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="yes"/>

	<xsl:template match="/">

		<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/Params/firstName)"/>
		<xsl:variable name="LastName" select="normalize-space(AjaxRequest/Params/lastName)"/>
		<xsl:variable name="Phone" select="normalize-space(AjaxRequest/Params/Phone)"/>
		<xsl:variable name="RequestTime" select="AjaxRequest/Time"/>
		<xsl:variable name="Email" select="normalize-space(AjaxRequest/Params/Email)"/>
		<xsl:variable name="RequestHelpStatement" select="AjaxRequest/Params/Comment"/>
		<xsl:variable name="IsSecureConnection" select="AjaxRequest/IsSecureConnection"/>
		<xsl:variable name="source" select="normalize-space(AjaxRequest/Params/source)"/>
		<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>User:&#xa0;</b>
										<xsl:value-of select="$FirstName "/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="$LastName "/>

									</span>
								</td>
							</tr>
							<tr>
								<td>
									<span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
										<b>Source:&#xa0;</b>
										<xsl:value-of select="$source "/>
									</span>
								</td>
							</tr>
							
							<tr>
								<td>
									<span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
										<b>Phone:&#xa0;</b>
										<xsl:value-of select="$Phone"/>
									</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="$RequestTime"/>
									</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>
