summaryrefslogtreecommitdiff
path: root/pssp_details.inc
diff options
context:
space:
mode:
authorSashi202023-08-22 14:38:45 +0530
committerGitHub2023-08-22 14:38:45 +0530
commitea0472145b848b8535095f31ab975c0cb1ad0c87 (patch)
treecbf05b366510e08a3e2f42c920c486b398701056 /pssp_details.inc
parentf5322a02a199cd4c9296a496424575ce7e5aa7e4 (diff)
downloadom_pssp-ea0472145b848b8535095f31ab975c0cb1ad0c87.tar.gz
om_pssp-ea0472145b848b8535095f31ab975c0cb1ad0c87.tar.bz2
om_pssp-ea0472145b848b8535095f31ab975c0cb1ad0c87.zip
Arrange in progress table in descending order
Diffstat (limited to 'pssp_details.inc')
-rwxr-xr-xpssp_details.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/pssp_details.inc b/pssp_details.inc
index e469cc2..2fc72a4 100755
--- a/pssp_details.inc
+++ b/pssp_details.inc
@@ -69,7 +69,7 @@ function om_pssp_progress_all()
{
$page_content .= "Work is in progress for the following Power System Simulation under Power System Simulation Project<hr>";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$approval_date = date("Y", $row->approval_date);
@@ -80,7 +80,7 @@ function om_pssp_progress_all()
$row->university,
$approval_date
);
- $i++;
+ $i--;
} //$row = $result->fetchObject()
$preference_header = array(
'No',
@@ -95,4 +95,4 @@ function om_pssp_progress_all()
));
}
return $page_content;
-} \ No newline at end of file
+}