Exemple #1
0
 /**
  * Se configura el formulario con un set de datos básicos
  */
 function conf__form_datos_param(toba_ei_formulario $form)
 {
     $inicio = new toba_fecha();
     $fin = new toba_fecha();
     $fin->set_timestamp($inicio->get_fecha_desplazada_meses(1));
     $datos = array('valor_diario' => '15.25', 'fecha_inicio' => $inicio->get_fecha_db(), 'fecha_fin' => $fin->get_fecha_db());
     $form->set_datos($datos);
 }
Exemple #2
0
 function generar_html_info_operacion($res)
 {
     $encabezado = $this->controlador->get_analizador()->analizar_encabezado($res);
     $string = '';
     if (isset($encabezado['operacion'])) {
         $string .= "<span id='div_lapso' style='font-weight:bold;font-size:18px;'>{$encabezado['operacion']}</span><br>";
     }
     if (isset($encabezado['fecha'])) {
         $fecha_ref = new toba_fecha();
         $fecha_log = new toba_fecha();
         $fecha_log->set_timestamp(strtotime($encabezado['fecha']));
         $fecha = $fecha_log->get_timestamp_pantalla();
         if ($fecha_ref->es_igual_que($fecha_log)) {
             $fecha = 'Hoy  ' . date('H:i:s', strtotime($encabezado['fecha']));
         }
         $string .= "<span id='div_lapso' style='font-weight:bold;font-size:12px;'>{$fecha}</span><br>";
     }
     return $string;
 }