Devam Ediyor

486232 Export dynamic page as PDF

I have a very simple dynamic page with very basic information. I need a link on each page that allows a user to export the page as a PDF.

There are a total of 3 basic queries. Here is the page code:

<? include("includes/[url removed, login to view]"); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url removed, login to view]">

<html xmlns="[url removed, login to view]">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Care West Admin</title>

<link href="css/[url removed, login to view]" rel="stylesheet" type="text/css" />

</head>

<body>

<table width="800" align="center" border="0">

<tr>

<td colspan="2"><? include("includes/[url removed, login to view]"); ?></td>

</tr>

<tr>

<td width="150" valign="top"><? include("includes/[url removed, login to view]"); ?></td>

<td>

<? $result = mysql_query("SELECT * FROM quote WHERE id=" . $_GET['id']);

while($row = mysql_fetch_array($result)) { ?>

<a href="[url removed, login to view];? echo $row['id']; ?>">Export</a>

<table width="100%" cellpadding="5">

<tr>

<th>Quote ID :</th><td> <? echo $row['id']; ?></td>

</tr>

<tr>

<th>Submit Date :</th><td> <? echo $row['datenow']; ?></td>

</tr>

<tr>

<th>Contact Name :</th><td> <? echo $row['name']; ?></td>

</tr>

<tr>

<th>Phone :</th><td> <? echo $row['phone']; ?></td>

</tr>

<tr>

<th>Fax :</th><td> <? echo $row['fax']; ?></td>

</tr>

<tr>

<th>eMail :</th><td> <a href="mailto:<? echo $row['email']; ?>"><? echo $row['email']; ?></a></td>

<tr>

<td colspan="2"><hr /></td>

</tr>

<th>DBA :</th><td> <? echo $row['dba']; ?></td>

</tr>

<tr>

<th>Corp Name :</th><td> <? echo $row['corpname']; ?></td>

</tr>

<tr>

<th>Corp Address :</th><td> <? echo $row['address'] . ", " . $row['city'] . ", " . $row['state'] . " " . $row['zip']; ?></td>

</tr>

<tr>

<th>Tax ID :</th><td> <? echo $row['taxid']; ?></td>

</tr>

<tr>

<th>Effective Date :</th><td> <? echo $row['effective']; ?></td>

</tr>

<tr>

<th>Years in Business :</th><td> <? echo $row['yib']; ?></td>

</tr>

<tr>

<th>Number of Owners :</th><td> <? echo $row['owners']; ?></td>

</tr>

<tr>

<th>Number of Locations :</th><td> <? echo $row['locations']; ?></td>

</tr>

<tr>

<th>Safety Program :</th><td> <? echo $row['safety']; ?></td>

</tr>

<tr>

<th>Safety Program Frequency :</th><td> <? echo $row['frequency']; ?></td>

</tr>

<tr>

<th>Return to Work Program :</th><td> <? echo $row['ret']; ?></td>

</tr>

<tr>

<td colspan="2"><hr /></td>

</tr>

<tr>

<th colspan="2">Description of business</th>

</tr>

<tr>

<td><? echo $row['dobus']; ?></td>

</tr>

<tr>

<th colspan="2">Member of associations</th>

</tr>

<tr>

<td><? echo $row['assoc']; ?></td>

</tr>

<tr>

<th colspan="2">How did you hear about us :</th>

</tr>

<tr>

<td><? echo $row['hear']; ?></td>

</tr>

<tr>

<th colspan="2">Remarks :</th>

</tr>

<tr>

<td colspan="2"><? echo $row['remarks']; ?></td>

</tr>

</table>

<? } ?>

<hr />

<h1>Owners</h1>

<table width="100%" cellpadding="5">

<tr>

<th>Name</th><th>Title</th><th>Percent</th><th>Exclude</th>

</tr>

<? $result = mysql_query("SELECT * FROM quote_owners WHERE quote_id=" . $_GET['id']);

while($row = mysql_fetch_array($result)) { ?>

<tr>

<td><? echo $row['name']; ?></td><td><? echo $row['title']; ?></td><td><? echo $row['percent']; ?></td><td><? echo $row['exclude']; ?></td>

</tr>

<? } ?>

</table>

<hr />

<h1>Locations</h1>

<table width="100%" cellpadding="5">

<tr>

<th>Name</th><th>Address</th><th>Class Code</th><th>Employees</th><th>payroll</th>

</tr>

<? $result = mysql_query("SELECT * FROM quote_locations WHERE quote_id=" . $_GET['id']);

while($row = mysql_fetch_array($result)) { ?>

<tr>

<td><? echo $row['name']; ?></td><td><? echo $row['address']; ?></td><td><? echo $row['class_code']; ?></td><td><? echo $row['employees']; ?></td><td><? echo $row['payroll']; ?></td>

</tr>

<? } ?>

</table>

<hr />

<h1>Prior Carrier Information</h1>

<table width="100%" cellpadding="5">

<tr>

<th>Year</th><th>Carrier Name</th><th>Policy Number</th>

</tr>

<? $result = mysql_query("SELECT * FROM quote_prior_carrier WHERE quote_id=" . $_GET['id']);

while($row = mysql_fetch_array($result)) { ?>

<tr>

<td><? echo $row['year']; ?></td><td><? echo $row['cname']; ?></td><td><? echo $row['pnumber']; ?></td>

</tr>

<? } ?>

</table>

<? mysql_close($con); ?>

</td>

</tr>

<tr>

<td colspan="2"><? include("includes/[url removed, login to view]"); ?></td>

</tr>

</table>

</body>

</html>

Beceriler: Her şey Kabul, CSS, HTML, MySQL, PDF, PHP, XML

Daha fazlasını görün: dynamic page pdf, xml to pdf php, xml to pdf in php, xml pdf php, www payroll, total safety, php xml to pdf, pdf to xhtml, html 5 pdf, html 5 doctype, html 5 charset, html 5 align, doctype html public html 5, border html 5, hr css, payroll number, payroll how to, payroll business, how to payroll, doctype html 5, business payroll, xml to pdf, xml export, xml dtd, us tax return

İşveren Hakkında:
( 13 değerlendirme ) Huntington Beach, United States

Proje NO: #2232142

Seçilen:

gutibs

Can do it, will have them tonight.

0 gün içinde 15$ USD
(50 Değerlendirme)
5.4