All pastes #252706 Raw Edit

Stuff

public text v1 · immutable
#252706 ·published 2006-11-19 21:37 UTC
rendered paste body
function Load_Content($page)
{

  switch ($page) {
    case home: 
      $includefile = "content/home.php";
      $section = "section-1"; 
  break;

  switch ($page) {
    case articles: 
      $includefile = "content/articles.php";
      $section = "section-2"; 
  break;  

  switch ($page) {
    case graffiti: 
      $includefile = "content/graffiti.php";
      $section = "section-3"; 
  break;
  
  switch ($page) {
    case downloads: 
      $includefile = "content/downloads.php";
      $section = "section-4"; 
  break;

  switch ($page) {
    case resources: 
      $includefile = "content/resources.php";
      $section = "section-5"; 
  break;

  } 
    
   ob_start();
   include $includefile;
   $content = ob_get_clean();
     
	$objResponse = new xajaxResponse();
	$objResponse->assign("body","className","$section");
   $objResponse->assign("content","innerHTML",$content);	
	return $objResponse;
}