ERAU Prescott Upcoming Events...

United States, please select your state to see upcoming ERAU events in or near your area.

For International events, please select the globe below to see upcoming international ERAU events.

Embry-Riddle Aeronautical University
3700 Willow Creek Road
Prescott, Arizona 86301

1-800-888-3728
928-777-6600
Email: pradmit@erau.edu

 

There are currently no events for your selection. Please check back later.

 



RSS \n"); //view press release if set if ($strView == "release") { viewrelease($intReleaseID); } else // there is a lot of processing before this ends and the publicsearch div is closed { //if a search has occurred print search feedback if ($booSearch=="true" && ($strKey != "" || $strCatg != "" || $intYear != "")) { print("

You searched on -- \n"); if ($intMonth!="") { print(" Month: \n"); switch($intMonth) { case "1": print("January"); break; case "2": print("February"); break; case "3": print("March"); break; case "4": print("April"); break; case "5": print("May"); break; case "6": print("June"); break; case "7": print("July"); break; case "8": print("August"); break; case "9": print("September"); break; case "10": print("October"); break; case "11": print("November"); break; case "12": print("December"); break; } print("  \n"); } if ($intYear!="") print("Year: $intYear  \n"); if ($strKey!="") print("Keyword: " . stripslashes(stripslashes($strKey)) . " \n"); if ($strCatg!="") print("Category: " . stripslashes(stripslashes($strCatg)) . " \n"); print("
\n"); } //set start record to be used in SQL limit $intStartrecord = (($intPage*$intPublicpagesize)-($intPublicpagesize)); //build SQL query to get number of records only $SQLstmt ="SELECT COUNT(*) FROM prpressrelease WHERE recordstatus = 'Active'"; if ($strKey != "") { $SQLstmt .= " AND (" . "heading LIKE '%$strKey%' OR " . "summary LIKE '%$strKey%' OR " . "releasebody LIKE '%$strKey%')"; } if ($intYear != "") { $SQLstmt .= " AND YEAR(pubdate) = $intYear"; if ($intMonth!="") { $SQLstmt .= " AND MONTH(pubdate) = $intMonth"; } } if ($strCatg != "") { $SQLstmt .= " AND (category = '$strCatg')"; } if ($strDisplay == "" && ($strKey == "" && $strCatg == "" && $intYear == "")) $SQLstmt .= " LIMIT $numlatestreleases"; if ($setdebug=="ON") print ("
$SQLstmt
\n"); //execute query to record count $resultSet = dbaction($SQLstmt); $row = getrsrow($resultSet); $intTotalrecords = $row[0]; // if records exists display them otherwise display no records found message $intTotalpages = 0; if ($intTotalrecords > 0) { //build query to get actual records $SQLstmt ="SELECT releaseID, pubdate, heading, summary, category FROM prpressrelease"; $SQLstmt .= " WHERE recordstatus = 'Active'"; // if keyword is set then append search query if ($strKey != "") { $SQLmid = " AND (" . "heading LIKE '%$strKey%' OR " . "summary LIKE '%$strKey%' OR " . "releasebody LIKE '%$strKey%')"; $SQLstmt .= $SQLmid; } if ($intYear != "") { $SQLstmt .= " AND YEAR(pubdate) = $intYear"; if ($intMonth != "") { $SQLstmt .= " AND MONTH(pubdate) = $intMonth"; } } if ($strCatg != "") { $SQLstmt .= " AND (category = '$strCatg')"; } if ($strDisplay == "" && ($strKey == "" && $strCatg == "" && $intYear == "")) { //limit to latest releases by default $SQLstmt .= " ORDER BY pubdate DESC LIMIT $numlatestreleases"; } else { $SQLstmt .= " ORDER BY pubdate DESC LIMIT $intStartrecord,$intPublicpagesize"; } if ($setdebug == "ON") print ("
$SQLstmt
\n"); $resultSet = dbaction($SQLstmt); //calculate total number of pages if (fmod($intTotalrecords,$intPublicpagesize)==0) $intTotalpages = $intTotalrecords/$intPublicpagesize; else $intTotalpages = floor($intTotalrecords/$intPublicpagesize)+1; if ($setdebug == "ON") { print("
\n"); print("Total records: $intTotalrecords "); print("Number of pages: $intTotalpages "); print("Page size: $intPublicpagesize "); print("Chapter size: $intPublicchaptersize "); } //calculate current chapter based on current page if (!fmod($intPage,$intChaptersize)==0) $intChapter = floor($intPage/$intChaptersize)+1; else $intChapter = ($intPage/$intChaptersize); if ($setdebug == "ON") { print("Chapter: $intChapter
"); print("
\n"); } //print results status if a search has occured if ($strDisplay == "all" || ($strKey !="" || $strCatg !="" || $intYear !="")) { print("
\n"); if ($intTotalrecords == 1) { print("1 match found."); } else { print("$intTotalrecords matches found. Displaying matches " . ($intStartrecord+1) . "-"); if (($intPublicpagesize*$intPage) < $intTotalrecords) print($intPublicpagesize*$intPage); else print($intTotalrecords); } print("
\n"); } //print records print("
\n"); while($row = getrsrow($resultSet)) { print("
\n"); if ($row["pubdate"] != "") { $strTempdate = strtotime($row["pubdate"]); $strTempdate = date("F jS, Y",$strTempdate); print("$strTempdate
\n"); } if ($row["heading"] != "") print("" . $row["heading"] . "
\n"); if ($row["summary"] != "") { print("" . $row["summary"] . " "); } readmorelink($row["releaseID"]); if ($row["summary"] != "") print(""); print("
\n"); } print("
\n"); // close records container div } else { print("
\n"); print("
No matches found
\n"); print("
\n"); } //display page navigation if ($intTotalpages > 1 && (($strKey != "" || $strCatg != "" || $intYear !="") || $strDisplay == "all")) { pagenavigation(); } } // end else not full view print(""); // end public search div // ---------------------------------------------------------------------- // Function : pagenavigation() // Description : displays a list of page links // Usage : pagenavigation() // // ---------------------------------------------------------------------- function pagenavigation() { global $intPublicchaptersize; global $intChapter; global $intTotalpages; global $intPage; print("
\n"); print("\n"); //display previous chapter link if appropriate if ($intChapter > 1) { print(""); } //display page links $intStartat = (($intChapter*$intPublicchaptersize) - ($intPublicchaptersize - 1)); if ($intTotalpages < ($intChapter*$intPublicchaptersize)) $intFinishat = $intTotalpages; else $intFinishat = ($intChapter*$intPublicchaptersize); for($x=$intStartat;$x<=$intFinishat;$x++) { print(" \n"); } //display next chapter link if appropriate if (($intChapter * $intPublicchaptersize) < $intTotalpages) { print(""); } print("
Prev $intPublicchaptersize pages  "); if ($x!=$intPage) { print("$x"); } else { print("$x");; } print("  Next $intPublicchaptersize pages
\n"); print("
\n"); // end navbar div } // ---------------------------------------------------------------------- // Function : searchbar() // Description : prints upper part of search bar including date, // keyword, and optional category form items. start and // end years for YEAR dropdown are set in settings file // Usage : searchbar() // // ---------------------------------------------------------------------- function searchbar() { global $categorysearch; global $yearstartat, $yearendat; //display keyword search and optional department search form print("
\n"); print("
Search press releases
\n"); print("\n"); print("\n"); print("\n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print("\n"); print("
DateKeyword"); if ($categorysearch == "ON") print("Category"); print("
\n"); print("\n"); print("  \n"); print(" \n"); print("  \n"); print(" \n"); if($categorysearch == "ON") { categorydropdown(2); } print(" \n"); print("
\n"); print("
\n\n"); } // ---------------------------------------------------------------------- // Function : searchbar2() // Description : displays the lower section of the search bar including // : rss link, view all link, and optional archive links // Usage : searchbar2() // // ---------------------------------------------------------------------- function searchbar2() { global $showarchivelinks; print("
\n"); print("\n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); print("
view all\n"); if ($showarchivelinks == "ON") { archivelinks(); } print("
\n"); print("
\n"); } // ---------------------------------------------------------------------- // Function : archivelinks() // Description : prints a list of year links as defined in the settings // file // Usage : archivelinks() // // ---------------------------------------------------------------------- function archivelinks() { global $yearstartat, $yearendat; print("Archives: "); for($x = $yearendat;$x >= $yearstartat;$x--) print("$x  "); } // ---------------------------------------------------------------------- // Function : readmorelink() // Description : prints a read more link for use in the list of press // releases, including the state of the list // Usage : readmorelink($intID) // Arguments : $intID - press release identifier // // ---------------------------------------------------------------------- function readmorelink($intID) { print("Read More\n"); } // ---------------------------------------------------------------------- // Function : backlink() // Description : prints a back to list link for the view full press // release page, including the state of the list you have // come from // Usage : backlink() // // ---------------------------------------------------------------------- function backlink() { print("
\n"); print(" Back to press release list\n"); print("
\n"); } // ---------------------------------------------------------------------- // Function : buildpagestate() // Description : returns string containing page state for use by the // readmorelink and backlink functions // Usage : buildpagestate() // Returns : $strStatelink // // ---------------------------------------------------------------------- function buildpagestate() { global $intMonth; global $intYear; global $strKey; global $strCatg; global $strDisplay; global $intPage; $strStatelink = ""; if ($intMonth != "") $strStatelink .= "&searchmonth=" . urlencode(stripslashes($intMonth)); if ($intYear != "") $strStatelink .= "&searchyear=" . urlencode(stripslashes($intYear)); if ($strKey != "") $strStatelink .= "&key=" . urlencode(stripslashes($strKey)); if ($strCatg != "") $strStatelink .= "&catg=" . urlencode(stripslashes($strCatg)); if ($strDisplay != "") $strStatelink .= "&display=$strDisplay"; if ($intPage != "") $strStatelink .= "&pn=$intPage"; return $strStatelink; } // ---------------------------------------------------------------------- // Function : buildpagestate2() // Description : returns string containing page state without page // number for use in pagenavigation function // Usage : buildpagestate2() // Returns : $strStatelink // // ---------------------------------------------------------------------- function buildpagestate2() { global $intMonth; global $intYear; global $strKey; global $strCatg; global $strDisplay; $strStatelink = ""; if ($intMonth != "") $strStatelink .= "&searchmonth=" . urlencode(stripslashes($intMonth)); if ($intYear != "") $strStatelink .= "&searchyear=" . urlencode(stripslashes($intYear)); if ($strKey != "") $strStatelink .= "&key=" . urlencode(stripslashes($strKey)); if ($strCatg != "") $strStatelink .= "&catg=" . urlencode(stripslashes($strCatg)); if ($strDisplay != "") $strStatelink .= "&display=$strDisplay"; return $strStatelink; } // ---------------------------------------------------------------------- // Function : viewrelease() // Description : display full press release // Usage : viewrelease($intReleaseID) // Arguments : $intReleaseID - press release identifier // // ---------------------------------------------------------------------- function viewrelease($intReleaseID) { global $setdebug; $SQLstmt = "SELECT releaseID, pubdate, heading, summary, releasebody, relatedlinks, relatedfiles, category, recordstatus FROM " . "prpressrelease WHERE (releaseID = '$intReleaseID' AND recordstatus = 'Active')"; if ($setdebug=="ON") { print("
$SQLstmt
\n"); } backlink(); print("
\n"); $resultSet = dbaction($SQLstmt); $row = getrsrow($resultSet); if ($row["pubdate"] != "") $strTempdate = strtotime($row["pubdate"]); $strTempdate = date("F jS, Y",$strTempdate); print("
$strTempdate
\n"); if ($row["heading"] != "") print("
" . $row['heading'] . "
\n"); if ($row["summary"] != "") print("
" . $row['summary'] . "
\n"); if ($row["releasebody"] != "") print("
" . $row['releasebody'] . "
\n"); if ($row["relatedlinks"] != "") { print("
\n"); print("related links:
\n"); for($token = strtok($row['relatedlinks'],","); $token !== FALSE; $token = strtok (",")) print("$token
\n"); print("
\n"); } if ($row["relatedfiles"] != "") { print("
\n"); print("related files:
\n"); for($token = strtok($row['relatedfiles'],","); $token !== FALSE; $token = strtok (",")) print("$token
\n"); print("
\n"); } print("
\n"); // close view release div print("\n"); // close public search div } ?>