<?php !isset($image) ? $image = 'info' : ''?>
<?php !isset($tool)  ? $tool  = 'Seleccione cualquier columna para editar' : ''?>
<?php !isset($size)  ? $size  = "width=500,height=400,left=0,top=0,scrollbars=yes" : ''?>

<?php if(!isset($return)): ?>
<?php echo image_tag($image,array('title' => $tool))?>
<?php else: ?>
<?php echo link_to(image_tag($image,array('title' => $tool)),$return,array('popup' => array('popupWindow', $size)))?>
<?php endif ?>