<?php
header('Content-Type: text/csv');
header('Content-Disposition: attachment; filename="sample_staff.csv"');

$output = fopen('php://output', 'w');

// CSV Headers - 'Role' column removed
fputcsv($output, ['Username', 'Email', 'Phone Number', 'Work', 'Department', 'Status']);

// Sample Data - 'Role' value removed
fputcsv($output, ['john.doe', 'john.doe@example.com', '111-222-3333', 'Administrator', 'General Admin', 'active']);
fputcsv($output, ['jane.smith', 'jane.smith@example.com', '444-555-6666', 'Librarian', 'Library', 'active']);
fputcsv($output, ['peter.jones', 'peter.jones@example.com', '777-888-9999', 'Accountant', 'Finance', 'inactive']);

fclose($output);
exit();
?>
