"; //echo $_SERVER["REQUEST_URI"]."
"; //echo $_SERVER["SCRIPT_NAME"]."
"; //phpinfo(); if ($bn=="") // *** HEADLINES *** { ?>

Our thoughts and prayers are with the families and victims of the Sandy Hook Elementary School tragedy.



In Memoriam
Louis I Cohen (1921-2012)
Founding Principal

"; if($page > 1) $pagination_string.= "Previous Page"; $i = 1; for(;$i<=$pages;$i++) { if ($i == $page) $pagination_string.= " $i "; else $pagination_string.= " ".$i." "; } if($page < $pages) $pagination_string.= "Next Page"; $pagination_string.= ""; $startnum = ($page - 1) * $perpage; $q = "select *, DATE_FORMAT(posted, '%c/%e/%Y') as postdate from news order by posted desc, posttime desc LIMIT $startnum,$perpage"; $r = mysql_query($q); echo mysql_error(); echo ' '; $row_count=0; while($row = mysql_fetch_array($r)) { $row_color = ($row_count % 2) ? $sn_bgcolor1 : $sn_bgcolor2; $shortnews=""; $cnt=""; $shortnews=explode(" ",$row["news"]); $newnews = ""; for($x=0;$x<$sn_length;$x++) { $newnews.=$shortnews[$x]." "; } $cnt = count($shortnews); $newnews.=$shortnews[$sn_length]; $newnews = strip_tags($newnews, ''); if (count($shortnews)>$sn_length){ if (empty($row["newslink"])) { $newslink = ''.$moretag.''; } else { if ($outside_news_target=="frame") { $newslink = ''.$moretag.''; } else { $newslink = ''.$moretag.''; } } $newnews.= $premoretag.$newslink; } if (empty($row["newslink"])) { $newslink = ''.$morelink.''; } else { if ($outside_news_target=="frame") { $newslink = ''.$morelink.''; } else { $newslink = ''.$morelink.''; } } echo ' '; $row_count++; } echo '
'.$sn_title.'
'.$row["header"].'    ('.$row["postdate"].')
'.$newnews.'
'.$emailfriendlink.' | '.$newslink.'
'; /* If previous/next links are enabled */ echo '
'.$pagination_string; //include "http://www.capossela.com/news/footer.php"; include "footer.php"; } if($bn=="n") // *** FULL NEWS *** { require "config-inc.php"; //include "http://www.capossela.com/news/header.php"; include "header.php"; $dbh=mysql_connect ($mysql_host, $mysql_user,$mysql_password) or die ('I cannot connect to the database.'); mysql_select_db ($mysql_dbname); $q = "select *, DATE_FORMAT(posted, '%c/%e/%Y') as postdate from news WHERE ID=".$NID; $r = mysql_query($q); echo mysql_error(); echo ''; $row_count=0; if (empty($curpage)){ $curpage = $_SERVER["HTTP_REFERER"]; } while($row = mysql_fetch_array($r)) { echo ' '; $row_count++; } echo '
'.$row["header"].'    ('.$row["postdate"].')
'.$row["news"].'
'.$emailfriendlink.' | '.$backlink.'
'; //include "http://www.capossela.com/news/footer.php"; include "footer.php"; } ?>