summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202022-02-15 11:08:29 +0530
committerGitHub2022-02-15 11:08:29 +0530
commit152b8102094bfe16c928ff21a97ae29368ed037a (patch)
treeadd90a8000222b3ed069f057dce86267d7c95e1f
parent73b6f54ea60430795d7f2e9478e4a25eb4bbdde3 (diff)
parentb47a261d9412974e339dde34bf5312366af534f3 (diff)
downloadesim_lab_migration-152b8102094bfe16c928ff21a97ae29368ed037a.tar.gz
esim_lab_migration-152b8102094bfe16c928ff21a97ae29368ed037a.tar.bz2
esim_lab_migration-152b8102094bfe16c928ff21a97ae29368ed037a.zip
Merge pull request #3 from Saketh1499/developement
Arranging serial number in descending order
-rwxr-xr-xlab_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab_details.inc b/lab_details.inc
index 59898da..8f30b59 100755
--- a/lab_details.inc
+++ b/lab_details.inc
@@ -8,11 +8,11 @@
$result = $query->execute();
//$result = db_query($query);
$proposal_rows = array();
- $i=1;
+ $i=$result->rowCount();
while($row = $result->fetchObject()) {
$approval_date=date("Y", $row->approval_date);
$preference_rows[] = array($i, $row->university , l($row->lab_title,"lab_migration_run/".$row->id),$approval_date);
- $i++;
+ $i--;
}
$preference_header = array('No','Institute', 'Lab', 'Year');
$output = theme('table', array('header' => $preference_header, 'rows' => $preference_rows));