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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.