<?php
	
	session_start();
	if (!isset($_SESSION['user_login_status']) AND $_SESSION['user_login_status'] != 1) {
        header("location: login.php");
		exit;
        }
		

	/* Connect To Database*/
	require_once ("config/db.php");//Contiene las variables de configuracion para conectar a la base de datos
	require_once ("config/conexion.php");//Contiene funcion que conecta a la base de datos
	
	$active_facturas="";
	$active_productos="";
	$active_clientes="";
	$active_usuarios="active";	
	$title="RUBRO O TIPO DE PRODUCTO | FONTUR";
	
	
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<?php include("head.php");?>
</head>
<body onLoad="">
	<?php
	include("navbar.php");
	?>
<div class="container" style="width:98%">
	<div class="panel panel-info">
		<div class="panel-heading">
		<div class="btn-group pull-right">
				<button type='button' class="btn btn-info" data-toggle="modal" data-target="#rubroModal"><span class="glyphicon glyphicon-plus" ></span> Nuevo Rubro</button>
			</div>
				<h4><i class='glyphicon glyphicon-search'></i> Consultar Rubro</h4>
		</div>
		<div class="panel-body">
			<?php
			include("modal/registro_rubros.php");
			include("modal/editar_rubros.php");
			
			?>
			<form class="form-horizontal" role="form" id="datos" method="post">
				
				<div class="form-group row">
					<div class="table-responsive" align="center">
						<table class="table">
   			       			<tr  class="info">
		       					<td align="right">Ingrese Descripcion del Rubro</td>
        			    		<td>
								<input type="text" class="form-control" id="q" placeholder="" onkeyup='load(1);'>
								</td>
			            	</tr>
                		</table>
            		</div>
				</div>		
			</form>
			<div id="resultados"></div><!-- Carga los datos ajax -->
			<div class='outer_div'></div><!-- Carga los datos ajax -->
			
  		</div>
	</div>
</div>
<hr>
<?php
include("footer.php");
?>
<script type="text/javascript" src="js/rubros.js"></script>
</body>
</html>
