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 388ad1e commit cbbe741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions app/controllers/sar.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,20 @@ 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 +57,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
2 changes: 1 addition & 1 deletion app/core/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function join($tables, $columns, $conditions, $order = null, $limit = nul
}

// Execute the query
// show($query);
show($query);
return $this->query($query);
}

Expand Down

0 comments on commit cbbe741

Please sign in to comment.