<?php
/*
Licence: GNU General Public License
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
class toolbar
{
var $output='';
function begin($align)
{
$this->output.='<table align="'.$align.'" style="border-collapse: collapse;">';
$this->output.='<tr>';
}
function addbutton($title,$link,$icon,$onclick='')
{
$this->output.='<td class="toolbar">';
$this->output.='<a class="toolbar" href="'.$link.'" onclick="'.$onclick.'" >';
$this->output.='<img class="toolbar" src="'.$icon.'" alt=" " /><br/>';
$this->output.=$title.'</a>';
$this->output.='</td>';
$this->output.='<td></td>';
}
function end()
{
$this->output.='</tr>';
$this->output.='</table>';
}
}
?>