summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202018-07-03 15:47:26 +0530
committerSashi202018-07-03 15:47:26 +0530
commitab3ab6659eda2049efb8e2933152362c3bb30cf5 (patch)
treec89db496a923a3a59be1184ca96353189fee9365
parent9e37a84d3e135506625d6f24a085aadac24d0c07 (diff)
downloadr_textbook_companion-ab3ab6659eda2049efb8e2933152362c3bb30cf5.tar.gz
r_textbook_companion-ab3ab6659eda2049efb8e2933152362c3bb30cf5.tar.bz2
r_textbook_companion-ab3ab6659eda2049efb8e2933152362c3bb30cf5.zip
Added link to download certificate in completion email and minor changes in the certificate
-rwxr-xr-xpdf/generate_pdf.inc2
-rwxr-xr-xpdf/list_all_certificates.inc7
-rwxr-xr-xtextbook_companion.module7
3 files changed, 10 insertions, 6 deletions
diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc
index 1da37f4..f80f52b 100755
--- a/pdf/generate_pdf.inc
+++ b/pdf/generate_pdf.inc
@@ -93,7 +93,7 @@ function generate_pdf()
$pdf->Cell(320, 12,$data2->book, '0', '1', 'C');
$pdf->Ln(0);
$pdf->SetTextColor(0, 0, 0);
- $pdf->MultiCell(320, 10, 'written by "' . $author . '"', '0', 'C');
+ $pdf->MultiCell(320, 10, 'written by "' . $author . '".', '0', 'C');
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(320, 10, 'The work done is available at', '0', '1', 'C');
$pdf->Cell(320, 4, '', '0', '1', 'C');
diff --git a/pdf/list_all_certificates.inc b/pdf/list_all_certificates.inc
index 723c2ff..a65aa47 100755
--- a/pdf/list_all_certificates.inc
+++ b/pdf/list_all_certificates.inc
@@ -51,7 +51,14 @@ return '';
} */
function _list_all_certificates()
{
+
global $user;
+ if (!$user->uid)
+ {
+ drupal_set_message('Log in to download the certificate ', 'error');
+ drupal_goto('');
+ return;
+ }
/*$query_id =db_query("SELECT id FROM textbook_companion_proposal WHERE proposal_status=3 AND uid=".$user->uid);
$exist_id = db_fetch_object($query_id);*/
$query = db_select('textbook_companion_proposal');
diff --git a/textbook_companion.module b/textbook_companion.module
index 5d9f3cc..77b5c37 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -2922,8 +2922,6 @@ University/Institute : ' . $proposal_data->university . '
College Teacher / Professor : ' . $proposal_data->faculty . '
Reviewer : ' . $proposal_data->reviewer . '
Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
-
-
Title of the book : ' . $approved_preference_data->book . '
Author name : ' . $approved_preference_data->author . '
ISBN No. : ' . $approved_preference_data->isbn . '
@@ -2931,9 +2929,8 @@ Publisher and Place : ' . $approved_preference_data->publisher . '
Edition : ' . $approved_preference_data->edition . '
Year of publication : ' . $approved_preference_data->year . '
-Your book is now available at following link to download.
-
-https://r.fossee.in/textbook-companion/textbook-run/' . $approved_preference_data->id . '
+Your book is now available at following link to download at https://r.fossee.in/textbook-companion/textbook-run/' . $approved_preference_data->id . '
+You may download your certificate from http://r.fossee.in/textbook-companion/certificate after logging in your account.
Now you should be able to propose a new book.