count($_SESSION['record_entries_list']) + 1, // Unique ID for the entry 'offense date' => $_POST['offense_date'], 'type of offense' => $_POST['type_of_offense'], 'disposition outcome' => $_POST['disposition_outcome'], 'offense location prefix' => $_POST['offense_location_prefix'], 'offense location street number' => $_POST['offense_location_street_number'], 'offense location street name' => $_POST['offense_location_street_name'], 'offense location street type' => $_POST['offense_location_street_type'], 'offense location unit' => $_POST['offense_location_unit'], 'offense location city' => $_POST['offense_location_city'], 'offense location state' => $_POST['offense_location_state'], 'offense location zip code' => $_POST['offense_location_zip_code'], 'offense location county' => $_POST['offense_location_county'] ]; $_SESSION['record_entries_list'][] = $new_entry; // Add the new entry to the session list } //--------------------------------------------------------------------------------------\\ // Multidimensional list reponsible for storing criminal record entries until they are sent //--------------------------------------------------------------------------------------\\ //--------------------------------------------------------------------------------------\\ function renderOffenseTypeOption() { $offenseTypes = [ 'Animal Cruelty','Arson','Assault','Battery','Bribery', 'Burglary','Child Abuse','Child Pornography','Conspiracy','Contempt of Court', 'Cybercrime','Disorderly Conduct','Domestic Violence','Driving Under the Influence (DUI)', 'Driving Without a License','Embezzlement','Escape','Extortion','Forgery','Fraud','Hate Crime', 'Homicide','Human Trafficking','Identity Theft','Illegal Weapons Possession','Kidnapping','Larceny', 'Manslaughter','Money Laundering','Obstruction of Justice','Perjury','Public Intoxication','Resisting Arrest', 'Robbery','Sexual Assault','Shoplifting','Smuggling','Solicitation','Soliciting Prostitution','Stalking', 'Tax Evasion','Terrorism','Theft','Trespassing','Violation of Probation' ]; foreach($offenseTypes as $offense){ echo "\n "; } } function renderDispositionOutcomes() { $dispositionOutcomes = ['Acquittal','Amnesty','Charges dropped/No charges filed','Commutation', 'Convicted','Deferred Prosecution','Dismissal','Expungement','Pardon','Pending','Reprieve', 'Sealed','Suspended sentence','Vacated' ]; foreach($dispositionOutcomes as $disposition){ echo "\n "; } } function renderOffenseLocationState() { $offenseLocation = [ 'ALABAMA','ALASKA','ARIZONA','ARKANSAS','CALIFORNIA','COLORADO','CONNECTICUT','DELAWARE','FLORIDA', 'GEORGIA','HAWAII','IDAHO','ILLINOIS','INDIANA','IOWA','KANSAS','KENTUCKY','LOUISIANA','MAINE', 'MARYLAND','MASSACHUSETTS','MICHIGAN','MINNESOTA','MISSISSIPPI','MISSOURI','MONTANA','NEBRASKA', 'NEVADA','NEW HAMPSHIRE','NEW JERSEY','NEW MEXICO','NEW YORK','NORTH CAROLINA','NORTH DAKOTA', 'OHIO','OKLAHOMA','OREGON','PENNSYLVANIA','RHODE ISLAND', 'SOUTH CAROLINA','SOUTH DAKOTA','TENNESSEE','TEXAS', 'UTAH','VERMONT','VIRGINIA','WASHINGTON', 'WEST VIRGINIA','WISCONSIN','WYOMING']; foreach ($offenseLocation as $location) { echo "\n "; } } function renderOffenseLocationStreetType() { $OffenseLocationStreetType = [ 'Avenue','Boulevard','Circle','Court','Drive','Highway', 'Lane','Parkway','Place','Road','Street','Terrace','Trail','Way' ]; foreach ( $OffenseLocationStreetType as $location) { echo "\n "; } } function criminalRecordEntries() { // Display the list of criminal record entries // if (empty($_SESSION['record_entries_list'])) { // echo '
No criminal record entries found.
'; // } else { // echo 'Criminal Record Entries:
'; // Loop through each entry and display its details foreach ($_SESSION['record_entries_list'] as $new_entry) { echo 'Offense Date: ', htmlspecialchars($new_entry['offense_date']), '
'; echo 'Type of Offense: ', htmlspecialchars($new_entry['type_of_offense']), '
'; echo 'Disposition Outcome: ', htmlspecialchars($new_entry['disposition_outcome']), '
'; echo 'Offense Location: ', htmlspecialchars($new_entry['offense_location_prefix']), ' ', htmlspecialchars($new_entry['offense_location_street_number']), ' ', htmlspecialchars($new_entry['offense_location_street_name']), ' ', htmlspecialchars($new_entry['offense_location_street_type']), ' ', htmlspecialchars($new_entry['offense_location_unit']), ', ', htmlspecialchars($new_entry['offense_location_city']), ', ', htmlspecialchars($new_entry['offense_location_state']), ' ', htmlspecialchars($new_entry['offense_location_zip_code']), ' ', htmlspecialchars($new_entry['offense_location_county']), '
'; }; } function renderProfileDisplay( $var_directory, $var_target_file, $var_first_name, $var_middle_name, $var_last_name, $var_date_of_birth, $var_state_of_residence) { echo 'FIRST NAME:
', $var_first_name,'MIDDLE NAME:
', $var_middle_name,'LAST NAME:
', $var_last_name,'DATE OF BIRTH:
', $var_date_of_birth,'STATE OF RESIDENCE:
', $var_state_of_residence; echo '