Location: PHPKode > scripts > TabControl > tabcontrol/example2.php
<?php
require("tabControlClass.php");
$tabControl	= new TabControl();
//Generates a control with the default style but custom settings
$content1	= "<iframe src='http://www.yahoo.com' frameborder='0' width='100%' height='100%'></iframe>";
$content2	= "<iframe src='http://www.google.com' frameborder='0' width='100%' height='100%'></iframe>";
$content3	= "<b>Content 3";
$tabControl->defineSettings(2,550,350,5,2,"center","middle",array("yahoo.com","google.com","Title 3","Title 4","Title 5"),array($content1,$content2,$content3,"<i>Content 4</i>","<u>Content 5</u>"),array("http://www.yahoo.com","http://www.google.com","Status Message 3","Status Message 4","Status Message 5"));
//generate control
$tabControl->writeControl();
?>
Return current item: TabControl