Pastrulo
01-15-2008, 12:27 AM
How can I apply css on my output like tables and colors, bold ,align, etc...
like I want to apply style to the colored section:
here is the code:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<style type="text/css">
.direccion {
text-align: center;
}
.direccion {
font-family: Arial;
}
</style>
</head>
<img src="loguito.jpg" /><div style="float:right;width:400px"><a href="#" onclick="java script:window.print(); return false">Imprimir</a></div> <br /> <br />
<div style="width:600px;text-align:center;border-color:black;text-indent:5px;">
<?php
if($_GET['continue'] != 1)
{
$name = $_GET['class'];
// form items you wish to exclude from the info list. you can just make this blank if you dont want to exclude anything
$exclude = array('submit','hiddenvalue');
foreach($_POST as $class => $val){
// if its in the exclude array, skip it
if(in_array($val, $exclude))
continue;
// print out the info
echo $class.":\t\t ".$val."<br />\n";
}
?>
</div>
<br /><br /><br />
<div style="width:600px;text-align:center;border-color:black;text-indent:5px;>
<br /><br /><br /><br /><br />
<li class="direccion"><a href="<?=$_SERVER['PHP_SELF']?>?continue=1">Si su informacion esta correcta click aqui.</a></li>
<br />
<li class="direccion"> <a href="javascript:history.go(-1);">Si quiere hacer algun cambio click aqui. (Volver)</a></li>
<br /><br />
<p class="direccion"><strong><em><span class="style2">Ave. 14 de Julio contiguo a
Ferreteria Casa Siryi.<br>
PO Box: (504) 440-3555</span></em></strong></p>
<p class="direccion"><br>
<a target="_blank" href="http://www.technosdesign.com">www.technosdesign.com</a></p>
</div>
<?
}
else
{
// do your "its confirmed code"
// for example, forward the user to a page (uncomment the line):
// header("Location: http://url.com");
}
?>
like I want to apply style to the colored section:
here is the code:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<style type="text/css">
.direccion {
text-align: center;
}
.direccion {
font-family: Arial;
}
</style>
</head>
<img src="loguito.jpg" /><div style="float:right;width:400px"><a href="#" onclick="java script:window.print(); return false">Imprimir</a></div> <br /> <br />
<div style="width:600px;text-align:center;border-color:black;text-indent:5px;">
<?php
if($_GET['continue'] != 1)
{
$name = $_GET['class'];
// form items you wish to exclude from the info list. you can just make this blank if you dont want to exclude anything
$exclude = array('submit','hiddenvalue');
foreach($_POST as $class => $val){
// if its in the exclude array, skip it
if(in_array($val, $exclude))
continue;
// print out the info
echo $class.":\t\t ".$val."<br />\n";
}
?>
</div>
<br /><br /><br />
<div style="width:600px;text-align:center;border-color:black;text-indent:5px;>
<br /><br /><br /><br /><br />
<li class="direccion"><a href="<?=$_SERVER['PHP_SELF']?>?continue=1">Si su informacion esta correcta click aqui.</a></li>
<br />
<li class="direccion"> <a href="javascript:history.go(-1);">Si quiere hacer algun cambio click aqui. (Volver)</a></li>
<br /><br />
<p class="direccion"><strong><em><span class="style2">Ave. 14 de Julio contiguo a
Ferreteria Casa Siryi.<br>
PO Box: (504) 440-3555</span></em></strong></p>
<p class="direccion"><br>
<a target="_blank" href="http://www.technosdesign.com">www.technosdesign.com</a></p>
</div>
<?
}
else
{
// do your "its confirmed code"
// for example, forward the user to a page (uncomment the line):
// header("Location: http://url.com");
}
?>