function cancel($alt = 'Cancel', $href = '') { compa::showIcon('cancel.png', 'back', 'cancel'); compa::showIcon('cancel_f2.png', 'back', 'cancel', 0); if ($href) { $link = $href; } else { $link = 'javascript:window.history.back();'; } ?> <td> <a class="toolbar" href="<?php echo $link; ?> " onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('cancel','','<?php echo $image2; ?> ',1);"> <?php echo $image; ?> <?php echo $alt; ?> </a> </td> <?php }
function quickiconButton($link, $image, $text, $external = false, $accessLevel = '', $frontEnd = false) { if (acajoom::checkPermissions($accessLevel)) { if ($frontEnd and $GLOBALS[ACA . 'use_sef'] and function_exists('sefRelToAbs')) { $link = sefRelToAbs($link); } ?> <div style="float:left;"> <div class="icon"> <a href="<?php echo $link; ?> " <?php if ($external) { echo 'target="_blank"'; } ?> > <?php compa::showIcon($image, $text); ?> <span><?php echo $text; ?> </span> </a> </div> </div> <?php } }