PHPBuilder -

RSS Twitter
Snippets Html

by: Daniel Morrigan
February 23, 2002

Version: 1

Type: Function

Category: HTML

License: GNU General Public License

Description: This function allows you to create a table inside a table.

function insetTable($color,$title,$content,$width="100%") {
        $outPut = "\n<!-- Start Inset Table -->\n";
        $outPut .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"$width\">\n";
        $outPut .= "<td bgcolor=\"$color\" colspan=\"3\" align=\"center\">$title</td>";
        $outPut .= "\n<tr>\n";
        $outPut .= "<td colspan=\"3\" align=\"left\">";
        $outPut .= "$content";
        $outPut .= "</td>\n";
        $outPut .= "</tr>\n";
        $outPut .= "</table>\n";
        $outPut .= "<!-- End Inset Table -->\n";

        return $outPut;

Comment and Contribute

Your comment has been submitted and is pending approval.

Daniel Morrigan



(Maximum characters: 1200). You have characters left.