From b56513f2d480880b0bb0d101adcab9f6e11d9648 Mon Sep 17 00:00:00 2001
From: Saketh1499
Date: Mon, 14 Feb 2022 12:26:05 +0530
Subject: Arranging serial number in descending order
---
custom_model_details.inc | 4 ++--
proposals_review_tab.inc | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/custom_model_details.inc b/custom_model_details.inc
index 592a8b3..903eec8 100755
--- a/custom_model_details.inc
+++ b/custom_model_details.inc
@@ -19,7 +19,7 @@ function custom_model_completed_proposals_all()
{
$output .= "Work has been completed for the following custom model. We welcome your contributions." . "
";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$proposal_id = $row->id;
@@ -31,7 +31,7 @@ function custom_model_completed_proposals_all()
$row->university,
$completion_date
);
- $i++;
+ $i--;
} //$row = $result->fetchObject()
$preference_header = array(
'No',
diff --git a/proposals_review_tab.inc b/proposals_review_tab.inc
index 424de0a..4b90a81 100755
--- a/proposals_review_tab.inc
+++ b/proposals_review_tab.inc
@@ -7,7 +7,7 @@ function dwsim_custom_model_approved_tab()
$result = db_query("SELECT * from custom_model_proposal where id not in (select proposal_id from custom_model_submitted_abstracts) AND approval_status = 1 order by approval_date desc");
if ($result->rowCount() == 0)
{
- $page_content .= "Approved Proposals under Custom Model Project
";
+ $page_content .= "Approved Proposals under Custom Model Project: " . $result->rowCount() . "
";
} //$result->rowCount() == 0
else
{
@@ -55,7 +55,7 @@ function dwsim_custom_model_uploaded_tab()
if ($result->rowCount() == 0)
{
- $page_content .= "Uploaded Proposals under Custom Model Project
";
+ $page_content .= "Uploaded Proposals under Custom Model Project: " . $result->rowCount() . "
";
}
else
{
@@ -170,7 +170,7 @@ function _custom_model_details($custom_model_proposal_id)
if ($result->rowCount() == 0)
{
- $output .= "Work has been completed for the following Custom Model.";
+ $output .= "Work has been completed for the following custom model Project:" . $result->rowCount() . "
";
}
else
--
cgit