Here is the check I need to run. I think all I need is some sort of check to replace "currentPage" with.
<?php
if ( currentPage == "calendar.php" ) {
print "<td class=\"TABcurrent\" scope=\"col\"><a href=\"calendar.php\">Calendar</a></td>
<td width=\"5\" class=\"TABseparator\" scope=\"col\"> </td>";
} else {
print "<td class=\"TABother\" scope=\"col\"><a href=\"calendar.php\">Calendar</a></td>
<td width=\"5\" class=\"TABseparator\" scope=\"col\"> </td>";
}
if ( $accessnote == "Y" ) {
if ( currentPage == "notes.php" ) {
print "<td class=\"TABcurrent\" scope=\"col\"><a href=\"notes.php\">Notes</a></td>
<td width=\"5\" class=\"TABseparator\" scope=\"col\"> </td>";
} else {
print "<td class=\"TABother\" scope=\"col\"><a href=\"notes.php\">Notes</a></td>
<td width=\"5\" class=\"TABseparator\" scope=\"col\"> </td>";
}
}
if ( $accessrec == "Y" ) {
if ( currentPage == "reclamation.php" ) {
print "<td class=\"TABcurrent\" scope=\"col\"><a href=\"reclamation.php\">Reclamation</a></td>
<td width=\"5\" class=\"TABseparator\" scope=\"col\"> </td>";
} else {
print "<td class=\"TABother\" scope=\"col\"><a href=\"reclamation.php\">Reclamation</a></td>
<td width=\"5\" class=\"TABseparator\" scope=\"col\"> </td>";
}
}
?>
This script is in a separate file and is being included by each of the files calendar.php, notes.php, reclamation.php. So I guess I need this check to know which file is currently calling the script.
cheers!
Jason