+ Reply to Thread
Results 1 to 7 of 7

Thread: easy layout for each page

  1. #1
    oiwio is offline x10 Sophmore oiwio is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    214

    easy layout for each page

    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 Code:
    ?>
    <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 Code:
    ?>
     </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 by oiwio; 01-25-2008 at 06:14 PM.

  2. #2
    Afterburn's Avatar
    Afterburn is offline Guest Afterburn is an unknown quantity at this point
    Join Date
    Jul 2006
    Posts
    149

    Re: easy layout for each page

    Why not just use PHP?

  3. #3
    Join Date
    Oct 2007
    Location
    IN YOUR FACE
    Posts
    341

    Re: easy layout for each page

    Put ANY Command In A TXT File And For Say, BG Put
    PHP Code:
    <? readfile("your-txt-file.txt"); ?>

  4. #4
    oiwio is offline x10 Sophmore oiwio is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    214

    Re: easy layout for each page

    thanks for your help

    Are you able to put php commands inside the txt file?
    Last edited by oiwio; 01-25-2008 at 09:42 PM.

  5. #5
    NoWorldPeace is offline x10Hosting Member NoWorldPeace is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    4

    Re: easy layout for each page

    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.

  6. #6
    crazywhite1989 is offline x10Hosting Member crazywhite1989 is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    TN, USA
    Posts
    69

    Re: easy layout for each page

    Quote Originally Posted by NoWorldPeace View Post
    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.
    it's <?php include("example.php"); ?>

  7. #7
    nightscream is offline x10 Lieutenant nightscream is an unknown quantity at this point
    Join Date
    Feb 2006
    Location
    Hallaar, Belgium
    Posts
    474

    Re: easy layout for each page

    You can also do this with frames in html but I suggest to do the php include thingy(require is better^^)
    ------------------------------------------------------------------------------------------
    If you have any troubles with a website or a script, just send me a pm.

    I also code websites in xHTML/css, can code javascript and php too if needed

+ Reply to Thread

Similar Threads

  1. Css and page layout trouble
    By debo2476 in forum Programming Help
    Replies: 1
    Last Post: 12-13-2007, 05:58 PM
  2. Create a Layout for CT Profile Page.
    By Starshine in forum The Marketplace
    Replies: 1
    Last Post: 06-08-2007, 04:42 PM
  3. Replies: 2
    Last Post: 12-16-2006, 08:59 PM
  4. Cannot edit in Front Page
    By katyW in forum Free Hosting
    Replies: 9
    Last Post: 05-26-2005, 06:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers