index.php
Code: Select all
<?php
echo <<< EOT
<html>
<head>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">
</head>
<body background=bg.gif>
<table width=100%><tr><td>
<center><img src=header.png></center>
</td></tr></table>
<div id="navbar" align=center>
<table width=100%><tr><td>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php?l=news.php">News</a></li>
<li><a href="index.php?l=law/laws.html">legal</a></li>
</ul>
</td></tr></table>
</div>
<center>
<table width=90% border=1 bordercolor=#000000 cellspacing=0>
<tr><td border=0>
EOT;
if(isset($_GET['l']))
{
include $_GET['l'];
}
else
{
include "main.html";
}
echo <<< EOT
</td></tr></table></center>
EOT;
?>Code: Select all
#navbar ul {
padding:0;
}
#navbar li {
width: 130px;
text-align: center;
display: inline;
list-style: none;
border-color: #DEFFDE;
border-top: 1px solid black;
border-bottom: 1px solid black;
border-left: 1px solid black;
border-right: 1px solid black;
}
#navbar a {
color : black;
display : block;
text-decoration : none;
width : 100%;
}
#navbar a:hover {
background : #DEFFDE;
color : #000000;
}
#navbar a:visited {
color : #000000;
}
#header {
position : absolute;
top : 0;
}
a {
color : #000000;
}
a:active {
color : #000000;
}
a:visited {
color : #000000;
}