<%@ page language="C#" autoeventwireup="true" inherits="RealTime, App_Web_realtime.aspx.b1e99372" enableEventValidation="false" %>

<%@ Register Src="~/UserControls/ucOnline.ascx" TagName="iERPLift" TagPrefix="iERPLift" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>
    
    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <script type="text/javascript" language="javascript">
        function resizeObject() {

            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;
            //window.resizeTo(w, h);
            var cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 50) + "px";
            }

        }


        function validateRecord() {
            var doc = document.forms[0];

            return true;
        }

        function validateSave() {
            var doc = document.forms[0];

            return true;
        }


        function ShowPnlEdit() {
            var cObj = document.getElementById("divEdit");
            if (cObj != null) {
                cObj.style.visibility = "visible";
                cObj.style.display = "block";
            }
        }
        function HidePnlEdit() {
            var cObj = document.getElementById("divEdit");
            if (cObj != null) {
                cObj.style.visibility = "hidden";
                cObj.style.display = "none";
            }
        }
        

    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);">
    <form id="Form1" runat="server" class="tablefont">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="real-time-summary-bg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <table style="width: 100%; table-layout: fixed;">
                        <tr>
                            <td class="headerbg" align="center" style="border-style: none; height: 26px; width: 100%;
                                position: absolute; left: 1px; top: 8px;">
                                <asp:Label ID="lblCaption" runat="server" Text="Real Time Summary" Width="100%" Font-Bold="true"
                                    Font-Names="Tahoma" ForeColor="AntiqueWhite" Font-Size="Medium"></asp:Label>
                            </td>
                        </tr>
                        <tr height="40px">
                            <td>
                                &nbsp
                            </td>
                        </tr>
                    </table>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" Value="" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnLoginComments" runat="server" Value="" />
                            <asp:Timer ID="tmrOnline" runat="server" Interval="1000" Enabled="true" OnTick="tmrOnline_Tick">
                            </asp:Timer>
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                                <table width="100%" style="vertical-align: top;" align="left" cellpadding="1" cellspacing="0"
                                    border="0">
                                    <tr>
                                        <td class="real-time-summary-bg">
                                            <asp:DataList ID="DLOnline" runat="server" RepeatColumns="1" RepeatDirection="Horizontal"
                                                BorderWidth="5px" HorizontalAlign="Left" BorderStyle="None" CellPadding="1" CellSpacing="10">
                                                <SeparatorStyle HorizontalAlign="Left" BorderColor="Black" BorderStyle="Solid" />
                                                <HeaderStyle Wrap="True" />
                                                <ItemTemplate>
                                                    <iERPLift:iERPLift ID="iERPLift1" runat="server" EquipmentMasterId='<%#Eval("EquipmentMasterId")%>'
                                                        EquipmentName='<%#Eval("EquipmentName")%>' CtrPageSize="8" ctrPage="0" ctrBtnViewAll="0" />
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" BorderStyle="None" />
                                            </asp:DataList>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="pnlNodata" runat="server" Visible="true">
                                    <table width="100%" style="vertical-align: top;" align="center" cellpadding="1" cellspacing="0"
                                        border="0">
                                        <tr>
                                            <td class="real-time-summary-bg">
                                                <img src="../Images/nodata.jpg" border="0" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </div>
                            <div id="divEdit" runat="server" align="center" style="width: 100%; height: 1500px;
                                top: 0px; left: 0px; position: absolute; visibility: visible; display: block;
                                z-index: 1; background-color: #333333; padding-left: 10%; text-align: center;
                                vertical-align: middle; filter: alpha(opacity=90); opacity: 0.90;">
                                <br />
                                <br />
                                <br />
                            </div>
                        </ContentTemplate>
                        <Triggers>
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
    </table>
    </form>

    <script type="text/javascript">

        var xPos, yPos;
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_beginRequest(BeginRequestHandler);
        prm.add_endRequest(EndRequestHandler);
        function BeginRequestHandler(sender, args) {
            xPos = $get('<%=divChildBody.ClientID %>').scrollLeft;
            yPos = $get('<%=divChildBody.ClientID %>').scrollTop;
        }
        function EndRequestHandler(sender, args) {
            $get('<%=divChildBody.ClientID %>').scrollLeft = xPos;
            $get('<%=divChildBody.ClientID %>').scrollTop = yPos;
        }
    </script>

</body>
</html>
