From 24bbe7cb56d680e3a71ffebb4e866ddbd993228f Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 22 Aug 2023 14:37:57 +0530 Subject: Arrange in progress table in descending order --- flowsheet_details.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flowsheet_details.inc b/flowsheet_details.inc index f392ce6..f64ab42 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -61,7 +61,7 @@ function om_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); @@ -72,7 +72,7 @@ function om_flowsheet_progress_all() $row->university, $approval_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', @@ -87,4 +87,4 @@ function om_flowsheet_progress_all() )); } return $page_content; -} \ No newline at end of file +} -- cgit