
<?php require("inc/classes/class.main.php");
$obj=new main();
  $getMenu=$obj->getMenuType();
 $menu=$getMenu[0]['menutype'];
$k=0;
?>
<?php 
          $actual_link = "$_SERVER[REQUEST_URI]";
		  $params = $_SERVER['QUERY_STRING'];
		  $id = substr($actual_link, -1); 
    ?>
<?php
 $homeflag="0";
 $homeflag=($page[0]['permalink'] == $defaulthome[0]['permalink'])?"1":"0";
    $url=basename($_SERVER['REQUEST_URI']);

  //require("inc/classes/class.main.php");
   $protocol = @$_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
	$address= $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
 // echo "DDF".$_SERVER['HTTP_REFERER'];
    $con_obj=new controller();
 	
   $page=$con_obj->controller($url); 

    $defaulthome= $obj->getDefaultHome();
    $homeflag="0";
	
       if(count($page)==0 || $page[0]['permalink']=="home") {
	   $page=$defaulthome; $homeflag="1";
	   $content=$page[0]['content'];
	   $banner=$page[0]['banner'];
	  }else{
		 $content=$page[0]['content'];
		 $banner=$page[0]['banner'];
		 
 	  }
	 $cnt=$obj->getthumbgalleryById();
	  $vid=$obj->getvideoById();
	  $news=$obj->getnewsById();
 	 
	   include("inc/inc_top.php");  
 
  				?>


<body>
<?php
 include("inc/banners.php");  
 
?>
<div class="bmd_ban_left"><img src="images/bmd_ban2.gif" alt="BookMyDarshan" title="BookMyDarshan"/></div>
<div class="container">
<!--------------- Header menu ------------------->
<?
 include("inc/inc_header.php");  
 
?>
<? 

$qr = mysql_query("select * from category where id='".$_GET['cat_id']."' ");
		  // $qr = mysql_num_rows($resultss);
		   $rrs = mysql_fetch_array($qr);
		   
		   
		   
 
		   
		   
		   
		   ?>

<div class="news_headlines_block_left">
<div class="">
<h1><a href=""><?= $rrs['name']?></a> <div class="red_line"></div></h1>
<div class="clearflx"></div>

<? 
$qrs = mysql_query("select * from news where category_id='".$_GET['cat_id']."' order by id desc ");
		  // $qr = mysql_num_rows($resultss);
		   while($row = mysql_fetch_array($qrs)) {
?>

<div class="innter_page_news_block">
<h4><a href="news_page.php?news_id=<?= $row['id'];?>"><?= $row['title'];?></a></h4>
 

<span>-- Hyderabad
<?
 $dt=  $row['dateAdded']; 
 echo "Published:".date("d F Y h:i:s A", strtotime("$dt")) . "\n";
	?>
 </span>
<div class="clearflx"></div><bR />
<div class="text_news_block_img" ><img src="<?= $row['href'];?>" width="300" height="200" ></div>
<div class="text_news_block_text">
<div class="news_text" style="height:163px; overflow:hidden; margin-bottom:10px; text-align:justify;"><p><?= $row['content'];?></p></div>
<div class="red_btn"><a href="news_page.php?news_id=<?= $row['id'];?>">Read More</a></div>

</div>
<div class="clearflx"></div>
</div>

 <? } ?>

 

 

 


 





</div>

<div class="clearflx"></div>
</div>


 <?

include("inc/inc_right.php");
?>


<div class="clearflx"></div>
</div>
<div class="clearflx"></div>
</div>



 <?php
 
 include("inc/inc_footer.php");
 
 ?>
















</body>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script type="text/javascript">

  $(document).ready(function() {
	  $(".mobile_nav").hide();
  $('.close_icon').click(function() {
		$(".flash_news_block").hide('slow');
    });
	 $(".nav_icon").click(function() {
		
		$(".mobile_nav").toggle(500);
		
		});
	
});
</script>


<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="js/script.js"></script>
<script type="text/javascript">
 $(document).ready( function(){	
		var buttons = { previous:$('#lofslidecontent45 .lof-previous') ,
						next:$('#lofslidecontent45 .lof-next') };
						
		$obj = $('#lofslidecontent45').lofJSidernews( { interval : 4000,
												direction		: 'opacitys',	
											 	easing			: 'easeInOutExpo',
												duration		: 1200,
												auto		 	: false,
												maxItemDisplay  : 4,
												navPosition     : 'horizontal', // horizontal
												navigatorHeight : 32,
												navigatorWidth  : 80,
												mainWidth:980,
												buttons			: buttons} );	
	});
</script>


</html>
