Announcements Example - Tech Note #1

Query dept, course number from REGclasses table.

  1. The announce.php function displays the Announcements page.
  2. It calls the write_classinfo function with parameters ($term, $srs, "Announcements").   "Announcements" is to specify that this is the Announcements page.   This function will retrieve the class info data and display it on the web page.
  3. It calls the write_allsrsinfo function with parameters ($term, $srs, $class, "Announcements Page").  "Announcements Page" is to specify that this is the Announcements page.   This function will retrieve the all srs information and display it on the web page.
  4. The write_allsrsinfo function queries the REGxref database table to see if any classes match the term, srs, class passed.   It checks or joined or cross-listed classes and outputs all course titles of those classes.   Then, it returns the values to the varible $xreflist.
  5. It displays all the different titles of the joined or cross-listed classes.

Announcements Example - Tech Note #2

Announcements are stored in a text file announce.inc in the class directory.
Announcements can be added and edited vis Admin utilities or rostermail.

  1. Announce.inc is an include file that creates the individual announcements displayed on the Announcements page.
  2. It can be modified by the Admin utility or the rostermail program.

Announcements Example - Tech Note #3

An email sent to the class roster can be added automatically to the Announcements page.

  1. Announcements can also be added to the Announcements page when sending an e-mail to the class by checking the "Add message to announcements page?" option on the "Send Mail to Class" utility on "Other / Advanced Options" found on the Administration page.  This option runs the rostermail.pl program with the announcement.
  2. The rostermail.pl program creates the announcement when $addannounce=1, which is set to true when the "Add message to announcements page?" option is checked. 
  3. It calls the addannounce function which separates the e-mail sent to the class into the following structure to appear on the Announcements page:
    date time (email) : e-mail subject: e-mail body.
  4. Each time the "Add message to announcements page?" option is checked, it updates the announce.inc file to include the new changes.

Announcements Example - Tech Note #4

An announcement added directly to the Announcements page via Admin utilities.

  1. Announcements can be added, removed, or edited through the Announcement Edit utility found on the Administration page.
  2. The announcement appears on the Announcements page with the following structure:
    date: announcement
  3. Each time the Announcement Edit utility is used, it updates the announce.inc file to include the new changes.