diff options
author | Sashi20 | 2019-05-15 16:39:50 +0530 |
---|---|---|
committer | GitHub | 2019-05-15 16:39:50 +0530 |
commit | 97f843152d9709abefa9f1de993fafbcd1593784 (patch) | |
tree | ad90c7105a2981a4d8ba856e5ab35748c3e78432 /pdf | |
parent | d72c96889df292a9911876d68abe51a19df5a33b (diff) | |
parent | d760e557ed05c6d8f49ff3813630c47a95ad4fbe (diff) | |
download | om_flowsheet-97f843152d9709abefa9f1de993fafbcd1593784.tar.gz om_flowsheet-97f843152d9709abefa9f1de993fafbcd1593784.tar.bz2 om_flowsheet-97f843152d9709abefa9f1de993fafbcd1593784.zip |
Merge pull request #1 from Sashi20/master
Modify URLs for Flowsheeting Project
Diffstat (limited to 'pdf')
-rwxr-xr-x | pdf/cert_new.inc | 6 | ||||
-rwxr-xr-x | pdf/verify_certificates.inc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc index 9b048d1..1202d92 100755 --- a/pdf/cert_new.inc +++ b/pdf/cert_new.inc @@ -6,7 +6,7 @@ function generate_pdf() require($mpath.'/pdf/phpqrcode/qrlib.php'); global $user; $x = $user->uid; - $proposal_id = arg(3); + $proposal_id = arg(4); $query3 = db_query("SELECT * FROM om_flowsheet_proposal WHERE approval_status=3 AND uid= :uid AND id=:proposal_id", array( ':uid' => $user->uid, ':proposal_id'=>$proposal_id @@ -237,7 +237,7 @@ function generate_copyright_form_pdf() require($mpath . '/pdf/fpdf/fpdf.php'); global $user; $x = $user->uid; - $proposal_id = arg(3); + $proposal_id = arg(4); $query2 = db_query("SELECT id FROM om_flowsheet_proposal WHERE approval_status=3 AND uid= :uid", array( ':uid' => $user->uid )); @@ -325,7 +325,7 @@ function generate_undertaking_form_pdf() require($mpath . '/pdf/fpdf/fpdf.php'); global $user; $x = $user->uid; - $proposal_id = arg(3); + $proposal_id = arg(4); $query2 = db_query("SELECT id FROM om_flowsheet_proposal WHERE approval_status=3 AND uid= :uid", array( ':uid' => $user->uid )); diff --git a/pdf/verify_certificates.inc b/pdf/verify_certificates.inc index eb4d7d1..9f3fb32 100755 --- a/pdf/verify_certificates.inc +++ b/pdf/verify_certificates.inc @@ -1,7 +1,7 @@ <?php function verify_certificates($qr_code = 0) { - $qr_code = arg(3); + $qr_code = arg(4); $page_content = ""; if ($qr_code) { |