Add function anchor_close

This commit is contained in:
Dany De Bontridder 2010-12-10 11:22:17 +00:00
parent abd457180d
commit 7717eaa749

View file

@ -393,4 +393,17 @@ class HtmlInput
return $html;
}
/**
* Return a html string with an anchor which close the inside popup. (top-right corner)
*@param name of the DIV to close
*/
static function anchor_close($div)
{
$r='';
$r.='<div style="float:right">';
$r.= '<A style="background-color:blue;color:white;text-decoration:none" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
$r.='</div>';
return $r;
}
}