コード例 #1
0
 function column_title($item)
 {
     /* @var $pessoa Pessoa */
     $pessoa = $this->itemsObj[$item['id']];
     $title = '<div class=list_pessoa_title>
                 <a href="admin.php?page=Pessoas&action=view&id=' . $item[id] . '">' . PLib::truncate_words(Plib::capitalize_name($pessoa->nome, 3), 30) . '</a><br>
                 <img src="' . $pessoa->getPictureUrl(80) . '" style="width:80px; margin-right: 8px;"><br>
                 ' . $pessoa->getExtrasExibicao(null, true) . '
             </div>';
     $actions = array();
     //        if ($pessoa->get PLib::coalesce($inscricao->confirmado,0) == 0 )
     //            $actions['delete'] = '<a href="admin.php?page=Inscricoes&action=delete&id=' . $item['id'] . '&id_evento=' . $item['id_evento'] . '">Excluir</a>';
     return $title . $this->row_actions($actions);
 }