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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.