diff options
author | Sashi20 | 2018-07-03 15:47:26 +0530 |
---|---|---|
committer | Sashi20 | 2018-07-03 15:47:26 +0530 |
commit | ab3ab6659eda2049efb8e2933152362c3bb30cf5 (patch) | |
tree | c89db496a923a3a59be1184ca96353189fee9365 /pdf | |
parent | 9e37a84d3e135506625d6f24a085aadac24d0c07 (diff) | |
download | r_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
Diffstat (limited to 'pdf')
-rwxr-xr-x | pdf/generate_pdf.inc | 2 | ||||
-rwxr-xr-x | pdf/list_all_certificates.inc | 7 |
2 files changed, 8 insertions, 1 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'); |