<?php

require_once("C:/xampp/htdocs/dompdf/dompdf_config.inc.php");

// We check wether the user is accessing the demo locally
$local = array("::1", "127.0.0.1");
$is_local = in_array($_SERVER['REMOTE_ADDR'], $local);

if ( isset( $_POST["html"] ) && $is_local ) {

  if ( get_magic_quotes_gpc() )
    $_POST["html"] = stripslashes($_POST["html"]);
  
  $dompdf = new DOMPDF();
  $dompdf->load_html("<table width='100%' border='0' cellspacing='0' cellpadding='2' style='background-color: #F9F9F9; font-family: Arial, Helvetica, sans-serif; font-size: 13px;'><tr><td colspan='7'><hr></td></tr><tr><td colspan='7'><b>PATIENT PROFILE</b></td></tr><tr><td colspan='7'><hr></td></tr><tr><td colspan='7'><table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td width='1%' nowrap>Patient ID:</td><td width='1%' nowrap><b>HK993 (Female 37 Years, 10 Months)</b></td><td width='3%'>&nbsp;</td><td width='1%' nowrap>Date Admitted: </td><td width='97%' ><b>March 27, 2011</b></td></tr><tr><td width='1%' nowrap>Ethinicty:</td><td width='1%' nowrap><b>American Indian</b></td><td width='1%'>&nbsp;</td><td nowrap>Location: </td><td><b>Masonic, Grnd, Ward 5 (Prenatal Critical Care)</b></td></tr><tr><td width='1%' nowrap>Birth Weight:</td><td width='1%' nowrap><b>600</b></td><td>&nbsp;</td><td width='1%' nowrap>Date Discharged: </td><td width='95%' nowrap><b>April 28, 2011</b></td></tr></table></td></tr><tr><td colspan='7'>&nbsp;</td></tr><tr><td colspan='7'><hr></td></tr><tr><td colspan='7'><b>ALL EVENTS (Major Events Satisfied: SSI, BSI, UTI)</b></td></tr><tr><td colspan='7'><hr></td></tr><tr class='darkgreybg'><td nowrap><b>NSET Code</b></td><td nowrap><b>Trigger Name</b></td><td nowrap><b>Trigger Type</b></td><td colspan='4' nowrap><b>Trigger Description</b></td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Urinary</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Major</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Urinary Tract Infection</td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>103</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Blood</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Major</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>Blood Stream Infection</td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>104</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Surgical Procedure</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Major</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Surgical Site Infection</td></tr><tr><td colspan='7'>&nbsp;</td></tr><tr><td colspan='7'><hr></td></tr><tr><td colspan='7'>MAJOR EVENT: <b>SSI (Criteria Satisfied: <i>none</i>)</b></td></tr><tr><td colspan='7'><br><span style='background-color: #D7D7D7'>&nbsp;<b>LOCATION:</b> Cherryhill, 1st Fl, Ward 2A (Pediatric Dialysis SCA)&nbsp;<b>TIME AT LOCATION:</b> 30 Days</span><table border='0' cellspacing='0' cellpadding='3' width='100%' style='border: 1px solid #EEEEEE;background-color: #EEEEEE;'><tr><td width='1%' align='right' nowrap>NHSN Procedure Code:</td><td><i>HPRO - Hip prosthesis</i></td><td align='right' nowrap>ICD-9-CM Code: </td><td><i>AB.12</i></td></tr><tr><td align='right'>Procedure Date:</td><td><i>03/27/2011</i></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td colspan='4'><hr style='color:#999999' /></td></tr><tr><td align='right'>Outpatient:</td><td><i>N</i></td><td align='right' nowrap>Duration:</td><td><i>60hrs, 12mins</i></td></tr><tr><td align='right'>Wound Class:</td><td><i>CC - Clean Contaminated</i></td><td align='right'>General Anesthesia:</td><td><i>Y</i></td></tr><tr><td align='right'>Emergency:</td><td><i>N</i></td><td align='right'>Trauma:</td><td><i>N</i></td></tr><tr><td align='right'>Endoscope:</td><td><i>N</i></td><td align='right' nowrap>Multiple Procedures:</td><td><i>N</i></td></tr><tr><td align='right'>Surgeon Code: </td><td><i>410 - Sweet, Carl</i></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td align='right'>Implant:</td><td><i>N</i></td><td align='right'>Comment:</td><td rowspan='2' valign='top'><i>THIS IS A COMMENT</i></td></tr><tr><td align='right'>Transplant:</td><td><i>N</i></td><td align='right'>&nbsp;</td><td>&nbsp;</td></tr><tr><td align='right'>Type of HPRO:</td><td colspan='3'><i>PR - Partial Revision</i></td></tr><tr><td align='right'>ASA Class:</td><td colspan='3'><i>3 - Patient with severe systemic disease, not incapacitating</i></td></tr><tr><td align='right' valign='top'>Custom Fields: </td><td colspan='3'><table width='100%'><tr><tr><td style='background-color: #EEEEEE;'><b>Date Format</b></td></tr><tr><td>Release Date: <i>12-Feb-2011</i></td></tr><tr><td style='background-color: #EEEEEE;'><b>Numeric Format</b></td></tr><tr><td>Number: <i>45</i></td></tr><tr><td style='background-color: #EEEEEE;'><b>Alphanumeric Format</b></td></tr><tr><td>Thing: <i>1</i></td></tr><tr><td>Thing: <i>2</i></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr></table></td></tr></table><hr></td></tr><tr class='darkgreybg'><td nowrap><b>NSET Code</b></td><td nowrap><b>Trigger Name</b></td><td nowrap><b>Trigger Type</b></td><td colspan='4' nowrap><b>Trigger Description</b></td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>999.222.104</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>No SSI Sign &amp; Symptoms</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Definition</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>No SSI Sign &amp; Symptoms</td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>105.1.1</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Patient has organisms cultured from bone</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>Patient has organisms cultured from bone</td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>105.1.4.1</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>organisms cultured from blood</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>organisms cultured from blood</td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>105.1.4.2</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' >positive blood antigen test (e.g. H. influenzae, S. pneumoniae) </td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>positive blood antigen test (e.g. H. influenzae, S. pneumoniae) </td></tr><tr><td colspan='7'><hr></td></tr><tr><td colspan='7'>MAJOR EVENT: <b>BSI (Criteria Satisfied: LCBI-1)</b></td></tr><tr><td colspan='7'><br><span style='background-color: #D7D7D7'>&nbsp;<b>LOCATION:</b> Masonic, Grnd, Ward 5 (Prenatal Critical Care)&nbsp;<b>TIME AT LOCATION:</b> Greater than 48 Hours</span><hr></td></tr><tr class='darkgreybg'><td nowrap><b>NSET Code</b></td><td nowrap><b>Trigger Name</b></td><td nowrap><b>Trigger Type</b></td><td colspan='4' nowrap><b>Trigger Description</b></td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>103.1.3.1</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Fever</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Patient has at least one of the following signs or symptoms: fever (&gt;38&amp;#9702;C), chills, or hypotension</td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>103.1.3.2</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Chills</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>Patient has at least one of the following signs or symptoms: fever (&gt;38&amp;#9702;C), chills, or hypotension</td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>103.1.3.3</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Hypotension</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Patient has at least one of the following signs or symptoms: fever (&gt;38&amp;#9702;C), chills, or hypotension</td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>103.1.1</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' >Patient has a recognized pathogen cultured from one or more blood cultures</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>Patient has a recognized pathogen cultured from one or more blood cultures</td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>103.1.2</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' >organism cultured from blood is not related to an infection at another site.</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>organism cultured from blood is not related to an infection at another site.</td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>103.1.5</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>common skin contaminant </td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>common skin contaminant (i.e., diphtheroids [Corynebacterium spp.], Bacillus [not B. anthracis] spp., Propionibacterium spp., coagulase-negative staphylococci [including S. epidermidis], viridans group streptococci, Aerococcus spp., Micrococcus spp.) is cultured from two or more blood cultures drawn on separate occasions.</td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>103.1.5.1</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>diphtheroids [Corynebacterium spp.</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Organism</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Unknown<br>-------------------------------<br>LAB RESULTS:<br>-------------------------------<br>TMZ: <b>N</b>, MERO: <b>N</b>, LEVO: <b>N</b>, IMI: <b>N</b>, CEFEP: <b>N</b>, CEFTAZ: <b>N</b>, OX: <b>N</b>,  QUIDAL: <b>S</b>, VANC: <b>S</b>, ERYTH: <b>S</b>, GENT: <b>S</b>, CIPRO: <b>N</b></td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>103.1.5.3</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Propionibacterium spp.</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Organism</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>Unknown</td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>103.1.5.4</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' >coagulase-negative staphylococci [including S. epidermidis]</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Organism</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Unknown<br>-------------------------------<br>LAB RESULTS:<br>-------------------------------<br> VANC: <b>R</b></td></tr><tr><td colspan='7'><hr></td></tr><tr><td colspan='7'>MAJOR EVENT: <b>UTI (Criteria Satisfied: SUTI-2A, SUTI-1A)</b></td></tr><tr><td colspan='7'><br><span style='background-color: #D7D7D7'>&nbsp;<b>LOCATION:</b> Cham Long Ward (Medical Critical Care)&nbsp;<b>TIME AT LOCATION:</b> Less than 48 Hours</span><hr></td></tr><tr class='darkgreybg'><td nowrap><b>NSET Code</b></td><td nowrap><b>Trigger Name</b></td><td nowrap><b>Trigger Type</b></td><td colspan='4' nowrap><b>Trigger Description</b></td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.7</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>catheter not in place nor within 48 hours prior</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Risk Factor</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Patient did not have an indwelling urinary catheter in place at the time of specimen collection nor within 48 hours prior to specimen collection    </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.1.2.1</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Fever</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38?C), suprapubic tenderness, or costovertebral angle pain or tenderness </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.5.1</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>urgency</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38°C)- urgency; frequency; dysuria; suprapubic tenderness; or costovertebral angle pain or tenderness       this code will be used in all areas of `urgency` in the UTI major event </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.1.5.2</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>frequency</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38°C)- urgency; frequency; dysuria; suprapubic tenderness; or costovertebral angle pain or tenderness       this code will be used in all areas of `frequency` in the UTI major event     </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.5.3</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>dysuria</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38°C)- urgency; frequency; dysuria; suprapubic tenderness; or costovertebral angle pain or tenderness       this code will be used in all areas of `dysuria` in the UTI major event </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.1.2.2</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>suprapubic tenderness</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38°C), urgency, frequency, dysuria, suprapubic tenderness, or costovertebral angle pain or tenderness </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.28.3</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Apnea</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Patient &amp;#8804; 1 year of age with or without an indwelling urinary catheter has at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38°C core), hypothermia (&lt;36°C core), apnea, bradycardia, dysuria, lethargy, or vomiting   </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.1.28.4</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Bradycardia</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>Patient &amp;#8804;1 year of age with or without an indwelling urinary catheter has at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38?C core), hypothermia (&lt;36?C core), apnea, bradycardia, dysuria, lethargy, or vomiting </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.28.5</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Dysuria</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>Patient &amp;#8804;1 year of age with or without an indwelling urinary catheter has at least 1 of the following signs or symptoms with no other recognized cause: fever (&gt;38?C core), hypothermia (&lt;36?C core), apnea, bradycardia, dysuria, lethargy, or vomiting </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.2.3</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>one positive blood culture</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Sign &amp; Symptoms</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>a positive blood culture with at least 1 matching uropathogen microorganism to the urine culture    I will provide a list of uropathogen microorganism to the urine culture I will also need to create a check off list of these pathogens on the UI    </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.3</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>one Positive urine culture</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>one positive urine culture of ?105 colony-forming units (CFU)/ml with no more than 2 species of microorganisms-   this code will be used in all areas of `positive urine culture of ?10 5 colony` in the UTI major event </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.1.13</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>pyuria</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>pyuria (urine specimen with ?10 white blood cells [WBC]/mm3 or ?3 WBC/high power field of unspun urine) </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.1.14</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>microorganism seen on gram stain</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'>microorganisms seen on Gram stain of unspun urine </td></tr><tr><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>101.1.15</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>one positive urine culture of ?103 and &lt;105</td><td valign='top' width='1%'  style='background-color: #EEEEEE;' nowrap>Lab &amp; Diagnosis Test</td><td valign='top' colspan='4'  style='background-color: #EEEEEE;' width='97%'>one positive urine culture of &amp;#8805;103 and &lt;105  CFU/ml with no more than 2 species of microorganisms    </td></tr><tr><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>101.2.5.1</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Gram-negative bacilli</td><td valign='top' width='1%'  style='background-color: #FFFFFF;' nowrap>Uropathogen</td><td valign='top' colspan='4'  style='background-color: #FFFFFF;' width='97%'></td></tr></table>");
  $dompdf->set_paper($_POST["paper"], $_POST["orientation"]);
  $dompdf->render();

  $dompdf->stream("dompdf_out.pdf", array("Attachment" => false));

  exit(0);
}

?>
<?php include("C:/xampp/htdocs/dompdf/www/head.inc"); ?>

<a name="demo"> </a>
<h2>Demo</h2>

<?php if ($is_local) { ?>

<p>Enter your html snippet in the text box below to see it rendered as a
PDF: (Note by default, remote stylesheets, images &amp; inline PHP are disabled.)</p>

<form action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
<p>Paper size and orientation:
<select name="paper">
<?php
foreach ( array_keys(CPDF_Adapter::$PAPER_SIZES) as $size )
  echo "<option ". ($size == "letter" ? "selected " : "" ) . "value=\"$size\">$size</option>\n";
?>
</select>
<select name="orientation">
  <option value="portrait">portrait</option>
  <option value="landscape">landscape</option>
</select>
</p>

<textarea name="html" cols="60" rows="20">
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;

/* Type some style rules here */

&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;!-- Type some HTML here --&gt;

&lt;/body&gt;
&lt;/html&gt;
</textarea>

<div style="text-align: center; margin-top: 1em;">
  <button type="submit">Download</button>
</div>

</form>
<p style="font-size: 0.65em; text-align: center;">(Note: if you use a KHTML
based browser and are having difficulties loading the sample output, try
saving it to a file first.)</p>

<?php } else { ?>

  <p style="color: red;">
    User input has been disabled for remote connections.
  </p>
  
<?php } ?>

<?php include("C:/xampp/htdocs/dompdf/www/foot.inc"); ?>