summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992022-02-14 11:18:53 +0530
committerSaketh14992022-02-14 11:18:53 +0530
commitb47a261d9412974e339dde34bf5312366af534f3 (patch)
treeadd90a8000222b3ed069f057dce86267d7c95e1f
parent094dbd4a60998c4f9c4b785fd197d785f499eb09 (diff)
downloadesim_lab_migration-b47a261d9412974e339dde34bf5312366af534f3.tar.gz
esim_lab_migration-b47a261d9412974e339dde34bf5312366af534f3.tar.bz2
esim_lab_migration-b47a261d9412974e339dde34bf5312366af534f3.zip
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));