include_once ("commons/constants.php"); // GET COMMUNITY include ("class/community.php"); $community_object = new community; $community_object->feature(); $community_object->get_communities(); // creating list of ethnic communities for the bottom left corner if ($community_object->result) { $tmp = count($community_object->result); $halfway = intval($tmp/2); $community_object->content.= "
| ";
foreach ($community_object->result as $tmp) {
foreach ($tmp as $key=>$value) {
$DB[$key] = stripslashes($value);
} // foreach
if ($current != $DB['ethnic']) {
$community_object->content.= "";
$community_object->content.= $GLOBALS['constant']['ethnics'][$DB['ethnic']];
$community_object->content.= " \n"; $current = $DB['ethnic']; } $community_object->content.= " \n"; if ($i++ == $halfway) { $community_object->content.= " | \n"; } } // foreach $community_object->content.= " |