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 = "\n"; # $community_object->content.= ""; # $community_object->content.= ""; # $community_object->content.= ""; # $community_object->content.= ""; # $community_object->content.= ""; foreach ($community_object->result as $tmp) { //retrieve community info foreach ($tmp as $key=>$value) { $DB[$key] = stripslashes($value); } // foreach # list ($first,$second) = split (" ",$DB['name']); // setup icon image $filename = "images/".$DB['id_community']."_icon.jpg"; if (file_exists($filename)) { $icon = "\"\""; } else { $icon = ""; } // else if ($current != $DB['ethnic']) { $current = $DB['ethnic']; $separator = ""; // horizontal line $community_object->content.= ""; $community_object->content.= ""; $community_object->content.= ""; $community_object->content.= "\n"; } // if $community_object->content.= ""; // icons $community_object->content.= ""; // community & episode $community_object->content.= ""; // broadcast # $community_object->content.= ""; # $community_object->content.= ""; # $community_object->content.= "\n"; } // foreach $community_object->content.= "
COMMUNITYBROADCAST TIMES
"; $community_object->content.= "\"\"
"; $community_object->content.= "".$GLOBALS['constant']['ethnics'][$DB['ethnic']]." Community
"; $community_object->content.= $icon; # $community_object->content.= "\"\""; $community_object->content.= "\"\""; $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.= "
"; # $community_object->content.= $broadcast->broadcast_horizontal($DB['id_community']); //retrieve broadcast time for each community # $community_object->content.= "
\n"; } // if else { $community_object->content = "No community available."; } // else // calling layout require 'layout.php'; ?>