<script type="text/javascript" src="js/dirhac_declaracion.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('declaracion'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT d.codigo_declaracion,d.codigo_periodo,\r\n\tTO_CHAR(d.fecha_cierre_ejercicio,'DD/MM/YYYY') AS fecha_cierre_ejercicio,\r\n\tTO_CHAR(d.fecha_declaracion,'DD/MM/YYYY') AS fecha_declaracion,\r\n\td.cedula_representante||' '||r.razon_social AS representante,\r\n\tp.descripcion AS periodo\r\n\tFROM general.tdeclaracion d \r\n\tINNER JOIN general.tpersona r ON d.cedula_representante = r.cedula_persona\r\n\tINNER JOIN general.tperiodo p ON d.codigo_periodo = p.codigo_periodo \r\n\tORDER BY d.codigo_declaracion ASC"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: DECLARACIÓN</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Período</th> <th>Fecha Cierre Ejercicio</th> <th>Fecha Declaración</th> <th>Representante</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>';
<script type="text/javascript" src="js/dirhac_requisito.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('requisito'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM general.trequisito"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: REQUISITO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Requisito</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } } ?>
<script type="text/javascript" src="js/dirhac_servicio.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('servicio'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT s.codigo_servicio,s.nombre_servicio,s.orden,m.nombre_modulo \r\n\tFROM seguridad.tservicio s INNER JOIN seguridad.tmodulo m ON s.codigo_modulo = m.codigo_modulo"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: SERVICIO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Servicio:</th> <th>Orden:</th> <th>Módulo:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; }
<script type="text/javascript" src="js/dirhac_pais.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('pais'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM general.tpais"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: PAÍS</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>País</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } } ?>
<script type="text/javascript" src="js/dirhac_persona.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('persona'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT p.cedula_persona, p.razon_social,MAX(tp.descripcion) AS tipo_persona \r\n\tFROM general.tpersona p \r\n\tINNER JOIN general.tdetalle_persona dp ON p.cedula_persona = dp.cedula_persona \r\n\tINNER JOIN general.ttipo_persona tp ON dp.codigo_tipopersona = tp.codigo_tipopersona \r\n\tGROUP BY p.cedula_persona, p.razon_social \r\n\tORDER BY p.cedula_persona ASC"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: PERSONA</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>RIF</th> <th>Razón Social</th> <th>Tipo de Persona</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_opcion.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('botones'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM seguridad.topcion"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: BOTONES</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Botón</th> <th>Orden</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_banco.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('banco'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM general.tbanco"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: BANCO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Banco</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } } ?>
<script type="text/javascript" src="js/dirhac_periodo.js"></script> <?php require_once "../class/class_perfil.php"; require_once '../class/class_bd.php'; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('periodo'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación $pgsql = new Conexion(); $sql = "SELECT p.codigo_periodo,p.descripcion,\r\n\tTO_CHAR(p.fecha_inicio,'DD/MM/YYYY') as fecha_inicio,TO_CHAR(p.fecha_fin,'DD/MM/YYYY') as fecha_fin \r\n\tFROM general.tperiodo p"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: PERÍODO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Período</th> <th>Fecha Inicio</th> <th>Fecha Fin</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; }
<script type="text/javascript" src="js/dirhac_perfil.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('perfiles'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT p.codigo_perfil,p.nombre_perfil,c.descripcion AS configuracion \r\n\tFROM seguridad.tperfil p INNER JOIN seguridad.tconfiguracion c ON p.codigo_configuracion = c.codigo_configuracion"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: PERFIL DE USUARIO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Perfil de Usuarios:</th> <th>Conf. de Sistema:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_unidadtributaria.js"></script> <?php require_once '../class/class_bd.php'; require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('unidadtributaria'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación $pgsql = new Conexion(); $sql = "SELECT codigo_unidadtributaria,descripcion,TO_CHAR(fecha_validez,'DD/MM/YYYY') as fecha_validez,\r\n\tTO_CHAR(monto,'999G999G999G999D99') AS monto \r\n\tFROM general.tunidadtributaria "; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: UNIDAD TRIBUTARIA</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Descripción</th> <th>Fecha Validez</th> <th>Monto</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; }
<script type="text/javascript" src="js/dirhac_estado.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('estado'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT e.codigo_estado, e.descripcion, p.descripcion AS pais \r\n\tFROM general.testado e \r\n\tINNER JOIN general.tpais p ON e.codigo_pais = p.codigo_pais"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: ESTADO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Estado</th> <th>País</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_solicitud.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('solicitud'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT s.codigo_solicitud,s.nro_solicitud,TO_CHAR(s.fecha_solicitud,'DD/MM/YYYY') AS fecha_solicitud,\r\n\tCASE \r\n\t\tWHEN s.tipo_solicitud = '1' THEN 'Actividad Económica' \r\n\t\tWHEN s.tipo_solicitud = '2' THEN 'Documento Público Oficial' \r\n\t\tWHEN s.tipo_solicitud = '3' THEN 'Trámite' \r\n\t\tWHEN s.tipo_solicitud = '4' THEN 'Sanción' \r\n\tEND AS tipo_solicitud,\r\n\ts.cedula_solicitante||' '||ps.razon_social AS solicitante,e.nombre AS establecimiento \r\n\tFROM general.tsolicitud s \r\n\tINNER JOIN general.tpersona ps ON s.cedula_solicitante = ps.cedula_persona \r\n\tINNER JOIN general.testablecimiento e ON s.codigo_establecimiento = e.codigo_establecimiento"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: SOLICITUD</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Nro. Solicitud</th> <th>Fecha Solicitud</th> <th>Tipo Solicitud</th> <th>Cédula Solicitante</th> <th>Establecimiento</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') {
<script type="text/javascript" src="js/dirhac_recaudacion.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('recaudacion'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT r.codigo_recaudacion,TO_CHAR(r.fecha_recaudacion,'DD/MM/YYYY') AS fecha_recaudacion,\r\n\tr.cedula_contribuyente||'_'||c.razon_social AS contribuyente,\r\n\tCASE \r\n\t\tWHEN r.tipo_recaudacion = '1' THEN 'Actividad Económica' \r\n\t\tWHEN r.tipo_recaudacion = '2' THEN 'Documento Público Oficial' \r\n\t\tWHEN r.tipo_recaudacion = '3' THEN 'Declaración' \r\n\t\tWHEN r.tipo_recaudacion = '4' THEN 'Sanción' \r\n\tEND AS tipo_recaudacion \r\n\tFROM general.trecaudacion r \r\n\tINNER JOIN general.tpersona c ON r.cedula_contribuyente = c.cedula_persona "; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: RECAUDACIÓN</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Fecha Recaudación:</th> <th>Tipo Recaudación:</th> <th>Contribuyente:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; }
<script type="text/javascript" src="js/dirhac_municipio.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('municipio'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT e.codigo_municipio, e.descripcion, p.descripcion AS estado FROM general.tmunicipio e INNER JOIN general.testado p ON e.codigo_estado = p.codigo_estado"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: MUNICIPIO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Municipio:</th> <th>Estado:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_establecimiento.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('establecimiento'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT e.codigo_establecimiento,e.cedula_contribuyente,e.cedula_representante, e.nombre,MAX(te.descripcion) AS tipo_establecimiento \r\n\tFROM general.testablecimiento e \r\n\tINNER JOIN general.tpersona dc ON e.cedula_contribuyente = dc.cedula_persona\r\n\tINNER JOIN general.tpersona dr ON e.cedula_representante = dr.cedula_persona\r\n\tINNER JOIN general.tdetalle_establecimiento de ON e.codigo_establecimiento = de.codigo_establecimiento \r\n\tINNER JOIN general.ttipo_establecimiento te ON e.codigo_tipo_establecimiento = te.codigo_tipo_establecimiento \r\n\tGROUP BY e.codigo_establecimiento, e.cedula_contribuyente, e.cedula_representante, e.nombre \r\n\tORDER BY e.codigo_establecimiento ASC"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: ESTABLECIMIENTO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Fecha Registro</th> <th>Nombre</th> <th>Cédula Contribuyente</th> <th>Tipo Establecimiento</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>';
<script type="text/javascript" src="js/dirhac_configuracion.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('configuracion'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM seguridad.tconfiguracion"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: CONFIGURACIÓN DEL SISTEMA</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Nombre:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } } ?>
<script type="text/javascript" src="js/dirhac_modulo.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('modulo'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM seguridad.tmodulo"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: MÓDULO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Módulo:</th> <th>Orden:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_tipo_persona.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('tipo_persona'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT codigo_tipopersona, descripcion, CASE es_usuariosistema WHEN 'Y' THEN 'SÍ' ELSE 'NO' END es_usuariosistema \r\n\tFROM general.ttipo_persona"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: TIPO PERSONA</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Tipo Persona</th> <th>¿Es Usuario del Sistema?</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_jornadalaboral.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('jornadalaboral'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT codigo_jornadalaboral,descripcion,TO_CHAR(hora_inicio,'HH:MI AM') hora_inicio,TO_CHAR(hora_fin,'HH:MI PM') hora_fin \r\n\tFROM general.tjornadalaboral"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: JORNADA LABORAL</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Descripción</th> <th>Hora de Inicio:</th> <th>Hora de Culminación:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; }
<script type="text/javascript" src="js/dirhac_parroquia.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('parroquia'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT e.codigo_parroquia, e.descripcion, p.descripcion AS municipio FROM general.tparroquia e \r\n\tINNER JOIN general.tmunicipio p ON e.codigo_municipio = p.codigo_municipio"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: PARROQUIA</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código:</th> <th>Parroquia:</th> <th>Municipio:</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } }
<script type="text/javascript" src="js/dirhac_tipo_establecimiento.js"></script> <?php require_once "../class/class_perfil.php"; $perfil = new Perfil(); $perfil->codigo_perfil($_SESSION['user_codigo_perfil']); $perfil->url('tipo_establecimiento'); $a = $perfil->IMPRIMIR_OPCIONES(); // el arreglo $a contiene las opciones del menú. if (!isset($_GET['Opt'])) { // Ventana principal -> Paginación require_once '../class/class_bd.php'; $pgsql = new Conexion(); $sql = "SELECT * FROM general.ttipo_establecimiento"; $consulta = $pgsql->Ejecutar($sql); ?> <fieldset> <legend><center>Vista: TIPO ESTABLECIMIENTO</center></legend> <div id="paginador" class="enjoy-css"> <div class="container"> <table cellpadding="0" cellspacing="5" border="0" class="bordered-table zebra-striped" id="registro"> <thead> <tr> <th>Código</th> <th>Tipo Establecimiento</th> <?php for ($x = 0; $x < count($a); $x++) { if ($a[$x]['orden'] == '2' || $a[$x]['orden'] == '5') { echo '<th>' . $a[$x]['nombre_opcion'] . '</th>'; } } ?>