diff options
author | Saketh1499 | 2022-02-14 12:26:05 +0530 |
---|---|---|
committer | Saketh1499 | 2022-02-14 12:26:05 +0530 |
commit | b56513f2d480880b0bb0d101adcab9f6e11d9648 (patch) | |
tree | 2033e5c062811328d9dd748b16d38c11747ace2c | |
parent | 242d1512278a390330b5d417bc0248fcb1f9d5cc (diff) | |
download | dwsim_custom_model-b56513f2d480880b0bb0d101adcab9f6e11d9648.tar.gz dwsim_custom_model-b56513f2d480880b0bb0d101adcab9f6e11d9648.tar.bz2 dwsim_custom_model-b56513f2d480880b0bb0d101adcab9f6e11d9648.zip |
Arranging serial number in descending order
-rwxr-xr-x | custom_model_details.inc | 4 | ||||
-rwxr-xr-x | 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." . "<hr>"; $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<hr>"; + $page_content .= "Approved Proposals under Custom Model Project: " . $result->rowCount() . "<hr>"; } //$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<hr>"; + $page_content .= "Uploaded Proposals under Custom Model Project: " . $result->rowCount() . "<hr>"; } 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() . "<hr>"; } else |