<?php
ob_start
(); 
require (
"nukelayoutclass.php");
 
$mypage = new nukeLayout;
$mypage->nukelayoutSitename "NukeLayout Class";
$mypage->nukelayoutpageTitle "NukeLayout PHP Class";
$mypage->nukelayoutLogo "nukelayoutgif.gif";

$mypage->addleftBar("Example Pages","
<A HREF=\"view_src.php?page=index.php\">View Page Src</a><br>
<A HREF=example1.php>No Right Column</a><br>
<A HREF=example2.php>No Bottom Banner</a><br>
<A HREF=example3.php>No Top Banner</a><br>
<A HREF=example4.php>Just Article</a><br>
<A HREF=example5.php>Banners and Article</a><br>
<A HREF=example6.php>left,right and Article</a><br>
<A HREF=checkclass.php>validate this Class</a><br>

"
);

$mypage->addleftBar("Left Column: Text","
<font size=\"2\">
This site is powered by 
NukeLayout PHP Class

</font>
"
);

 
$mypage->addArticle("Article #1 of NukeLayout Class Demo",
"
NukeLayout Class is PHP class that allow you to develop web pages that
look and feel like PHPNuke. With out the need for a database and alot of
programming...
<p>
This class allows you to focus on content!
<P>

<a href=demolastest/>Demo Latest Code base 1.1</a>
<br>
Now with color theme support! Built in color themes will
display randomly..

"
);



$mypage->addArticle("Article #2 Ease of Use",
"
The class is very easy to use....<br>
It's design allows for the following examples<br>
<ul>
<li>Intranet Portal where non-techinal are going to be responsible for the content.
<li>ISPs that don't provide database access can make it available to their clients,
allowing them to deploy personal/Business Web Portals.
<li>Anyone wanting to deploy a non database driven portal can use this class
<li> ...
</ul>
<P>
Without a lot of effort...
<br>
"
);


$mypage->addArticle("Creating a global include file for your site.. ",
"
<pre>

Standard begin of php script... I would recommend that you use the &lt;?php method
because if php was configured using the --disable-short-tags which doesn't  allow &lt;?
it breaks the code...
&lt;?php

Include the class
require (\"nukelayoutclass.php\");
 
Create a new layout
\$mypage = new nukeLayout;

Set variable that are going to be system wide..
 
\$mypage->nukelayoutSitename = \"NukeLayout Class\";
\$mypage->nukelayoutpageTitle = \"NukeLayout PHP Class\";
\$mypage->nukelayoutLogo = \"nukelayout.jpg\";
 
\$mypage->nukelayoutmenuLink_array = array(
        \"HOME\"=>\"./\",
        \"Developers Site\"=>\"rhttp://www.pccs-linux.com/\");
?&gt;



</pre>


"
);



$mypage->addRightBar("Lang: PHP","
<font size=\"2\">
<CENTER>
<IMG SRC=\"nukelayout_php.gif\" ALT=\"NukeLayout PHP Class\">
</CENTER>
</font>
"
);

$mypage->addRightBar("Download NukeLayout","
<A HREF=http://PCCS-Linux.COM/public/list.php3?bn=agora_pccslinux>Download Section</a><br>
"
);


 
$mypage->render();


ob_end_flush();
 
?>
PCCS-Linux.COM ::ource Advocate Articles catalogue
2000 2002

   -- Fixed - failed HTML validation issue
   I would like to thank Mathew Solnik for making me aware of this
   NOTE A page with ONLY Text it will format HTML without errors..
   If invalid HTML is used by the page developer it will produce
   invalid HTML errors when validated

   -- Fixed - major bug in navBarLinks() -- upgrade required to fix
   in the narBarLinks() I had hardcoded /$val which 
   caused links to become broken if outside the ./ directory
   e.g. http://freshmeat.net would be http://sitename/http://freshmeat.net 

   -- Fixed - renamed some vars
   $userightcol ---> $rightbarStatus 
   $leftbarOff ---> $leftbarStatus 
   $topbannerOff ---> $topbannerStatus
   $bottombannerOff ---> $bottombannerStatus

   -- Fixed - removed the Default link array for site from inside class
   removing it gives more control and makes the class easier to use.
   $this->nukelayoutmenuLink_array = array("HOME"=>"./"); REMOVED

   -- Added support - set bottom banner text by using
   $mypage->nukelayoutfooterText 

   -- Added support - define what appeared before link_array 
   in main menu box e.g.
   $this->nukelayoutmenuLinkstarter = < IMG SRC=dot.gif >
   default  *  

   -- Added support - turn off Greeting

   -- Added support - change the postion of the site logo
   e.g. left, middle, right

   -- Added support - make site banner a link to ./ or no link
   no link default

   -- Added support - ability point to a remote site and have itin a new windows via the main menu links
   rhttp://www.linux.com wouldhttp://www.linux.com in a new
   browser window 

   -- version 0.3