summaryrefslogtreecommitdiff
path: root/lab_details.inc
diff options
context:
space:
mode:
authorSashi202023-08-22 14:23:06 +0530
committerGitHub2023-08-22 14:23:06 +0530
commitd747d86c1fb1ef302fa3ed6860ad4fa75d0ddf67 (patch)
treea4fd859c45bd1d23fcc5ec35b2b1da60b53cb48d /lab_details.inc
parent3af300b9fabc56a8a0f9a1a115f5d01575203338 (diff)
parent1fae01689b8abaf52f2e267c740d8cd282add9d0 (diff)
downloadDWSIM_lab_migration-d747d86c1fb1ef302fa3ed6860ad4fa75d0ddf67.tar.gz
DWSIM_lab_migration-d747d86c1fb1ef302fa3ed6860ad4fa75d0ddf67.tar.bz2
DWSIM_lab_migration-d747d86c1fb1ef302fa3ed6860ad4fa75d0ddf67.zip
Merge pull request #10 from Sashi20/master
Display labs in progress in descending order
Diffstat (limited to 'lab_details.inc')
-rwxr-xr-xlab_details.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lab_details.inc b/lab_details.inc
index 1d195c2..0f8ea80 100755
--- a/lab_details.inc
+++ b/lab_details.inc
@@ -56,7 +56,7 @@ function lab_migration_labs_progress_all()
else
{
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$approval_date = date("Y", $row->approval_date);
@@ -66,7 +66,7 @@ function lab_migration_labs_progress_all()
$row->lab_title,
$approval_date
);
- $i++;
+ $i--;
}
$preference_header = array(
'No',
@@ -80,4 +80,4 @@ function lab_migration_labs_progress_all()
));
}
return $page_content;
- } \ No newline at end of file
+ }