diff options
author | prashantsinalkar | 2017-05-26 10:43:00 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-05-26 10:43:00 +0530 |
commit | 408610bcc3d9bb795fcdbe00fbd1b14f3be3704e (patch) | |
tree | e11fda27689c3b00e4a3f720d3ed637782df5117 | |
parent | e339816b957a91f1a91deab8653d08b6d23f637a (diff) | |
download | openmodelica_textbook_companion-408610bcc3d9bb795fcdbe00fbd1b14f3be3704e.tar.gz openmodelica_textbook_companion-408610bcc3d9bb795fcdbe00fbd1b14f3be3704e.tar.bz2 openmodelica_textbook_companion-408610bcc3d9bb795fcdbe00fbd1b14f3be3704e.zip |
added certificate verification
-rwxr-xr-x[-rw-r--r--] | pdf/images/verify_content.png | bin | 36409 -> 36409 bytes | |||
-rwxr-xr-x | pdf/temp_prcode/generated_qrcode.png | bin | 452 -> 453 bytes | |||
-rwxr-xr-x | pdf/verify_certificates.inc | 2 | ||||
-rwxr-xr-x | textbook_companion.module | 13 |
4 files changed, 14 insertions, 1 deletions
diff --git a/pdf/images/verify_content.png b/pdf/images/verify_content.png Binary files differindex 69f8f8c..69f8f8c 100644..100755 --- a/pdf/images/verify_content.png +++ b/pdf/images/verify_content.png diff --git a/pdf/temp_prcode/generated_qrcode.png b/pdf/temp_prcode/generated_qrcode.png Binary files differindex 55d0268..9839bb3 100755 --- a/pdf/temp_prcode/generated_qrcode.png +++ b/pdf/temp_prcode/generated_qrcode.png diff --git a/pdf/verify_certificates.inc b/pdf/verify_certificates.inc index e9731b8..f2ad8aa 100755 --- a/pdf/verify_certificates.inc +++ b/pdf/verify_certificates.inc @@ -81,7 +81,7 @@ function verify_qrcode_fromdb($qr_code) $page_content .= "<h4>Participation Details</h4><table><tr><td>Name</td>"; $page_content .= "<td>" . $data3->full_name . "</td></tr>"; $page_content .= "<tr><td>Project</td>"; - $page_content .= "<td>DWSIM Textbook Companion</td></tr>"; + $page_content .= "<td>OpenModelica Textbook Companion</td></tr>"; $page_content .= "<tr><td>Books completed</td>"; $page_content .= "<td>" . $data2->book . "</td></tr>"; $page_content .= "<tr><td>Book Author</td>"; diff --git a/textbook_companion.module b/textbook_companion.module index 644a144..ed33638 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -712,6 +712,15 @@ function textbook_companion_menu() ), 'file' => 'pdf/generate_pdf.inc' ); + $items["textbook-companion/certificate/verify"] = array( + "title" => "Certificate Verification", + "page callback" => "verify_certificates", + "access arguments" => array( + "verify certificates" + ), + 'type' => MENU_CALLBACK, + 'file' => 'pdf/verify_certificates.inc' + ); $items['textbook-companion/manage-proposal/paper-submission'] = array( 'title' => 'Application Submission', 'description' => 'Application Submission', @@ -806,6 +815,10 @@ function textbook_companion_permission() "title" => t("list all certificates"), "description" => t("Allows users to list all certificates.") ), + "verify certificates" => array( + "title" => t("Verify certificates"), + "description" => t("Allows users to verify certificates.") + ), "generate pdf" => array( "title" => t("Generate pdf"), "description" => t("Allows users to Generate pdf.") |