require_once ('commons/constants.php'); //Declaring section variables to let the user know where he/she is $level[1]['name'] = "home"; $level[1]['link'] = "home.php"; $level[2]['name'] = "communities"; $level[2]['link'] = "communities.php"; //retrieve all communities include ("class/community.php"); $community_object = new community; $community_object->debug = FALSE; // TRUE or FALSE, default: FALSE $community_object->get_communities(); //setup broadcast class include ("class/broadcast.php"); $broadcast = new broadcast; $broadcast->debug = FALSE; // TRUE or FALSE, default: FALSE //if there are communities, make list if ($community_object->result) { $community_object->content = "
| COMMUNITY | "; # $community_object->content.= ""; # $community_object->content.= " | BROADCAST TIMES | "; # $community_object->content.= "
";
$community_object->content.= "![]() "; $community_object->content.= "".$GLOBALS['constant']['ethnics'][$DB['ethnic']]." Community | ";
$community_object->content.= "||
";
$community_object->content.= $icon;
# $community_object->content.= " ";
$community_object->content.= " ";
$community_object->content.= " | ";
// community & episode
$community_object->content.= "";
$community_object->content.= "".strtoupper($DB['name'])."";
$community_object->content.= " - Episode $DB[episode] ";
$community_object->content.= "- Province of ".$GLOBALS['constant']['provinces'][$DB['province']]." ";
$community_object->content.= ""; $community_object->content.= $DB['feature']; # $community_object->content.= substr($DB['feature'], 0, 200); # $community_object->content.= "... "; # $community_object->content.= " "; $community_object->content.= " [ more ]"; $community_object->content.= " | ";
// broadcast
# $community_object->content.= ""; # $community_object->content.= $broadcast->broadcast_horizontal($DB['id_community']); //retrieve broadcast time for each community # $community_object->content.= " | "; # $community_object->content.= "