$event_ids, 'order' => 'utimestamp ASC'), array ('evento', 'utimestamp', 'estado', 'criticity')); $out = ''; $out .= ''; foreach($events as $event) { switch($event["estado"]) { case 0: $img = "../../images/star.png"; $title = __('New event'); break; case 1: $img = "../../images/tick.png"; $title = __('Event validated'); break; case 2: $img = "../../images/hourglass.png"; $title = __('Event in process'); break; } $out .= ''; } $out .= '
'; $out .= ''.$title.''; $out .= ''; $out .= io_safe_output($event['evento']); $out .= '
'; $out .= '
'; $out .= '
'; echo $out; } ?>