#210 améliore ergonomie boite de dialogue de recherche

This commit is contained in:
Dany De Bontridder 2011-01-23 18:59:24 +00:00
parent 33947d40a8
commit e1b0611c55
5 changed files with 68 additions and 26 deletions

View file

@ -417,6 +417,35 @@ class HtmlInput
$r.='</div>';
return $r;
}
/**
* button Html with an action in the top
*@param $action action action to perform (message)
*@param $javascript javascript of the DIV to close
*@see Acc_Ledger::display_search_form
*@note not protected against html
*@param $div_name is the name of the div to remove
*/
static function button_action($action,$javascript)
{
}
/**
* Return a html string with an anchor looking like anchor_button in the right corner
*@param $action action action to perform (message)
*@param $javascript javascript
*@note not protected against html
*@see Acc_Ledger::display_search_form
*/
static function anchor_action($action,$javascript)
{
$r='';
$r.='<div style="float:right">';
$r.= '<A style="background-color:blue;color:white;text-decoration:none" HREF="javascript:void(0)" onclick="'.$javascript.'");">'.$action.'</A>';
$r.='</div>';
return $r;
}
/**
* Javascript to print the current window
*/