From 0a71235188ef17a8bd2d94cc63b0ab1f833c4bad Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Tue, 15 Feb 2022 15:33:25 +0530 Subject: Arranging serial number in descending order --- flowsheet_details.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flowsheet_details.inc') diff --git a/flowsheet_details.inc b/flowsheet_details.inc index 184be3a..f392ce6 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -17,7 +17,7 @@ function om_flowsheet_completed_proposals_all() { $output .= "Work has been completed for the following flow sheets. We welcome your contributions. For more details, please visit ".l("https://om.fossee.in/chemical/flowsheeting-project","https://om.fossee.in/chemical/flowsheeting-project", array('attributes' => array('target' => '_blank')))."
"; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $completion_date = date("Y", $row->actual_completion_date); @@ -28,7 +28,7 @@ function om_flowsheet_completed_proposals_all() $row->university, $completion_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', -- cgit