Help ! Design Pattern

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
loongest
Forum Commoner
Posts: 25
Joined: Wed Apr 07, 2004 12:23 pm

Help ! Design Pattern

Post by loongest »

I'm having the problem to design the template for the e-commerce application. for the header and footer file, i can simple call include "header.php" and "footer.php" to construct at top and bottom. but my problem is the navigation part... and the body part...
can anyone give me some suggestion. Because i had tried to use table to include "navigation.php" and after that <td> the bodypart...actually will be dynamic part...such as it will display the category of the product, homepage, contact us, feedback form, etc.
can anyone show me some direction. Thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

have design1.php and design2.php

design1.php:

<table>
<tr>
<td>

design2.php

</td>
</tr>
</table>

----------------------

Then on lets say home.php you would have:

include('design1.php');

YOUR CONTENT

include('design2.php');

Design1 wil lmost likely be your header and navigation
Design2 will be your footer... on each page just include those 2 files at the top and bottom...... hope this is what your asking.
Post Reply