<?php
		include("dbconnect.php");
?>


<!DOCTYPE html>
<html lang="en">

  <head> 
  <link rel="icon" href="images/logo.jpeg">

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="<?php 
	if(isset($_REQUEST["news_id"])) 
	{  $news_id=$_REQUEST["news_id"];  
	if (is_numeric($news_id)) 
	{ 
	  $stmt = $dbh->prepare("SELECT * FROM news_activities WHERE publish ='Yes' and language='English' and news_id=:news_id"); 
	  $stmt->execute(array(":news_id"=>$news_id));
	   $row=$stmt->fetch(PDO::FETCH_ASSOC);  
	   echo $row['news_title'];	 
	    }  
		}		
	
	?>" />
   
    <meta name="author" content="kokar.org">
    
	 <!-- Bootstrap Core CSS -->
    

    < <title><?php 
	if(isset($_REQUEST["news_id"])) 
	{  $news_id=$_REQUEST["news_id"];  
	if (is_numeric($news_id)) 
	{ 
	  $stmt = $dbh->prepare("SELECT * FROM news_activities WHERE publish ='Yes' and language='English' and news_id=:news_id"); 
	  $stmt->execute(array(":news_id"=>$news_id));
	   $row=$stmt->fetch(PDO::FETCH_ASSOC);  
	   echo $row['news_title'];	 
	    }  
		}		
	
	?></title>

    <!-- Bootstrap core CSS -->
    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/modern-business.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124165845-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-124165845-2');
</script>


<style>
.topmenu {

font-size:12px;
text-align:right;
}
.topmenu div {

}
.topmenu a {
margin-left:12px;
text-decoration:none;
}
.sticky-wrapper{
height:auto;
}

     .cse .gsc-control-cse,
     .gsc-control-cse {
      background-color:transparent !important;
	  border: transparent !important;
      padding-right: 0 !important;
    }

</style>

  </head>

  <body>

    <!-- Navigation -->
   
     <nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark fixed-top gradient" >
    <div class="container">
    <a class="navbar-brand" href="index.php"><img src="images/logo.jpeg" style="max-height: 60px;"></a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor03" aria-controls="navbarColor03" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarColor03">
      <ul class="navbar-nav ml-auto">
      <li class="nav-item ">
              <a class="nav-link" href="index.php">Home</a>
            </li>
			<li class="nav-item ">
              <a class="nav-link" href="products.php">Products</a>
            </li>
			 <li class="nav-item ">
              <a class="nav-link" href="services.php">Services</a>
            </li>
             
			 <li class="nav-item active">
              
                <a class="nav-link" href="news.php">News</a>
               
            </li>
            <li class="nav-item">
              <a class="nav-link" href="about.php">About</a>
            </li>
      
			 
            <li class="nav-item">
              <a class="nav-link" href="contact.php">Contact</a>
            </li>
           
           
          </ul>
    <div class="col-md-4 text-right" style="color:black; padding-right: 0px;padding:0px;padding-left: 0px;line-height: 0em;">
 <gcse:search class="gsc-control-cse"></gcse:search>
 </div>
  </div>
    </div>
    </nav>


<br/>

    <!-- Page Content -->
    <div class="container">

      <!-- Page Heading/Breadcrumbs -->
      
      <?php 
 $stmt = $dbh->prepare("SELECT * FROM news_activities WHERE publish ='Yes' and language='English' and news_id=:news_id");
 $stmt->execute(array(":news_id"=>$news_id));
 $row=$stmt->fetch(PDO::FETCH_ASSOC);
   
   
echo"

<a href='news_detail.php?news_id=".$row['news_id']."'><h2 class='mt-4 mb-3'>".$row['news_title']."
       
</h2></a>

   ";
?>  
      
     

      <ol class="breadcrumb">
        <li class="breadcrumb-item">
          <a href="index.php">Home</a>
        </li>
        <li class="breadcrumb-item active"> 
		<?php 
 
echo"

".$row['news_title']."

";
?>
</li>
      </ol>

      <div class="row">

        <!-- Post Content Column -->
        <div class="col-lg-8">



 <?php 

   
echo"

<a href='news_detail.php?news_id=".$row['news_id']."'><img class='img-fluid rounded' width='100%' src='images/news/".$row['news_image']."' alt=''/></a>


   ";
?>  
 <hr>

 <?php 
 
echo"



			   <p><csmall>".$row['publish_date']."</csmall></p>
		<hr>
              <p style='text-align: justify;'>".$row['news_detail']."</p>

   ";
?>  

<!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox_5a0q"></div>

</div>
        <!-- Sidebar Widgets Column -->
        <div class="col-md-4">

         
          <!-- Categories Widget -->
          <div class="card my-4" style="margin-top:0 !important">
            <h5 class="card-header">More Activites and News</h5>
            <div class="card-body">
              <div class="row">
                <div class="col-lg-12">
                  <ul class="list-unstyled mb-0">
                    
  <?php $query = $dbh->prepare("SELECT * FROM news_activities where publish='Yes' and language='English' order by rand() desc limit 3");
 $query->execute();   
	 
	for($i=0; $row = $query->fetch(); $i++)
	{ 
	   echo       "<li><a href='news_detail.php?news_id=".$row['news_id']."'>".$row['news_title']."</a>
                    </li>";	
	} 
	
                    ?>
              
                     
                   
                  </ul>
                </div>
                
              </div>
            </div>
          </div>

          <!-- Side Widget -->
          <div class="card my-4" style="margin-top:0 !important">
            <h5 class="card-header">About Us</h5>
            <div class="card-body">
              <div class="row">
                <div class="col-lg-12">
                    
  <?php $query = $dbh->prepare("SELECT * FROM about where publish='Yes' and language='English'");
 $query->execute();   
	 
	for($i=0; $row = $query->fetch(); $i++)
	{ 
	   echo  $row['about_detail'];   
	} 
	
        
			 
			       
                     ?> 
                  
                </div>
                
              </div>
            </div>
          </div>

        </div>

      </div>
      <!-- /.row -->

    </div>
    <!-- /.container -->

    <!-- Footer -->
     <?php
		include("footer.php");
?>


    <!-- Bootstrap core JavaScript -->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
  (function() {
    var cx = 'a5dd05eba34294ef0';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
  
  window.onload = function(){
document.getElementById('gsc-i-id1').placeholder = 'Search this website ...';
};
</script>

<!-- WhatsHelp.io widget -->
<script type="text/javascript">
    (function () {
        var options = {
            facebook: "1385089458207746", // Facebook page ID
            call_to_action: "Message us", // Call to action
            position: "right", // Position may be 'right' or 'left'
        };
        var proto = document.location.protocol, host = "whatshelp.io", url = proto + "//static." + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script>
<!-- /WhatsHelp.io widget -->


<!-- Go to www.addthis.com/dashboard to customize your tools --> 
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5b76a109d69a33e5"></script>
  </body>

</html>
