Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. <?php
  2.  
  3. if (!empty($_POST['submit']))
  4. {
  5. $client=$_POST['client'];
  6. $lightning=$_POST['lightning'];
  7. $power=$_POST['power'];
  8. $adv=$_POST['adv'];
  9. $setup=$_POST['setup'];
  10. $adds=$_POST['adds'];
  11. $production=$_POST['production'];
  12. $setupppl=$_POST['setupppl'];
  13. $foil=$_POST['foil'];
  14. $dibond=$_POST['dibond'];
  15. $pcv=$_POST['pcv'];
  16. $color=$_POST['color'];
  17. $styrodur=$_POST['styrodur'];
  18. $alu=$_POST['alu'];
  19. $plexi=$_POST['plexi'];
  20. $painting=$_POST['painting'];
  21. $other=$_POST['other'];
  22. $filler=$_POST['filler'];
  23.  
  24. require 'fpdf181/fpdf.php';
  25.  
  26. $pdf=new FPDF();
  27.  
  28. $pdf->AddPage();
  29.  
  30. $pdf->SetFont("Arial","B",16);
  31.  
  32. $pdf->Cell(0,10,"Karta opisowa zlecenia MEDIAINDUSTRY",1,1,'C');
  33.  
  34. $pdf->Cell(50,10,"Klient:",1,0);
  35. $pdf->Cell(65,10,"$client",1,1);
  36.  
  37. $pdf->Cell(50,10,"Forma reklamy:",1,0);
  38. $pdf->Cell(65,10,"$adv",1,1);
  39.  
  40. $pdf->Cell(50,10,"Oswietlenie:",1,0);
  41. $pdf->Cell(65,10,"$lightning",1,1);
  42.  
  43. $pdf->Cell(50,10,"Zasilacz:",1,0);
  44. $pdf->Cell(65,10,"$power",1,1);
  45.  
  46. $pdf->Cell(50,10,"Montaz:",1,0);
  47. $pdf->Cell(65,10,"$setup",1,1);
  48.  
  49. $pdf->Cell(50,10,"Uwagi:",1,0);
  50. $pdf->MultiCell(65,10,"$adds",1,1);
  51.  
  52. $pdf->Cell(50,10,"Produkcja:",1,0);
  53. $pdf->Cell(65,10,"$production",1,1);
  54.  
  55. $pdf->Cell(50,10,"Montaz:",1,0);
  56. $pdf->Cell(65,10,"$setupppl",1,1);
  57.  
  58. $pdf->Cell(50,10,"Folia:",1,0);
  59. $pdf->Cell(65,10,"$foil",1,1);
  60.  
  61. $pdf->Cell(50,10,"Dibond:",1,0);
  62. $pdf->Cell(65,10,"$dibond",1,1);
  63.  
  64. $pdf->Cell(50,10,"PCV:",1,0);
  65. $pdf->Cell(65,10,"$pcv",1,1);
  66.  
  67. $pdf->Cell(50,10,"Kolor blach:",1,0);
  68. $pdf->Cell(65,10,"$color",1,1);
  69.  
  70. $pdf->Cell(50,10,"Styrodur:",1,0);
  71. $pdf->Cell(65,10,"$styrodur",1,1);
  72.  
  73. $pdf->Cell(50,10,"Profile Alu:",1,0);
  74. $pdf->Cell(65,10,"$alu",1,1);
  75.  
  76. $pdf->Cell(50,10,"Plexi:",1,0);
  77. $pdf->Cell(65,10,"$plexi",1,1);
  78.  
  79. $pdf->Cell(50,10,"Malowanie:",1,0);
  80. $pdf->Cell(65,10,"$painting",1,1);
  81.  
  82. $pdf->Cell(50,10,"Inne:",1,0);
  83. $pdf->Cell(65,10,"$other",1,1);
  84.  
  85. $pdf->Cell(50,10,"Rozpisal:",1,0);
  86. $pdf->Cell(65,10,"$filler",1,1);
  87.  
  88. $pdf->AddPage();
  89.  
  90. $pdf->SetFont("Arial","B",16);
  91. $pdf->Cell(0,10,"Zasilanie (rysunek/szkice)",1,1,'C');
  92.  
  93. $attachment=$_POST['attachment'];
  94. $pdf->Image("$attachment");
  95.  
  96.  
  97. $pdf->Output();
  98.  
  99. }
  100.  
  101. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement