Example #1
0
<?php

include "base_datos.php";
$db = new base_datos();
VAR_DUMP($_REQUEST["formulario"]);
if ($_REQUEST["formulario"] == "agregarEmpleados") {
    if ($_REQUEST["password"] == $_REQUEST["confirmpassword"]) {
        $db->agregarEmpleados($_REQUEST["idEmpleados"], $_REQUEST["Nombre"], $_REQUEST["apellido_paterno"], $_REQUEST["apellido_materno"], $_REQUEST["Domicilio"], $_REQUEST["Telefono"], $_REQUEST["password"]);
    }
    header("Location: empleados.php");
    echo "<h2>Dato Guardado</h2>";
}
$db->agregarClientes($_REQUEST["idClientes"], $_REQUEST["Nombre"], $_REQUEST["Apellido_Paterno"], $_REQUEST["apellido_Materno"], $_REQUEST["Domicilio"], $_REQUEST["Telefono"]);
header("Location: clientes.php");
echo "<h2>Dato Guardado</h2>";
Example #2
0
 * 
 */
require "joomla_class.php";
require "joomla_config.php";
$product_id = $_REQUEST['producto'];
if (isset($_REQUEST["desde"])) {
    $desde = $_REQUEST["desde"];
} else {
    $desde = date("01/m/Y");
}
if (isset($_REQUEST["hasta"])) {
    $hasta = $_REQUEST["hasta"];
} else {
    $hasta = date("d/m/Y");
}
$base_datos = new base_datos();
$bd_conexion = $base_datos->conectar($config->get("bd_tipo"), $config->get("bd_host"), $config->get("bd_puerto"), $config->get("bd_nombre"), $config->get("bd_usuario"), $config->get("bd_clave"));
//echo $config->get('bd_tipo');
$joomla_class = new joomla_class($bd_conexion);
//echo "<pre>";
//print_r($joomla_class->lista_cursos());
//echo "</pre>";
//echo "PRUEBA"."<br />";
?>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>PRUEBA</title>
		<style>
			select {/*font-size:0.8em*/}