diff options
author | Sashi20 | 2023-08-22 14:22:39 +0530 |
---|---|---|
committer | GitHub | 2023-08-22 14:22:39 +0530 |
commit | 1fae01689b8abaf52f2e267c740d8cd282add9d0 (patch) | |
tree | 10a35f72a8f0a66d710c48fbd2c48f4449853316 | |
parent | 432d12d3e01e376d4fee9ba7ff6a0da3b72d3bb8 (diff) | |
download | DWSIM_lab_migration-1fae01689b8abaf52f2e267c740d8cd282add9d0.tar.gz DWSIM_lab_migration-1fae01689b8abaf52f2e267c740d8cd282add9d0.tar.bz2 DWSIM_lab_migration-1fae01689b8abaf52f2e267c740d8cd282add9d0.zip |
Display labs in progress in descending order
-rwxr-xr-x | lab_details.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lab_details.inc b/lab_details.inc index 93ebff7..eecb97b 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 + } |