rendered paste bodyfunction 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;
}