Example #1
0
<?php

require "../inc/ui.php";
$page = NewPage("UE4AM Login");
$page->AddContent('

<div class="container">
  
  <div class="row" id="pwd-container">
    <div class="col-md-4"></div>
    
    <div class="col-md-4">
      <section class="login-form">
        <form class="loginform" method="post" role="login">
          <img src="http://i.imgur.com/RcmcLv4.png" class="img-responsive" alt="" />
          <input type="text" name="username" placeholder="Username" required class="form-control input-lg" value="YourUsername" />
          
          <input type="password" class="form-control input-lg" id="password" placeholder="Password" required="" />
          
          
          <div class="pwstrength_viewport_progress"></div>
          
          
          <button type="submit" name="go" id="submitbutton" class="btn btn-lg btn-primary btn-block">Sign in</button>
          
          <div>
            <a href="#">Create account</a> or <a href="#">reset password</a>
          </div>
          
        </form>
        
        }
        UpDate($qms_date);
        $pdf->Cell(0, 6, '', 0, 1);
        $pdf->SetFont('Helvetica', '', 12);
        $number = $qms_toc1 . "." . $qms_toc2 . "." . $qms_toc3;
        $pdf->Cell(15, 6, $number, 0, 0, R);
        $pdf->Cell(150, 6, $qms_text, 0, 2);
        $pdf->Cell(0, 4, '', 0, 1);
    } elseif ($qms_toc2 > 0) {
        $pdf->Cell(0, 8, '', 0, 1);
        if ($pdf->GetY() > 210) {
            $pdf->addPage();
        }
        UpDate($qms_date);
        $pdf->SetFont('Helvetica', '', 14);
        $number = $qms_toc1 . "." . $qms_toc2;
        $pdf->Cell(15, 8, $number, 0, 0, R);
        $pdf->Cell(150, 8, $qms_text, 0, 2);
        $pdf->Cell(0, 5, '', 0, 1);
    } elseif ($qms_toc1 > 0) {
        NewPage();
        UpDate($qms_date);
        $pdf->SetFont('Helvetica', 'B', 16);
        $pdf->Cell(15, 10, $qms_toc1, 0, 0, R);
        $pdf->Cell(150, 10, $qms_text, 0, 2);
        $pdf->Cell(0, 5, '', 0, 1);
    }
}
// and send to output
$file_name = $pref_practice . "_QMS_" . Date("Y", time()) . "-" . Date("m", time()) . "-" . Date("d", time()) . ".pdf";
$pdf->Output($file_name, I);