From 67b68cb694e49bcb46a1678a1308305db9cef6f3 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 22 Aug 2023 14:16:21 +0530 Subject: Display projects in progress in reverse order --- custom_model_details.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_model_details.inc b/custom_model_details.inc index 903eec8..5c2b8aa 100755 --- a/custom_model_details.inc +++ b/custom_model_details.inc @@ -64,7 +64,7 @@ function custom_model_progress_all() { $page_content .= "Work is in progress for the following custom model under DWSIM Custom Model Project
"; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $approval_date = date("Y", $row->approval_date); @@ -75,7 +75,7 @@ function custom_model_progress_all() $row->university, $approval_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', -- cgit