$_GET['read_ForceSQL'] = "select * from classes as c LEFT JOIN departments as d on c.depid=d.depid where (classEnable=1 and depEnable=1)";
if (isset($_GET['depid']) && $_GET['depid'] != ""){
$_GET['read_ForceSQL'] .= " and d.depid=" . $_GET['depid'];
}
$_GET['read_ForceSQL'] .= " order by c.classID desc";
$perpage = 6;
if (isset($_GET['page']) == false || $_GET['page'] == ""){$_GET['page'] = 1;}
$_GET['read_ForceSQL'] .= " LIMIT " . ($_GET['page']-1)*$perpage . "," . $perpage;
$_GET['read_text1'] = "
";
$_GET['read_row3'] = "className";
$_GET['read_text4'] = "السعة التقديرية : ";
$_GET['read_row4'] = "classCap";
$_GET['read_text5'] = " فرد التفاصيل : ";
$_GET['read_row5'] = "classDetails";
$_GET['read_text6'] = "";
$_GET['read_row6'] = "";
$_GET['read_text7'] = "";
$_GET['read_row7'] = "";
$_GET['read_first'] = "";
$_GET['read_last'] = "
";
$_GET['read_td'] = "on";
$_GET['read_tds'] = 3;
$_GET['read_numbering'] = "off";
include('read_table.php');
$_GET['read_ForceSQL_Page'] =0;
include('pages.php');
include("footer.php");
?>