 |
|
require_once("includes/includes.inc.php");
$months = array("Jan","Feb","March","April","May","June","July","Aug","Sep","Oct","Nov","Dec");
if($_GET["year"]=="") $year = date("Y");
else $year = $_GET["year"];
if($_GET["month"]=="") $month = date("m");
else $month = $_GET["month"];
$db->sql_query("SELECT * FROM `news` WHERE date between '".$year."-".$month."-01' and '".$year."-".$month."-31'");
$news=$db->fetched_array();
?>
|
|
$count = 0;
for($i=0;$i<3;$i++){?>
for($x=0;$x<4;$x++){
if(($count+1) < 10) $c = "0".($count+1);
else $c = $count+1;
$db->sql_query("SELECT count(id) as count FROM `news` WHERE date between '".$year."-".$c."-01' and '".$year."-".$c."-31'");
$countnews=$db->fetched_array();
?>
| =$months[$count]?> |
}else{?>
&month==$c?> title="=$countnews[0]["count"]?> news item">=$months[$count]?>
|
}?>
$count++; }?>
}?>
|
|
|
 |
|
|
// InsertSubscriptionForm() ?>
include("subscr.php")?>
|
|
|

if(isset($_GET["ID"])){
$db->sql_query("SELECT * FROM `news` WHERE id=".$_GET["ID"]);
$news=$db->fetched_array();
?>
=$news[$i]["name"]?> (=date("F d,Y",strtotime($news[$i]["date"]))?>)
| =$news[0]["description"]?> |
}else{
for($i = 0 ; $i < count($news);$i++){
?>
=$news[$i]["name"]?> (=date("F d,Y",strtotime($news[$i]["date"]))?>)
=$news[$i]["short_description"]?>
[ class="bolder">Full article ]

}?>
}?>
|
|