summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992022-02-15 15:33:25 +0530
committerSaketh14992022-02-15 15:33:25 +0530
commit0a71235188ef17a8bd2d94cc63b0ab1f833c4bad (patch)
tree6d6bc750cafe22c185ed9ce21e0e1d806e79ca16
parent358413ff56636fc73ecc2c6e491a8ae8586a6428 (diff)
downloadom_flowsheet-0a71235188ef17a8bd2d94cc63b0ab1f833c4bad.tar.gz
om_flowsheet-0a71235188ef17a8bd2d94cc63b0ab1f833c4bad.tar.bz2
om_flowsheet-0a71235188ef17a8bd2d94cc63b0ab1f833c4bad.zip
Arranging serial number in descending order
-rwxr-xr-xflowsheet_details.inc4
1 files changed, 2 insertions, 2 deletions
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')))."<hr>";
$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',