summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashant S2018-07-12 10:40:57 +0530
committerGitHub2018-07-12 10:40:57 +0530
commit0210dd8a218512fe2f677284667422bff414869d (patch)
tree9609f8019c034c0f8891a4da4e7dda585bab9656
parent27c421185a67f9889148f8eea93bca1373e655a8 (diff)
parente0c9b2e9d4e99305269c38114659100cbf2c0584 (diff)
downloadscilab_in_migration_certificates-0210dd8a218512fe2f677284667422bff414869d.tar.gz
scilab_in_migration_certificates-0210dd8a218512fe2f677284667422bff414869d.tar.bz2
scilab_in_migration_certificates-0210dd8a218512fe2f677284667422bff414869d.zip
Merge pull request #2 from prashantsinalkar/master
done minor changes
-rwxr-xr-xpdf/generate_pdf.inc32
-rwxr-xr-xpdf/m_tbc_certi.inc4
-rwxr-xr-xpdf/m_tbc_generate_pdf.inc32
3 files changed, 36 insertions, 32 deletions
diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc
index eb14265..ca7e48b 100755
--- a/pdf/generate_pdf.inc
+++ b/pdf/generate_pdf.inc
@@ -25,6 +25,8 @@ function generate_lm_pdf()
echo "Error!";
} //!$pdf
$pdf->AddPage();
+ $image_bg = $mpath . "/pdf/images/bg.png";
+ $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
$pdf->Rect(5, 5, 267, 207, 'D'); //For A4
$pdf->SetMargins(18, 1, 18);
$pdf->Line(7.0, 7.0, 270.0, 7.0);
@@ -36,22 +38,22 @@ function generate_lm_pdf()
$pdf->Ln(15);
$pdf->Cell(200, 8, $pdf->Image($image1, 100, 19, 0, 28), 0, 1, 'C');
$pdf->Ln(25);
- $pdf->SetFont('Arial', 'BI', 25);
+ $pdf->SetFont('Times', 'BI', 25);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, 'Certificate of Lab Migration', '0', 1, 'C');
$pdf->Ln(4);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'This is to certify that under the supervision/guidance of ' . $data3->name_title . ' ' . $data3->name . ',', '0', 1, 'C');
$pdf->SetTextColor(139, 69, 19);
$pdf->Ln(2);
$pdf->Cell(240, 8, 'from the ' . $data3->department . ',', '0', 1, 'C');
$pdf->Ln(0);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, $data3->institute_name . ', ' . $data3->institute_address, '0', '1', 'C');
$pdf->Ln(2);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, ' has successfully migrated the ', '0', '1', 'C');
$pdf->Ln(0);
@@ -128,14 +130,14 @@ function generate_lm_pdf()
$sign = $path . "/pdf/images/kannan-sign.png";
$pdf->Image($sign, $pdf->GetX(), $pdf->GetY() - 10, 50, 0);
//$pdf->Cell(0,7,'', 0,1,'L');
- $pdf->SetFont('Arial', 'I', 12);
+ $pdf->SetFont('Times', 'I', 12);
$pdf->Cell(0, 8, 'Prof. Kannan Moudgalya', 0, 1, 'L');
$pdf->SetX(194);
$pdf->Cell(0, 7, 'Principal Investigator - FOSSEE', 0, 1, 'L');
$pdf->SetX(190);
$pdf->Cell(0, 7, ' Dept. of Chemical Engg., IIT Bombay.', 0, 1, 'L');
$pdf->SetX(29);
- $pdf->SetFont('Arial', 'B', 10);
+ $pdf->SetFont('Times', 'B', 10);
$pdf->Cell(0, 2, $UniqueString, 0, 0, 'C');
//$image4=$path."/pdf/images/verify_content.png";
//$pdf->Image($image4, $pdf->GetX(), $pdf->GetY(),20, 0);
@@ -148,7 +150,7 @@ function generate_lm_pdf()
$pdf->Image($image3, $pdf->GetX() + 110, $pdf->GetY() + 3, 15, 0);
$image4 = $path . "/pdf/images/verify_content.png";
$pdf->Image($image4, $pdf->GetX() - 15, $pdf->GetY() + 28, 150, 0);
- $pdf->SetFont('Arial', 'I', 8);
+ $pdf->SetFont('Times', 'I', 8);
$pdf->SetTextColor(0, 0, 0);
$filename = str_replace(' ', '-', $data3->proposal_id) . '-Scilab-Lab-migration-Certificate.pdf';
$file = $path . '/pdf/temp_certificate/' . $proposal_id . '_' . $filename;
@@ -179,6 +181,8 @@ function generate_lm_pdf()
echo "Error!";
} //!$pdf
$pdf->AddPage();
+ $image_bg = $mpath . "/pdf/images/bg.png";
+ $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
$pdf->Rect(5, 5, 267, 207, 'D'); //For A4
$pdf->SetMargins(18, 1, 18);
$pdf->Line(7.0, 7.0, 270.0, 7.0);
@@ -190,19 +194,19 @@ function generate_lm_pdf()
$pdf->Ln(15);
$pdf->Cell(200, 8, $pdf->Image($image1, 100, 19, 0, 28), 0, 1, 'C');
$pdf->Ln(25);
- $pdf->SetFont('Arial', 'BI', 25);
+ $pdf->SetFont('Times', 'BI', 25);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, 'Certificate of Participation', '0', 1, 'C');
$pdf->Ln(3);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'This is to certify that', '0', '1', 'C');
$pdf->Ln(4);
- $pdf->SetFont('Arial', 'BI', 20);
+ $pdf->SetFont('Times', 'BI', 20);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, $data3->name_title . ' ' . $data3->name, '0', 1, 'C');
$pdf->Ln(5);
- $pdf->SetFont('Arial', 'I', 12);
+ $pdf->SetFont('Times', 'I', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'from the Department of ' . $data3->department . ', ', '0', '1', 'C');
$pdf->Ln(0);
@@ -285,14 +289,14 @@ function generate_lm_pdf()
$sign = $path . "/pdf/images/kannan-sign.png";
$pdf->Image($sign, $pdf->GetX(), $pdf->GetY() - 10, 50, 0);
//$pdf->Cell(0,7,'', 0,1,'L');
- $pdf->SetFont('Arial', 'I', 12);
+ $pdf->SetFont('Times', 'I', 12);
$pdf->Cell(0, 8, 'Prof. Kannan Moudgalya', 0, 1, 'L');
$pdf->SetX(194);
$pdf->Cell(0, 7, 'Principal Investigator - FOSSEE', 0, 1, 'L');
$pdf->SetX(190);
$pdf->Cell(0, 7, ' Dept. of Chemical Engg., IIT Bombay.', 0, 1, 'L');
$pdf->SetX(29);
- $pdf->SetFont('Arial', 'B', 10);
+ $pdf->SetFont('Times', 'B', 10);
$pdf->Cell(0, 2, $UniqueString, 0, 0, 'C');
$pdf->SetY(-40);
$pdf->SetX(80);
@@ -304,7 +308,7 @@ function generate_lm_pdf()
$image4 = $path . "/pdf/images/verify_content.png";
//$pdf->Image($image4, $pdf->GetX(), $pdf->GetY(),0, 10);
$pdf->Image($image4, $pdf->GetX() - 15, $pdf->GetY() + 28, 150, 0);
- $pdf->SetFont('Arial', 'I', 8);
+ $pdf->SetFont('Times', 'I', 8);
$pdf->SetTextColor(0, 0, 0);
$filename = str_replace(' ', '-', $data3->id) . '-Scilab-Lab-migration-Participation-Certificate.pdf';
$file = $path . '/pdf/temp_certificate/' . $proposal_id . '_' . $filename;
diff --git a/pdf/m_tbc_certi.inc b/pdf/m_tbc_certi.inc
index bd3aae1..f27b148 100755
--- a/pdf/m_tbc_certi.inc
+++ b/pdf/m_tbc_certi.inc
@@ -40,11 +40,11 @@ function m_tbc_certificate_participation_form($form, &$form_state)
'#title' => t('Book name'),
'#required' => TRUE
);
- $form['author'] = array(
+ $form['author'] = array(
'#type' => 'textfield',
'#title' => t('author'),
'#required' => True
- );
+ );
$form['department'] = array(
'#type' => 'textfield',
'#title' => t('Department'),
diff --git a/pdf/m_tbc_generate_pdf.inc b/pdf/m_tbc_generate_pdf.inc
index 9b9cbcb..59ebdcf 100755
--- a/pdf/m_tbc_generate_pdf.inc
+++ b/pdf/m_tbc_generate_pdf.inc
@@ -26,7 +26,7 @@ function generate_tbc_pdf()
} //!$pdf
$pdf->AddPage();
$image_bg = $mpath . "/pdf/images/bg.png";
- $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
+ $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
$pdf->Rect(5, 5, 267, 207, 'D'); //For A4
$pdf->SetMargins(18, 1, 18);
$pdf->Line(7.0, 7.0, 270.0, 7.0);
@@ -38,22 +38,22 @@ function generate_tbc_pdf()
$pdf->Ln(15);
$pdf->Cell(200, 8, $pdf->Image($image1, 100, 19, 0, 28), 0, 1, 'C');
$pdf->Ln(25);
- $pdf->SetFont('Arial', 'BI', 25);
+ $pdf->SetFont('Times', 'BI', 25);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, 'Certificate of Lab Migration', '0', 1, 'C');
$pdf->Ln(4);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'This is to certify that under the supervision/guidance of ' . $data3->name_title . ' ' . $data3->name . ',', '0', 1, 'C');
$pdf->SetTextColor(139, 69, 19);
$pdf->Ln(2);
$pdf->Cell(240, 8, 'from the ' . $data3->department . ',', '0', 1, 'C');
$pdf->Ln(0);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, $data3->institute_name . ', ' . $data3->institute_address, '0', '1', 'C');
$pdf->Ln(2);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, ' has successfully migrated the ', '0', '1', 'C');
$pdf->Ln(0);
@@ -130,14 +130,14 @@ function generate_tbc_pdf()
//$sign = $path . "/pdf/images/kannan-sign.png";
//$pdf->Image($sign, $pdf->GetX(), $pdf->GetY() - 10, 50, 0);
//$pdf->Cell(0,7,'', 0,1,'L');
- $pdf->SetFont('Arial', 'I', 12);
+ $pdf->SetFont('Times', 'I', 12);
$pdf->Cell(0, 8, 'Prof. Kannan Moudgalya', 0, 1, 'L');
$pdf->SetX(194);
$pdf->Cell(0, 7, 'Principal Investigator - FOSSEE', 0, 1, 'L');
$pdf->SetX(190);
$pdf->Cell(0, 7, ' Dept. of Chemical Engg., IIT Bombay.', 0, 1, 'L');
$pdf->SetX(29);
- $pdf->SetFont('Arial', 'B', 10);
+ $pdf->SetFont('Times', 'B', 10);
$pdf->Cell(0, 2, $UniqueString, 0, 0, 'C');
//$image4=$path."/pdf/images/verify_content_tbc.png";
//$pdf->Image($image4, $pdf->GetX(), $pdf->GetY(),20, 0);
@@ -150,7 +150,7 @@ function generate_tbc_pdf()
$pdf->Image($image3, $pdf->GetX() + 110, $pdf->GetY() + 3, 15, 0);
$image4 = $path . "/pdf/images/verify_content_tbc.png";
$pdf->Image($image4, $pdf->GetX() - 15, $pdf->GetY() + 28, 150, 0);
- $pdf->SetFont('Arial', 'I', 8);
+ $pdf->SetFont('Times', 'I', 8);
$pdf->SetTextColor(0, 0, 0);
$filename = str_replace(' ', '-', $data3->proposal_id) . '-Scilab-Lab-migration-Certificate.pdf';
$file = $path . '/pdf/temp_certificate/' . $proposal_id . '_' . $filename;
@@ -182,7 +182,7 @@ function generate_tbc_pdf()
} //!$pdf
$pdf->AddPage();
$image_bg = $mpath . "/pdf/images/bg.png";
- $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
+ $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
$pdf->Rect(5, 5, 267, 207, 'D'); //For A4
$pdf->SetMargins(18, 1, 18);
$pdf->Line(7.0, 7.0, 270.0, 7.0);
@@ -194,19 +194,19 @@ function generate_tbc_pdf()
$pdf->Ln(15);
$pdf->Cell(200, 8, $pdf->Image($image1, 100, 19, 0, 28), 0, 1, 'C');
$pdf->Ln(25);
- $pdf->SetFont('Arial', 'BI', 25);
+ $pdf->SetFont('Times', 'BI', 25);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, 'Certificate of Participation', '0', 1, 'C');
$pdf->Ln(3);
- $pdf->SetFont('Arial', 'BI', 12);
+ $pdf->SetFont('Times', 'BI', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'This is to certify that', '0', '1', 'C');
$pdf->Ln(4);
- $pdf->SetFont('Arial', 'BI', 20);
+ $pdf->SetFont('Times', 'BI', 20);
$pdf->SetTextColor(139, 69, 19);
$pdf->Cell(240, 8, $data3->name, '0', 1, 'C');
$pdf->Ln(5);
- $pdf->SetFont('Arial', 'I', 12);
+ $pdf->SetFont('Times', 'I', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'from the Department of ' . $data3->department . ', ', '0', '1', 'C');
$pdf->Ln(0);
@@ -291,14 +291,14 @@ function generate_tbc_pdf()
//$sign = $path . "/pdf/images/kannan-sign.png";
//$pdf->Image($sign, $pdf->GetX(), $pdf->GetY() - 10, 50, 0);
//$pdf->Cell(0,7,'', 0,1,'L');
- $pdf->SetFont('Arial', 'I', 12);
+ $pdf->SetFont('Times', 'I', 12);
$pdf->Cell(0, 8, 'Prof. Kannan Moudgalya', 0, 1, 'L');
$pdf->SetX(194);
$pdf->Cell(0, 7, 'Principal Investigator - FOSSEE', 0, 1, 'L');
$pdf->SetX(190);
$pdf->Cell(0, 7, ' Dept. of Chemical Engg., IIT Bombay.', 0, 1, 'L');
$pdf->SetX(29);
- $pdf->SetFont('Arial', 'B', 10);
+ $pdf->SetFont('Times', 'B', 10);
$pdf->Cell(0, 2, $UniqueString, 0, 0, 'C');
$pdf->SetY(-40);
$pdf->SetX(80);
@@ -310,7 +310,7 @@ function generate_tbc_pdf()
$image4 = $path . "/pdf/images/verify_content_tbc.png";
//$pdf->Image($image4, $pdf->GetX(), $pdf->GetY(),0, 10);
$pdf->Image($image4, $pdf->GetX() - 15, $pdf->GetY() + 28, 150, 0);
- $pdf->SetFont('Arial', 'I', 8);
+ $pdf->SetFont('Times', 'I', 8);
$pdf->SetTextColor(0, 0, 0);
$filename = str_replace(' ', '-', $data3->id) . '-Scilab-M-TBC-Participation-Certificate.pdf';
$file = $path . '/pdf/temp_certificate/' . $proposal_id . '_' . $filename;