summaryrefslogtreecommitdiff
path: root/lab_details.inc
diff options
context:
space:
mode:
authorSashi202022-02-15 11:08:04 +0530
committerGitHub2022-02-15 11:08:04 +0530
commit3af300b9fabc56a8a0f9a1a115f5d01575203338 (patch)
tree94ba31d6b19f64cf0380e3dbf4287a8bc106494a /lab_details.inc
parentdacd05a8e7ee51c0283da3cd32879163e57848e7 (diff)
parent99f5cff96418d3433efa491d7f4133313b8062cc (diff)
downloadDWSIM_lab_migration_module-3af300b9fabc56a8a0f9a1a115f5d01575203338.tar.gz
DWSIM_lab_migration_module-3af300b9fabc56a8a0f9a1a115f5d01575203338.tar.bz2
DWSIM_lab_migration_module-3af300b9fabc56a8a0f9a1a115f5d01575203338.zip
Merge pull request #9 from Saketh1499/development
Arranging serial number in descending order
Diffstat (limited to 'lab_details.inc')
-rwxr-xr-xlab_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab_details.inc b/lab_details.inc
index 93ebff7..1d195c2 100755
--- a/lab_details.inc
+++ b/lab_details.inc
@@ -15,7 +15,7 @@ function lab_migration_completed_labs_all()
else
{
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$completion_date = date("Y", $row->expected_completion_date);
@@ -25,7 +25,7 @@ function lab_migration_completed_labs_all()
l($row->lab_title, "lab-migration/lab-migration-run/" . $row->id),
$completion_date
);
- $i++;
+ $i--;
}
$preference_header = array(
'No',