diff options
Diffstat (limited to 'download.inc')
-rwxr-xr-x | download.inc | 15 |
1 files 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 = "<p>Click <a href='download-proposals'>here</a> 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); } |