At the bottom of the HTML document */ function flyout($header, $content, $action) { // Used for background dimming echo "
"; // Div Start echo "
"; // Header for the flyout, must be included if (isset($header) && !empty($header)) { echo "

".$header."

"; } else { echo "

Header

"; } // Flyout content, must be included!!!! if (isset($content) && !empty($content)) { echo "

".$content."

"; } else { echo "

Description

"; } // Flyout button, not required so must need more information when added if (isset($action) && !empty($action)) { echo $action; } // Exit button + Div End echo "
"; } /* Notification of an action done, takes in min 3 inputs: Text is the text that shows up on the notification Takes in string input Level is the level of the notification high is a good response or the colour green low is a bad response or the colour red default is a neutral response or the colour black/gray returns notification html including classes ===== Editors note ================================== I made this so I didn't have to remake the html portion of the notification, it was annoying. This also allows for expanding the system later on! ===================================================== */ function notify($text, $level) { if ($level == "high") { $text_string = "

".$text."

"; } elseif ($level == "low") { $text_string = "

".$text."

"; } elseif ($level == "default") { $text_string = "

".$text."

"; } else { $text_string = "

".$text."

"; } return $text_string; } ?>