From c020a3e5c4ea5a90316c8cafabb5679702d7fc6f Mon Sep 17 00:00:00 2001
From: Sashi20
Date: Thu, 26 Apr 2018 18:47:52 +0530
Subject: Modified proposal forms and fixed emails issues
---
pdf/list_all_form_pdf.inc | 67 -----------------------------------------------
1 file changed, 67 deletions(-)
delete mode 100755 pdf/list_all_form_pdf.inc
(limited to 'pdf/list_all_form_pdf.inc')
diff --git a/pdf/list_all_form_pdf.inc b/pdf/list_all_form_pdf.inc
deleted file mode 100755
index e05924f..0000000
--- a/pdf/list_all_form_pdf.inc
+++ /dev/null
@@ -1,67 +0,0 @@
- $user->uid
- ));
- $exist_id = $query_id->fetchObject();
- if ($exist_id->id)
- {
- if ($exist_id->id < 3)
- {
- drupal_set_message('You need to propose a Book Proposal or if you have already proposed then your book is under reviewing process', 'status');
- return '';
- } //$exist_id->id < 3
- else
- {
- $search_rows = array();
- global $output;
- $output = '';
- $query3 = db_query("SELECT prop.id,pref.isbn,pref.book,pref.author FROM textbook_companion_proposal as prop,textbook_companion_preference as pref WHERE prop.proposal_status = 3 AND pref.approval_status =1 AND pref.proposal_id = prop.id AND prop.uid = :uid", array(
- ':uid' => $user->uid
- ));
- while ($search_data3 = $query3->fetchObject())
- {
- if ($search_data3->id)
- {
- $search_rows[] = array(
- $search_data3->isbn,
- $search_data3->book,
- $search_data3->author,
- l('Download Copyright Form', 'Summer_Internship_Forms/copyright-form/generate_pdf/' . $search_data3->id),
- l('Download Undertaking Form', 'Summer_Internship_Forms/undertaking-form/generate_pdf/' . $search_data3->id)
- );
- } //$search_data3->id
- } //$search_data3 = $query3->fetchObject()
- if ($search_rows)
- {
- $search_header = array(
- 'ISBN',
- 'Book Name',
- 'Author',
- 'Download Copyright Form',
- 'Download Undertaking Form'
- );
- $output = theme('table', array(
- 'header' => $search_header,
- 'rows' => $search_rows
- ));
- return $output;
- } //$search_rows
- else
- {
- echo ("Error");
- return '';
- }
- }
- } //$exist_id->id
- else
- {
- drupal_set_message('You need to propose a book Book Proposal or if you have already proposed then your book is under reviewing process', 'status');
- return '';
- }
-}
-
-
--
cgit