$module_name Module Administration Panel
";
if (isset($cid)) {
$row = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_pages_categories WHERE cid='$cid'"));
echo "Category: $row[title]
[ Edit | Delete ]";
}
if (isset($pid)) {
$row = $db->sql_fetchrow($db->sql_query("SELECT title, active FROM ".$prefix."_pages WHERE pid='$pid'"));
echo "Article: $row[title]
[ Edit | ";
if ($row[active] == 1) {
echo "Deactivate | ";
} elseif ($row[active] == 0) {
echo "Activate | ";
}
echo "Delete ]";
}
echo "";
?>