LEGACY PAGE WARNING: This page refers to a system or feature that is no longer supported or maintained |
Dave Cutting On-Line @ p u r p l e p i x i e . o r gRounded Table Project |
Dave's Magic Rounded Table System
How Does It Work? There is a PHP script called graphic.php and a library to be used by the pages called rounded.inc.php. Simply put, the rounded.inc.php library contains methods to display rounded tables with various content. The rounded library contains three functions as follows:
function Start_Rnd_Table(fR,fG,fB,Size,TableWidth)
function Finish_Rnd_Table(fR,fG,fB,Size)
function Rounded_Table(Text,R,G,B,Width,Bevel) Width is a string for the width of the table and is passed to the Start_Rnd_Table function, it is a default parameter which defaults to 100%. The Bevel is equivilant to the Size parmeters with Start_Rnd_Table and Finish_Rnd_Table, this is a default parameter (default = 5). Rounded_Table is the more common access-point for a rounded table, usually with the text string being created beforehand and containing various HTML instructions.
Examples of UseAs stated above, the system can be accessed one of two ways. You can start a rounded table, echo the content then finish it or call the Rounded_Table wrapper with a pre-formatted output string. In this example, we will demonstrate both methods.Example PHP Script Using Rounded Tables:
<?php require('rounded.inc.php'); $out="<center><h3>Hello World!</h3></center>"; // string for output $R="A0"; $G="A0"; $B="F0"; // light blue Hex #A0A0F0 Start_Rnd_Table($R,$G,$B,20,"50%"); // Bevel of 20, width 50% echo $out; // Output our string Finish_Rnd_Table($R,$G,$B,20); // Finish the Table echo "<p>"; Rounded_Table($out,$R,$G,$B,"50%",20); // same thing in 1 call ?> And this Would Produce:
Getting Rounded RectangleYou are welcome to use this for your own use though I accept no liability for anything ever at all. There is a tarball avalable with the graphic.php, rounded.inc.php and an example.php script.Download: http://www.purplepixie.org/dave/archive/rounded/roundrect_001.tar.gz Mirror: http://mirror.purplepixie.org/dave/archive/rounded/roundrect_001.tar.gz
|
LEGACY PAGE WARNING: This page refers to a system or feature that is no longer supported or maintained |