Trium918 Posted January 22, 2008 Share Posted January 22, 2008 Who would be in favor of implementing a Content Management System in the following format? ouput.php <?php function do_html_header($title) { // print an HTML header ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title><?php print $title; ?></title> </head> <body> <table width="760" border="0" cellspacing="0" cellpadding="7" class="bodyline" align="center"> <tr> <td colspan="2" height="120"><img src="images/3b.jpg" alt="Header" width="760" height="120" /></td> </tr> <tr><td colspan="2" class ="topnav" > <?php include("navigation.php"); ?> </td></tr> <tr> <td width="530" height="150" valign="top"> <?php if($title) do_html_heading($title); } function do_right_content() { ?> </td> <td width="220" valign="top"> <?php } function do_html_footer() { // print an HTML footer ?> </td> </tr> <tr> <td colspan="2" valign="top"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td > <div id="footer" > <a href="about_us.php">About</a> | <a href="http://" target="_blank">FAQ</a> | <a href="http://" target="_blank">Terms</a> | <a href="http://" target="_blank">Privacy Policy</a> | <a href="contact_form.php" >Contact </a>| <a href="http://"target="_blank">Safety </a> | <a href="http://" target="_blank">Promote!</a> | <br /><br /> © <?php echo "2006-".date('Y'); ?> Example.com. All Rights Reserved </div> </td> </tr> </table> </td> </tr> </table> </body> </html> <?php } function do_html_heading($heading) { // print heading ?> <? // =$heading ?> <? } function do_html_URL($url, $name) { // output URL as link and br ?> <br><a href="<?=$url?>"><?=$name?></a><br> <? } function display_right_content() { ?> <? } ?> index.php <?php require_once("output.php"); do_html_header("Home"); do_right_content(); display_right_content(); do_html_footer(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/87246-solved-cms-question/ Share on other sites More sharing options...
Trium918 Posted January 22, 2008 Author Share Posted January 22, 2008 *bump* Quote Link to comment https://forums.phpfreaks.com/topic/87246-solved-cms-question/#findComment-446343 Share on other sites More sharing options...
Trium918 Posted January 22, 2008 Author Share Posted January 22, 2008 1.) Good or Bad idea type scheme. 2.) You wouldn't or you would. 3.) Might it a try! 4.) Similar to include() CMS <?php include(top.php); include(content.php); include(bottom.php); ?> Could someone please answer this? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/87246-solved-cms-question/#findComment-446362 Share on other sites More sharing options...
tippy_102 Posted January 23, 2008 Share Posted January 23, 2008 That's sorta, kinda how I impliment templating. Your use of tables scares me a little bit though...all the cool kids are using CSS these days. Quote Link to comment https://forums.phpfreaks.com/topic/87246-solved-cms-question/#findComment-446621 Share on other sites More sharing options...
Trium918 Posted January 23, 2008 Author Share Posted January 23, 2008 That's sorta, kinda how I impliment templating. Your use of tables scares me a little bit though...all the cool kids are using CSS these days. I could use all the advance I can get. How do you implement your CMS templates? I written this code sometime last year. I am currently using div tags along with CSS. Thanks for the reply! Quote Link to comment https://forums.phpfreaks.com/topic/87246-solved-cms-question/#findComment-446906 Share on other sites More sharing options...
rajivgonsalves Posted January 23, 2008 Share Posted January 23, 2008 not at all.... I would prefer using my own template system.... Quote Link to comment https://forums.phpfreaks.com/topic/87246-solved-cms-question/#findComment-446908 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.