Community Articles

 
{source}
<?php
$db = JFactory::getDbo();
$query = "SELECT * FROM #__attachments WHERE parent_id = 169";
$db->setQuery($query);
$results = $db->loadObjectList();
if($results){
    echo '<ul class="attachments_mod pdf">';
    foreach($results as $val){
        $filename = $val->display_name;
        if(empty($val->display_name) or $val->display_name == ""){
            $filename = $val->filename;
        }
        echo '<li><a onclick="window.open(\''.JURI::root().str_replace("'","\'",$val->url).'\');" href="javascript:void(0);" target="_blank">'.stripslashes($filename).'</a></li>';
    }
    echo '</ul>';
}
?>
{/source}


Quiz Night - 13 February 2015

quizNot long now until the Big Quiz!! Friday night at 7.30 in the Deerness Community Centre, entry fee £6 per team of 4. Supper and raffles.........so dust off those encyclopaedia (or maybe that should be Wikipedia now!) and get swotting!