D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
stickain
/
www
/
itosu-ryu.us
/
Filename :
new_top.php
back
Copy
<? if(strlen($_GET['p'])<1){$p='?p=';}else{$p="?p=" . $_GET['p'];} if(strlen($_GET['L'])<1){$L='&L=';}else{$L="&L=" . $_GET['L'];} /* color changer */ if($_GET['L']=="DP"){$dpc=' bgcolor="#33FFFF" ';} if($_GET['L']=="SC"){$scc=' bgcolor="#33FFFF" ';} if($_GET['L']=="CM"){$cmc=' bgcolor="#33FFFF" ';} if($_GET['L']=="LB"){$lbc=' bgcolor="#33FFFF" ';} if($_GET['L']=="NC"){$ncc=' bgcolor="#33FFFF" ';} if($_GET['L']=="NB"){$tac=' bgcolor="#33FFFF" ';} ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Itosu-ryu USA Branch</title> <style type="text/css"> <!-- .style1 { font-size: 24px; font-weight: bold; } .style2 {color: #FF0000} --> </style> </head> <body> <? // to make it easier to see, you can see this as almost standard html $html=<<<EOF <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="9%" rowspan="2" scope="row"><img src="logo1.gif" width="72" height="73"></th> <td width="91%"><div align="center" class="style1">Welcome to Itosu-ryu USA Branch</div></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="row"><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}">Home</a></strong></div></th> <td><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=history{$L}">History</a></strong></div></td> <td><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=events{$L}">Events</a></strong></div></td> <td><strong><a href="{$_SERVER['PHP_SELF']}?p=events{$L}">Tournaments</a></strong></td> <td><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=links{$L}">Links</a></strong></div></td> </tr> <tr> <th scope="row"><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=instructors{$L}">Instructors</a></strong></div></th> <td><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=BB{$L}">Black Belts </a></strong></div></td> <td><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=contact{$L}">Contact us </a></strong></div></td> <td><div align="left"><strong><a href="{$_SERVER['PHP_SELF']}?p=calendar{$L}">Calendar</a></strong></div></td> <td><div align="left"><strong><a href="http://www.itosu-ryu.us/members/">Members only</a> </strong></div></td> </tr> </table></td> </tr> <tr bgcolor="#3399FF"> <th colspan="2" scope="row">USA Dojos </th> </tr> <tr> <th colspan="2" scope="row"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#3399FF"> <th width="16%" {$dpc} scope="row"><div align="center"><strong><a href="{$_SERVER['PHP_SELF']}{$p}&L=DP">Dana Point</a> </strong></div></th> <td width="16%" {$scc} ><div align="center"><strong><a href="{$_SERVER['PHP_SELF']}{$p}&L=SC">San Clemente</a> </strong></div></td> <td width="16%" {$tac} ><div align="center"><strong><a href="{$_SERVER['PHP_SELF']}{$p}&L=NB" >Newport Beach</a> </strong></div></td> <td width="16%" {$lbc} ><div align="center"><strong><a href="{$_SERVER['PHP_SELF']}{$p}&L=LB">Long Beach</a> </strong></div></td> <td width="16%" {$ncc} ><div align="center"><strong><a href="{$_SERVER['PHP_SELF']}{$p}&L=NC">Newport Coast</a> </strong></div></td> <td width="16%" {$cmc} ><div align="center"><strong><a href="{$_SERVER['PHP_SELF']}{$p}&L=CM">Costa Mesa</a> </strong></div></td> </tr> </table></th> </tr> </table> EOF; echo $html; // this displays the above html the php variables are enclosed in {} ?>