<?
//SAMPLE PAGE OF THE DIFFERENT MESSAGE BOX FUNCTIONS
//Importing the class file
include_once('messagebox.php');
$msg = new message('THIS IS THE TITLE','THIS IS THE CONTENT'); //Instantiating the message box class
$msg->showData(); //Showing message box with standard appearance
print ("<br><br>");
//Changing message box contents and title using HTML as parameter
$msg->setData('<b><font face="Arial" size="2">THIS IS THE TITLE 2</font></b>', '<b><font face="Arial" size="2">THIS IS THE CONTENT 2 USING HTML AS PARAMETER</font></b>');
$msg->showData();
print ("<br><br>");
//Changiong Apeearance of the message box and Data and showing it again
// table mwidth
// table border
// cell pad
// cell space
// border color
// general align
// title align
// Title background color
// Content align
// Content back ground color
$msg->setAspect(600,100,2,0,1,'#FFEEFF','center','right','#EEEEEE','right','#FFFFFF');
$msg->setData('This is the TITLE 3','This Message Box has different appearance and Data using the method setAspect()');
$msg->showData();
?>
|