示例#1
0
 function insertUser()
 {
     $vConex = conexSys();
     $pagweb = $_POST["pagweb"];
     $email = $_POST["email"];
     $nombres = $_POST["Nombres"];
     $apellidos = $_POST["Apellidos"];
     $clavedefault = $_POST["Contrasena"];
     $entidadCreadora = $_POST["entidadCreadora"];
     $rsp = CrearUser_Compra2($pagweb, $email, $nombres, $apellidos, $clavedefault, 3, $entidadCreadora, $vConex, true);
     if ($rsp) {
         WE(json_encode(array('status' => true)));
     } else {
         WE(json_encode(array('status' => false)));
     }
 }
require_once '../_librerias/php/funciones.php';
require_once '../_librerias/php/conexiones.php';
//require_once('../_vistas/gad_verify.php');
//error_reporting(E_ERROR);
if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}
if (!defined('BASE_PATH')) {
    define('BASE_PATH', filter_input(INPUT_SERVER, 'DOCUMENT_ROOT') . DS);
}
if (!defined('BASE_PATH')) {
    define('BASE_PATH', $_SERVER['DOCUMENT_ROOT'] . DS);
}
$enlace = "./_vistas/adminTablasForms.php";
$vConex = conexSys();
$cnOwl = conexSys();
$FechaHora = FechaHoraSrv();
///////////////////////////////
$enterprise_user = $_SESSION["enterprise_user"];
$url_id = $_SESSION["url_id"];
$image_logo_url = $_SESSION["logo_url"];
if (get('ImportarExportar') != '') {
    ImportarExportar(get('ImportarExportar'));
}
if (get('muestra') != '') {
    detalleForm(get('muestra'));
}
if (get('accionCT') != '') {
    vistaCT(get('accionCT'));
}
if (get('actualizaTabla') != '') {
<?php 
require_once './_librerias/php/conexiones.php';
require_once './_librerias/php/funciones.php';
$vConex = conexSys();
$cnOwl = conexOwl();
function menuSiteEmpresa($valor)
{
    $html = '<!DOCTYPE html> ';
    $html = $html . '<html lang="es">';
    $html = $html . '<head>';
    $html = $html . '<title>Owl</title>';
    $html = $html . ' <meta charset="utf-8">';
    $html = $html . ' <meta name="viewport" content="width=device-width, initial-scale=1.0">';
    $html = $html . '<meta name="description" content="">';
    $html = $html . '<meta name="keywords" content="">';
    $html = $html . ' <meta name="author" content="">';
    $html = $html . '<script type="text/javascript" src="_librerias/js/global.js"></script>';
    $html = $html . '<script type="text/javascript" src="_librerias/js/ajaxglobal.js"></script>';
    $html = $html . '<link href="./_estilos/estiloCuadro.css" rel="stylesheet" type="text/css" />';
    $html = $html . '</head>';
    $html = $html . '<body>';
    $html = $html . '<div class="site">';
    $html = $html . '<div id="menu" class="mHSinSubElementosA001 tamano">';
    $sClassA = "font-weight:bold;font-size:2.2em;line-height:40px;";
    $sClassB = "font-weight:lighter;font-size:0.75em;margin:8px 0px 0px 2px;";
    $sUrlPanelesA = "PanelA[PanelA[./_vistas/carrusel.html?vista=PanelA[1000|";
    $sUrlPanelesA = $sUrlPanelesA . "PanelB[PanelB[../_vistas/se_publicidad.php?empresa=" . $tIdUsuario . "[2000|";
    // $sUrlPanelesA = $sUrlPanelesA."PanelC[PanelC[./vistas/site.php?vista=PanelC[4000|";
    $sBotMatris = "<div style='" . $sClassA . "'>OWL</div><div style='" . $sClassB . "'>HERRAMIENTAS</div>]" . $sUrlPanelesA . "]cuerpo]RZ}";
    $sBotMatris = $sBotMatris . "Home]index.php?TipoConsulta=juan&usuario=daniel&estado=Abierto]cuerpo]C}";
    $sBotMatris = $sBotMatris . "Login]index.php?TipoConsulta=Felipe&usuario=daniel&estado=Abierto]cuerpo]C}";
示例#4
0
function delete($tabla, $where, $link_identifier = null)
{
    if (is_null($link_identifier)) {
        $link_identifier = conexSys();
    }
    $whereArray = array();
    $whereString = "";
    $tabla = (string) $tabla;
    $where = (array) $where;
    $return = false;
    if (!empty($tabla) && !empty($where)) {
        foreach ($where as $name => $value) {
            //            $valorEsc = mysql_real_escape_string($value, $link_identifier);
            //            $valor = is_int($value) ? $value : "'$valorEsc'";
            //            $whereArray[] = $name . '=' . $valor;
            $whereArray[] = "{$name}='{$value}'";
        }
        $whereString = implode(' AND ', $whereArray);
        $sql = "DELETE FROM {$tabla} WHERE {$whereString}";
        $return = mysql_query($sql, $link_identifier);
    }
    return $return;
}