<p>Subject Details</p> </div> <div class="panel_body_cont"> <div class="details"> <?php require_once "../../conn/db_conn.php"; require_once "../../ctrl/course.php"; require_once "../../ctrl/users.php"; session_start(); $nic = $_SESSION['p_nic']; $id = new Users(); $n = $id->getUserData($nic, 'aca_staff'); $p_id = $n->Ac_ID; $c = new Courses(); $details = $c->getSubjectData($p_id); $ln = count($details); for ($x = 0; $x < $ln; $x++) { $sub_id = $details[$x][0]; $sub_name = $details[$x][1]; $sub_crdt = $details[$x][2]; // $sub_desc = $details[$x][3]; $course_id = $details[$x][4]; $y = $x % 2 + 1; $qury = "ajaxPost1('/ACTA_project/mod/admin_staff/Course_details2.php',\$('#c_id" . $x . "'))"; ?> <div class="<?php echo "details_row" . $y; ?> "> <div class="row_id"><p><?php