Ejemplo n.º 1
0
        <p><b style="font-size: 18px;font-weight: bold;">You have already spent</b></p>
          <div class="numbers" style="width:450px;color: #000000;font-size: 15px;">
            <table >
              <tr>
                <td width="242">Total</td>
                <td align="right"><b>$' . $money_spent;
?>
 <?php 
$HtmlRender = $HtmlRender . "</b></td>";
?>
 <?php 
$HtmlRender = $HtmlRender . "             </tr>\r\n            </table>\r\n          </div>\r\n          <div class='numbers'  style='width:450px;color: #000000;font-size: 15px;'>\r\n            <table >\r\n              <tr>\r\n                <td width='244'>In today's dollars, \r\n                  adjusted for inflation</td>\r\n                <td align='right'><b>\$" . $true_cost;
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n        </div>\r\n        <div class='calculation' style='float: right; width: 450px; height: 150px; color: #000000; margin:0 10px 0 0;margin-left42px;'>\r\n         <p><b style='font-size: 18px;font-weight: bold;'>If you continue, you'll spend</b></p>\r\n          <div class='numbers' style='width:450px;color: #000000;font-size: 15px;'>\r\n            <table cellpadding='0'>\r\n              <tr>\r\n                <td width='150'>In 6 months </td>\r\n                <td align='right'><b>\$" . $six_months;
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n          <div class='numbers' style='width:450px;color: #000000;font-size: 15px;'>\r\n            <table cellpadding='0'>\r\n              <tr>\r\n                <td width='150'>In 1 year</td>\r\n                <td align='right'><b>\$" . $one_year;
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n          <div class='numbers' style='width:450px;color: #000000;font-size: 15px;'>\r\n            <table cellpadding='0'>\r\n              <tr>\r\n                <td width='150'>In 5 years</td>\r\n                <td align='right'><b>\$" . $five_years;
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n          <div class='numbers' style='width:450px;color: #000000;font-size: 15px;'>\r\n            <table cellpadding='0'>\r\n              <tr>\r\n                <td width='150'>In 10 years</td>\r\n                <td align='right'><b>\$" . $ten_years;
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n          <div class='numbers' style='width:450px;color: #000000;font-size: 15px;'>\r\n            <table cellpadding='0'>\r\n              <tr>\r\n                <td width='150'>In 20 years</td>\r\n                <td align='right'><b>\$" . $twenty_years;
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n        </div>\r\n        <div style='clear:both'></div>\r\n        <div class='better' style=''>\r\n          <p style='color: #0094C6;font-size: 15px;'><b>If you quit today, here are some better ways you can use that money...</b></p>\r\n       <div class='item' style='color:#000000;float:left;'>\r\n            <table cellpadding='5' width='280'>\r\n              <tr align='center'>\r\n                <td ><p><b>IN 6 MONTHS</b></p></td>\r\n              </tr>\r\n              <tr align='center'>\r\n                <td align='center' ><b>" . $objRewards->GetRewards($six_months);
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n                </tr>\r\n              \r\n            </table>\r\n          </div>\r\n          <div class='item' style='color:#000000;float:left;'>\r\n            <table cellpadding='5' width='280'>\r\n              <tr align='center'>\r\n                <td ><p><b>IN A YEAR</b></p></td>\r\n              </tr>\r\n              <tr align='center'>\r\n                <td align='center'><b>" . $objRewards->GetRewards($one_year);
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n                </tr>\r\n              \r\n            </table>\r\n          </div>\r\n          <div class='item' style='color:#000000;float:left;'>\r\n            <table cellpadding='5' width='280'>\r\n              <tr align='center'>\r\n                <td ><p><b>IN 5 YEARS</b></p></td>\r\n              </tr>\r\n              <tr align='center'>\r\n                <td align='center'><b>" . $objRewards->GetRewards($five_years);
$HtmlRender = $HtmlRender . "</b></td>\r\n              </tr>\r\n                </tr>\r\n              \r\n            </table>\r\n          </div>\r\n          <div style='clear:both'></div>\r\n        </div>\r\n        <div style='clear:both'></div>\r\n        <div class='' style='  color:  #0094C6; float: left; padding: 80px 0px; position: relative; height:230px; width: 600px; margin-top:-50px;'>\r\n           <p style='font-size: 20px; margin-bottom: 0pt;'><b>Quitting smoking is not just good for your wallet; it's good for your health...</b></p>\r\n          <table cellpadding='0'>\r\n            <tr>\r\n              <td ><p>20 minutes after you quit smoking, your blood pressure decreases</p>\r\n                <p>8 hours after you quit smoking, your blood oxygen level returns to normal</p>\r\n                <p>3 months after you quit smoking, your lung function improves up to 30 percent </p></td>\r\n              <td ><p> 1 year after you quit smoking, your risk of heart attack is cut in half</p>\r\n                <p> 10 years after you quit smoking, your risk of dying from lung cancer is about half that of a smoker</p>\r\n                <p>10 years after you quit smoking, your risk of heart disease is that of a person who never smoked</p></td>\r\n            </tr>\r\n          </table>\r\n        </div>\r\n        <div style='clear:both'></div>\r\n        <p class='label' style='font-size: 20px; color:#000000; margin:0 0 -10px;line-height: 1em;' >&nbsp;&nbsp;<b>Need help quitting? </b></p>\r\n        <br/><br/>\r\n       <div class='help-print' >\r\n            <table cellpadding='0'  width='800'  height='120'>\r\n              <tr  valign='top'>\r\n                <td align='center'><b>BY PHONE</b></td>\r\n                <td align='center'><b>ONLINE</b></td>\r\n                <td align='center'><b>IN PERSON</b></td>\r\n              </tr>\r\n             <tr  valign='top'>\r\n                <td width='160px' align='center' style='font-size:11px'><b><img src='images/TF_Icons_Phone.png'  height='70' align='middle'  /><span style='font-size:9px'><br>Talk to a counselor who <br/>can help you quit tobacco</span><br> 1.877.822.6669</b></td>\r\n                <td width='160px' align='center' style='font-size:11px'><b><img src='images/TF_Icons_Online.png'   height='70' align='middle'  /><br>Help quitting tobacco<br/>is only a few clicks away<br />https://www.quitnow.net/florida/</b></td>\r\n                <td width='160px' align='center' style='font-size:11px'><b><img src='images/TF_Yellow-Box_InPerson.png'  height='70' align='middle'  /><br>For some one-on-one help<br/>http://www.ahectobacco.com/want-to-quit<br />/cessation-courses-near-you/</b></td>\r\n              </tr>\r\n            </table>\r\n          </div>\r\n        </div>\r\n        <div style='clear:both'></div>\r\n      </div>\r\n      <div class='footer' ></div>\r\n    </div>\r\n  </div>\r\n  </body>\r\n  </html>";
require_once "dompdf/dompdf_config.inc.php";
$html = $HtmlRender;
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->set_paper("", "portrait");
$dompdf->render();
$dompdf->save_file = true;
$pdf = $dompdf->output();
$namefile = "pdfs/" . "Report" . $id . date("d-m-Y") . ".pdf";
file_put_contents($namefile, $pdf);
Ejemplo n.º 2
0
</b></td>
              </tr>
            </table>
          </div>
        </div>
        <div style="clear:both"></div>
        <div class="better">
          <h4>If you quit today, here are some better ways <br>you can use that money</h4>
          <div class="item bluegreen">
            <table align="center">
              <tr>
                <td align="center"><p><b>IN 6 MONTHS</b></p></td>
              </tr>
              <tr>
                <td align="center" ><?php 
echo $objRewards->GetRewards($six_months);
?>
</td>
              </tr>
              
              
            </table>
          </div>
          <div class="item brightblue">
            <table align="center">
              <tr>
                <td align="center"><p><b>IN A YEAR</b></p></td>
              </tr>
              <tr>
                <td align="center"><?php 
echo $objRewards->GetRewards($one_year);