summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202023-08-22 14:37:57 +0530
committerGitHub2023-08-22 14:37:57 +0530
commit24bbe7cb56d680e3a71ffebb4e866ddbd993228f (patch)
tree66288595e2afcade5989a77ffea50db864549618
parent5510de990e7c31b7416a7a26b9ca13f94f03d501 (diff)
downloadom_flowsheet-24bbe7cb56d680e3a71ffebb4e866ddbd993228f.tar.gz
om_flowsheet-24bbe7cb56d680e3a71ffebb4e866ddbd993228f.tar.bz2
om_flowsheet-24bbe7cb56d680e3a71ffebb4e866ddbd993228f.zip
Arrange in progress table in descending order
-rwxr-xr-xflowsheet_details.inc6
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
+}