I took a stab at smarty template class, its pretty simple and easy.
in tpl file must have {$variable} have to have $ seems quite weird.
So far all I got is the template somewhat working; CSS Styles don't work at all and can't have it in the tpl file or it will go nuts and will say, unable to read var from "filename.php".
I haven't yet intergrated MySQL, and I don't think css would work because of mysql.
http://www.cfe-clan.com/smarty-temp/
is what I got so far.
http://server3.cfe-clan.com/smarty-temp.zip
1 MB (extracted)
Maybe someone can help me with the CSS Styles to work in Templates? I am not that experienced in PHP and hopefully someone will help rescue me from this disaster.
I'm currently working on a CS Site for some selected maps and waypoints, and stuff.

it's been hell so far.