<?php
//define("SKIN","dhx_black");
//define("CSS","dhtmlxmenu_dhx_black.css");

define("SKIN","dhx_blue");
define("CSS","dhtmlxmenu_dhx_blue.css");

//define("SKIN","dhx_web");
//define("CSS","dhtmlxmenu_dhx_web.css");

//define("SKIN","dhx_skyblue");
//define("CSS","dhtmlxmenu_dhx_skyblue.css");

/*
Autor: Lic. Carlos Alberto Vaca Coronado
Version: 3.2.0
*/

session_name('portal_absa');
session_start();
header('Content-Type: text/html; charset=utf-8');

require_once("libs/funciones.php");
	
if (!isset($_GET["pag"])) {$pagina = 1; $limite=0; $tampag=30;} // Por defecto, pagina 1
		if (isset($_GET["pag"])) {
		$pagina=$_GET["pag"];
		$tampag = 30;
		$limite=($pagina-1) * $tampag;
		}
		
		//ini_set('display_errors','1');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Bienvenido::Portal Proveedores - DisXII</title>

<!--CSS General-->
<link rel="stylesheet" type="text/css" href="libs/menu/<?=CSS?>">
<script src="libs/menu/dhtmlxcommon.js"></script>
<script src="libs/menu/dhtmlxmenu.js"></script>
<script src="libs/menu/dhtmlxmenu_ext.js"></script>

<!--Versiones Jquery-->
<script language="javascript" src="libs/js/jquery.min1-3-2.js"></script>
<script type="text/javascript"	src="libs/js/jquery-ui.min.js"></script>
<script>
	var $j_3 = $.noConflict();
</script>
<script language="javascript" src="libs/js/jquery.form.js"></script>
<script language="javascript" src="libs/js/jquery.min1.6.2.js"></script>
<script>
	var $j_6 = $.noConflict();
</script>

<!--CSS General-->
<link href="CSS/super_css.css" rel="stylesheet" type="text/css" />
<!-- Funciones JavaScript -->
<script language="javascript" type="text/javascript" src="libs/js/funciones.js"></script>

<!--jqGrid-->
<!--CSS jqGrid-->
<link rel="stylesheet" type="text/css" media="screen" href="grids/jqgrid/src/css/custom theme/jquery-ui-1.8.21.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="grids/jqgrid/src/css/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="grids/jqgrid/src/css/ui.multiselect.css" />
<script src="grids/jqgrid/js/i18n/grid.locale-es.js" type="text/javascript"></script> 
<script src="grids/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> 
<script src="grids/funcionesJQGrid.js" type="text/javascript"></script>

<!--SLIDE-->
<link rel="stylesheet" type="text/css" href="libs/slideshows/LofSlider/css/layout.css" />
<link rel="stylesheet" type="text/css" href="libs/slideshows/LofSlider/css/style.css" />
<script language="javascript" type="text/javascript" src="libs/slideshows/LofSlider/js/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="libs/slideshows/LofSlider/js/script.js"></script>
</head>

<!--DatePicker-->
<!--<link rel="stylesheet" href="grids/jquery-ui-core/development-bundle/themes/redmond/jquery.ui.all.css">-->
<script src="grids/jquery-ui-core/development-bundle/ui/jquery.ui.core.js"></script>
<script src="grids/jquery-ui-core/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="grids/jquery-ui-core/development-bundle/ui/jquery.ui.datepicker.js"></script>
<!--Mascara Input-->
<script src="libs/jQueryMasked/jquery.maskedinput-1.2.2.js"></script>

<!-- Jquery easy ui -->
<link rel="stylesheet" type="text/css" href="libs/jqueryEasy_1.2.5/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="libs/jqueryEasy_1.2.5/themes/icon.css">
<script type="text/javascript" src="libs/jqueryEasy_1.2.5/jquery.easyui.min.js"></script>

<!-- MSDropDown -->
<link rel="stylesheet" type="text/css" href="libs/msdropdown/dd.css" />
<script language="javascript" type="text/javascript" src="libs/msdropdown/jquery.dd.js"></script>

<style>
.sombra{
behavior: url('CSS/ie-css3.htc');
box-shadow: -20px 20px 20px #333333;
-webkit-box-shadow: -20px 20px 20px #333333;
-moz-box-shadow: -20px 20px 20px #333333;

-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
padding-left : 5px; padding-right : 5px;
background-color: #FFFFFF
}
.headDiv{
behavior: url('CSS/ie-css3.htc');
box-shadow: -3px 3px 20px #333333;
-webkit-box-shadow: -3px 3px 20px #333333;
-moz-box-shadow: -3px 3px 20px #333333;
width:100%;
height: 30px;
border:0px;
background-color: #00263C;
font-size: 16px;
color: #CCCCCC;
z-index:200;
position:fixed;
}

.sombraModal{
behavior: url('CSS/ie-css3.htc');
box-shadow: -10px 10px 20px #333333;
-webkit-box-shadow: -10px 10px 20px #333333;
-moz-box-shadow: -10px 10px 20px #333333;

-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
padding-left : 5px; padding-right : 5px;
background-color: #FFFFFF
}

.ventanaModal_{
background-color: #000000;
z-index:500;
position:fixed;
opacity:0.7;
filter: alpha(opacity=70);
}

.loadModal_{
background-color: #FFFFFF;
z-index:501;
position: absolute;
width: 500px;
height: 500px;
}

</style>
<!--
<!--[if IE]>
<style type="text/css">
.headDiv{
behavior: url('CSS/ie-css3.htc');
box-shadow: -3px 3px 20px #333333;
width:100%;
height: 30px;
border:0px;
background-color: #00263C;
font-size: 16px;
color: #CCCCCC;
z-index:200;
position: absolute;
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

.ventanaModal_{
background-color: #000000;
z-index:500;
opacity:0.7;
filter: alpha(opacity=70);
position: absolute;
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

</style>
<![EndIf]-->
<!--
<!--[if IE]>
<style>
.ventanaModal_{
background-color: #000000;
z-index:500;
opacity:0.7;
filter: alpha(opacity=70);
position: absolute;
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

</style>
<![EndIf]-->

</head>

<body>
<div class="headDiv">
Facturaci&oacute;n Electr&oacute;nica - Portal de Proveedores
</div>
<div id="ventanaModal"></div>
<div id="loadModal-content" style="position: fixed">
	<div id="closeModal-content" style="padding: 5px 5px 5px 5px; margin-top:-15px" align="right"><img src="Imagenes/closeWindow.png" id="closeModal" style="cursor: pointer" title="Cerrar" width="20" height="20"/></div>
	<div id="loadModal" align="center"></div>
</div>

<table>
<tr><td height="30"></td></tr>
</table>
<table width="800" border="2" align="center" cellpadding="8" cellspacing="0" class="sombra">
  <tr>
    <td width="800" style="border:0px">
    <table width="800" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td>
		<? include "banner.php";?>
		</td>
      </tr>
	  <tr>
			<td valign="top" width="800" align="left">
			<table>
				<tr>
					<td height="30" style="border-bottom: 2px solid #CCCCCC; border-top: 2px solid #CCCCCC" width="850" valign="center">
						<table>
							<tr>
								<td width="800">
									<font size="-1" color="#000066"><strong>Bienvenido: </strong> <? echo $_SESSION['name_p_prov_absa']?></font>
								</td>
								<td>
									<div id="loading"><img src="Imagenes/loading.gif" width="28" height="25"></div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			
			</td>
	  </tr>
      <tr>
        <td colspan="2" width="800" align="center" valign="top">
		<?
			if(isset($_GET['accion']) == "ACTIVACION" || isset($_SESSION['usuario_p_prov_absa'])){
				include("MenuPrincipal.php");
			}else if(isset($_GET['modulo']) && $_GET['modulo'] == "REGUSUARIOS"){
				include("menu2.php");
			}else{
				include("menu3.php");
			}
		?>
		</td>
      </tr>
	  <tr>
		<td colspan="2" width="800" align="center" valign="top" height="400">
		<div id="cuerpo"><?
		if(isset($_GET['modulo']) && $_GET['modulo'] == "REGUSUARIOS")
			include "regUsuarios.php";
		else if(isset($_GET['modulo']) && $_GET['modulo'] == "RECUERDAPASS")
			include "olvidoPass.php";
		else if(isset($_GET['modulo']) && $_GET['modulo'] == "CONFIRMACORREO")
			include "activarCuentaXUsuario.php";
		else if(isset($_GET['modulo']) && $_GET['modulo'] == "ACTIVAUSUARIO")
			include "activarUsuario.php";
		else
			include 'Busqueda.php';
		
		?>
		
		</div>
		</td>
	  </tr>
    </table>
    </td>
  </tr>
  <tr>
	<td style="border: none"><div id="result"></div></td>
  </tr>
  <!--<tr>
    <td align="center" class="pie" style="background-color: #E9E9E9; border: 0px">Todos los derechos reservados para DisXII&reg; <a class="pie" href="http://www.disxii.com" target="_blank">www.disxii.com</a></td>
  </tr>-->
  <tr>
  <td style="height:5px; border: 0px"></td>
  </tr>
</table>
<div id="eventosAjax"></div>
</body>

<?
	function caracteres_html($texto){ 
      $texto = htmlentities($texto); // Convertir caracteres especiales a entidades 
      $texto = htmlspecialchars_decode($texto, ENT_NOQUOTES); // Dejar <, & y > como estaban 
      return $texto;
  }
?>
</html>
