$query = $modx->db->select("*", $modx->getFullTableName('site_content'),"","editedon DESC",50);
$result = $modx->db->makeArray($query);
print("
<table style=\"font-size: 12pt; font-family:arial;\" cellspacing=\"0\" cellpadding=\"3\">
<tr>
<td style=\"width: 25px; background-color: #FAFAFA; font-weight: bold\">id</td>
<td style=\"width: 250px; background-color: #FAFAFA; font-weight: bold\">pagina titel</td>
<td style=\"width: 100px; background-color: #FAFAFA; font-weight: bold\">gewijzigd</td>
<td style=\"width: 25px; background-color: #FAFAFA; font-weight: bold\">bekijken</td>
</tr>");
foreach($result as $setting){
print("<tr>
<td>".$setting['id']." </td>
<td> ".$setting['pagetitle']." </td>
<td> ".date("d-m-Y",$setting['editedon'])."</td>
<td><a title=\"Geef dit item weer\" onmouseout=\"status=\'';return true;\" onmouseover=\"status='Geef dit item weer';return true;\" href=\"index.php?a=3&id=".$setting['id']."\"><img border=\"0\" src=\"media/style/MODxCarbon/images/icons/context_view.gif\"></a></td>
</tr>");
}
print("</table>");