<?php require('management/admin_functions/session.php'); ?>
<?php require('management/admin_layout/header.php'); ?>
<ul id="breadcrumbs">
<li><a href="index.php"><?php echo $lang['main_navigation']; ?></a></li>
<li><a href="topics.php" class="actual"><?php echo $lang['manage_topics']; ?></a></li>
</ul>
<div class="clear_blog"></div>
<?php
$count = mysql_query("SELECT topic_id FROM topics") OR die(mysql_error());
include('../framework/navigation.php');
$query = "SELECT * FROM topics ORDER BY topic_id DESC LIMIT $start,$entries";
$result = mysql_query($query) OR die(mysql_error());
if($result) {
echo '<table width="100%" class="tables">
<tr>
<td width="5%"><strong>ID</strong></td>
<td width="50%"><strong>' . $lang['subject'] . '</strong></td>
<td width="15%"><strong>' . $lang['date'] . '</strong></td>
<td width="10%"><strong>Cat-ID</strong></td>
<td width="10%"><strong>User-ID</strong></td>
<td width="10%" align="center"><strong>' . $lang['blank_delete'] . '</strong></td>
</tr>';
while($row = mysql_fetch_assoc($result)) {
echo '<tr>
<td width="5%">' . (int)$row['topic_id'] . '</td>
<td width="50%">' . htmlentities($row['topic_subject'], ENT_QUOTES) . '</td>
<td width="15%">' . date('d.m.Y', strtotime($row['topic_date'])) . '</td>
<td width="10%">' . htmlentities($row['topic_cat'], ENT_QUOTES) . '</td>
<td width="10%">' . htmlentities($row['topic_by'], ENT_QUOTES) . '</td>
<td width="10%" align="center"><a href="topics_delete.php?topic_id=' . (int)$row['topic_id'] . '"><img src="../style/images/admin/icons/delete.png" alt="' . $lang['blank_delete'] . '" title="' . $lang['blank_delete'] . '" border="0"></a></td>
</tr>';
}
echo '</table>
<div class="cleaning"></div>';
}else{
echo '<p class="false">' . $lang['no_available_topics'] . '</p>';
}
echo '<div id="navigation">
<span class="pages">' . $lang['page'] . ' ' . $page . ' ' . $lang['of'] . ' ' . $allsites . '</span>';
echo $link_string;
echo '</div>
<div class="clear_navi"></div>';
?>
<?php require('management/admin_layout/footer.php'); ?>