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; }