我有以下在服务器端动态创建的代码:
foreach($pages as $key => $value)
{
$link = path_get($value['tid'], $value['nid']) ;
$pages[$key]['title'] = "<a href='".$link."' target='blank'>".$value['title'].($value['nid']==1?' (Accueil)':'')."</a>" ;
$pages[$key]['date_post'] = sql_to_datetime($value['date_post']) ;
$edit = "<a href='".url()."admin/page/edit/a/nid/".$value['nid']."' data-toggle='tooltip' title data-original-title='Default tooltip' >".IMG_EDIT."</a> " ;
$delete = "<a href='".url()."admin/page/index/a/action/delete/nid/".$value['nid']."' data-toggle='tooltip' title data-original-title='Default tooltip' class='delete-element'>".IMG_DELETE."</a> " ;
$pages[$key]['actions'] = $edit.(user_has_access_menu("page.delete")?$delete:'') ;
}
我想为每个编辑和删除按钮显示一个工具提示,但它不显示任何内容。请帮助
谢谢