<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Confirmation.aspx.cs" Inherits="WebSite.Custom.Confirmation" ValidateRequest="false" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Confirmation</title>
    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }

    hr {
	        border-bottom: 1px solid #e99f1a;
	        height: 1px; }
	            
	    .borderRight
        {
	        border-right: #e99f1a 1pt solid; 
        }
    </style> 
    
    

 
    <link href="../style/eMain.css" rel="stylesheet" type="text/css" />   
    <link href="../style/Grid.Web20.css" rel="stylesheet" type="text/css" />   
    <link href="../style/eMain_print.css" rel="stylesheet" type="text/css" media="print" />
    <link rel="shortcut icon" href="../images/esecuritel.ico" />
    
    

    <script type="text/javascript" language="javascript">
         
    </script>    
         
   
    <script type="text/javascript">

    function postwith (to,p) 
        {
            var myForm = document.createElement("form");
            myForm.method="post" ;
            myForm.action = to ;
            for (var k in p) 
            {
                var myInput = document.createElement("input") ;
                myInput.setAttribute("name", k) ;
                myInput.setAttribute("value", p[k]);
                myForm.appendChild(myInput) ;
            }
            document.body.appendChild(myForm) ;
            myForm.submit() ;
            document.body.removeChild(myForm) ;
        }
        function postBack() 
        {
            <%= Page.ClientScript.GetPostBackEventReference(this, "") %>
        }

        function preventBack()
        {
            window.history.forward();
        }

        setTimeout("preventBack()", 0);

        window.onunload=function(){null};
        
        function postBackReceipt() 
        {
            //aspnetForm.target ='_blank';

            <%= Page.ClientScript.GetPostBackEventReference(this, "") %>
        }
        
        function postBackConfirmation() 
        {
            <%= Page.ClientScript.GetPostBackEventReference(this, "") %>
        }
        
        
    </script>
</head>
<body >
    <asp:PlaceHolder runat="server">
        <script src="<%=ResolveClientUrl("~/script/eMain.js")%>" type="text/javascript"></script>  
        <script src="<%=ResolveClientUrl("~/script/Core.js")%>" type="text/javascript"></script>  
        <script src="<%=ResolveClientUrl("~/script/yui/yahoo/yahoo.js")%>" type="text/javascript"></script>  
        <script src="<%=ResolveClientUrl("~/script/yui/dom/dom.js")%>" type="text/javascript"></script> 
        <script src="<%=ResolveClientUrl("~/script/jquery-1.8.3.js")%>" type="text/javascript"></script>  
        <script src="<%=ResolveClientUrl("~/script/globalize.js")%>" type="text/javascript"></script>  
        <script src="<%=ResolveClientUrl("~/script/cultures/globalize.cultures.js")%>" type="text/javascript"></script> 
    </asp:PlaceHolder>
     
    <form id="form1" runat="server" style="height:100%"  >
    
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnablePageMethods="true" />
    
    
    <div id="wrapper" style="height:100%">
    <div id="content" style="background-color: #fff">
    <div style="text-align:left">
        <eSecuritelHITSControls:DefaultTitle runat="server" ID="DefaultTile">
        </eSecuritelHITSControls:DefaultTitle>
        
    </div>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/script/eSetFormControls.js" />
            <asp:ScriptReference Path="~/script/eGridHelper.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <eSecuritelHITSControls:ScriptingHelper runat="server" ID="ScriptHelper"></eSecuritelHITSControls:ScriptingHelper>

        <div style="font-size:1.1em;background-color: #DBDCDE;margin-bottom: 15px;margin-top: 5px;padding: 10px;">
        <asp:HiddenField ID="XMLData" runat="server" />
        <asp:HiddenField ID="PostToType" runat="server" />
        <asp:HiddenField ID="EnrollmentPageType" runat="server" />
	    <asp:HiddenField ID="txtPrintReceipt" runat="server" />
        <asp:HiddenField ID="UpdateCCInfo" runat="server" />
        
        <div style="text-align:left">
        <asp:Label ID="lblConfirmationIntro" runat="server" Text ="<%$ Resources: SubscriberManagement, ConfirmationMessage %>"></asp:Label>
        </div>
        <asp:Repeater ID="rptEnrollmentConfirmation" runat="server" OnItemDataBound="rptEnrollmentConfirmation_DataBound">
            <ItemTemplate>
                <table width="60%" style="margin-bottom: 25px;margin-top: 25px;padding: 20px;">
                    <tr>
                        <td style="text-align:left">
                            <asp:Label ID="lblCCNumber" runat="server" Font-Underline="true"></asp:Label>
                            <asp:Literal ID="ltlCCNumberHidden" runat="server" Visible="false"></asp:Literal>
                            <asp:Label ID="lblErrorMessage" runat="server" ForeColor="Red" Visible="false"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left">
                            <table width="80%">
                                <asp:Repeater ID="rptCreditCards" runat="server" OnItemDataBound="rptCreditCards_DataBound">
                                    <ItemTemplate>
                        
                                            <tr style="text-align:left">
                                                <td>
                                                    <asp:Literal ID="ltlMDN" runat="server"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblEnrolledFailed" runat="server" ForeColor="LightGreen"></asp:Label>
                                                    
                                                </td>
                                                <td>
                                                    <asp:Literal ID="ltlMonthlyPremium" runat="server" Visible="false"></asp:Literal>
                                                    <asp:LinkButton ID="lbDeleteHandset" runat="server" Text="<%$ Resources: SubscriberManagement, DeleteHandset %>" OnCommand="lbDeleteHandset_Command"></asp:LinkButton>
                                                </td>
                                                
                                            </tr>
                        
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbUpdateCreditCard" Text="<%$ Resources: SubscriberManagement, UpdateCreditCardNewEnrollment %>" runat="server" OnCommand="lbUpdateCreditCard_Command"></asp:LinkButton>
                            <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="mpeCreditCard" TargetControlID="lbUpdateCreditCard"
                                                    PopupControlID="pnlUpdateCreditCard" BackgroundCssClass="modalBackground" 
                                                    PopupDragHandleControlID="pnlCreditCardHeader" CancelControlID="imgClose" />
                            <asp:Panel ID="pnlUpdateCreditCard" runat="server" Style="display: none; width: 660px;">
    <asp:Panel ID="pnlCreditCardHeader" runat="server" EnableViewState="false" CssClass="modalHeader">
        <table cellpadding="0" cellspacing="0" width="98%; margin: 0px;">
            <tr>
                <td style="margin: 0px; padding: 2px;">
                    <asp:Label ID="lblHeader" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, UpdateCreditCardInformationLabel %>" />
                </td>
                <td align="right" style="margin: 0px; padding: 2px;">
                    <asp:ImageButton ID="imgClose" runat="server" CssClass="modalClose" Height="18px"
                        ImageUrl="~/images/closeButton.png" ToolTip="<%$ Resources: Default, ToolTipClose %>" Width="18px" />
                </td>
            </tr>
        </table>
    </asp:Panel>
  </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left">
                        <asp:Label ID="lblChargeInfo" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:Repeater>
        
        
    </div>
    <div style="text-align:left">
        <asp:Button ID="btnReceipt" runat="server" Text="<%$ Resources: SubscriberManagement, ReceiptLabel %>" OnClick="btnReceipt_Click" />
    </div>
    </div>
    </div>
    
    </form>
</body>


</html>
