Exemplo n.º 1
0
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        
                     
                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarPopup", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Nombre", "Imagen", "Ancho", "Alto", "Posicion", "Estado"), array(50, 230, 160, 80, 80, 80, 90), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarPopupTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros, 1));
?>
  

                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>
/* Control de versiones:
/* --------------------------------------------------------------------
/* Autor					Fecha				Acción                                                                          
/*
/* Digital5 S.L.	15/03/2012	Creación               
/*
/****************************************************************************************************/
if (!defined('THEMEPATH')) {
    define('THEMEPATH', dirname(__FILE__));
}
if (!defined('PLUGINPATH')) {
    define('PLUGINPATH', dirname(__FILE__) . '/../../plugins/doconline/');
}
if (!$_POST['idPagina']) {
    echo 'error[;;]Error de parámetros, no se encuentra idPagina';
} else {
    $idPagina = $_POST['idPagina'];
    include PLUGINPATH . 'class/datos.class.php';
    $pagina = Datos::getPaginaData($idPagina);
    if ($pagina === false) {
        echo 'error[;;]Error al obtener datos de la página ' . $idPagina;
    } else {
        $res = array();
        $res[] = 'success';
        foreach ($pagina as $cData => $data) {
            $res[] = $cData == 'contenido' ? $cData . '[::]' . str_replace('[["]]', "'", utf8_encode($data)) : $cData . '[::]' . utf8_encode($data);
        }
        // datos
        echo implode('[;;]', $res);
    }
}
<div class="container">
	<div class="in">
	<?php 
require_once "../dist/class/class_db.php";
$oDB = new Datos();
$oDB->db = 'mysql';
$sql = '
			select n.id, concat_ws(" ", n.nombre, n.appat, n.apmat) as nombre, n.no_not, m.nombre, n.nombre, n.estatus
			from `not` n, municipio m
			where n.municipio = m.no_mun and estatus = 1
			order by nombre
		';
$res = $oDB->query($sql);
?>
		 <!-- <link rel="stylesheet" href="../dist/css/bootstrap.min.css"> -->

		 
		<style>
		button.detalles 
		{
		    background: url('../dist/datatables/images/details_open.png') no-repeat center center;
		    cursor: pointer;
		    height:30px;
		    width:30px;
		}
		tr.shown button.detalles 
		{
		    background: url('../dist/datatables/images/details_close.png') no-repeat center center;
		}
		</style>
		<!--[if lt IE 9]>
Exemplo n.º 4
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
if (!isset($_SESSION['username']) && !isset($_SESSION['userid'])) {
    echo "<script>parent.window.location.reload();</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_categoria", $_GET["id"]));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MODIFICAR CATEGORIA </title>
        <!-- include para formulario -->
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        <!-- fin include para formulario -->
        <script>
            function procesar(){
                var bol = $('#demo-form').parsley('validate');
                if(bol){
                    $.ajax({
                        type: 'POST',
                        url: 'ControladorCategoria.php',
Exemplo n.º 5
0
                                <button type="button" class="btn btn" id="demo-form-valid" onclick="buscar(this.form);">
                                    <i class="icon-ok"></i>
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLContactenos($objDatos->getConsulta(array("listarContactenos", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Fecha", "Hora", "Contacto", "Telefono", "Correo", "Estado"), array(80, 100, 120, 150, 110, 130, 90), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarContactenosTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros, 3));
?>


                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>
Exemplo n.º 6
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
$valses = $objSesion->getVariableSession("username");
//echo $valses;
if (!isset($valses)) {
    echo "<script>window.location='../login/logout.php';</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_sistema", 1));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>ACTUALIZAR ENCABEZADO </title>
        
        <script src="../ckeditorFull/ckeditor.js" type="text/javascript"></script>
	<script src="../ckfinder/ckfinder.js" type="text/javascript"></script>        
        
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        <!-- fin include para formulario -->
        
        <link rel="stylesheet" type="text/css" href="../stylesheets/styles.css" />
Exemplo n.º 7
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
if (!isset($_SESSION['username']) && !isset($_SESSION['userid'])) {
    echo "<script>parent.window.location.reload();</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_banner", $_GET["id"]));
$dirses = new Sesion();
$dirses->setVariableSession("dir", "");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>ACTUALIZAR BANNER </title>
        <!-- include para formulario --> 
        <script type="text/javascript" src="../js/jquery_1.5.2.js" ></script>
        <script type="text/javascript" src="../js/ajaxupload.3.5.js" ></script>
        <script type="text/javascript" src="../js/uploader4.js" ></script>
        
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <script type="text/javascript" src="../javascripts/_util.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/styles.css" />
Exemplo n.º 8
0
                        <span class="btn btn" id="demo-form-valid" onclick="procesar();"><i class="icon-ok"></i></span>
                    </div>
                </h1>
            </div>
            <br/>    
		
                <form id="demo-form" data-validate="parsley">
                <input type="hidden" id="accion" name="accion" value="INS"/>
                <table>
                    <tr>
                        <td valign="top"><label for="cmbClase">Familia * :</label> </td>
                        <td>    
                            <select name="cmbClase" id="cmbClase" data-required="true" class="parsley-validated parsley-error"  title="Seleccionar Clase">
                                    <option value>[--Selected--]</option>
                                    <?php 
echo Datos::getCombo("cmbClase", '', '');
?>
                                </select>                            
                        </td>
                    </tr>
                    <tr>
                        <td valign="top"><label for="txtnombre">Nombre de categoria * :</label> </td>
                        <td><input type="text" id="txtnombre" name="txtnombre" placeholder="Categoria" data-required="true" /> </td>
                    </tr>
                    <tr>
                        <td colspan="2"></td>
                    </tr>

                            
                </table>
                
Exemplo n.º 9
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
if (!isset($_SESSION['username']) && !isset($_SESSION['userid'])) {
    echo "<script>parent.window.location.reload();</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_producto", $_GET["id"]));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MODIFICAR PRODUCTO</title>
        <!-- include para formulario -->
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        <!-- fin include para formulario -->
        <script>
            $(document).ready(function(){setTextoCheck("chkdestacado"); setFoco('txtnombre');});
            function procesar(){
                var bol = $('#demo-form').parsley('validate');
                if(bol){
                  $('#demo-form').submit();  
                }else {
/*
/****************************************************************************************************/
if (!defined('THEMEPATH')) {
    define('THEMEPATH', dirname(__FILE__));
}
if (!defined('PLUGINPATH')) {
    define('PLUGINPATH', dirname(__FILE__) . '/../../plugins/doconline/');
}
if (!$_GET['idDocumento']) {
    echo '<option value="">Error de documento</option>';
} else {
    $idDocumento = $_GET['idDocumento'];
    $modo = isset($_GET['modo']) ? $_GET['modo'] : 'select';
    include PLUGINPATH . 'class/datos.class.php';
    // Obtenemos las páginas
    $paginas = Datos::getPaginas($idDocumento);
    if ($paginas === false) {
        echo '<option value="">Error al obtener páginas de ' . $idDocumento . '</option>';
    } else {
        switch ($modo) {
            case 'select':
                if (!is_array($paginas)) {
                    echo '<option value="">El documento carece de páginas</option>';
                } else {
                    echo '<option value="">Seleccione una página</option>';
                    foreach ($paginas as $pagina) {
                        echo '<option value="' . $pagina['id_pagina'] . '">' . utf8_encode($pagina['referencia']) . '</option>';
                    }
                }
                break;
        }
Exemplo n.º 11
0
                    <tr><td colspan="2" style="height:10px;"></td></tr>
                    <tr>
                        <td valign="top"><label for="txtclave">Clave* :</label> </td>
                        <td><input type="text" id="txtclave" name="txtclave" data-equalto="#txtclave" placeholder="Clave" data-required="true" /> </td>
                    </tr>
                    <tr><td colspan="2" style="height:10px;"></td></tr>
                    <tr>
                        <td valign="top"><label for="txtclaverep">Repetir clave* :</label> </td>
                        <td><input type="text" id="txtclaverep" name="txtclaverep" data-equalto="#txtclave" placeholder="Repetir clave" data-required="true" /> </td>
                    </tr>
                    <tr><td colspan="2" style="height:10px;"></td></tr>
                    <tr>
                        <td valign="top"><label for="cmbPerfil">Perfil * :</label> </td>
                        <td>    
                            <select name="cmbPerfil" id="cmbPerfil" data-required="true" title="Seleccionar Perfil">
                                    <option value="0" selected>[--Selected--]</option>
                                    <?php 
echo Datos::getCombo("cmbPerfil", '', '');
?>
                                </select>                            
                        </td>
                    </tr>
                </table>
                <br/>
            </div>
        </form>

        
    </body>
</html>
Exemplo n.º 12
0
                        <td colspan="4"></td>
                    </tr>
                    <tr>
                        <td><label for="txtnombre">Nombre de producto * :</label> </td>
                        <td><input type="text" id="txtnombre" name="txtnombre" placeholder="Nombre" data-required="true" /> </td>
                    </tr>
                    <tr>
                        <td colspan="4"></td>
                    </tr>
                    <tr>
                        <td><label for="cmbCategoria">Categoria * :</label> </td>
                        <td>    
                            <select name="cmbCategoria" id="cmbCategoria" data-required="true" title="Seleccionar categoria">
                                    <option value="" selected>[--Selected--]</option>
                                    <?php 
echo Datos::getCombo("cmbCategoria", '', '');
?>
                            </select>                            
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4"></td>
                    </tr>
                    <tr>
                        <td><label for="txtnombre">Voltaje * :</label> </td>
                        <td><input type="text" id="txtvoltaje" name="txtvoltaje" placeholder="voltaje" /> </td>
                    </tr>
                    <tr>
                        <td colspan="4"></td>
                    </tr>
                    <tr>
/****************************************************************************************************/
/* Pantalla: _filtros.php
/* Theme: doconline
/* Descripción: filtros para el listado...
/*
/* Control de versiones:
/* --------------------------------------------------------------------
/* Autor					Fecha				Acción                                                                          
/*
/* Digital5 S.L.	26/03/2012	Creación               
/*
/****************************************************************************************************/
$filtros = array('codigo' => array('nombre' => 'Código', 'tipo' => 'like', 'max' => 20, 'size' => 20, 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'referencia' => array('nombre' => 'Referencia', 'tipo' => 'like', 'max' => 20, 'size' => 20, 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'tipo' => array('nombre' => 'Tipo', 'tipo' => 'select', 'opciones' => NULL, 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'nombre' => array('nombre' => 'Nombre', 'tipo' => 'like', 'max' => 20, 'size' => 20, 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'fec_alta_desde' => array('nombre' => 'Alta posterior a', 'tipo' => 'date-mayor-igual', 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'fec_alta_hasta' => array('nombre' => 'Alta previa a', 'tipo' => 'date-menor-igual', 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'id_usuario' => array('nombre' => 'Usuario', 'tipo' => 'fk-like-usuario', 'max' => 20, 'size' => 10, 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'estado' => array('nombre' => 'Estado', 'tipo' => 'select', 'opciones' => array('' => 'sin filtros', 'nuevo' => 'nuevo', 'pagado' => 'definitivo', 'anulado' => 'anulado'), 'meta' => 'N', 'comillas' => 'S', 'formato' => '%s', 'default' => NULL), 'orderBy' => array('nombre' => 'Ordenar por', 'tipo' => 'orderBy', 'opciones' => array('fec_alta' => 'Fecha de alta', 'codigo' => 'Código de documento', 'estado' => 'Estado'), 'comillas' => 'S', 'formato' => '%s', 'default' => 'fec_pago'), 'ascDesc' => array('nombre' => 'Tipo de orden', 'tipo' => 'ascDesc', 'opciones' => array('desc' => 'Descendente', 'asc' => 'Acendente'), 'comillas' => 'S', 'formato' => '%s', 'default' => 'desc'));
// los tipos
$tipos = Datos::getTipoDocumentos();
$opciones = array();
$opciones[""] = 'sin filtros';
foreach ($tipos as $cTipo => $dTipo) {
    $opciones[$cTipo] = $dTipo['nombre'];
}
$filtros['tipo']['opciones'] = $opciones;
// obtenemos el valor
foreach ($filtros as $cFiltro => $dFiltro) {
    $nFiltro = 'filtro_' . $cFiltro;
    $filtros[$cFiltro]['valor'] = $_POST[$nFiltro] != NULL ? $_POST[$nFiltro] : $filtros[$cFiltro]['default'];
}
// en caso de ser suscriptor
if ($userData['rol'] != 'Administrator') {
    // algo
    $filtros['id_usuario']['tipo'] = 'fijo';
Exemplo n.º 14
0
                                    <i class="icon-ok"></i>
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarBannerInterno", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Nombre", "Foto", "Pagina Relacionada", "Estado"), array(80, 200, 200, 200, 100), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarBannerInternoTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros));
?>


                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>
        $r = Datos::altaDocumento($args);
        if ($r === false) {
            echo 'ERROR AL DAR DE ALTA EL DOCUMENTO!!!<br/>';
        }
        //echo 'Como si diesemos de alta con referencia '.$idReferencia.'<br/>';
        break;
    case 'chg-estado':
        $docId = isset($_POST['docId']) ? $_POST['docId'] : NULL;
        $estado = isset($_POST['estado-listado']) ? $_POST['estado-listado'] : NULL;
        if ($docId == NULL) {
            echo 'ERROR al no obtener docId!!!<br/>';
        }
        if ($estado == NULL) {
            echo 'ERROR al no obtener estado!!!<br/>';
        } else {
            $args = array('idDocumento' => $docId, 'estado' => $estado);
            $r = Datos::updEstadoDocumento($args);
            if ($r === false) {
                echo 'ERROR AL DAR MODIFICAR EL ESTADO DEL DOCUMENTO!!!<br/>';
            }
        }
        break;
    case 'borrar-documento':
        $docId = isset($_POST['docId']) ? $_POST['docId'] : NULL;
        if ($docId == NULL) {
            echo 'ERROR de parámetro, idDocumento no encontrado<br/>';
            break;
        }
        Datos::delDocumento($docId);
        break;
}
/* Digital5 S.L.	13/03/2012	Creación               
/*
/****************************************************************************************************/
if (!defined('THEMEPATH')) {
    define('THEMEPATH', dirname(__FILE__));
}
if (!defined('PLUGINPATH')) {
    define('PLUGINPATH', dirname(__FILE__) . '/../../plugins/doconline/');
}
if (!$_POST['idDocumento']) {
    echo 'error[;;]Error de parámetros, no se encuentra idDocumento';
}
$idDocumento = $_POST['idDocumento'];
include PLUGINPATH . 'class/datos.class.php';
// obtenemos sus datos:
$docData = Datos::getDocumentoData($idDocumento);
if ($docData === false) {
    echo 'error[;;]Error al obtener los datos del documento ' . $idDocumento;
} else {
    //echo 'Tenemos idDocumento '.$idDocumento.' con path "'.MYPATH.'"';
    $res = array();
    $res[] = 'success';
    // Todo bien...
    foreach ($docData as $cData => $data) {
        if ($cData != 'meta') {
            $res[] = $cData . '[::]' . $data;
        }
    }
    // datos
    if (is_array($docData['meta'])) {
        foreach ($docData['meta'] as $cData => $data) {
Exemplo n.º 17
0
<?php

include "../dist/class/class_db.php";
$oDB = new Datos();
$oDB->db = 'mysql';
$id = $_POST['id'];
$sql = 'select concat_ws(" ",n.calle, n.colonia, n.num_ext), n.tel_not1 from `not` n, municipio m where n.municipio = m.no_mun and n.id = ' . $id;
$res = $oDB->query($sql);
$row = $oDB->fetch_array($res);
echo json_encode($row);
Exemplo n.º 18
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
if (!isset($_SESSION['username']) && !isset($_SESSION['userid'])) {
    echo "<script>parent.window.location.reload();</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_servicio", $_GET["id"]));
$dirses = new Sesion();
$dirses->setVariableSession("dir", "");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>ACTUALIZAR SERVICIO </title>
        <!-- include para formulario --> 
        <script type="text/javascript" src="../js/jquery_1.5.2.js" ></script>
        <script type="text/javascript" src="../js/ajaxupload.3.5.js" ></script>
        <script type="text/javascript" src="../js/uploader4.js" ></script>
        
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <script type="text/javascript" src="../javascripts/_util.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/styles.css" />
Exemplo n.º 19
0
                                    <i class="icon-ok"></i>
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarBanner", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Nombre", "Foto", "Descripcion", "Orden", "Cargar Pagina", "Estado"), array(75, 120, 120, 220, 80, 120, 80), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarBannerTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros));
?>


                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>
Exemplo n.º 20
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
if (!isset($_SESSION['username']) && !isset($_SESSION['userid'])) {
    echo "<script>parent.window.location.reload();</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_menumnt", $_GET["id"]));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MODIFICAR MENU </title>
        <!-- include para formulario -->
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        
        <script type="text/javascript" src="../javascripts/_util.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/styles.css" />
        <!-- fin include para formulario -->
        <script src="../_select/select.js"></script>

        <script>
            $(document).ready(function(){setTextoCheck("chkmostrar"); setFoco('txtnombre');});
Exemplo n.º 21
0
                                <button type="button" class="btn btn" id="demo-form-valid" onclick="buscar(this.form);">
                                    <i class="icon-ok"></i>
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarPagina", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Titulo", "Tipo", "Tags", "Estado"), array(100, 250, 125, 150, 150), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarPaginaTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros, 3));
?>


                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>
                    $aHtml[] = '<div style="position:absolute; bottom:3mm; right:3mm;">' . $pagina['numero'] . ' / ' . count($paginas) . '</div>';
                }
                // si hubiese numeración estaría aquí...
                $html = implode("\n", $aHtml);
                $mpdf->WriteHTML($html);
            }
        }
        // contraportada
        if ($contraportada != NULL) {
            $mpdf->AddPage();
            $aHtml = array();
            $aHtml[] = $documento['contenido'];
            $aHtml[] = str_replace($patronSrc, $cambioSrc, $contraportada['contenido']);
            $html = utf8_encode(implode("\n", $aHtml));
            $mpdf->WriteHTML($html);
        }
        $filetitle = $documento['referencia'] != NULL ? $documento['referencia'] : $documento['codigo'];
        $filename = $filetitle . '.pdf';
        switch ($accion) {
            case 'imprimir':
                $mpdf->Output($filename, 'D');
                break;
        }
        // guardamos una descarga más
        $r = Datos::registraDescarga($idDocumento);
        if ($r === false) {
            echo '<div class="panel-error">Error al registrar la descarga del documento ' . $idDocumento . '</div>';
        }
    }
}
// pruebas
Exemplo n.º 23
0
                    <tr><td colspan="5" height="15"></td></tr>
                    <tr>
                            <td valign="top"><label>Contenido : </label> </td>
                            <td><select name="cmbContenido" id="cmbContenido" style="width:165px;" onclick="enlacesMenu();">
                                <option value="1">SIN ENLACE</option>
                                <option value="2">ENLACE INTERNO</option>
                                <option value="3">ENLACE EXTERNO</option>
                            </select></td>
                        </tr>
                        <tr id="enlaceInterno">
                            <td valign="top"><label>Enlace Interno : </label> </td>
                            <td>
                                <select id="cmbEnlace" name="cmbEnlace" style="width:165px" data-required="true" class="parsley-validated parsley-error"  title="Seleccionar Enlace">
                                    <option value="0">--Escoja--</option>
                                    <?php 
echo Datos::getCombo("cmbPagina", '', '');
?>
                                </select>
                            </td>
                        </tr>   
                        <tr id="enlaceExterno">
                            <td valign="top"><label>Enlace Externo : </label> </td>
                            <td>
                                <input type="text" id="txtEnlace" name="txtEnlace"  value ="http://" data-required="true" style="width:250px;" />
                            </td>
                        </tr>
                        <tr id="abrirEnlace">
                            <td valign="top"><label>Abrir en : </label> </td>
                            <td>
                                <select id="cmbAbrir" name="cmbAbrir" style="width:165px;">
                                    <option value="1">Misma Pestaña</option>
Exemplo n.º 24
0
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarClases", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Nombre", "Fecha apertura", "Fecha Modif", "Estado"), array(75, 120, 120, 120, 90), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarClasesTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros));
/*
                  try {
                  //                    $objMysql = new Mysql();
                  $objDatos = new Datos();

                  //$query = "select * from cms_menu;";
                  //$rs = $objMysql->ejecutar($query);
                  $rs = $objDatos->getConsulta(array("listarClases","","","","",""));
                  echo "Registros : ".$rs->rowCount()."<br>";
                  echo "Columnas : ".$rs->columnCount()."<br>";


Exemplo n.º 25
0
<?php

header('Cache-Control: no-cache');
header('Pragma: no-cache');
include "../_util/Sesion.php";
$objSesion = new Sesion();
$valses = $objSesion->getVariableSession("username");
//echo $valses;
if (!isset($valses)) {
    echo "<script>window.location='../login/logout.php';</script>";
}
include "../_util/Datos.php";
$objDatos = new Datos();
$vFila = $objDatos->getConsulta(array("f_pagina", $_GET["id"]));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MODIFICAR PAGINA </title>
        
        <script src="../ckeditorFull/ckeditor.js" type="text/javascript"></script>
	<script src="../ckfinder/ckfinder.js" type="text/javascript"></script>        
        
        <script type="text/javascript" src="../javascripts/jquery.js"></script>
        <script type="text/javascript" src="../javascripts/parsley.js"></script>
        <link rel="stylesheet" type="text/css" href="../stylesheets/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="../stylesheets/forms.css"/>
        <!-- fin include para formulario -->
        
        <link rel="stylesheet" type="text/css" href="../stylesheets/styles.css" />
Exemplo n.º 26
0
                                    <i class="icon-ok"></i>
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarUsuario", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Usuario", "Contraseña", "Correo", "Perfil", "fec. Crea", "fec. Modif"), array(75, 80, 80, 150, 90, 90, 90), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarUsuarioTot", "", !$_GET["campo"] ? "codigo" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros));
?>


                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>
 public static function delDocumento($idDocumento)
 {
     if ($idDocumento == NULL) {
         return false;
     }
     $sql = "delete from dop_paginas where id_documento=" . $idDocumento;
     $r = Datos::lanzar($sql, 'delete');
     if ($r === false) {
         return false;
     }
     $sql = "delete from dop_documentos where id_documento=" . $idDocumento;
     return Datos::lanzar($sql, 'delete');
 }
}
if (!$_POST['idElemento']) {
    echo 'error[;;]Error de parámetros, no se encuentra idElemento';
}
if (!$_POST['idPagina']) {
    echo 'error[;;]Error de parámetros, no se encuentra idPagina';
}
if (!$_POST['tipo']) {
    echo 'error[;;]Error de parámetros, no se encuentra tipo';
}
if (!$_POST['codigo']) {
    echo 'error[;;]Error de parámetros, no se encuentra codigo';
}
if (!$_POST['alto']) {
    echo 'error[;;]Error de parámetros, no se encuentra alto';
}
if (!$_POST['ancho']) {
    echo 'error[;;]Error de parámetros, no se encuentra ancho';
} else {
    $args = array('idElemento' => $_POST['idElemento'], 'idPagina' => $_POST['idPagina'], 'tipo' => $_POST['tipo'], 'codigo' => $_POST['codigo'], 'alto' => $_POST['alto'], 'ancho' => $_POST['ancho'], 'referencia' => isset($_POST['referencia']) ? $_POST['referencia'] : NULL, 'dtop' => isset($_POST['dtop']) ? $_POST['dtop'] : 0, 'dleft' => isset($_POST['dleft']) ? $_POST['dleft'] : 0, 'zindex' => isset($_POST['zindex']) ? $_POST['zindex'] : 1000, 'mtop' => isset($_POST['mtop']) ? $_POST['mtop'] : 0, 'mright' => isset($_POST['mright']) ? $_POST['mright'] : 0, 'mbottom' => isset($_POST['mbottom']) ? $_POST['mbottom'] : 0, 'mleft' => isset($_POST['mleft']) ? $_POST['mleft'] : 0, 'ptop' => isset($_POST['ptop']) ? $_POST['ptop'] : 0, 'pright' => isset($_POST['pright']) ? $_POST['pright'] : 0, 'pbottom' => isset($_POST['pbottom']) ? $_POST['pbottom'] : 0, 'pleft' => isset($_POST['pleft']) ? $_POST['pleft'] : 0, 'cfondo' => isset($_POST['cfondo']) ? $_POST['cfondo'] : NULL, 'borde' => isset($_POST['borde']) ? $_POST['borde'] : 0, 'cborde' => isset($_POST['cborde']) ? $_POST['cborde'] : NULL);
    include PLUGINPATH . 'class/datos.class.php';
    $idElemento = Datos::creaElemento($args);
    if ($idElemento === false) {
        echo 'error[;;]Error al crear el elemento para la página ' . $_POST['idPagina'];
    } else {
        $res = array();
        $res[] = 'success';
        $res[] = 'ok';
        echo implode('[;;]', $res);
    }
}
/*
/* Control de versiones:
/* --------------------------------------------------------------------
/* Autor					Fecha				Acción                                                                          
/*
/* Digital5 S.L.		09/03/2012	Creación               
/*
/****************************************************************************************************/
$pagTotales = 0;
$offset = 0;
$pagActual = 1;
if (isset($_POST['pagActual']) && $_POST['pagActual'] != NULL) {
    $pagActual = $_POST['pagActual'];
}
// Hallamos los registros totales:
$totales = Datos::getTotalDocumentos($userData['id']);
$pagTotales = ceil($totales / RCOUNT);
$offset = ($pagActual - 1) * RCOUNT;
if ($totales > 0) {
    ?>
<div class="paginacion">
	<input type="hidden" name="pagActual" id="pagActual" value="<?php 
    echo $pagActual;
    ?>
" />
	<?php 
    if ($pagActual > 1) {
        ?>
	<a href="javascript:paginar('principal',1,<?php 
        echo $pagTotales;
        ?>
Exemplo n.º 30
0
                                    <i class="icon-ok"></i>
                                </button>
                                <br/>
                                <input type="hidden" name="superhidden" id="superhidden"/>
                            </td>
                        </tr>
                        

                    </table>
                </div>

                <!-- BUSCAR DATOS  -->

                <!-- GRILLA  -->
                <?php 
$objMysql = new Mysql();
$objDatos = new Datos();
$mostrarRegistros = 8;
print $objMysql->getGrillaHTMLTablet($objDatos->getConsulta(array("listarDatos", "", !$_GET["campo"] ? "posicion" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $page, $mostrarRegistros)), "850", array("Código", "Posicion", "Campo", "Contenido", "URL"), array(75, 90, 165, 165, 295), array($_GET["campo"], $_GET["ordenar"], $page, $objDatos->getConsulta(array("listarDatosTot", "", !$_GET["campo"] ? "posicion" : $_GET["campo"], !$_GET["ordenar"] ? "asc" : $_GET["ordenar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], "")), $_POST["txtValorabuscar"] ? $_POST["txtValorabuscar"] : $_GET["txtValorabuscar"], $_POST["rdbBuscar"] ? $_POST["rdbBuscar"] : $_GET["rdbBuscar"], $mostrarRegistros));
?>


                <!--  ************************** -->    
            </form>
        </div>



    </body>
</html>