<?php
session_start();
if(!array_key_exists("la_logusr",$_SESSION))
{
	print "<script language=JavaScript>";
	print "location.href='../sigesp_inicio_sesion.php'";
	print "</script>";		
}
require_once("sigesp_saf_c_activo.php");
$ls_codemp = $_SESSION["la_empresa"]["codemp"];
$io_saf_tipcat= new sigesp_saf_c_activo();
$ls_rbtipocat=$io_saf_tipcat->uf_select_valor_config($ls_codemp);

$ruta = '../';
require_once($ruta."shared/class_folder/sigesp_include_covensol.php");
require_once($ruta."shared/class_folder/class_sql_covensol.php");
include($ruta."shared/class_folder/class_menu_ext.php");
$obj_menu = new menu;

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title >Sistema de Activos Fijos</title>
<meta http-equiv="imagetoolbar" content="no"> 
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EFEBEF;
}

a:link {
	color: #006699;
}
a:visited {
	color: #006699;
}
a:active {
	color: #006699;
}

-->
</style>

</head>
<script src="../base/librerias/js/jquery/jquery.js" type="text/javascript"></script>
<script src="../base/librerias/js/jquery/jquery.ui.draggable.js" type="text/javascript"></script>
<script src="../base/librerias/js/jquery/jquery.alerts.js" type="text/javascript"></script>
<link href="../base/librerias/js/jquery/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="../base/librerias/js/jquery/jquery.dropshadow.js"></script>

<link href="css/nomina.css" rel="stylesheet" type="text/css">
<link href="../shared/css/tablas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/ventanas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/cabecera.css" rel="stylesheet" type="text/css">
<link href="../shared/css/general.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../base/librerias/js/ext/resources/css/ext-all.css" />
    <!-- GC -->
 	<!-- LIBS -->
<script type="text/javascript" src="../base/librerias/js/ext/adapter/ext/ext-base.js"></script>
 	<!-- ENDLIBS -->
<script type="text/javascript" src="../base/librerias/js/ext/ext-all.js"></script>

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

function ue_cerrar()
{
	window.open("sigespwindow_blank.php","Blank","_self");
}
function abrir(direccion,ancho,alto,desplazamiento)
{
	if(ancho == '' || ancho == null ){ancho = 530}
	if(alto == '' || alto == null ){alto = 200}
	if(desplazamiento == '' || desplazamiento == null ){desplazamiento = 'yes'}
	if(direccion == 'cerrar'||direccion == '../index_modules.php'){window.location = '../index_modules.php';}
	else{
		window.open(direccion,'','toolbar=no,directories=no,location=no, width=' + ancho + ', height=' + alto + ', scrollbars=' + desplazamiento + ', top=0, left=0, estatus=no, resizable=yes');
	}
}
function abrir2(direccion,ancho,alto,desplazamiento)
{	
	window.location = direccion;
	return;
}
</script> 
<?php 

if ($ls_rbtipocat == 1){$MOD = 'SAF_CSC';}
elseif ($ls_rbtipocat == 2){$MOD = 'SAF_CGR';}
else{$MOD = 'SAF';}

echo $obj_menu->coloca_barra($MOD,'',''); 

?>
<body>

<?php
	
	// validación de los release necesarios poara que funcione el sistema de nómina
	require_once("../shared/class_folder/sigesp_release.php");
    $io_release= new sigesp_release();
	$lb_valido=true;
   	
?>


<table width="762" border="0" align="center" cellpadding="0" cellspacing="0" class="contorno">
  <tr>
    <td width="780" height="30" class="cd-logo"><img src="../shared/imagebank/header.jpg" width="787" height="40"></td>
  </tr>
   <tr>
    <td width="780" height="20" bgcolor="#E7E7E7">
		<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">			
          <td width="432" height="20" bgcolor="#E7E7E7" class="descripcion_sistema">Activos Fijos</td>
			<td width="346" bgcolor="#E7E7E7"><div align="right"><span class="letras-pequenas"><b><?PHP print date("j/n/Y")." - ".date("h:i a");?></b></span></div></td>
	  	</table>
	 </td>
	 <tr>
    <td bgcolor="#E7E7E7" class="letras-pequenas"><div align="right"><b><?PHP print $_SESSION["la_nomusu"]." ".$_SESSION["la_apeusu"];?></b></div></td>
  </tr>
  </tr>
 <tr>
    <td height="20" bgcolor="#E7E7E7" class="cd-menu"><div id="barra_herramientas"></div></td>
  </tr>
</table>

</body>
</html>