///// ///// $css->CrearImageLink($myPage, "../images/Anticipos.png", "_self", 200, 200); ///////////////Se crea el DIV que servirá de contenedor secundario ///// ///// $css->CrearDiv("Secundario", "container", "center", 1, 1); /* * Dibujamos el formulario para seleccionar los datos del ingreso * */ if (!empty($_REQUEST["TxtidIngreso"])) { $RutaPrintIngreso = "../tcpdf/examples/imprimiringreso.php?ImgPrintIngreso=" . $_REQUEST["TxtidIngreso"]; $css->CrearTabla(); $css->CrearFilaNotificacion("Comprobante de Ingreso Creado Correctamente <a href='{$RutaPrintIngreso}' target='_blank'>Imprimir Comprobante de Ingreso No. {$_REQUEST['TxtidIngreso']}</a>", 16); $css->CerrarTabla(); } $css->CrearNotificacionAzul("Ingrese los datos para registrar el Anticipo", 16); $css->CrearForm2("FrmIngresos", $myPage, "post", "_self"); $css->CrearTabla(); $css->FilaTabla(14); $css->ColTabla("<strong>Fecha</strong>", 1); $css->ColTabla("<strong>Cuenta Ingreso</strong>", 1); $css->ColTabla("<strong>Centro de Costo</strong>", 1); $css->ColTabla("<strong>Cliente</strong>", 1); $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>";
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(); }