function vista_impresion_html(toba_impresion $salida)
 {
     echo '<img class="encabezado_impresion" src="img/logo_cav.png"> <br><br>';
     if (!isset($this->_info_pantalla['template_impresion']) || trim($this->_info_pantalla['template_impresion']) == '') {
         $salida->titulo($this->controlador->get_titulo());
         foreach ($this->_dependencias as $dep) {
             $dep->vista_impresion_html($salida);
         }
     } else {
         $this->generar_layout_template_impresion($salida);
     }
 }
示例#2
0
 function vista_impresion(toba_impresion $salida)
 {
     $salida->titulo($this->get_nombre());
     $salida->mensaje('Nota: Este es el Principal');
     $this->dependencia('filtro')->vista_impresion($salida);
     $this->dependencia('cuadro')->vista_impresion($salida);
     $this->dependencia('formulario')->vista_impresion($salida);
     $salida->salto_pagina();
     $salida->mensaje('Nota: Esta es una copia');
     $this->dependencia('filtro')->vista_impresion($salida);
     $this->dependencia('cuadro')->vista_impresion($salida);
     $this->dependencia('formulario')->vista_impresion($salida);
     $salida->salto_pagina();
     $salida->mensaje('Este es un formulario ML que esta en otra pagina');
     $this->dependencia('ml')->vista_impresion($salida);
 }
示例#3
0
 function vista_impresion_html(toba_impresion $salida)
 {
     if (!isset($this->_info_pantalla['template_impresion']) || trim($this->_info_pantalla['template_impresion']) == '') {
         $salida->titulo($this->controlador->get_titulo());
         foreach ($this->_dependencias as $dep) {
             $dep->vista_impresion_html($salida);
         }
     } else {
         $this->generar_layout_template_impresion($salida);
     }
 }
示例#4
0
 function vista_impresion_html(toba_impresion $salida)
 {
     $this->_carga_opciones_ef->cargar();
     $salida->subtitulo($this->get_titulo());
     if (!isset($this->_info_formulario['template_impresion']) || trim($this->_info_formulario['template_impresion']) == '') {
         $this->generar_layout_impresion();
     } else {
         $this->generar_layout_template_impresion();
     }
 }
示例#5
0
 /**
  * @ignore
  */
 function vista_impresion_html(toba_impresion $salida)
 {
     $salida->subtitulo($this->get_titulo());
     $this->generar_salida("impresion_html");
 }
示例#6
0
文件: toba_ei.php 项目: emma5021/toba
 /**
  * Impresion HTML por defecto
  * @param toba_impresion $salida
  */
 function vista_impresion_html(toba_impresion $salida)
 {
     $salida->titulo($this->get_nombre());
 }
示例#7
0
 function vista_impresion_html(toba_impresion $salida)
 {
     $this->totalizar_columnas_impresion();
     $formateo = new $this->_clase_formateo('impresion_html');
     $salida->subtitulo($this->get_titulo());
     $ancho = isset($this->_info_formulario["ancho"]) ? $this->_info_formulario["ancho"] : "auto";
     echo "<table class='tabla-0 ei-base ei-ml-base' style='width: {$ancho}'>\n";
     //-- Encabezado
     echo "<tr>\n";
     if ($this->_info_formulario['filas_numerar']) {
         echo "<th class='ei-ml-col-tit'>&nbsp;</th>\n";
     }
     foreach ($this->_lista_ef_post as $ef) {
         echo "<th class='ei-cuadro-col-tit'>\n";
         echo $this->_elemento_formulario[$ef]->get_etiqueta();
         echo "</th>\n";
     }
     echo "</tr>\n";
     //-- Cuerpo
     $a = 0;
     if (isset($this->_ordenes)) {
         foreach ($this->_ordenes as $fila) {
             $dato = $this->_datos[$fila];
             $this->cargar_registro_a_ef($fila, $dato);
             $this->_carga_opciones_ef->cargar();
             echo "<tr class='ei-ml-fila'>";
             if ($this->_info_formulario['filas_numerar']) {
                 echo "<td class='ef-numero'>\n" . ($a + 1) . "</td>\n";
             }
             foreach ($this->_lista_ef_post as $ef) {
                 $this->_elemento_formulario[$ef]->ir_a_fila($fila);
                 if (isset($this->_info_formulario_ef[$ef]["formateo"])) {
                     $funcion = "formato_" . $this->_info_formulario_ef[$ef]["formateo"];
                     $valor_real = $this->_elemento_formulario[$ef]->get_estado();
                     $valor = $formateo->{$funcion}($valor_real);
                 } else {
                     $valor = $this->_elemento_formulario[$ef]->get_descripcion_estado('impresion_html');
                 }
                 echo "<td>" . $valor . "</td>";
             }
             echo "</tr>\n";
             $a++;
         }
     }
     echo "\n</table>\n";
 }
示例#8
0
 function vista_impresion_html(toba_impresion $salida)
 {
     $this->_carga_opciones_ef->cargar();
     $ancho = isset($this->_info_filtro["ancho"]) ? $this->_info_filtro["ancho"] : "auto";
     $salida->subtitulo($this->get_titulo());
     $this->generar_layout_impresion($ancho);
 }