diff options
author | prashantsinalkar | 2017-03-22 17:30:54 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-03-22 17:30:54 +0530 |
commit | 012d03c5e63cc6894028ac7fab774bf0053cc34a (patch) | |
tree | 0dcd7b5b6f6f17fb82082abbf385f3faadb8c3d6 /manage_proposal.inc | |
parent | ef1ed8a0a9d393daab5f1fe96ae420c617494a41 (diff) | |
download | dwsim_flowsheet-012d03c5e63cc6894028ac7fab774bf0053cc34a.tar.gz dwsim_flowsheet-012d03c5e63cc6894028ac7fab774bf0053cc34a.tar.bz2 dwsim_flowsheet-012d03c5e63cc6894028ac7fab774bf0053cc34a.zip |
removed unused code
Diffstat (limited to 'manage_proposal.inc')
-rwxr-xr-x | manage_proposal.inc | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc index b1a7a92..4e05856 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -38,47 +38,7 @@ function dwsim_flowsheet_proposal_pending() )); return $output; } -function dwsim_flowsheet_proposal_pending_solution() -{ - /* get pending proposals to be approved */ - $pending_rows = array(); - //$pending_q = db_query("SELECT * FROM {dwsim_flowsheet_proposal} WHERE approval_status = 1 ORDER BY id DESC"); - $query = db_select('dwsim_flowsheet_proposal'); - $query->fields('dwsim_flowsheet_proposal'); - $query->condition('approval_status', 1); - $query->orderBy('id', 'DESC'); - $pending_q = $query->execute(); - while ($pending_data = $pending_q->fetchObject()) - { - $pending_rows[$pending_data->id] = array( - date('d-m-Y', $pending_data->creation_date), - date('d-m-Y', $pending_data->approval_date), - l($pending_data->name, 'user/' . $pending_data->uid), - $pending_data->project_title, - $pending_data->department, - l('Status', 'flowsheeting-project/manage-proposal/status/' . $pending_data->id) - ); - } //$pending_data = $pending_q->fetchObject() - /* check if there are any pending proposals */ - if (!$pending_rows) - { - drupal_set_message(t('There are no proposals pending for solutions.'), 'status'); - return ''; - } //!$pending_rows - $pending_header = array( - 'Date of Submission', - 'Date of Approval', - 'Student name', - 'Title of the Flowsheet Project', - 'Department', - 'Action' - ); - $output = theme('table', array( - 'header' => $pending_header, - 'rows' => $pending_rows - )); - return $output; -} + function dwsim_flowsheet_proposal_all() { /* get pending proposals to be approved */ @@ -135,7 +95,7 @@ function dwsim_flowsheet_proposal_all() $proposal_header = array( 'Date of Submission', 'Student Name', - 'Title of the Lab', + 'Title of the flowsheeting project', 'Date of Completion', 'Status', 'Action' |