HtmlInput :: anchor_empty add a title
This commit is contained in:
parent
6c851b3dc1
commit
31c05121f8
1 changed files with 4 additions and 3 deletions
|
|
@ -729,16 +729,17 @@ class HtmlInput
|
|||
* onclick = function() {...}
|
||||
* @param type $p_text Text to display
|
||||
* @param type $p_id id of the link
|
||||
* @param type $type title of the link
|
||||
* @code
|
||||
* echo HtmlInput::anchor_empty('go','go_id');
|
||||
* <script>$("go_id").onclick=function (e) { ...}</script>
|
||||
* @endcode
|
||||
*/
|
||||
static function anchor_empty($p_text,$p_id)
|
||||
static function anchor_empty($p_text,$p_id,$p_title="")
|
||||
{
|
||||
$p_url="javascript:void(0)";
|
||||
$str=sprintf('<a id="%s" href="javascript:void(0)" class="line">%s</a>',
|
||||
$p_id,$p_text);
|
||||
$str=sprintf('<a id="%s" href="javascript:void(0)" class="line" title="%s">%s</a>',
|
||||
$p_id,$p_title,$p_text);
|
||||
return $str;
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue