easy layout for each page

oiwio

New Member
Messages
214
Reaction score
0
Points
0
is there a way in CSS to put this layout in another file and have each page load it using CSS?

This is the layout script
PHP:
?>
<body bgcolor="#000000" text="#FFFFFF">
<center>
<table width="1100" height="100" border="0" class="top">
 <tr>
 <td height="109" align="center" valign="top"><img src="http://fmammorpg.x10hosting.com/sitelogo3.jpg" width="361" height="100"></td>
 </tr>
</table>
<table width="902" height="114">
<tr>
<td width="900" height="100" align="center" valign="middle"><a href="main.php"><img src="http://fmammorpg.x10hosting.com/mainpage.jpg" width="212" height="100"></a><a href="http://z15.invisionfree.com/FMA_MMORPG_FORUMS/index.php?" target="_blank"><img src="http://fmammorpg.x10hosting.com/forums.jpg" width="212" height="100"></a><a href="process.php"><img src="http://fmammorpg.x10hosting.com/logout.jpg" width="211" height="100"></a></td>
</tr>
</table>
<table width="900" height="700" border="0">
 <tr>
 <td width="740" height="700" align="left" valign="top">
 <?

Put the text that every page would have different here

PHP:
?>
 </td>
	<td width='150' height='700' align='left' valign='top'>
<img src='http://fmammorpg.x10hosting.com/sitelogo.jpg' width='167' height='250'>
	 <p></p> <a href='main.php'>Main Page</a>
	<br></br><a href='town.php'>Town</a>
<br></br><a href="ranks.php">Ranks</a>
 <br></br><a href='http://z15.invisionfree.com/FMA_MMORPG_FORUMS/index.php?' target='_blank'>Forums</a>
 <br></br><a href='process.php'>Logout</a>
 </td>
 </tr>
</table>
</center>
<?
 
Last edited:

oiwio

New Member
Messages
214
Reaction score
0
Points
0
thanks for your help

Are you able to put php commands inside the txt file?
 
Last edited:

NoWorldPeace

New Member
Messages
4
Reaction score
0
Points
0
You could just make it a PHP page and put.

<php include "page.php" ?>

Although after reading the t&c, I think you need intermediate PHP access for this.
 

nightscream

New Member
Messages
948
Reaction score
0
Points
0
You can also do this with frames in html but I suggest to do the php include thingy(require is better^^)
 
Top