(int)$days, 'hour' => (int)$hours, 'minute' => (int)$minutes, 'second' => (int)$seconds, ]; foreach ($sections as $name => $value){ if ($value > 0){ $timeParts[] = $value. ' '.$name.($value == 1 ? '' : 's'); } } return implode(', ', $timeParts); } if (isset($_GET['year'])) { $year = intval($_GET['year']); } else { $year = date('Y'); } if (isset($_GET['month'])) { $month = intval($_GET['month']); } else { $month = date('m'); } $sql_ticket_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(ticket_created_at) AS ticket_year FROM tickets ORDER BY ticket_year DESC"); $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE client_archived_at IS NULL ORDER BY client_name ASC"); $sql_users = mysqli_query($mysqli, " SELECT users.user_id, user_name FROM users LEFT JOIN user_settings on users.user_id = user_settings.user_id WHERE user_type = 1 AND user_status = 1 AND user_archived_at IS NULL ORDER BY user_name DESC" ); // TODO: Maybe try and filter this to just users with the support module perm ?>

Time Logged By Technician

Yearly ()

Technician Tickets assigned Tickets touched Total time worked (H:M:S)