Code: Select all
<?php
$html = "<a href=\"javascript:void(0);\" onclick=\"javascript:".
"document.adminForm.filter_order.value=''; submitbutton('$task');\" class=\"toolbar\">";
$html .= "<span class=\"icon-32-cancel\" type=\"Standard\">";
$html .= "</span>";
$html .= jcText::_($string);
$html .= "</a>";
$bar = & JToolBar::getInstance('JComponent');
$bar->appendButton( 'Custom', $html, 'close' );
?>