<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
	require_once "C:/xampp/htdocs/dBug/dBug.php";
  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('C:/xampp/htdocs/recruitment/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records
  list($about_usRecords, $about_usMetaData) = getRecords(array(
    'tableName'   => 'about_us',
  ));
  $selectedAbout_usRecords = @$about_usRecords[0]; // get first selectedCurriculumRecord   
  	// show error message if no matching selectedCurriculumRecord is found
  		if (!$about_usRecords) {
    	print "Record not found!";
    	exit;
  	}

?>
<!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=utf-8" />
<title><?php echo $selectedAbout_usRecords['meta_title'] ?></title>
<meta name="keywords" content="<?php echo $selectedAbout_usRecords['meta_keywords'] ?>" >
<meta name="description" content="<?php echo $selectedAbout_usRecords['meta_description'] ?>" >
<link rel="stylesheet" href="assets/css/recruitment.css" type="text/css" />
</head>
<body>
    <div class="container">
    <?php $thisPage = "aboutUs"; ?>
        <?php include("inlcudes/navigation.php"); ?>
         <div class="rightFeatures">
			<?php foreach ($allAbout_usRecords as $featureRecord): ?>         
                <?php if(strlen($featureRecord['right_features'] == "Telephone Feature")) { ?>
                    <div class="rightFeature telFeature">
                        <?php 
                            $content = $featureRecord['content'];
                            $regExp  = "/^\s*<p>/i";
                            $content = preg_replace($regExp, "", $content ); 
                            echo $content; 
                        ?>
                     </div>
                <?php } elseif(strlen($featureRecord['right_features'] == "Feature")) { ?>
                    <div class="rightFeature">
                        <?php 
                            $content = $featureRecord['content'];
                            $regExp  = "/^\s*<p>/i";
                            $content = preg_replace($regExp, "", $content ); 
                            echo $content; 
                        ?>
                     </div>
                <?php } ?>
            <?php endforeach; ?>
		</div>
        <?php echo $selectedAbout_usRecords['content'] ?>
        <br clear="all" />
        <div class="footer"></div>
   </div>
</body>
</html>