summaryrefslogtreecommitdiff
path: root/flowsheet_details.inc
diff options
context:
space:
mode:
Diffstat (limited to 'flowsheet_details.inc')
-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',