"Didier, please be a little bit more methodical !" said Zaramouss, my old master. Because, when I started my new life as a Webmaster I used to joyfully spread out pages on the Net… and spent, after that, many hours for each small web site modification.
The concept is simple: We segment the pages in part and each page calls for its required modules as needed… and, the site maintenance is greatly facilitated as modules are shared:
_top.asp
<% ' What browser? Nav = Request.ServerVariables("HTTP_USER_AGENT") if inStr(Nav,"MSIE")=0 then Nav="NN" _ else Nav="IE" %>
<HTML><HEAD><TITLE><%=title%></TITLE> <!-- Format documents adapted to browser --> <LINK REL="stylesheet" TYPE="text/css" HREF="/styles_<%=Nav%>.css">
</HEAD><BODY> <table width=100%><tr><td> description of top headband </td></tr></table> <table width=100%><tr><td width=120 valign=top> left menu </td><td valign=top>
<HTML><HEAD><TITLE><? echo $title; ?></TITLE> <!-- Format documents adapted to browser --> <LINK REL="stylesheet" TYPE="text/css" HREF="/styles_<? echo $nav; ?>.css">
</HEAD><BODY> <table width=100%><tr><td> description of top headband </td></tr></table> <table width=100%><tr><td width=120 valign=top> left menu </td><td valign=top>
page_1.php
<? $title="My super page 1"; include("_top.php"); ?> and bla bla bla... <? include("_btm.php"); ?>
page_2.php
<? $title="My page 2"; include("_top.php"); ?> and other bla and rebla rebla... <? include("_btm.php"); ?>