improve CSS
Finish new security + clean table action
This commit is contained in:
parent
79cbf13867
commit
c16c32ca48
30 changed files with 602 additions and 428 deletions
|
|
@ -208,7 +208,7 @@ class HtmlInput
|
|||
*/
|
||||
static function button_anchor($p_label,$p_value,$p_name="",$p_javascript="")
|
||||
{
|
||||
$r=sprintf('<span id="%s"> <A id="anchorbutton" style="display:inline;" href="%s" %s >%s</A></span>',
|
||||
$r=sprintf('<span id="%s" class="button"> <A class="button" style="display:inline;" href="%s" %s >%s</A></span>',
|
||||
$p_name,
|
||||
$p_value,
|
||||
$p_javascript,
|
||||
|
|
@ -398,35 +398,34 @@ class HtmlInput
|
|||
{
|
||||
$r='';
|
||||
$r.='<div style="float:right;margin:2;">';
|
||||
$r.= '<A style="background-color:blue;color:white;text-decoration:none" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
|
||||
$r.= '<A id="close_div" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
|
||||
$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
|
||||
* button Html
|
||||
*@param $action action action to perform (message) without onclick
|
||||
*@param $javascript javascript to execute
|
||||
*/
|
||||
static function button_action($action,$javascript)
|
||||
static function button_action($action,$javascript,$id="xx")
|
||||
{
|
||||
|
||||
$r="";
|
||||
$r.='<input type="button" id="'.$id.'"class="button" onclick="'.$javascript.'" value="'.h($action).'">';
|
||||
return $r;
|
||||
|
||||
}
|
||||
/**
|
||||
* Return a html string with an anchor looking like anchor_button in the right corner
|
||||
* Return a html string with an anchor to hide a div, put it 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)
|
||||
static function anchor_hide($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 style="float:right;right;margin:2;">';
|
||||
$r.= '<A id="close_div" HREF="javascript:void(0)" onclick="'.$javascript.'");">'.$action.'</A>';
|
||||
$r.='</div>';
|
||||
return $r;
|
||||
}
|
||||
|
|
@ -610,8 +609,8 @@ class HtmlInput
|
|||
{
|
||||
$p_url="javascript:void(0)";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$str=sprintf('<a class="line" href="%s" %s>%s</a>',
|
||||
$p_url,$p_js,$p_text);
|
||||
return $str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue