|
Posted by Tim Roberts on 10/22/72 11:16
vaavi8r@alltel-dot-net.no-spam.invalid (maceo) wrote:
>
>if ($number > 0) {
> /* Print roster header
> Change this HTML to fit your webpage layout */
> print "<table>";
> print "<tr>";
> print "<td bgcolor=#000080 width=85 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>NUMBER</b></font></td>";
> print "<td bgcolor=#000080 width=120 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>NAME /
>EMAIL</b></font></td>";
> print "<td bgcolor=#000080 width=130 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>CITY</b></font></td>";
> print "<td bgcolor=#000080 width=93 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>COUNTRY</b></font></td>";
> print "<td bgcolor=#000080 width=93 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>FLIGHT
>TIME</b></font></td>";
> print "<td bgcolor=#000080 width=75 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b><center>STATUS</center></b></font></td>";
> print "<td bgcolor=#000080 width=75 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b><center>LOG
>BOOK</b></center></font></td>";
> print "</tr>";
Why do you hurt yourself with all of that repetitive coding? It is
certainly wastely, and is sure to lead to typographical errors and
cut-and-paste problem.
<style> <!--
table.one tr td {
background-color: #000080;
color: #ffffff;
font: bold 11pt arial,helvetica,sans serif;
}
--> </style>
print "<td width=85>NUMBER</td>";
print "<td width=120>NAME / EMAIL</td>";
print "<td width=130>CITY</td>";
Isn't that easier to read? And it's SO much easier to maintain, such as
when you want to tweak the colors.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|