Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yashed committed Apr 25, 2024
1 parent 0190419 commit 388ad1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/sar.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ public function index($checkUser = false)
if (!empty($_SESSION['examDetails'])) {
unset($_SESSION['examDetails']);
}

show('01');
//get data to show as upcoming examination in sar dashboard
$upTable = ['degree'];
$upColumns = ['*'];
$upConditions = ['degree_timetable.DegreeID = Degree.DegreeID', 'StartingDate >= CURDATE()'];
$data['upcomingExams'] = $degreetimetable->join($upTable, $upColumns, $upConditions, 'StartingDate', 2);


show('02');
//pass data to graphs and chalender
$data['degrees'] = $degree->findAll();
$data['students'] = $student->findAll();
$data['exam'] = $exam->findAll();
$data['degreetimetables'] = $degreetimetable->findAll();


show('03');

//get last results submitted examination id
$recentExamId = $finalMarks->lastID('examID');
Expand All @@ -58,12 +58,12 @@ public function index($checkUser = false)
$columns = ['*'];
$examConditions = ['exam.degreeID = degree.DegreeID', 'exam.examID = ' . $recentExamId];
$data['RecentResultExam'] = $exam->join($dataTables, $columns, $examConditions);

show('04');
$degree = new Degree();

$data['degrees'] = $degree->findAll();
$data['checkUser'] = $checkUser;

show('05');
$this->view('sar-interfaces/sar-dashboard', $data);
}
public function notification()
Expand Down

0 comments on commit 388ad1e

Please sign in to comment.