From ea0472145b848b8535095f31ab975c0cb1ad0c87 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 22 Aug 2023 14:38:45 +0530 Subject: Arrange in progress table in descending order --- pssp_details.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pssp_details.inc b/pssp_details.inc index e469cc2..2fc72a4 100755 --- a/pssp_details.inc +++ b/pssp_details.inc @@ -69,7 +69,7 @@ function om_pssp_progress_all() { $page_content .= "Work is in progress for the following Power System Simulation under Power System Simulation Project
"; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $approval_date = date("Y", $row->approval_date); @@ -80,7 +80,7 @@ function om_pssp_progress_all() $row->university, $approval_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', @@ -95,4 +95,4 @@ function om_pssp_progress_all() )); } return $page_content; -} \ No newline at end of file +} -- cgit