<?php
//********************** nav_vert.php **********************
//
// This file is included on all pages with vertical navbar.
// This script writes the vertical navbar in a table.
//
// Bo Johansson 2000-07-24
//
// 2001-07-22: comments added
// 2001-09-11: changed URL for Xitami
// 2002-02-16: changed URL for Xitami back to www.xitami.com
// 2003-03-11: Added CLASS="tdimg" to the main table
// 2002-08-29: link to the Apache manual instead of Xitami
// 2002-08-30: PHP and Apache "banners" size 70x40
//***************************************************************
print("<TABLE CLASS=\"tdimg\" BGCOLOR=\"#00FF99\" BORDER=3 CELLPADDING=0 CELLSPACING=0>\n");
print("<TR><TD WIDTH=94><TABLE BGCOLOR=\"#00FF99\" BORDER=0");
print(" CELLPADDING=0 CELLSPACING=0>\n");
print("<TR>\n<TD WIDTH=94 HEIGHT=3 COLSPAN=3><IMG SRC=\"");
print($navBase . "navbt/space3h_gr.gif\"\n");
print("WIDTH=94 HEIGHT=3 BORDER=0 ALT=\"\"></TD>\n</TR>");
for($index = 0; $index < 12; $index++)
{
if($index == $actPage)
{
$colText = "rd.gif";
$topText = $navBase . "navbt/top_" . $colText;
$leftText = $navBase . "navbt/left_" . $colText;
$rightText = $navBase . "navbt/right_" . $colText;
$botText = $navBase . "navbt/bot_" . $colText;
}
else
{
$colText = "gr.gif";
$topText = $navBase . "navbt/space3h_" . $colText;
$leftText = $navBase . "navbt/space5v_" . $colText;
$rightText = $navBase . "navbt/space5v_" . $colText;
$botText = $navBase . "navbt/space3h_" . $colText;
}
print("<TR>\n<TD WIDTH=94 HEIGHT=3 COLSPAN=3><IMG SRC=\"");
print($topText . "\"\n");
print("NAME=\"btTop" . $index . "\" WIDTH=94 HEIGHT=3 BORDER=0 ALT=\"\"></TD>\n");
print("</TR><TR>\n");
print("<TD WIDTH=5 HEIGHT=20><IMG SRC=\"");
print($leftText . "\"\n");
print("NAME=\"btLft" . $index . "\" WIDTH=5 HEIGHT=20 BORDER=0 ");
print("ALT=\"\"></TD>\n");
print("<TD WIDTH=84 HEIGHT=20>");
if( ($index != $actPage) && ($hrefText[$index] !="Z") )
{
print("<A HREF=\"" . $hrefText[$index] . "\"\n");
if( defined("IN_FRAME") )
print("TARGET=\"_parent\" ");
print("ONMOUSEOVER=\"btUp(" . $index . ")\" ");
print("ONMOUSEOUT=\"btFlat(" . $index . ")\"\n");
print("ONMOUSEDOWN=\"btDown(" . $index . ")\">");
}
print("<IMG ");
print("SRC=\"" . $srcText[$index] . $colText . "\"\n");
print("WIDTH=84 HEIGHT=20 BORDER=0 ALT=\"" . $altText[$index] . "\">");
if( ($index != $actPage) && ($hrefText[$index] !="Z") )
{
print("</A>");
}
print("</TD>\n");
print("<TD WIDTH=5 HEIGHT=20><IMG SRC=\"");
print($rightText . "\"\n");
print("NAME=\"btRgt" . $index . "\" WIDTH=5 HEIGHT=20 BORDER=0 ");
print("ALT=\"\"></TD>\n");
print("</TR><TR>\n");
print("<TD WIDTH=94 HEIGHT=3 COLSPAN=3><IMG SRC=\"");
print($botText . "\"\n");
print("NAME=\"btBot" . $index . "\" WIDTH=94 HEIGHT=3 BORDER=0 ");
print("ALT=\"\"></TD>\n");
print("</TR><TR>\n");
print("<TD WIDTH=94 HEIGHT=3 COLSPAN=3><IMG SRC=\"");
print($navBase . "navbt/space3h_gr.gif\"\n");
print("WIDTH=94 HEIGHT=3 BORDER=0 ALT=\"\"></TD>\n</TR>");
}
print("</TABLE></TD></TR>\n");
print("</TABLE>\n\n");
print("<A HREF=\"http://www.php.net\"><IMG SRC=\"");
print($navBase . "navbt/pow_php.gif\"\n");
print("WIDTH=70 HEIGHT=40 BORDER=0 VSPACE=2></A>\n\n");
print("<A HREF=\"http://www.apache.org/\"><IMG SRC=\"");
print($navBase . "navbt/pow_apache.gif\"\n");
print("WIDTH=70 HEIGHT=40 BORDER=0 VSPACE=2></A>");
//************************* File end **************************
?>
|