Location: PHPKode > scripts > mytoolbar > mytoolbar/example.php
<html>
<head>
<style>
td.toolbar {
	text-align: center;
	border: none;
	}

img.toolbar {	
	border: none;
	width: 32px;
	height: 32px;
	}	

a.toolbar {	
	display: block;
	color: #000080;
	border-left: 2px solid #FFFFFF;
	border-bottom: 2px solid #303030;
	border-top: 2px solid #FFFFFF;
	border-right: 2px solid #303030;
	font-family: tahoma;
	background-color: #F1F3F5;
	font-size: 10px;		
	padding: 2px;		
	width: 48px;
	height: 48px;
	}

a.toolbar:hover{	
	display: block;
	color: #800000;
	border-left: 2px solid #303030;
	border-bottom: 2px solid #FFFFFF;
	border-top: 2px solid #303030;
	border-right: 2px solid #FFFFFF;
	font-family: tahoma;
	background-color: #F1F3F5;
	font-size: 10px;		
	padding: 2px;		
	width: 48px;
	height: 48px;
	}
</style>
</head>
<body bgcolor="#909090">
<?php
		require_once('toolbar.class.php');

		$mytoolbar=new toolbar;
		$mytoolbar->begin('center');
		$mytoolbar->addbutton('New',$_SERVER['PHP_SELF'].'?task=new','new.png');
		$mytoolbar->addbutton('Edit',$_SERVER['PHP_SELF'].'?task=edit','edit.png');
		$mytoolbar->addbutton('Delete',$_SERVER['PHP_SELF'].'?task=delete','garbage.png');
		$mytoolbar->addbutton('Quit',$_SERVER['PHP_SELF'].'?task=quit','exit.png');
		$mytoolbar->end();
	
		print($mytoolbar->output);
		
		print('<br/><br/><br/><br/><br/>');
		print('<center>you selected : '.$_GET['task'].'</center>');

?>
</body>
</html>
Return current item: mytoolbar