summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202023-08-22 14:16:21 +0530
committerSashi202023-08-22 14:16:21 +0530
commit67b68cb694e49bcb46a1678a1308305db9cef6f3 (patch)
treed45b7363de2f1b9d27b72a446b3ec783e4a257b7
parent158c9ccd56686ec4ff5c8e1e2448c17de017c597 (diff)
downloaddwsim_custom_model-67b68cb694e49bcb46a1678a1308305db9cef6f3.tar.gz
dwsim_custom_model-67b68cb694e49bcb46a1678a1308305db9cef6f3.tar.bz2
dwsim_custom_model-67b68cb694e49bcb46a1678a1308305db9cef6f3.zip
Display projects in progress in reverse order
-rwxr-xr-xcustom_model_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_model_details.inc b/custom_model_details.inc
index 903eec8..5c2b8aa 100755
--- a/custom_model_details.inc
+++ b/custom_model_details.inc
@@ -64,7 +64,7 @@ function custom_model_progress_all()
{
$page_content .= "Work is in progress for the following custom model under DWSIM Custom Model Project<hr>";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$approval_date = date("Y", $row->approval_date);
@@ -75,7 +75,7 @@ function custom_model_progress_all()
$row->university,
$approval_date
);
- $i++;
+ $i--;
} //$row = $result->fetchObject()
$preference_header = array(
'No',