function AdvisingScreen::draw_public_note

7.x AdvisingScreen.php AdvisingScreen::draw_public_note()
6.x AdvisingScreen.php AdvisingScreen::draw_public_note()

Will display the "public note" at the top of a degree. This was entred in Data Entry.

Return value

string

1 call to AdvisingScreen::draw_public_note()
AdvisingScreen::display_screen in classes/AdvisingScreen.php
This function generates the HTML to display the screen. Should be used in conjunction with output_to_browser()

File

classes/AdvisingScreen.php, line 2164

Class

AdvisingScreen

Code

function draw_public_note() 
 {
  // This will display a "public note" to the user about
  // this degree.  The public note was entered in Data Entry.

  if (count($this->degree_plan->public_notes_array) == 0) 
   {
    return "";
  }

  $pC = "";

  foreach ($this->degree_plan->public_notes_array as $degree_id => $note) {

    if (trim($note) != "") {

      $pC .= "<tr><td colspan='8'>
            <div class=' ' 
              style='border: 5px double #C1A599;
                  padding: 5px;
                  margin: 10px;'>
            <b>" . t("Important Message:") . "</b> $note
            </div>
            </td></tr>";
    }

  }






  return $pC;


}