Пример #1
0
$css->CierraFilaTabla();
$css->FilaTabla(14);
print "<td>";
$css->CrearInputText("TxtFecha", "text", "", date("Y-m-d"), "Fecha", "Fecha", "", "", 100, 30, 0, 1);
print "</td>";
print "<td>";
$css->CrearSelect("CmbCuentaDestino", "");
$Consulta = $obVenta->ConsultarTabla("cuentasfrecuentes", "WHERE ClaseCuenta='ACTIVOS'");
if (mysql_num_rows($Consulta)) {
    while ($DatosCuentasFrecuentes = mysql_fetch_array($Consulta)) {
        $css->CrearOptionSelect($DatosCuentasFrecuentes["CuentaPUC"], $DatosCuentasFrecuentes["Nombre"], 0);
    }
} else {
    print "<script>alert('No hay cuentas frecuentes creadas debe crear al menos una')</script>";
}
$css->CerrarSelect();
print "</td>";
print "<td>";
$css->CrearSelect("CmbCentroCostos", "");
$Consulta = $obVenta->ConsultarTabla("centrocosto", "");
if (mysql_num_rows($Consulta)) {
    while ($DatosCentroCosto = mysql_fetch_array($Consulta)) {
        $css->CrearOptionSelect($DatosCentroCosto["ID"], $DatosCentroCosto["Nombre"], 0);
    }
} else {
    print "<script>alert('No hay centros de costo, debe crear al menos uno')</script>";
}
$css->CerrarSelect();
print "</td>";
print "<td>";
$VarSelect["Ancho"] = "200";
Пример #2
0
function CrearFormularioInformes($VectorInformes)
{
    $FormName = $VectorInformes["FormName"];
    $ActionForm = $VectorInformes["ActionForm"];
    $Metod = $VectorInformes["Metod"];
    $Target = $VectorInformes["Target"];
    $Titulo = $VectorInformes["Titulo"];
    $idUser = $_SESSION['idUser'];
    $obVenta = new ProcesoVenta($idUser);
    $css = new CssIni("Balance de Comprobacion");
    $css->CrearForm2($FormName, $ActionForm, $Metod, $Target);
    $css->CrearTabla();
    $css->FilaTabla(14);
    $css->ColTabla("<strong>{$Titulo}</strong>", 5);
    $css->CierraFilaTabla();
    $css->FilaTabla(14);
    $css->ColTabla("<strong>TIPO:</strong>", 1);
    $css->ColTabla("<strong>FECHA INICIAL:</strong>", 1);
    $css->ColTabla("<strong>FECHA FINAL:</strong>", 1);
    $css->ColTabla("<strong>EMPRESA:</strong>", 1);
    $css->ColTabla("<strong>CENTRO DE COSTOS:</strong>", 1);
    $css->CierraFilaTabla();
    $css->FilaTabla(14);
    print "<td>";
    $css->CrearSelect("CmbTipoReporte", "");
    $css->CrearOptionSelect("Corte", "Fecha de Corte", 1);
    $css->CrearOptionSelect("Rango", "Por Rango de Fechas", 0);
    $css->CerrarSelect();
    print "<br>";
    $css->CrearInputText("TxtFechaCorte", "date", "Fecha de Corte:<br>", date("Y-m-d"), "Fecha Corte", "black", "", "", 150, 30, 0, 1);
    print "</td>";
    print "<td>";
    $css->CrearInputText("TxtFechaIni", "date", "", date("Y-m-d"), "Fecha Inicial", "black", "", "", 150, 30, 0, 1);
    print "</td>";
    print "<td>";
    $css->CrearInputText("TxtFechaFinal", "date", "", date("Y-m-d"), "Fecha Inicial", "black", "", "", 150, 30, 0, 1);
    print "</td>";
    print "<td>";
    $css->CrearSelect("CmbEmpresaPro", "");
    $css->CrearOptionSelect("ALL", "COMPLETO", 0);
    $consulta = $obVenta->ConsultarTabla("empresapro", "");
    while ($DatosEmpresa = $obVenta->FetchArray($consulta)) {
        $css->CrearOptionSelect($DatosEmpresa["idEmpresaPro"], $DatosEmpresa["RazonSocial"], 0);
    }
    $css->CerrarSelect();
    print "</td>";
    print "<td>";
    $css->CrearSelect("CmbCentroCostos", "");
    $consulta = $obVenta->ConsultarTabla("centrocosto", "");
    $css->CrearOptionSelect("ALL", "COMPLETO", 0);
    while ($DatosEmpresa = $obVenta->FetchArray($consulta)) {
        $css->CrearOptionSelect($DatosEmpresa["ID"], $DatosEmpresa["Nombre"], 0);
    }
    $css->CerrarSelect();
    print "</td>";
    $css->FilaTabla(16);
    print "<td colspan='5' style='text-align:center'>";
    $css->CrearBotonVerde("BtnVerInforme", "Generar Informe");
    print "</td>";
    $css->CierraFilaTabla();
    $css->CerrarTabla();
    $css->CerrarForm();
}