<?php

require '/Constantes.php';
require CONSTANT_PATH_CONFIGURACION . "/ventanasEmergentes.php";
require CONSTANT_PATH_CONFIGURACION . "/clases/estadoCuentaE.class.php";
require CONSTANT_PATH_CONFIGURACION . "/funciones.php";
//include("/configuracion/clases/respaldoCuentaE.class.php"); include("/configuracion/funciones.php");
$sSQLC = "Select status From statusCaja where entidad='" . $entidad . "' and usuario='" . $usuario . "' order by keySTC DESC ";
$resultC = mysql_db_query($basedatos, $sSQLC);
$myrowC = mysql_fetch_array($resultC);
if ($myrowC['status'] == 'abierta') {
    //*******************Comienzo la validaci�n*****************
    $eCuenta = new eCuentasE();
    $eCuenta->eCuentaE("altaPacientes", TRUE, $usuario, $entidad, $_GET['almacenSolicitante'], $fecha1, $hora1, $dia, $usuario, $_GET['nT'], $basedatos);
} else {
    echo 'La caja esta cerrada';
}
//MAIN 1
<?php

require "/Constantes.php";
include CONSTANT_PATH_CONFIGURACION . "/ventanasEmergentes.php";
include CONSTANT_PATH_CONFIGURACION . "/clases/estadoCuentaE.class.abonos.php";
include CONSTANT_PATH_CONFIGURACION . "/funciones.php";
//include("/configuracion/clases/respaldoCuentaE.class.php"); include("/configuracion/funciones.php");
$sSQLC = "Select status From statusCaja where entidad='" . $entidad . "' and usuario='" . $usuario . "' order by keySTC DESC ";
$resultC = mysql_db_query($basedatos, $sSQLC);
$myrowC = mysql_fetch_array($resultC);
if ($myrowC['status'] == 'abierta') {
    //*******************Comienzo la validaci�n*****************
    $eCuenta = new eCuentasE();
    $eCuenta->eCuentaE(FALSE, $usuario, $entidad, $_GET['almacenSolicitante'], $fecha1, $hora1, $dia, $usuario, $_GET['nT'], $basedatos);
} else {
    echo 'La caja esta cerrada';
}
<?php

require "/Constantes.php";
require CONSTANT_PATH_CONFIGURACION . "/ventanasEmergentes.php";
require CONSTANT_PATH_CONFIGURACION . "/clases/estadoCuentaE.class.php";
require CONSTANT_PATH_CONFIGURACION . "/funciones.php";
?>

<?php 
$sSQLC = "Select status From statusCaja where entidad='" . $entidad . "' and usuario='" . $usuario . "' order by keySTC DESC ";
$resultC = mysql_db_query($basedatos, $sSQLC);
$myrowC = mysql_fetch_array($resultC);
if ($myrowC['status'] == 'abierta') {
    //*******************Comienzo la validaci�n*****************
    $eCuenta = new eCuentasE();
    $eCuenta->eCuentaE($_GET['descripcionTransaccion'], TRUE, $usuario, $entidad, $_GET['almacenSolicitante'], $fecha1, $hora1, $dia, $usuario, $_GET['nT'], $basedatos);
} else {
    echo 'La caja esta cerrada';
}