﻿<?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="ItemID" select="normalize-space(AjaxRequest/Params/PortalItemID)" />
        
        <div id="divClientPortalOperations_Container" style="display:block;margin-bottom:25px;">
            <div id="divClientPortalOperations_Patients">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <div id="div_PatientAccounts"></div>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="marginTop20">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <div id="div_PatientList"></div>
                        </td>
                    </tr>
                </table>
            </div>

            <script language="javascript" type="text/javascript">
                Portal_getPTPatientAccounts("div_PatientAccounts", "<xsl:value-of select="$ItemID"/>");
            </script>

            <script language="javascript" type="text/javascript">
                LoadPatientListXML('div_PatientList','<xsl:value-of select="$ItemID"/>',10,1);
            </script>
        </div>
    </xsl:template>
</xsl:stylesheet>
