<?php
        $f = fopen("https://stonybrook.edu/__admin-units/commencement/data/commencement_data_2026_05_11.csv", "r");
        echo "<section class='graduates' id='graduates'>";
        $chemgrads = "";
        $biograds = "";
		$creatvewritinggrads = "";
        $africanagrads = "";
        $anthropologygrads = "";
        $arthistorygrads = "";
        $aaasgrads = "";
        $astronomygrads = "";
        $biochemistrygrads = "";
        $earthspacegrads = "";
        $economicsgrads = "";
        $engchemgrads = "";
        $englishgrads = "";
        $frenchgrads = "";
        $frenchlitgrads = "";
        $geologygrads = "";
        $globalgrads = "";
        $historygrads = "";
        $hebiograds = "";
        $italiangrads = "";
        $linguisticsgrads = "";
        $mathematicsgrads = "";
        $mediaartgrads = "";
        $multidiscgrads = "";
        $musicgrads = "";
        $philosophygrads = "";
        $physicsgrads = "";
        $poliscigrads = "";
        $psychologygrads = "";
        $sociologygrads = "";
        $spanishlanglitgrads = "";
        $studioartgrads = "";
        $womensgsgrads = "";
        while (($line = fgetcsv($f)) !== false) {
            $fn = $line[1];
            $ln = $line[3];
            $pac = $line[6];
            $plandesc = $line[9];
            $honorestimate = $line[5];

            if ($pac == "CAS") {
                switch ($plandesc) {
                    case 'Biology':
                        $biograds .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $biograds .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $biograds .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $biograds .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            $biograds .= "</p></div>";
                        }
                        break;
                    case 'Chemistry':
                        $chemgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $chemgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $chemgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $chemgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            $chemgrads .= "</p></div>";
                        }
                        break;
					case 'Creative Writing':
                        $creatvewritinggrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $creatvewritinggrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $creatvewritinggrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $creatvewritinggrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            $creatvewritinggrads .= "</p></div>";
                        }
                        break;
                    case 'Africana Studies':
                        $africanagrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $africanagrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $africanagrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $africanagrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            $africanagrads .= "</p></div>";
                        }
                        break;
                    case 'Anthropology':
                        $anthropologygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $anthropologygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $anthropologygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $anthropologygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $anthropologygrads .= "</p></div>";
                        }
                        break;
                    case 'Art History and Criticism':
                        $arthistorygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $arthistorygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $arthistorygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $arthistorygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $arthistorygrads .= "</p></div>";
                        }
                        break;
                    case 'Asian and Asian American Studies':
                        $aaasgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $aaasgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $aaasgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $aaasgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $aaasgrads .= "</p></div>";
                        }
                        break;
                    case 'Astronomy / Planetary Sciences':
                        $astronomygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $astronomygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $astronomygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $astronomygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            $astronomygrads .= "</p></div>";
                        }
                        break;
                    case 'Biochemistry':
                        $biochemistrygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $biochemistrygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $biochemistrygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $biochemistrygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $biochemistrygrads .= "</p></div>";
                        }
                        break;
                    case 'Earth and Space Sciences':
                        $earthspacegrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $earthspacegrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $earthspacegrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $earthspacegrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $earthspacegrads .= "</p></div>";
                        }
                        break;
                    case 'Economics':
                        $economicsgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $economicsgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $economicsgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $economicsgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $economicsgrads .= "</p></div>";
                        }
                        break;
                    case 'Engineering Chemistry':
                        $engchemgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $engchemgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $engchemgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $engchemgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $engchemgrads .= "</p></div>";
                        }
                        break;
                    case 'English':
                        $englishgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $englishgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $englishgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $englishgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $englishgrads .= "</p></div>";
                        }
                        break;
                    case 'French':
                        $frenchgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $frenchgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $frenchgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $frenchgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $frenchgrads .= "</p></div>";
                        }
                        break;
                    case 'French Language and Literature':
                        $frenchlitgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $frenchlitgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $frenchlitgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $frenchlitgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $frenchlitgrads .= "</p></div>";
                        }
                        break;
                    case 'Geology':
                        $geologygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $geologygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $geologygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $geologygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $geologygrads .= "</p></div>";
                        }
                        break;
                    case 'Globalization Studies and International Relations':
                        $globalgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $globalgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $globalgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $globalgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $globalgrads .= "</p></div>";
                        }
                        break;
                    case 'History':
                        $historygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $historygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $historygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $historygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $historygrads .= "</p></div>";
                        }
                        break;
                    case 'Human Evolutionary Biology':
                        $hebiograds .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $hebiograds .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $hebiograds .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $hebiograds .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $hebiograds .= "</p></div>";
                        }
                        break;
                    case 'Italian Studies':
                        $italiangrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $italiangrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $italiangrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $italiangrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $italiangrads .= "</p></div>";
                        }
                        break;
                    case 'Linguistics':
                        $linguisticsgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $linguisticsgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $linguisticsgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $linguisticsgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $linguisticsgrads .= "</p></div>";
                        }
                        break;
                    case 'Mathematics':
                        $mathematicsgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $mathematicsgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $mathematicsgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $mathematicsgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $mathematicsgrads .= "</p></div>";
                        }
                        break;
                    case 'Media / Art / Culture':
                        $mediaartgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $mediaartgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $mediaartgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $mediaartgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $mediaartgrads .= "</p></div>";
                        }
                        break;
                    case 'Multidisciplinary Studies':
                        $multidiscgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $multidiscgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $multidiscgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $multidiscgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $multidiscgrads .= "</p></div>";
                        }
                        break;
                    case 'Music':
                        $musicgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $musicgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $musicgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $musicgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $musicgrads .= "</p></div>";
                        }
                        break;
                    case 'Philosophy':
                        $philosophygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $philosophygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $philosophygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $philosophygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $philosophygrads .= "</p></div>";
                        }
                        break;
                    case 'Physics':
                        $physicsgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $physicsgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $physicsgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $physicsgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $physicsgrads .= "</p></div>";
                        }
                        break;
                    case 'Political Science':
                        $poliscigrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $poliscigrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $poliscigrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $poliscigrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $poliscigrads .= "</p></div>";
                        }
                        break;
                    case 'Psychology':
                        $psychologygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $psychologygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $psychologygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $psychologygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $psychologygrads .= "</p></div>";
                        }
                        break;
                    case 'Sociology':
                        $sociologygrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $sociologygrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $sociologygrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $sociologygrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $sociologygrads .= "</p></div>";
                        }
                        break;
                    case 'Spanish Language and Literature':
                        $spanishlanglitgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $spanishlanglitgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $spanishlanglitgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $spanishlanglitgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $spanishlanglitgrads .= "</p></div>";
                        }
                        break;
                    case 'Studio Art':
                        $studioartgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $studioartgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $studioartgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $studioartgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $studioartgrads .= "</p></div>";
                        }
                        break;
                    case 'Women\'s and Gender Studies':
                        $womensgsgrads .= "<div class='grad'><p>" . $fn . " " . $ln;
                        if ($honorestimate != '') {
                            if ($honorestimate == "MAGNA") {
                                $womensgsgrads .= "<span class='honorestimate m-c' data-honors='Magna Cum Laude'>M</span></p></div>";
                            }
                            if ($honorestimate == "SUMMA") {
                                $womensgsgrads .= "<span class='honorestimate s-c' data-honors='Summa Cum Laude'>S</span></p></div>";
                            }
                            if ($honorestimate == "LAUDE") {
                                $womensgsgrads .= "<span class='honorestimate l-c' data-honors='Cum Laude'>L</span></p></div>";
                            }
                        } else {
                            //echo "</p></div>";
                            $womensgsgrads .= "</p></div>";
                        }
                        break;
                    default:
                        # code...
                        break;
                }
            }
        }
        echo "<section class='gradsection'><h4>Biology</h4>" . $biograds . "</section>";
        echo "<section class='gradsection'><h4>Chemistry</h4>" . $chemgrads . "</section>";
		echo "<section class='gradsection'><h4>Creative Writing</h4>" . $creatvewritinggrads . "</section>";
        echo "<section class='gradsection'><h4>Africana Studies</h4>" . $africanagrads . "</section>";
        echo "<section class='gradsection'><h4>Anthropology</h4>" . $anthropologygrads . "</section>";
        echo "<section class='gradsection'><h4>Art History and Criticism</h4>" . $arthistorygrads . "</section>";
        echo "<section class='gradsection'><h4>Asian and Asian American Studies</h4>" . $aaasgrads . "</section>";
        echo "<section class='gradsection'><h4>Astronomy and Planetary Sciences</h4>" . $astronomygrads . "</section>";
        echo "<section class='gradsection'><h4>Biochemistry</h4>" . $biochemistrygrads . "</section>";
        echo "<section class='gradsection'><h4>Earth and Space Sciences</h4>" . $earthspacegrads . "</section>";
        echo "<section class='gradsection'><h4>Economics</h4>" . $economicsgrads . "</section>";
        echo "<section class='gradsection'><h4>Engineering Chemistry</h4>" . $engchemgrads . "</section>";
        echo "<section class='gradsection'><h4>English</h4>" . $englishgrads . "</section>";
        if ($frenchgrads == "") {
            echo "";
        } else {
            echo "<section class='gradsection'><h4>French</h4>" . $frenchgrads . "</section>";
        }
        echo "<section class='gradsection'><h4>French Language and Literature</h4>" . $frenchlitgrads . "</section>";
        echo "<section class='gradsection'><h4>Geology</h4>" . $geologygrads . "</section>";
        echo "<section class='gradsection'><h4>Globalization Studies and International Relations</h4>" . $globalgrads . "</section>";
        echo "<section class='gradsection'><h4>History</h4>" . $historygrads . "</section>";
        echo "<section class='gradsection'><h4>Human Evolutionary Biology</h4>" . $hebiograds . "</section>";
        if ($italiangrads == "") {
            echo "";
        } else {
            echo "<section class='gradsection'><h4>Italian Studies</h4>" . $italiangrads . "</section>";
        }
        echo "<section class='gradsection'><h4>Linguistics</h4>" . $linguisticsgrads . "</section>";
        echo "<section class='gradsection'><h4>Mathematics</h4>" . $mathematicsgrads . "</section>";
        echo "<section class='gradsection'><h4>Media / Art / Culture</h4>" . $mediaartgrads . "</section>";
        echo "<section class='gradsection'><h4>Multidisciplinary Studies</h4>" . $multidiscgrads . "</section>";
        echo "<section class='gradsection'><h4>Music</h4>" . $musicgrads . "</section>";
        echo "<section class='gradsection'><h4>Philosophy</h4>" . $philosophygrads . "</section>";
        echo "<section class='gradsection'><h4>Physics</h4>" . $physicsgrads . "</section>";
        echo "<section class='gradsection'><h4>Political Science</h4>" . $poliscigrads . "</section>";
        echo "<section class='gradsection'><h4>Psychology</h4>" . $psychologygrads . "</section>";
        echo "<section class='gradsection'><h4>Sociology</h4>" . $sociologygrads . "</section>";
        echo "<section class='gradsection'><h4>Spanish Language and Literature</h4>" . $spanishlanglitgrads . "</section>";
        echo "<section class='gradsection'><h4>Studio Art</h4>" . $studioartgrads . "</section>";
        echo "<section class='gradsection'><h4>Women's and Gender Studies</h4>" . $womensgsgrads . "</section>";
        echo "</section>";
        fclose($f);
        ?>