<?php require "_header.php"; ?>
<style type="text/css">
		.ntitle {font-weight:bold;margin-bottom:10px;text-decoration:underline;font-size:14px;color:#000099;display:block;}
		.newsfile {text-align:left;font-size:12px;}
		.ndesc {text-align:left;display:block;width:100%;margin-bottom:10px;margin-left:25px;}
</style>
<?php
	if(isset($_REQUEST['ID']) && !empty($_REQUEST['ID']))
			$news_id = Escape($_REQUEST['ID']);
	else
			$news_id = 1;	
					
	$sql = "SELECT * FROM cms_circularmaster WHERE circular_id = ".$news_id;
	$result = dbQuery($sql); 
	$objnews = dbObject($result);
	
	$circular_title=$objnews->circular_title;											
	$circular_type=$objnews->circular_type;											
	$circular_subject=$objnews->circular_subject;
	
	$circular_id=$objnews->circular_id;											
	$circular_file=$objnews->circular_file;	
	$createdon= date('d-m-Y',strtotime($objnews->createdon));	
	if($circular_type==1){
		$c_type = "News"; 
	}else if($circular_type==2)
	{
		$c_type = "Circular"; 
	}else if($circular_type==3){
		$c_type = "Notice";
	}		
	
?>
<div id="main-report" align="center">
				<span class="ntitle"><?php echo $c_type.' '.$createdon;?></span>
				<span class="left"><b>Subject:- </b><?php echo $circular_title;?></span><br/><br/>
				<span class="ndesc" style="float:left;"><b>Description:- </b><?php echo stripcslashes($circular_subject) ;?></span>
				<span class="left">
						<b>Download:</b><br/><br/>
						<ul class="newsfile">
						<li><a href="download-circular.php?ID=<?php echo $circular_id;?>&file=<?php echo $circular_file?>" title="<?php echo $circular_title;?>"><?php echo $circular_file;?></a><br/></li>
                   
	</ul>						
	</span>
<span class="right"><a href="loginhome.php">&laquo;&nbsp;Back to Circular listing</a></span>
</div><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<?php require "_footer.php";?>