Action_Code : add validate, cancel and modify icon
This commit is contained in:
parent
ff98ba8064
commit
03497b9047
1 changed files with 36 additions and 0 deletions
|
|
@ -193,4 +193,40 @@ class Icon_Action
|
|||
$r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="icon"></span>';
|
||||
return $r;
|
||||
}
|
||||
/**
|
||||
* Display the icon to modify a idem
|
||||
* @param type $p_id
|
||||
* @param type $p_javascript
|
||||
* @return string
|
||||
*/
|
||||
static function modify($p_id,$p_javascript)
|
||||
{
|
||||
$r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon icon" style="margin-left:5px"></span>';
|
||||
|
||||
return $r;
|
||||
}
|
||||
/**
|
||||
* Display the icon to modify a idem
|
||||
* @param type $p_id
|
||||
* @param type $p_javascript
|
||||
* @return string
|
||||
*/
|
||||
static function validate($p_id,$p_javascript)
|
||||
{
|
||||
$r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon icon" style="margin-left:5px">✓</span>';
|
||||
|
||||
return $r;
|
||||
}
|
||||
/**
|
||||
* Display the icon to modify a idem
|
||||
* @param type $p_id
|
||||
* @param type $p_javascript
|
||||
* @return string
|
||||
*/
|
||||
static function cancel($p_id,$p_javascript)
|
||||
{
|
||||
$r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon icon" style="margin-left:5px"></span>';
|
||||
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue