function _AdvisingScreen::draw_public_note
Search API
4.x _AdvisingScreen.php | _AdvisingScreen::draw_public_note() |
5.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 2026
Class
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='tenpt'
style='border: 5px double #C1A599;
padding: 5px;
margin: 10px;'>
<b>" . t("Important Message:") . "</b> $note
</div>
</td></tr>";
}
}
return $pC;
}