Ejemplo n.º 1
0
// Clase Date
require '.' . $obj_config->GetVar('ruta_libreria') . 'Fecha.php';
$obj_date = new Fecha();
// Conexion a la bases de datos
require '.' . $obj_config->GetVar('ruta_libreria') . 'Bd.php';
$obj_conexion = new Bd();
if (!$obj_conexion->ConnectDataBase($obj_config->GetVar('host'), $obj_config->GetVar('data_base'), $obj_config->GetVar('usuario_db'), $obj_config->GetVar('clave_db'))) {
    echo "sin_conexion_bd";
}
// Modelo asignado
require '.' . $obj_config->GetVar('ruta_modelo') . 'RVer_resultados.php';
$obj_modelo = new RVer_Resultados($obj_conexion);
session_start();
//$id_taquilla=2;
// Obtenemos los datos de la taquilla
$id_taquilla = $obj_modelo->GetIdTaquilla();
$string = date('Y-m-d H:i:s');
$year = substr($string, 0, 4);
$month = substr($string, 5, 2);
$day = substr($string, 8, 2);
$hour = substr($string, 11, 2);
$minute = substr($string, 14, 2);
$dias = array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado");
//$fecha_hora=$day."-".$month."-".$year." ".$hour.":".$minute;
$fecha_hora = $day . "-" . $month . "-" . $year;
if ($hour > 11) {
    $formato = "PM";
} else {
    $formato = "AM";
}
$formato_militar = array("13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24");