@ -9,30 +9,20 @@ if (! check_permission('adminpanel'))
header('Location:/index.php');
exit;
}
if (isset($_POST['1']))
{
global $AVE_DB;
$sql = $AVE_DB->Query("
SELECT Id, rubric_title
FROM " . PREFIX . "_rubrics
");
echo "< option style = 'color: #ABABAB;' value = '' > ".$select_category."< / option > ";
while($result = $sql->FetchRow()){
echo "< option value = ".$result->Id." > ".$result->rubric_title."< / option > ";
};
}
if (isset($_POST['2']))
if (isset($_POST['c']))
{
global $AVE_DB;
$sql = $AVE_DB->Query("
SELECT Id, rubric_title
FROM " . PREFIX . "_rubrics
WHERE Id !=2
");
echo "< option style = 'color: #ABABAB;' value = '' > ".$select_category."< / option > ";
while($result = $sql->FetchRow()){
echo "< option value = ".$result->Id." > ".$result->rubric_title."< / option > ";
};
}
if (isset($_POST['a']))
{
global $AVE_DB;