summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992022-02-14 12:03:21 +0530
committerSaketh14992022-02-14 12:03:21 +0530
commit5240227615e862e716a189d7829bf395583f66e3 (patch)
tree726c20fe1007d1fa15d5b8ff218867f33f309336
parente8dc12972b663ef53af464251e8f7d8293322de2 (diff)
downloaddwsim_flowsheet-5240227615e862e716a189d7829bf395583f66e3.tar.gz
dwsim_flowsheet-5240227615e862e716a189d7829bf395583f66e3.tar.bz2
dwsim_flowsheet-5240227615e862e716a189d7829bf395583f66e3.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 cba65d0..9144b65 100755
--- a/flowsheet_details.inc
+++ b/flowsheet_details.inc
@@ -19,7 +19,7 @@ function dwsim_flowsheet_completed_proposals_all()
$output .= "Total number of completed flowsheets: " . $result->rowCount() . "<br>";
$output .= "Work has been completed for the following flow sheets. We welcome your contributions. For more details, please visit ".l("https://dwsim.fossee.in/flowsheeting-project","https://dwsim.fossee.in/flowsheeting-project", array('attributes' => array('target' => '_blank')))."<br>"."<h4>"."If you are looking for flowsheeting project ideas, ".l("click here","https://dwsim.fossee.in/flowsheeting-ideas",array('attributes' => array('class' => array('flash_content'), 'target' => '_blank')))."</h4>"."<hr>";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$completion_date = date("Y", $row->actual_completion_date);
@@ -30,7 +30,7 @@ function dwsim_flowsheet_completed_proposals_all()
$row->university,
$completion_date
);
- $i++;
+ $i--;
} //$row = $result->fetchObject()
$preference_header = array(
'No',