Skip to content

Instantly share code, notes, and snippets.

@thefyfy
Created December 13, 2011 09:09
Show Gist options
  • Save thefyfy/1471320 to your computer and use it in GitHub Desktop.
Save thefyfy/1471320 to your computer and use it in GitHub Desktop.
public function getMainView()
{
$bo = new boblog();
$tblNews = $bo->getListNews();
$htmlret = "<h2>Mon blog</h2> <p>Interface d'administration</p>
<table>
<th>Titre</th><th>Actions</th>";
foreach($tblNews as $news)
{
$htmlret .= "<tr><td>{$news['news_id']} Par {$news['author']} : {$news['title']}</td>
<td><a href='index.php?action=class.uiadmin.confirmDelete&news_id={$news['news_id']}'>Supprimer</td></tr>";
}
return $htmlret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment