Пример #1
0
<?php

require_once "../../lib/php/constantes.php";
require_once "{$RUTA_A}/Connections/fwk_db.php";
require_once "{$RUTA_A}/functions/utils.php";
include "../../lib/php/messageResources.php";
$INDEXIDIOMA = $_SESSION["idiomausuario"];
error_log(print_r($_POST, True));
if (isset($_POST["registrar"])) {
    Guardar();
} else {
    if (isset($_POST["cancelar"])) {
        header("Location: ./index.php");
    } else {
        Muestra();
    }
}
function Guardar()
{
    $politica = new Politica();
    if (isset($_POST['nombre']) && $_POST['nombre'] != "" && isset($_POST['cantidad']) && $_POST['cantidad'] != "" && isset($_POST['unidad']) && $_POST['unidad'] != "") {
        $p_nombre = $_POST['nombre'];
        $p_concepto = $_POST['concepto_id'];
        $p_nivel = $_POST['nivel_id'];
        $p_pais = $_POST['pais_id'];
        $p_cantidad = $_POST['cantidad'];
        $p_tipo = $_POST['tipo_id'];
        $p_unidad = $_POST['unidad'];
        $p_asistentes = 0;
        if (isset($_POST['asistentes'])) {
            if ($_POST['asistentes'] == "on") {
Пример #2
0
             if ($Nombres != "" or $Apellidos != "") {
                 $sql = $sql . "Where nombres like '" . $Nombres . "' or  Apellidos like '" . $Apellidos . "'  ";
             }
             $Listado = lisTablaMod($sql, "");
         }
     }
     if (isset($_GET["lista"]) == "Formulario1") {
         if ($_GET["lista"] == "formulario1") {
             $sql = "select codigo,nombres,Apellidos,email,Telefono  from usuarios ";
             $CodEsponsort = $_GET["esponsort"];
             $Listado = Formularios("sponsort", $CodEsponsort);
         }
     } else {
         if (isset($_POST["Boton"]) != "") {
             if ($_POST["Boton"] == "Guardar") {
                 echo Guardar("sponsort");
             } else {
                 if ($_POST["Boton"] == "Actualizar") {
                     echo Actualizar("sponsort");
                     $Listado = "Se Actualizo Correctamente";
                 } else {
                     if ($_POST["Boton"] == "Eliminar") {
                         echo Eliminar("sponsort");
                         $Listado = "Se Elimino Correctamente";
                     }
                 }
             }
         }
     }
 }
 echo Paneles($Boton, $titulo . $PanelB . $Listado, "20%", "lugar", "menuVerticalA");