<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="SiteNew.master.vb" Inherits="SGHweb.SiteNew" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
        <script type="text/javascript" language="Javascript">
            window.setInterval("renewSession();", 600000);

            function renewSession() {
                console.log("Renovando session...");
                //document.images("renewSession").src = "Session_Activa.aspx?par=" + Math.random(); 
                //document.getElementById('renewSession').src = '/SGH/SIG/Session_Activa.aspx?par=' + Math.random();
                document.getElementById('renewSession').src = '/<%=rutaInstalacion%>/SIG/Session_Activa.aspx?par=' + Math.random();
        }
</script>
    </asp:ContentPlaceHolder>
<style type="text/css"> 
.header1
{
    position: relative;
    padding: 0px;
    background: #313E53;
    width: 100%;
}
.RadPanelBar .rpImage {
    height: 19px;
}
.RadPanelBar .rpLevel1 .rpImage {
    height: 16px;
}
html, body, form
		{
			height:100%;
			/*margin:0;
			padding:0;*/
			/*overflow: hidden;*/
		}
        .divFiltros
        {
	        border:1px solid #8db2e3;
	        font-size:1em;
	        overflow:hidden;
	        width:100%;
	        text-align:center;
        }
        
    .styleMe{
        border:1px solid #25729a; 
        -webkit-border-radius: 3px; 
        -moz-border-radius: 3px;
        border-radius: 3px;
        font-size:12px;
        font-family:arial, helvetica, sans-serif; 
        padding: 10px 10px 10px 10px; 
        text-decoration:none; 
        display:inline-block;
        text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
        font-weight:bold; 
        color: #FFFFFF;
        background-color: #3093c7; 
        background-image: linear-gradient(to bottom, #3093c7, #1c5a85);
    }

    .styleMe:hover{
        border:1px solid #1c5675;
        background-color: #26759e; 
        background-image: linear-gradient(to bottom, #26759e, #133d5b);
    }
</style>

<script>
    function AbrirVentanasPopUp(url, titulo) {
        var w = window.innerWidth;
        var h = window.innerHeight
        var myWindow = window.open(url, titulo, "menubar=no,location=no,resizable=no,scrollbars=no,status=yes, width=" + w + ", height=" + h + "");
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="header1" >
            <table border="0" style="width:100%">
                <tr>
                    <td>
                        <table border="0" style="width:100%">
                            <tr>
                                <td ID="tdFecha" runat="server" style="width:15%; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-align:right; padding-right:10px ">
                                    <asp:Label ID="lblFecha" runat="server" ViewStateMode="Enabled" ></asp:Label>
                                </td>
                                <td id="tdTC" runat="server" style="width:5%; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-align:right; padding-right:10px ">
                                    T.C. : <asp:Label ID="lblTipoCambio" runat="server" Text="" ></asp:Label>
                                </td>
                                <td ID="tdImgLogin" runat="server" style="width:50%; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-align:right; padding-right:10px ">
                                    <img src="Resources/login.png" />
                                </td>
                                <td style="width:5%; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-align:right; padding-right:10px ">
                                    <asp:Label ID="nombreUsuarioLB1" runat="server" Text=""></asp:Label>
                                    <asp:LinkButton ID="btn_conectarme" runat="server" style="color:#fff; text-decoration:none">Iniciar sesión</asp:LinkButton>
                                    <asp:LinkButton ID="btn_desconectarme" runat="server" style="color:#fff; text-decoration:none">| Cerrar Sesión</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>

    <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" >
            <telerik:RadPane ID="navigationPane" runat="server" Width="213px" Height="100%">
                <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%" ExpandMode="SingleExpandedItem" Skin="Metro">
                    <Items>
                        <telerik:RadPanelItem Text="ALMACEN" ImageUrl="Resources/iconosMaster/inventory-maintenance.png" Expanded="True">
                            <Items>
                                <telerik:RadPanelItem OnClick="AbrirVentanasPopUp('Inventarios/From_InventariosAlmacen.aspx?menu=1','Produccion')" ImageUrl="Resources/iconosMaster/inventory-maintenance.png" Text="Inventarios"/>
                            </Items> 
                            <Items>
                                 <telerik:RadPanelItem OnClick="AbrirVentanasPopUp('Almacen/Form_RequerimientosListA.aspx?tipoMenu=Form_RequerimientosListA&menu=2','Produccion')" ImageUrl="Resources/iconosMaster/699316-icon-45-note-list-32.png" Text="Requerimientos"/>
                             </Items>
                            <Items>
                                 <telerik:RadPanelItem OnClick="AbrirVentanasPopUp('Inventarios/EmpresasTransporte.aspx?tipoMenu=EmpresasTransporteA&menu=3','Emp. Transporte')" ImageUrl="https://cdn3.iconfinder.com/data/icons/linecons-free-vector-icons-pack/32/truck-32.png" Text="Emp. Transporte"/>
                             </Items>
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem Text="TESORERIA" ImageUrl="Resources/iconosMaster/money_bag.png">
                             <Items>
                                 <telerik:RadPanelItem OnClick="AbrirVentanasPopUp('OrdenPagos/Default.aspx','Ordenes de Pago')" ImageUrl="Resources/iconosMaster/purchase_order.png" Text="Orden de Pagos"/>
                                 <telerik:RadPanelItem OnClick="AbrirVentanasPopUp('CreditosCobranzas/frm_Depositos.aspx','Ordenes de Pago')" ImageUrl="Resources/iconosMaster/Money%20Bundle.png" Text="Depositos"/>
                                 <telerik:RadPanelItem OnClick="AbrirVentanasPopUp('ReporteContable/Form_retenciones.aspx','Libros Retencion')" ImageUrl="Resources/iconosMaster/699316-icon-45-note-list-32.png" Text="Libros Retención"/>
                             </Items>
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem Text="REPORTES" OnClick="AbrirVentanasPopUp('frm_Reportes.aspx','Reportes')" ImageUrl="Resources/iconosMaster/button_34.png " Expanded="False">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem Text="IMPORTAR/EXPORTAR" OnClick="AbrirVentanasPopUp('plantillas/Form_plantillasProcesos.aspx?tipoMenu=Form_plantillasProcesosA','Reportes')" ImageUrl="Resources/iconosMaster/ic_import_export_48px-32.png " Expanded="False">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem Text="INTERFACES" OnClick="AbrirVentanasPopUp('Interfaces/?accion=Compras&software=Starsoft','Interfaces')" ImageUrl="https://cdn1.iconfinder.com/data/icons/technology-and-hardware-2/200/vector_66_09-32.png  " Expanded="False">  
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem Text="DASHBOARD" OnClick="AbrirVentanasPopUp('DashBoard/Form_PrincipalBashBoard.aspx')" ImageUrl="Resources/masters/DASH.png"  Expanded="False">  
                        </telerik:RadPanelItem> 
                       <%-- href="DashBoard/Form_PrincipalBashBoard.aspx"  --%>  
                    </Items>
                </telerik:RadPanelBar>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward">
            </telerik:RadSplitBar>
            <telerik:RadPane ID="contentPane" runat="server">
                <asp:ContentPlaceHolder ID="MainContent" runat="server">
                </asp:ContentPlaceHolder>
            </telerik:RadPane>
        </telerik:RadSplitter>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        
        <img src="/<%=rutaInstalacion%>/SIG/Session_Activa.aspx" name=renewSession id=renewSession>
        <div style="visibility:hidden;">  
        <script type="text/javascript" src="http://widgets.amung.us/small.js">
        </script>
        <script type="text/javascript">WAU_small('sghperuweb')</script>  
        </div>
    </form>
</body>
</html>
