Login   Register  
PHP Classes
elePHPant
Icontem

File: testmessage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fred Benson  >  message  >  testmessage.php  >  Download  
File: testmessage.php
Role: Example script
Content type: text/plain
Description: test message
Class: message
Generate simple HTML message boxes
Author: By
Last change:
Date: 2004-10-26 18:20
Size: 1,186 bytes
 

Contents

Class file image Download
<?
//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();


?>