<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Latest News Productions</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<meta name="keywords" content="Latest News Mangaluru, Mangaluru, Mangalore, News Mangalore, Kannada News, Latest News Productions" />
<meta name="description" content="News Website Provided by trinixtechnologies.com" />
<!-- Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet" />
<!-- Custom CSS -->
<link href="css/styles.css" rel="stylesheet" />
<!-- Core JS -->
<script src="js/jquery.js"></script>
<!-- <script src="js/like_unlike.js"></script>-->
<script src="js/bootstrap.min.js"></script>
<script src="scripts/responsive-switch.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="scripts/jquery.bootstrap.newsbox.min.js" type="text/javascript"></script>
<!-- custom Js -->
<?php
require 'connection.php';
// Variables for the first page hit
$start = 0;
$page_counter = 0;
$per_page = 1;
$next = $page_counter + 1;
$previous = $page_counter - 1;
// Check the page location with start value sent by get request and change variable values accordingly
if(isset($_GET['id'])){
$id = $_GET['id'];
$page_counter = $_GET['id'];
$id = $id * $per_page;
$next = $page_counter + 1;
$previous = $page_counter - 1;
}
//placeholder variable to store result
$result = null;
// query to get messages from messages table
$query =mysql_query("SELECT * FROM news_post WHERE id='$id'") or die(mysql_error());
$img_url = "settings/uploads/";
$row = mysql_fetch_array($query);
// store each row in result variable
$result[] = '<div class="col-md-12" style="padding-right:5%; align:center;" align="center">
<img src="'.$img_url.$row['photo'].'" width="300px" height="200px" class="img-responsive"/>
</div>
<div class="pull-right" style="font-size:12px; color:red;">'.$row['date'].'</div>
<br>
<p style="text-align:justify;">'.nl2br($row[6]).'</p>';
?>
</head>
<body class="">
<div class="container header-bg">
<div class="row">
<div class="col-md-3 col-sm-3 col-lg-3 col-xs-3">
<img src="images/logo.jpeg" style="width:30%;"/>
</div>
<style>
#searchtext{
display: block;
float:left;
width:88%;
margin-right:0px;
}
#searchbtn{
display: block;
float:left;
width:20%;
}
</style>
<div class="col-md-7 col-xs-7 col-lg-7 col-sm-7" style="margin-top:2%;">
<form name="" method="post" action="search.php">
<input type="text" name="subject" id="searchtext" placeholder="Search News" class="form-control" style="width:40%;" />
<input type="submit" name="submit" id="searchbtn" class="btn btn-warning" value="Submit" style="float:left;" />
</div>
</form>
<div class="col-md-2 col-xs-2 col-lg-2 col-sm-2" style="margin-top:2%;" >
<!-- <img src="images/mum.jpeg" style="float:right; width:20%; padding-right:5px;" />
<img src="images/lnlogo.jpg" style="float:right; width:20%; padding-right:5px;" />
<img src="images/vcr.png" style="float:right; width:35%; padding-right:5px; margin-top:-5%;" />-->
</div>
<div class="pull-right">
<script type="text/javascript">
var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var d_names = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var currentTime = new Date()
var day = currentTime.getDay()
var month = currentTime.getMonth()
var date = currentTime.getDate()
var year = currentTime.getFullYear()
document.write( d_names[day] + ", " + date + " " + m_names[month] + " " + year + ", ")
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
if (minutes < 10){
minutes = "0" + minutes
}
document.write(hours + ":" + minutes + " ")
if(hours > 11){
document.write("PM")
} else {
document.write("AM")
}
</script>
</div>
</div>
</div>
</div><!-- end of Container -->
<nav class="navbar navbar-default">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.php" class="current">Home</a></li>
<li><a href="crime.php">Crime Special</a></li>
<li><a href="politics.php">Politics</a></li>
<li><a href="sports.php">Sports</a></li>
<li><a href="blogs.php">Blogs</a></li>
<li><a href="wishes.php">Wishes</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="services.php">Services</a></li>
</ul>
</div>
</div>
</nav>
<div class="container bg-logo">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"> <span class="glyphicon glyphicon-list-alt"> </span><b><?php echo '<a style="color:blue; font-size:18px;">'.$row['subject'].'</a>'; ?></b></div>
<div class="table-bordered">
<table class="table table-striped">
<tbody>
<?php
for ($i=0; $i<count($result); $i++) {
echo"<tr><td>".$result[$i]."</td></tr>";
}
if(!(empty($row['youtube']))){
echo '<td style="color:red;"> Watch Vedio Here:<a href="'.$row['youtube'].'" target="_blank">'.$row['youtube'].'</a></td>';
}
?>
</tbody>
</table>
</div>
<?php
$id=$_GET['id'];
$sql1=mysql_query("SELECT * FROM multiple_pics where pic_id='$id'");
$img_url = "settings/uploads/";
if (mysql_num_rows($sql1)>0) {
echo '<h4> Related Images: </h4>';
}
while($array=mysql_fetch_array($sql1)){
echo '<div class="text-center">
<div class="col-md-2">
<div class="panel panel-warning">
<div class="panel-body">
<a class="fancybox" href="'.$img_url.$array['files'].'" data-fancybox-group="gallery">
<img src="'.$img_url.$array['files'].'" alt="" style="width:100%;" height="100px"/></a>
</div>
</div></div>
</div>';
}
?>
<div class="clearfix visible-xs"></div>
</div>
</div>
</div>
</div>
<footer id="footer">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="col-sm-4 footer">
<h4><i>Quick Links </i></h4>
<a href="crime.php">Crime Special</a><br />
<a href="sports.php">Sports</a><br />
<a href="politics.php">Politics</a><br />
<a href="services.php">Services</a><br />
<a href="about.php">About Us</a> <br />
<a href="blogs.php">Blogs</a><br />
</div>
<div class="col-sm-4 footer">
<h4><i>Contact Us </i></h4>
<p>Latest News Productions<br />
Quadras Compound,<br />
Opp. 5th Cross, Near Afco Building, Bejai Post,<br />
Bejai-Kapikad, Mangalore - 575 004.
</p>
<p>Tel: 0824 - 4281040 | Mob: +91 8197981372.<br />
E-mail: latestnewsmlr@gmail.com <br />
</div>
<div class="col-md-4 footer">
<h4><i>Follow Us On.</i> </h4>
<ul class="social-icons" style="margin-top:10%;">
<a href="https://www.facebook.com/Latestnewsproductions-116468242090195/?skip_nax_wizard=true" target="_blank" style="font-size:40px; margin-right:20px; float:left;"><i class="fa fa-facebook"></i></a>
<a href="https://plus.google.com/u/0/b/116789468993451672502/116789468993451672502" target="_blank" style="font-size:40px; margin-right:20px; float:left;"><i class="fa fa-google-plus"></i></a>
<a href="https://www.youtube.com/channel/UC9Puo-FWjo8fqPNn7tHXDwA" target="_blank" style="font-size:40px; margin-right:20px; float:left;"><i class="fa fa-youtube"></i></a>
</ul>
</div>
</div>
<div class="col-md-12">
<div class="pull-right">
<h6> Developed & Maintained By: <a href="#">Trinix Technologies Pvt. Ltd. </a></h6>
</div>
<h6> Copyright © - LatestNews 2016. </h6>
</div>
</div>
</div>
</footer><!--/#footer-->
<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="lib/jquery.mousewheel-3.0.6.pack.js"></script>
<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="source/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="source/jquery.fancybox.css?v=2.1.5" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
/*
* Simple image gallery. Uses default settings
*/
$('.fancybox').fancybox();
});
</script>
</body>
</html>