Location: PHPKode > scripts > PHP DocWriter > php-docwriter/examples/index.php
<?php
if ($_REQUEST["send"])
{
// print "hola";
	include ($_REQUEST["script"]);
}
else {
print "<html><body>";
print "<form action=\"{$_SERVER["PHP_SELF"]}\" method=\"post\" name=\"select_cliente\">";
print "<table border=\"0\" cellpadding=\"4\"><tr>";
print "<td><strong>Example</strong></td>";
print "<td><select name='script'>
<option value=''>Select a example</option>
<option value='ex1.php'>Text</option>
<option value='ex2.php'>Text styles</option>
<option value='ex3.php'>Textboxes</option>
<option value='ex4.php'>Images</option>
<option value='ex5.php'>Header, footer and meta-information</option>
<option value='ex6.php'>Table</option>
<option value='ex7.php'>Drawings</option>
</select></td></tr>";
print "<tr><td><strong>Format</strong></td>";
print "<td><select name='format'>
<option value='' selected>OpenOffice.org</option>
<option value='PDF'>PDF</option>
<option value='MSXP'>MS Word 97/2000/XP</option>
<option value='MS95'>MS Word 95</option>
<option value='MS60'>MS Word 6.0</option>
<option value='RTF'>RTF</option>
<option value='HTML'>HTML 4.0 Transitional</option>
<option value='SW5'>StarWriter 5.0</option>
<option value='SW4'>StarWriter 4.0</option>
<option value='SW3'>StarWriter 3.0</option>
<option value='TXT'>Text</option>
<option value='TXTE'>Text (encoded)</option>
<option value='TEX'>LaTeX 2e</option>
<option value='XHTML10'>XHTML 1.0 strict</option>
<option value='XHTML11'>XHTML 1.1 plus MathML 2.0</option>
</select></td></tr>";
print "<tr><td><strong>Compress</strong></td>";
print "<td><input type=\"checkbox\" name=\"zip\" value=\"1\"></td></tr>";
print "<td></td><td align=\"right\"><input type=\"hidden\" name=\"send\" value=\"1\"><input name=\"submit\" type=\"submit\" value=\"Generate!\"></td></tr>";
print "</table></form></body></html>";
}
?>
Return current item: PHP DocWriter