<div class='topname'>
<?php echo $myrow["title"] ?> <?php echo $myrow["firstname"] ?> <?php echo $myrow["lastname"] ?>
</div>
<div class='topaddress'>
<?php echo $myrow["schoolname"] ?><br>
<?php echo $myrow["schooladdress"] ?><br>
Front Office: <?php echo $myrow["schoolphone"] ?>
</div>
<div style="POSITION: absolute; TOP: 50px; LEFT: 0px; Z-INDEX: 25; WIDTH: 700px">
<table width='700px' BORDER="0" CELLSPACING="1" CELLPADDING="1">
<tr>
<td colspan=4 bgcolor='<?php echo $myrow5["toprow"] ?>'>
</td>
</tr>
<tr valign='top'>
<td width='150px' bgcolor='<?php echo $myrow5["sidemenu"] ?>'>
<div class='sidelink'>
<hr>
<a href='news.php?id=<?php echo $myrow["teacher_id"] ?>'>News & Announcments</a>
<hr>
<a href='calendar.php?id=<?php echo $myrow["teacher_id"] ?>'>Calendar</a>
<hr>
<a href='links.php?id=<?php echo $myrow["teacher_id"] ?>'>Reference/Links</a>
<hr>
<a href='classrules.php?id=<?php echo $myrow["teacher_id"] ?>'>Class Rules</a>
<hr>
<a href='contact.php?id=<?php echo $myrow["teacher_id"] ?>'>Contact</a>
</div>
</td>
<td width='150px' valign='top'>
<img src="images/classroom.gif" alt="Virtual Classroom">
</td>
<td width='275px' valign='top'>
<table width='275px' BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td bgcolor='<?php echo $myrow5["classrow"] ?>'>
<div class='fontwhite'>
Class Schedule
</div>
</td>
</tr>
<tr>
<td>
<?php
while ($myrow3 = mysql_fetch_array($result3))
{
printf("Period <a href='periods.php?periods_id=%s&id=%s'>%s - %s</a><br>\n", $myrow3["periods_id"], $myrow3["teacher_id"], $myrow3["hournumber"], $myrow3["classname"]);
}
?>
<td>
</tr>
</table>
</td>
<td width='125px' valign='top'>
<table width='125px' BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td bgcolor='<?php echo $myrow5["linksrow"] ?>'>
<div class='fontwhite'>
Special Links
</div>
</td>
</tr>
<tr>
<td>
<?php
while ($myrow4 = mysql_fetch_array($result4))
{
printf("<a target='new' href='http://%s'>%s</a><br>\n", $myrow4["website"], $myrow4["displayname"]);
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor='<?php echo $myrow5["sidemenu"] ?>' valign='top'>
<div class='sidelink'>
</div>
</td>
<td colspan=3>