diff options
author | Sashi20 | 2023-08-22 14:37:57 +0530 |
---|---|---|
committer | GitHub | 2023-08-22 14:37:57 +0530 |
commit | 24bbe7cb56d680e3a71ffebb4e866ddbd993228f (patch) | |
tree | 66288595e2afcade5989a77ffea50db864549618 | |
parent | 5510de990e7c31b7416a7a26b9ca13f94f03d501 (diff) | |
download | om_flowsheet-24bbe7cb56d680e3a71ffebb4e866ddbd993228f.tar.gz om_flowsheet-24bbe7cb56d680e3a71ffebb4e866ddbd993228f.tar.bz2 om_flowsheet-24bbe7cb56d680e3a71ffebb4e866ddbd993228f.zip |
Arrange in progress table in descending order
-rwxr-xr-x | flowsheet_details.inc | 6 |
1 files 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<hr>";; $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 +} |