Jump to content

Newbie layout help.


Xyphon

Recommended Posts

Well, I create top and bottom.php, and If I put them both on a file, it only displays the first one.

 

Here is top:

 

<?PHP
/* If logged out */
if (!isset($_COOKIE['UserID'])) {
echo "
<html>
<title> Pokemon Trainer's Challenge RPG </title>

<head>
<style type='text/css'>
A:link { color: #AFAFAF; text-decoration: underline; }
A:visited { color: #AFAFAF; text-decoration: underline; }
A:hover { color: #D0D0D0; text-decoration: none; } 

body 
{
background-color: #000000;
background-image: url('Url here if you have a background image');
scrollbar-face-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-darkshadow-color: #545454;
scrollbar-3d-lightcolor: #545454;
scrollbar-arrow-color: #ffffff;
scrollbar-track-color: #545454;
}

.tables
{ border: 1px solid #252525; background-color: #313131;} 
.menus
{ width: 130px; border: 0px solid #575757; background-color: #313131;} 
.content
{ border: 0px solid #707070; background-color: #4F4F4F;} 
.disclaimer
{ border: 1px solid #252525; background-color: #313131;} 

</style>



</head>


<body>
<div align='center'>
<!--BANNER-->
<table class='tables' cellpadding='0' cellspacing='0' width='750' height='180'>
<tr><td>
<center>
<font face='verdana' color='#FFFFFF' size='6'>Your Banner Here!
</font>
</tr></td>
</table>
<!--END of BANNER-->

<!--LEFT MENU-->
<table class='tables' cellpadding='4' cellspacing='0' width='750' height='250'>
<tr><td class='menus' valign='top'>
<font color='#AFAFAF' face='verdana' size='1'>
<CENTER>
<b>Catergory</b><br>
<a href='register.php'>Register</a><br>
<a href='login.php'>Log in</a><br>
</CENTER>
</td>
<!--END of LEFT MENU-->


<!--CONTENT-->
<td class='content' valign='top'>
<font color='#AFAFAF' face='verdana' size='1'>
<div align='justify'>
<br>
";
exit;
}
if (isset($_COOKIE['UserID'])) {
echo "
<html>
<title> Pokemon Trainer's Challenge RPG </title>

<head>
<style type='text/css'>
A:link { color: #AFAFAF; text-decoration: underline; }
A:visited { color: #AFAFAF; text-decoration: underline; }
A:hover { color: #D0D0D0; text-decoration: none; } 

body 
{
background-color: #000000;
background-image: url('Url here if you have a background image');
scrollbar-face-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-darkshadow-color: #545454;
scrollbar-3d-lightcolor: #545454;
scrollbar-arrow-color: #ffffff;
scrollbar-track-color: #545454;
}

.tables
{ border: 1px solid #252525; background-color: #313131;} 
.menus
{ width: 130px; border: 0px solid #575757; background-color: #313131;} 
.content
{ border: 0px solid #707070; background-color: #4F4F4F;} 
.disclaimer
{ border: 1px solid #252525; background-color: #313131;} 

</style>



</head>


<body>
<div align='center'>
<!--BANNER-->
<table class='tables' cellpadding='0' cellspacing='0' width='750' height='180'>
<tr><td>
<center>
<font face='verdana' color='#FFFFFF' size='6'>Your Banner Here!
</font>
</tr></td>
</table>
<!--END of BANNER-->

<!--LEFT MENU-->
<table class='tables' cellpadding='4' cellspacing='0' width='750' height='250'>
<tr><td class='menus' valign='top'>
<font color='#AFAFAF' face='verdana' size='1'>
<CENTER>
<b>Catergory</b><br>
<a href=''></a><br>
<a href=''></a><br>
<a href=''></a><br>
<a href=''></a><br><br>

<b>Catergory</b><br>
<a href=''></a><br>
<a href=''></a><br>
<a href=''></a><br>
<a href=''></a><br><br>

<b>Catergory</b><br>
<a href=''></a><br>
<a href=''></a><br>
<a href=''></a><br>
<a href=''></a><br>
</CENTER>
</td>
<!--END of LEFT MENU-->


<!--CONTENT-->
<td class='content' valign='top'>
<font color='#AFAFAF' face='verdana' size='1'>
<div align='justify'>
<br>
";
exit;
}

?>

 

And bottom

 

<?PHP
/* if logged out */
if (!isset($_COOKIE['UserID'])) {
echo "
<br>
</div>
</td>
<!-- END of CONTENT-->

<!--RIGHT MENU-->
<td class='menus' valign='top'>
<font color='#AFAFAF' face='verdana' size='1'>
<CENTER>
<b>Catergory</b><br>
<a href='register.php'>Register</a><br>
<a href='login.php'>Login</a><br>
</CENTER>
</td>
</table>
<!--END of RIGHT MENU-->

<!--DISLCLAIMER-->
<table class='disclaimer' cellpadding='4' cellspacing='0' width='750'>
<tr><td>
<font color='#AFAFAF' face='verdana' size='1'>
<center>
<b>Disclaimer:</b><br>
Put your disclaimer/copyright here
<br><br>
Layout template by <a href='http://www.nightmarevalley.com' target='_blank'>Valley of Nightmares</a>.
</center>
</table>
<!--END of DISCLAIMER-->
</body>
</html>
";
exit;
}
if (isset($_COOKIE['UserID'])) {
echo "
<html>
<br>
</div>
</td>
<!-- END of CONTENT-->

<!--RIGHT MENU-->
<td class='menus' valign='top'>
<font color='#AFAFAF' face='verdana' size='1'>
<CENTER>
<b>Catergory</b><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br><br>

<b>Catergory</b><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br><br>

<b>Catergory</b><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br>
<a href=''>Link here</a><br><br>

</CENTER>
</td></tr>
</table>
<!--END of RIGHT MENU-->

<!--DISLCLAIMER-->
<table class='disclaimer' cellpadding='4' cellspacing='0' width='750'>
<tr><td>
<font color='#AFAFAF' face='verdana' size='1'>
<center>
<b>Disclaimer:</b><br>
Put your disclaimer/copyright here
<br><br>
Layout template by <a href='http://www.nightmarevalley.com' target='_blank'>Valley of Nightmares</a>.
</center>
</table>
<!--END of DISCLAIMER-->

</html>
";
exit;
}
?>

 

Heres the index code I used it in:

 

<?PHP
include('top.php');
echo "Hi";
include('bottom.php');
?>

 

 

Help?

Link to comment
https://forums.phpfreaks.com/topic/81439-newbie-layout-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.