<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Tagprefix="Persons" TagName="ThemeButton" Src="../Shared/ThemeButton.ascx" %>

<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="SignIn.aspx.vb" Culture="th-TH" MasterPageFile="~/Master Pages/HorizontalMenu.master" Inherits="Persons.UI.SignIn" %>
<%@ Register Tagprefix="Selectors" Namespace="Persons" %>

<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %><asp:Content id="Content" ContentPlaceHolderID="PageContent" runat="server">
    <a id="StartOfPageContent"></a>
          <table class="dv" cellpadding="0" cellspacing="0" border="0"><tr><td class="dh"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="dhel"><img src="../Images/space.gif" alt="" /></td><td class="dheci" valign="middle"><asp:CollapsiblePanelExtender id="SignInCPExtender" runat="server" TargetControlid="SignInCollapsibleRegion" ExpandControlID="SignInToggleIcon" CollapseControlID="SignInToggleIcon" ImageControlID="SignInToggleIcon" ExpandedImage="../images/icon_panelcollapse.gif" CollapsedImage="../images/icon_panelexpand.gif" SuppressPostBack="true" />                        <asp:ImageButton id="SignInToggleIcon" runat="server" ToolTip="<%# GetResourceValue(&quot;Btn:ExpandCollapse&quot;, &quot;Persons&quot;) %>" causesvalidation="False" imageurl="../images/icon_panelcollapse.gif" />
            </td><td class="dhb"><table cellpadding="0" cellspacing="0" border="0"><tr><td class="dht" valign="middle"><asp:Literal runat="server" id="DialogTitle" Text="&lt;%# GetResourceValue(&quot;Txt:SignIn&quot;, &quot;Persons&quot;) %>">	</asp:Literal></td></tr></table>
</td><td class="dher"><img src="../Images/space.gif" alt="" /></td></tr></table>
</td></tr><tr><td class="dBody"><%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControlRecursively("OKButton")) %><asp:panel id="SignInCollapsibleRegion" runat="server"><table cellpadding="0" cellspacing="0" border="0" width="325"><tr><td style="padding-left:8px; padding-right:8px; padding-top:4px"><table cellpadding="1" cellspacing="1" border="0"><tr><td colspan="4" style="height: 5px;"></td></tr><tr><td colspan="4"><asp:Label runat="server" id="LoginMessage">	</asp:Label></td></tr><tr><td colspan="4" style="height: 5px;"></td></tr><tr><td colspan="4" style="text-align: center; padding: 20px;">    <p>This application uses Single Sign-On (SSO) authentication through ADFS.</p>
    <p>Click the button below to authenticate with your organizational credentials.</p>
    
    <!-- Hidden controls to maintain compatibility with existing framework -->
    <asp:TextBox runat="server" id="UserName" style="display:none;">	</asp:TextBox>
    <asp:TextBox runat="server" id="Password" style="display:none;" textmode="Password">	</asp:TextBox>
    <asp:CheckBox runat="server" id="RememberUserName" style="display:none;">	</asp:CheckBox>
    <asp:CheckBox runat="server" id="RememberPassword" style="display:none;">	</asp:CheckBox>
    <asp:CheckBox runat="server" id="AutomaticallySignIn" style="display:none;">	</asp:CheckBox>
    <asp:Label runat="server" id="UserNameLabel" style="display:none;">	</asp:Label>
    <asp:Label runat="server" id="PasswordLabel" style="display:none;">	</asp:Label>
    <asp:Label runat="server" id="RememberUserNameLabel" style="display:none;">	</asp:Label>
    <asp:Label runat="server" id="RememberPasswordLabel" style="display:none;">	</asp:Label>
    <asp:Label runat="server" id="AutomaticallySignInLabel" style="display:none;">	</asp:Label>
    <asp:Label runat="server" id="PasswordMessage" style="display:none;">	</asp:Label>
    <asp:LinkButton runat="server" id="EmailLinkButton" style="display:none;">	</asp:LinkButton>
</td></tr><tr><td colspan="4" style="height: 5px;"></td></tr></table>
</td></tr><tr><td><table cellpadding="0" cellspacing="0" border="0" style="padding-top:10px; padding-bottom:5px;" align="center"><tr><td>                <Persons:ThemeButton runat="server" id="OKButton" button-causesvalidation="False" button-commandname="Login" button-text="Login with ADFS" button-tooltip="Login with ADFS Single Sign-On"></Persons:ThemeButton></td><td><Persons:ThemeButton runat="server" id="CancelButton" button-causesvalidation="False" button-commandname="Redirect" button-text="&lt;%# GetResourceValue(&quot;Btn:Cancel&quot;, &quot;Persons&quot;) %>" button-tooltip="&lt;%# GetResourceValue(&quot;Btn:Cancel&quot;, &quot;Persons&quot;) %>"></Persons:ThemeButton></td></tr></table>
</td></tr></table></asp:panel>
<%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControlRecursively("OKButton")) %></td></tr></table><div id="detailPopup" class="detailRolloverPopup" onmouseout="detailRolloverPopupClose();" onmouseover="clearTimeout(gPopupTimer);"></div>          
        <asp:ValidationSummary id="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" runat="server"></asp:ValidationSummary>
    </asp:Content>
          