201
استعمال PHP
الجزء 1
?>
}
echo "<title> $this->title </title>";
function Display Keywords ()
{
}
echo "<META name=\"keywords\" content=\"$this->keywords\">";
function DisplayStyles()
{
<style>
h1 {color:white; font-size:24pt; text-align:center;
font-family:arial,sans-serif]
.menu {color:white; font-size:12pt; text-align:center; font-family:arial, sans-serif; font-weight:bold} td {background:black}
p {color:black; font-size:12pt; text-align:justify; font-family:arial, sans-serif]
p.foot {color:white; font-size:9pt; text-align:center; font-family:arial, sans-serif; font-weight:bold)
a:link, a:visited,a:active {color:white)
</style>
<?
}
function DisplayHeader()
{
?>
<table width="100%" cellpadding <tr bgcolor= black>
=
12 cellspacing=0 border=0>
left><img src = "logo.gif"></td>
<td align
<td>
=
<h1>TLA Consulting Pty Ltd</h1>
</td>
<td align
=
right><img src="logo.gif"></td>
</tr>
</table>
<?
}
function DisplayMenu ($buttons)
{
echo "<table width=\"100%\" bgcolor = white"
echo "
cellpadding = 4 cellspacing = 4>\n"; <tr>\n";
//calculate button size
$width = 100/count($buttons);
while (list($name, $url) = each ($buttons))
$this -> DisplayButton($width, $name, $url,
}
echo
</tr>\n";
!$this->IsURLCurrentPage($url));
ص٢٠١