'< ' . $from_date)); if ($deleted !== false) { ui_print_success_message(__('Successfully deleted old events')); } else { ui_print_error_message(__('Error deleting old events')); } } # End of get parameters block $row = db_get_row_sql ("SELECT COUNT(*) AS total, MIN(timestamp) AS first_date, MAX(timestamp) AS latest_date FROM tevento"); $table->data = array (); $table->cellpadding = 4; $table->cellspacing = 4; $table->class = "databox"; $table->width = '98%'; $table->data[0][0] = ''.__('Total').':'; $table->data[0][1] = $row["total"].' '.__('Records'); $table->data[1][0] = ''.__('First date').':'; $table->data[1][1] = $row["first_date"]; $table->data[2][0] = ''.__('Latest data').':'; $table->data[2][1] = $row["latest_date"]; html_print_table ($table); unset ($table); echo '