Jump to content

[SOLVED] CMS Question?


Trium918

Recommended Posts

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();
?>

Link to comment
https://forums.phpfreaks.com/topic/87246-solved-cms-question/
Share on other sites

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!

Link to comment
https://forums.phpfreaks.com/topic/87246-solved-cms-question/#findComment-446906
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.