From 11cb8a66c33ca9375590feec95bf621e8cffe49b Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Wed, 13 Oct 2021 15:36:35 +0530 Subject: Adding a option to download proposals in csv format --- download.inc | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ dwsim_flowsheet.module | 20 +++++++++++++++++++ proposals_review_tab.inc | 51 ++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 116 insertions(+), 6 deletions(-) diff --git a/download.inc b/download.inc index d8a6839..62470cb 100755 --- a/download.inc +++ b/download.inc @@ -303,3 +303,54 @@ function dwsim_flowsheet_download_lab() drupal_goto('lab-migration/lab-migration-run'); } } + +function dwsim_flowsheet_download_proposals() +{ + $output = ""; + //$output = "

Click here to download the Proposals of the participants"; + + $root_path = dwsim_flowsheet_path(); + $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, from_unixtime(actual_completion_date,'%Y') as Year FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); + + //$all_proposals_q = $result->execute(); + $participants_proposal_id_file = $root_path . "participants-proposals.csv"; + $fp = fopen($participants_proposal_id_file, "w"); + /* making the first row */ + $items = array( + 'Contirbutor_Name', + 'Email_ID', + 'Title', + 'Contact', + 'Year' + ); + fputcsv($fp, $items); + while($row = $result->fetchObject()) { + $items = array( + '$row->contributor_name', + '$row->mail', + '$row->project_title', + '$row->contact_no', + '$row->actual_completion_date' + ); + fputcsv($fp, $items); + } + fclose($fp); + if($participants_proposal_id_file){ + ob_clean(); + header("Pragma: public"); + header("Expires: 0"); + header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); + header("Cache-Control: public"); + header("Content-Description: File Transfer"); + header('Content-Type: application/csv'); + header('Content-disposition: attachment; filename=participants-proposals.csv'); + header('Content-Length:' . filesize($participants_proposal_id_file)); + header("Content-Transfer-Encoding: binary"); + header('Expires: 0'); + header('Pragma: no-cache'); + readfile($participants_proposal_id_file); + /*ob_end_flush(); + ob_clean(); + flush();*/ + } +} \ No newline at end of file diff --git a/dwsim_flowsheet.module b/dwsim_flowsheet.module index 302f003..ea1b475 100755 --- a/dwsim_flowsheet.module +++ b/dwsim_flowsheet.module @@ -93,6 +93,16 @@ function dwsim_flowsheet_menu() 'weight' => 5, 'file' => 'proposals_review_tab.inc' ); + /*$items['flowsheeting-project/download'] = array( + 'title' => 'Flowsheet Download Proposals', + 'description' => 'Flowsheet Download Proposals', + 'page callback' => 'dwsim_flowsheet_download_proposals_tab', + 'access callback' => 'user_access', + 'access arguments' => array( + 'dwsim flowsheet manage proposal' + ), + 'file' => 'proposals_review_tab.inc' + );*/ $items['flowsheeting-project/manage-proposal/approve'] = array( 'title' => 'Approve Proposal', 'description' => 'Approve Proposal', @@ -355,6 +365,16 @@ function dwsim_flowsheet_menu() 'type' => MENU_CALLBACK, 'file' => 'full_download.inc' ); + $items['flowsheeting-project/download-proposals'] = array( + 'title' => 'Download Proposals', + 'description' => 'Download Proposals', + 'page callback' => 'dwsim_flowsheet_download_proposals', + 'access arguments' => array( + 'dwsim flowsheet download code' + ), + 'type' => MENU_CALLBACK, + 'file' => 'download.inc' + ); /* COMPLETED dwsim flowsheetS */ $items['flowsheeting-project/completed-flowsheet'] = array( 'title' => 'Completed Flowsheets', diff --git a/proposals_review_tab.inc b/proposals_review_tab.inc index fe74640..4294607 100644 --- a/proposals_review_tab.inc +++ b/proposals_review_tab.inc @@ -98,18 +98,20 @@ function dwsim_flowsheet_uploaded_tab() function dwsim_flowsheet_completed_tab_form($form, $form_state) { - + $options_first = _flowsheet_details_year_wise(); + $selected = isset($form_state['values']['howmany_select']) ? $form_state['values']['howmany_select'] : key($options_first); $form['howmany_select'] = array( '#title' => t('Sorting projects according to year:'), '#type' => 'select', - '#options' => array( + '#options' => _flowsheet_details_year_wise(), + /*'#options' => array( 'Please select...' => 'Please select...', '2017' => '2017', '2018' => '2018', '2019' => '2019', '2020' => '2020', - '2021' => '2021'), - //'#default_value' => 'Please select...', + '2021' => '2021'),*/ + '#default_value' => $selected, '#ajax' => array( 'callback' => 'ajax_example_autocheckboxes_callback', ), @@ -142,23 +144,46 @@ function ajax_example_autocheckboxes_callback($form, $form_state) ); } +function _flowsheet_details_year_wise() + { + $flowsheet_years = array( + '0' => 'Please select...' + ); + $result = db_query("SELECT from_unixtime(actual_completion_date, '%Y ') from dwsim_flowsheet_proposal WHERE approval_status = 3"); + + /*$query = db_select('dwsim_flowsheet_proposal'); + $query->fields('dwsim_flowsheet_proposal'); + $query->condition('from_unixtime(actual_completion_date)'); + $query->condition('approval_status', 3);*/ + //$query->orderBy('id', 'DESC'); + //$year_wise_list = $query->execute(); + while ($year_wise_list_data = $result->fetchObject()) + { + $flowsheet_years[$year_wise_list_data->id] = $year_wise_list_data->actual_completion_date; + } + return $flowsheet_years; + } + function _flowsheet_details($flowsheet_proposal_id) { $output = ""; + $output = "Click here to download the Proposals of the participants
"; $result = db_query("SELECT * from {dwsim_flowsheet_proposal} WHERE approval_status = 3 and from_unixtime(actual_completion_date, '%Y') = :year", array( ':year' => $flowsheet_proposal_id) ); if ($result->rowCount() == 0) - { + { + // $output = "Click here to download the Proposals of the participants"; $output .= "Work has been completed for the following flow sheets."; } else { - $output .= "Work has been completed for the following flow sheets: " . $result->rowCount() . "


"; + + $output .= "Work has been completed for the following flow sheets: " . $result->rowCount() ; $preference_rows = array(); $i = 1; while ($row = $result->fetchObject()) @@ -186,4 +211,18 @@ function _flowsheet_details($flowsheet_proposal_id) )); } return $output; +} + + +/////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////// + +//Proposal tab for Downloading proposals + +function dwsim_flowsheet_download_proposals_tab() +{ + $output= ""; + + } \ No newline at end of file -- cgit From 4648e0b828e47b0b0f533be0a332fbbdd0787ce1 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 18 Oct 2021 14:44:17 +0530 Subject: Updating download proposals interface --- download.inc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/download.inc b/download.inc index 62470cb..a329bf3 100755 --- a/download.inc +++ b/download.inc @@ -306,11 +306,8 @@ function dwsim_flowsheet_download_lab() function dwsim_flowsheet_download_proposals() { - $output = ""; - //$output = "

Click here to download the Proposals of the participants"; - $root_path = dwsim_flowsheet_path(); - $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, from_unixtime(actual_completion_date,'%Y') as Year FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); + $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, from_unixtime(actual_completion_date,'%Y') as Year FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); //$all_proposals_q = $result->execute(); $participants_proposal_id_file = $root_path . "participants-proposals.csv"; @@ -326,11 +323,11 @@ function dwsim_flowsheet_download_proposals() fputcsv($fp, $items); while($row = $result->fetchObject()) { $items = array( - '$row->contributor_name', - '$row->mail', - '$row->project_title', - '$row->contact_no', - '$row->actual_completion_date' + $row->contributor_name, + $row->mail, + $row->project_title, + $row->contact_no, + $row->actual_completion_date ); fputcsv($fp, $items); } -- cgit From 599fadcc804c30709569b02bb42aca7b55a83e60 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 18 Oct 2021 15:46:34 +0530 Subject: Adding a option to download proposals in csv format --- download.inc | 12 ++++++------ dwsim_flowsheet.module | 6 +++++- proposals_review_tab.inc | 30 ++++++++---------------------- 3 files changed, 19 insertions(+), 29 deletions(-) diff --git a/download.inc b/download.inc index a329bf3..c034eac 100755 --- a/download.inc +++ b/download.inc @@ -308,7 +308,7 @@ function dwsim_flowsheet_download_proposals() { $root_path = dwsim_flowsheet_path(); $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, from_unixtime(actual_completion_date,'%Y') as Year FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); - +//var_dump($result->rowCount());die(); //$all_proposals_q = $result->execute(); $participants_proposal_id_file = $root_path . "participants-proposals.csv"; $fp = fopen($participants_proposal_id_file, "w"); @@ -323,11 +323,11 @@ function dwsim_flowsheet_download_proposals() fputcsv($fp, $items); while($row = $result->fetchObject()) { $items = array( - $row->contributor_name, - $row->mail, - $row->project_title, - $row->contact_no, - $row->actual_completion_date + $row->Contirbutor_Name, + $row->Email_ID, + $row->Title, + $row->Contact, + $row->Year ); fputcsv($fp, $items); } diff --git a/dwsim_flowsheet.module b/dwsim_flowsheet.module index ea1b475..7e2a5a9 100755 --- a/dwsim_flowsheet.module +++ b/dwsim_flowsheet.module @@ -370,7 +370,7 @@ function dwsim_flowsheet_menu() 'description' => 'Download Proposals', 'page callback' => 'dwsim_flowsheet_download_proposals', 'access arguments' => array( - 'dwsim flowsheet download code' + 'dwsim flowsheet download proposals' ), 'type' => MENU_CALLBACK, 'file' => 'download.inc' @@ -562,6 +562,10 @@ function dwsim_flowsheet_permission() 'title' => t('dwsim flowsheet download code'), 'restrict access' => TRUE ), + 'dwsim flowsheet download proposals' => array( + 'title' => t('dwsim flowsheet download proposals'), + 'restrict access' => TRUE + ), 'administer dwsim flowsheet' => array( 'title' => t('administer dwsim flowsheet'), 'restrict access' => TRUE diff --git a/proposals_review_tab.inc b/proposals_review_tab.inc index 4294607..bccb440 100644 --- a/proposals_review_tab.inc +++ b/proposals_review_tab.inc @@ -100,8 +100,9 @@ function dwsim_flowsheet_completed_tab_form($form, $form_state) { $options_first = _flowsheet_details_year_wise(); $selected = isset($form_state['values']['howmany_select']) ? $form_state['values']['howmany_select'] : key($options_first); + $form = array(); $form['howmany_select'] = array( - '#title' => t('Sorting projects according to year:'), + '#title' => t('Sorting projects according to year:'), '#type' => 'select', '#options' => _flowsheet_details_year_wise(), /*'#options' => array( @@ -144,12 +145,13 @@ function ajax_example_autocheckboxes_callback($form, $form_state) ); } + function _flowsheet_details_year_wise() { $flowsheet_years = array( '0' => 'Please select...' ); - $result = db_query("SELECT from_unixtime(actual_completion_date, '%Y ') from dwsim_flowsheet_proposal WHERE approval_status = 3"); + $result = db_query("SELECT from_unixtime(actual_completion_date, '%Y ') as Year from dwsim_flowsheet_proposal WHERE approval_status = 3"); /*$query = db_select('dwsim_flowsheet_proposal'); $query->fields('dwsim_flowsheet_proposal'); @@ -159,7 +161,7 @@ function _flowsheet_details_year_wise() //$year_wise_list = $query->execute(); while ($year_wise_list_data = $result->fetchObject()) { - $flowsheet_years[$year_wise_list_data->id] = $year_wise_list_data->actual_completion_date; + $flowsheet_years[$year_wise_list_data->Year] = $year_wise_list_data->Year; } return $flowsheet_years; } @@ -168,22 +170,20 @@ function _flowsheet_details_year_wise() function _flowsheet_details($flowsheet_proposal_id) { $output = ""; - $output = "Click here to download the Proposals of the participants
"; + //$output = "Click here to download the Proposals of the participants
"; $result = db_query("SELECT * from {dwsim_flowsheet_proposal} WHERE approval_status = 3 and from_unixtime(actual_completion_date, '%Y') = :year", array( ':year' => $flowsheet_proposal_id) ); if ($result->rowCount() == 0) - { - // $output = "Click here to download the Proposals of the participants"; + { $output .= "Work has been completed for the following flow sheets."; } else { - - $output .= "Work has been completed for the following flow sheets: " . $result->rowCount() ; + $output .= "Work has been completed for the following flow sheets: " . $result->rowCount() . "


"; $preference_rows = array(); $i = 1; while ($row = $result->fetchObject()) @@ -211,18 +211,4 @@ function _flowsheet_details($flowsheet_proposal_id) )); } return $output; -} - - -/////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////// - -//Proposal tab for Downloading proposals - -function dwsim_flowsheet_download_proposals_tab() -{ - $output= ""; - - } \ No newline at end of file -- cgit From 7066c755ca22008ac687824baa905bf9896a4fec Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Thu, 21 Oct 2021 11:09:59 +0530 Subject: Add columns for creation date, status, and university --- download.inc | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/download.inc b/download.inc index c034eac..c33084d 100755 --- a/download.inc +++ b/download.inc @@ -307,27 +307,43 @@ function dwsim_flowsheet_download_lab() function dwsim_flowsheet_download_proposals() { $root_path = dwsim_flowsheet_path(); - $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, from_unixtime(actual_completion_date,'%Y') as Year FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); + + $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, e.university as University, from_unixtime(creation_date,'%d-%m-%Y') as creation, from_unixtime(approval_date,'%d-%m-%Y') as approval, from_unixtime(actual_completion_date,'%d-%m-%Y') as Year, e.approval_status as Status FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); + //var_dump($result->rowCount());die(); //$all_proposals_q = $result->execute(); $participants_proposal_id_file = $root_path . "participants-proposals.csv"; $fp = fopen($participants_proposal_id_file, "w"); /* making the first row */ $items = array( - 'Contirbutor_Name', - 'Email_ID', - 'Title', + 'Contirbutor Name', + 'Email ID', + 'Flowsheet Title', + 'University', 'Contact', - 'Year' + 'Date of Creation', + 'Date of Approval', + 'Date of Completion', + 'Status of the proposal' ); fputcsv($fp, $items); while($row = $result->fetchObject()) { + if($row->Status == 3){ + $Status = "Completed"; + } + else{ + $Status = "Proposal In Progress"; + } $items = array( $row->Contirbutor_Name, $row->Email_ID, $row->Title, + $row->University, $row->Contact, - $row->Year + $row->creation, + $row->approval, + $row->Year, + $Status ); fputcsv($fp, $items); } -- cgit From 15dca07df6dd9d49257c86228092eac0382a3897 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Thu, 21 Oct 2021 12:18:04 +0530 Subject: Updating columns in the interface --- download.inc | 53 ++++++++++++++++++++++++++++++++++-------------- proposals_review_tab.inc | 2 +- 2 files changed, 39 insertions(+), 16 deletions(-) mode change 100644 => 100755 proposals_review_tab.inc diff --git a/download.inc b/download.inc index c33084d..790d45a 100755 --- a/download.inc +++ b/download.inc @@ -308,7 +308,7 @@ function dwsim_flowsheet_download_proposals() { $root_path = dwsim_flowsheet_path(); - $result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, e.university as University, from_unixtime(creation_date,'%d-%m-%Y') as creation, from_unixtime(approval_date,'%d-%m-%Y') as approval, from_unixtime(actual_completion_date,'%d-%m-%Y') as Year, e.approval_status as Status FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC"); + $result = db_query("SELECT e.contributor_name as contirbutor_name, u.mail as email_id, e.project_title as title, e.contact_no as contact, e.university as university, from_unixtime(creation_date,'%d-%m-%Y') as creation, from_unixtime(approval_date,'%d-%m-%Y') as approval, from_unixtime(actual_completion_date,'%d-%m-%Y') as year, e.approval_status as status FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid ORDER BY actual_completion_date DESC"); //var_dump($result->rowCount());die(); //$all_proposals_q = $result->execute(); @@ -327,23 +327,46 @@ function dwsim_flowsheet_download_proposals() 'Status of the proposal' ); fputcsv($fp, $items); - while($row = $result->fetchObject()) { - if($row->Status == 3){ - $Status = "Completed"; - } - else{ - $Status = "Proposal In Progress"; - } + while($row = $result->fetchObject()) + { + $status = ''; + switch ($row->status) + { + case 0: + $status = 'Pending'; + break; + case 1: + $status = 'Approved'; + break; + case 2: + $status = 'Dis-approved'; + break; + case 3: + $status = 'Completed'; + break; + default: + $status = 'Unknown'; + break; + } //$row->status + if ($row->year == 0) + { + $year = "Not Completed"; + } //$row->year == 0 + else + { + $year = date('d-m-Y', $row->year); + } + $items = array( - $row->Contirbutor_Name, - $row->Email_ID, - $row->Title, - $row->University, - $row->Contact, + $row->contirbutor_name, + $row->email_id, + $row->title, + $row->university, + $row->contact, $row->creation, $row->approval, - $row->Year, - $Status + $row->year, + $status ); fputcsv($fp, $items); } diff --git a/proposals_review_tab.inc b/proposals_review_tab.inc old mode 100644 new mode 100755 index bccb440..7584a6e --- a/proposals_review_tab.inc +++ b/proposals_review_tab.inc @@ -151,7 +151,7 @@ function _flowsheet_details_year_wise() $flowsheet_years = array( '0' => 'Please select...' ); - $result = db_query("SELECT from_unixtime(actual_completion_date, '%Y ') as Year from dwsim_flowsheet_proposal WHERE approval_status = 3"); + $result = db_query("SELECT from_unixtime(actual_completion_date, '%Y ') as Year from dwsim_flowsheet_proposal WHERE approval_status = 3 ORDER BY Year ASC"); /*$query = db_select('dwsim_flowsheet_proposal'); $query->fields('dwsim_flowsheet_proposal'); -- cgit From d9d5af764f8e549e11d814e660d342c0071c7c0b Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 15 Nov 2021 11:50:22 +0530 Subject: Updating download proposals of participants interface --- download_proposals.inc | 10 ++++++++++ dwsim_flowsheet.module | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 download_proposals.inc diff --git a/download_proposals.inc b/download_proposals.inc new file mode 100644 index 0000000..10bb87f --- /dev/null +++ b/download_proposals.inc @@ -0,0 +1,10 @@ +"; + + return $output; + +} \ No newline at end of file diff --git a/dwsim_flowsheet.module b/dwsim_flowsheet.module index 7e2a5a9..39c020b 100755 --- a/dwsim_flowsheet.module +++ b/dwsim_flowsheet.module @@ -365,6 +365,15 @@ function dwsim_flowsheet_menu() 'type' => MENU_CALLBACK, 'file' => 'full_download.inc' ); + $items['flowsheeting-project/download-completed-proposals'] = array( + 'title' => 'Download Completed Proposals', + 'description' => 'Download Completed Proposals', + 'page callback' => 'dwsim_flowsheet_download_completed_proposals', + 'access arguments' => array( + 'dwsim flowsheet download proposals' + ), + 'file' => 'download_proposals.inc' + ); $items['flowsheeting-project/download-proposals'] = array( 'title' => 'Download Proposals', 'description' => 'Download Proposals', -- cgit From e8dc12972b663ef53af464251e8f7d8293322de2 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Thu, 23 Dec 2021 13:04:07 +0530 Subject: Updating url for downloading proposals --- download_proposals.inc | 2 +- dwsim_flowsheet.module | 8 ++++---- proposals_review_tab.inc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/download_proposals.inc b/download_proposals.inc index 10bb87f..a2e9c01 100644 --- a/download_proposals.inc +++ b/download_proposals.inc @@ -3,7 +3,7 @@ function dwsim_flowsheet_download_completed_proposals() { $output = ""; - $output .= "Click ".l("here","/flowsheeting-project/download-proposals"). " to download the Proposals of the participants" ."

"; + $output .= "Click ".l("here","/flowsheeting-project/download-proposals-all"). " to download the proposals of the participants" ."

"; return $output; diff --git a/dwsim_flowsheet.module b/dwsim_flowsheet.module index 39c020b..630f000 100755 --- a/dwsim_flowsheet.module +++ b/dwsim_flowsheet.module @@ -365,16 +365,16 @@ function dwsim_flowsheet_menu() 'type' => MENU_CALLBACK, 'file' => 'full_download.inc' ); - $items['flowsheeting-project/download-completed-proposals'] = array( - 'title' => 'Download Completed Proposals', - 'description' => 'Download Completed Proposals', + $items['flowsheeting-project/download-proposals'] = array( + 'title' => 'Download Proposals', + 'description' => 'Download Proposals', 'page callback' => 'dwsim_flowsheet_download_completed_proposals', 'access arguments' => array( 'dwsim flowsheet download proposals' ), 'file' => 'download_proposals.inc' ); - $items['flowsheeting-project/download-proposals'] = array( + $items['flowsheeting-project/download-proposals-all'] = array( 'title' => 'Download Proposals', 'description' => 'Download Proposals', 'page callback' => 'dwsim_flowsheet_download_proposals', diff --git a/proposals_review_tab.inc b/proposals_review_tab.inc index 7584a6e..69bbcf9 100755 --- a/proposals_review_tab.inc +++ b/proposals_review_tab.inc @@ -170,7 +170,7 @@ function _flowsheet_details_year_wise() function _flowsheet_details($flowsheet_proposal_id) { $output = ""; - //$output = "Click here to download the Proposals of the participants
"; + //$output = "Click here to download the Proposals of the participants
"; $result = db_query("SELECT * from {dwsim_flowsheet_proposal} WHERE approval_status = 3 and from_unixtime(actual_completion_date, '%Y') = :year", array( ':year' => $flowsheet_proposal_id) -- cgit