Location: PHPKode > projects > Globber > globber-1.4/include/admin/comments.inc.php
<?php if(!$_EXEC){ die; } ?>
<?php
if($_GET['delid']){
  $blog->query('DELETE FROM #_comments WHERE id = '.$_GET['delid']);
}
?>
<h1>Comments</h1>
<form method="get" action="admin.php">
<input value="edit" type="hidden" name="task" />
<table class="datagrid">
<tbody>
<tr>
<th>Article name</th>
<th>Name</th>
<th>Comment</th>
<th>E-mail</th>
<th>Website</th>
<th>Date / Time</th>
<th>ID</th>
<th></th>
</tr>
<?php
$i=0;
$q = $blog->query('SELECT * FROM #_comments ORDER BY time DESC');
foreach($q as $row){
$i++;
?>
<tr<?php if($i%2==0){ echo ' class="alt"'; } ?>>
<td><strong><?php echo $row['art'] ?></strong></td>
<td><?php echo $row['name'] ?></td>
<td><small><?php echo substr($row['comment'],0,25).' ...'; ?></small></td>
<td><?php echo $row['email'] ?></td>
<td><?php echo $row['url'] ?></td>
<td><?php echo date($blog->config['timeformat'],$row['time']) ?></td>
<td><?php echo $row['id'] ?></td>
<td>
<a href="admin.php?task=comments&delid=<?php echo $row['id'] ?>" title="delete comment"><img src="include/admin/images/delete.png" /></a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</form>
Return current item: Globber