From 92171a7de1305489b6a2df9102f4a4e6b79e84dd Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 22 Aug 2023 14:08:23 +0530 Subject: Display projects in progress in descending order --- flowsheet_details.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flowsheet_details.inc b/flowsheet_details.inc index 9144b65..5b4229c 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -63,7 +63,7 @@ function dwsim_flowsheet_progress_all() { $page_content .= "Work is in progress for the following flowsheets under Flowsheeting Project
";; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $approval_date = date("Y", $row->approval_date); @@ -74,7 +74,7 @@ function dwsim_flowsheet_progress_all() $row->university, $approval_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', -- cgit