WebShell: t.me/oghbnz
<?php include 'includes/header.php';
session_start();
$completed_link=$_GET['completed_link'];
$sql18=$conn->query("SELECT * FROM completed_projects WHERE completed_link='$completed_link' ");
$completed_projects18=$sql18->fetch(PDO::FETCH_ASSOC);
$completed_id=$completed_projects18['id'];
?>
<div class="header-background-box half">
<div class="header-background" data-image-src="assets/images/innerbg.jpg">
<div class="webkit-and-moz-overlay-background">
<div class="container">
<div class="center-section">
<h2 class="section-title-border whiteTitleBorder">Ventures</h2>
</div>
</div>
</div>
</div>
</div>
<div class="site-map">
<div class="container">
<a href="index.php">Home</a>
<a>Ventures</a>
<a><?php echo $completed_projects18['location']; ?></a>
</div>
</div>
<section class="main-content">
<div class="container">
<div class="row">
<div class="col-md-9 col-sm-8">
<div class="product-cheader edit-marginBottom20 text-uppercase">
<div class="product-topicon">
<div class="col-md-12 edit-padding0">
<h4 class="product-title"><?php echo $completed_projects18['title']; ?></h4>
<span class="text-small"><i class="fa fa-map-marker icon"></i> <?php echo $completed_projects18['location']; ?></span>
</div>
</div>
</div>
<div class="product-item-slide">
<div id="item-images" class="owl-carousel">
<?php $sql19=$conn->query("SELECT * FROM completed_images WHERE completed_id='$completed_id' ");
while($completed_projects19=$sql19->fetch(PDO::FETCH_ASSOC)){ ?>
<div class="item">
<img src="images/completed_images/<?php echo $completed_projects19['image']; ?>" alt="">
</div>
<?php } ?>
</div>
<div id="item-thumbs" class="owl-carousel">
<?php $sql20=$conn->query("SELECT * FROM completed_images WHERE completed_id='$completed_id' ");
while($completed_projects20=$sql20->fetch(PDO::FETCH_ASSOC)){ ?>
<div class="item">
<img src="images/completed_images/<?php echo $completed_projects20['image']; ?>" alt="">
</div>
<?php } ?>
</div>
</div>
<div class="main-content edit-marginTop20">
<div class="edit-marginBottom20">
<h4 class="edit-marginBottom30">About <?php echo $completed_projects18['title']; ?></h4>
<p class="text-justify"><?php echo $completed_projects18['description1']; ?></p>
</div>
<div class="col-md-12 edit-marginTop20 edit-padding0">
<h4 class="edit-marginBottom30">Highlights</h4>
<?php $i=1; $sql21=$conn->query("SELECT * FROM completed_highlights WHERE completed_id='$completed_id' ");
while($completed_highlights21=$sql21->fetch(PDO::FETCH_ASSOC)){
$no_1=$sql21->rowCount();
$no=ceil($no_1);
if($no >= $i/2){
?>
<ul class="key-featured-list col-md-6">
<li><i class="fa fa-check enabled"></i><?php echo $completed_highlights21['title']; ?></li>
<?php }else{ ?>
<ul class="key-featured-list col-md-6">
<li><i class="fa fa-check enabled"></i><?php echo $completed_highlights21['title']; ?></li>
<?php } ?>
</ul>
<?php $i++; } ?>
</div>
<div class="col-md-12 edit-marginTop30 edit-padding0">
<h4 class="edit-marginBottom30">SALIENT FEATURES</h4>
<div class="property-featuresBody">
<?php $i=1; $sql22=$conn->query("SELECT * FROM completed_salient_features WHERE completed_id='$completed_id' ");
while($completed_salient_features22=$sql22->fetch(PDO::FETCH_ASSOC)){
$no_1=$sql21->rowCount();
$no=ceil($no_1);
if($no >= $i/2){ ?>
<ul class="property-features col-sm-6">
<li><i class="<?php echo $completed_salient_features22['icon_id']; ?>"></i><?php echo $completed_salient_features22['title']; ?></li>
<?php }else{ ?>
<ul class="property-features col-sm-6">
<li><i class="<?php echo $completed_salient_features22['icon_id']; ?>"></i><?php echo $completed_salient_features22['title']; ?></li>
<?php } ?>
</ul>
<?php $i++; } ?>
<!-- <ul class="property-features col-sm-6">
<li><i class="glyph-icon flaticon-building-land"></i> Proposed VUDA Layout</li>
<li><i class="glyph-icon flaticon-garden-fence"></i>Secured Compound Wall</li>
<li><i class="glyph-icon flaticon-store-with-showcase"></i>Entrance Arch </li>
<li><i class="glyph-icon fa fa-road"></i> 60 ft. & 40 ft. Black Top Roads</li>
<li><i class="glyph-icon fa fa-th"></i> Open Drainage System</li>
</ul>
<ul class="property-features col-sm-6">
<li><i class="glyph-icon fa fa-tint"></i> Water & Street Lights Facility</li>
<li><i class="glyph-icon flaticon-public-park"></i> Children’s Park</li>
<li><i class="glyph-icon fa fa-pagelines"></i> Avenue Plantation</li>
<li><i class="glyph-icon fa fa-industry"></i> Pollution-Free Zone</li>
</ul> -->
</div>
</div>
<div class="col-md-12 edit-marginBoth20 edit-padding0">
<?php $sql23=$conn->query("SELECT * FROM completed_location WHERE completed_id='$completed_id' ");
while($completed_location23=$sql23->fetch(PDO::FETCH_ASSOC)){ ?>
<h4 class="edit-marginBottom30">Location</h4>
<img src="images/completed_projects_images/<?php echo $completed_location23['image'] ?>" alt="" class="img-responsive img-thumbnail">
<?php } ?>
</div>
</div>
</div>
<div class="col-md-3 col-sm-4">
<aside>
<div class="sb-latest-posts sb-featured edit-margin0">
<h4 class="widget-title">Related Ventures</h4>
<ul>
<?php $sql24=$conn->query("SELECT * FROM completed_projects ORDER BY id ASC");
while($completed_projects24=$sql24->fetch(PDO::FETCH_ASSOC)){ ?>
<li><a href="completed_ventures_view/<?php echo $completed_projects24['completed_link']; ?>">
<img src="images/completed_projects_images/<?php echo $completed_projects24['image1'] ?>" alt="" class="image">
<div class="text-box">
<h5><?php echo $completed_projects24['title'] ?></h5>
<span class="title"><?php echo strip_tags(substr($completed_projects24['description1'],0,100)) ?> [...]</span>
</div>
</a></li>
<?php } ?>
<!-- <li><a href="#">
<img src="assets/images/content/property-thumbs-2.jpg" alt="" class="image">
<div class="text-box">
<h5>Title Comes Here</h5>
<span class="title">Lorem Ipsum is simply dummy text of</span>
</div>
</a></li>
<li><a href="#">
<img src="assets/images/content/property-thumbs-1.jpg" alt="" class="image">
<div class="text-box">
<h5>Title Comes Here</h5>
<span class="title">Lorem Ipsum is simply dummy text of </span>
</div>
</a></li>
<li><a href="#">
<img src="assets/images/content/property-thumbs-2.jpg" alt="" class="image">
<div class="text-box">
<h5>Title Comes Here</h5>
<span class="title">Lorem Ipsum is simply dummy text of</span>
</div>
</a></li> -->
</ul>
</div>
<div class="sb-persons">
<h4 class="widget-title">Quick Enquiry</h4>
<div class="person-item">
<div class="person-box">
<div class="person-content">
<div class="comment-respond">
<form method="POST" id="completed_form" class="comment-form">
<div class="row">
<div class="col-sm-12">
<div class="form-group"> <!-- Name field !-->
<input type="text" class="form-control" id="name" name="name" placeholder="Full Name">
</div>
<div class="form-group"> <!-- Email field !-->
<input type="email" class="form-control" id="email" name="email" placeholder="Your Email">
</div>
<div class="form-group"> <!-- Phone field !-->
<input type="number" class="form-control" id="phone" name="phone" placeholder="Your Phone Number">
</div>
</div>
<div class="col-sm-12">
<div class="form-group"> <!-- Time field !-->
<textarea class="form-control" id="message" name="message" placeholder="Message"></textarea>
</div>
</div>
<div class="col-md-4">
<img src="captcha_code_file.php?rand=" width="120" height="40" class="capcha" id='captchaimg' />
</div>
<div class="col-md-3">
<a href='javascript: refreshCaptcha();'><img style="background:#000000;" src="refresh.png" width="5" height="5" /></a>
</div>
<div class="col-md-6">
<div class="form-group">
<input type="text" name="captcha" />
</div>
</div>
<br>
<div class="col-sm-12 edit-marginTop10">
<button type="submit" name="submit" class="btn btn-primary btn-sm">Send Message</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</aside>
</div> <!-- END col -->
</div> <!-- END row -->
</div> <!-- END container -->
</section>
<?php include 'includes/footer.php'; ?>
<?php
if(isset($_POST['submit']))
{
if(empty($_SESSION['6_letters_code'] ) ||
strcasecmp($_SESSION['6_letters_code'], $_POST['captcha']) != 0)
{
echo "<script>alert('Invalid Security Code')</script>";
}else{
foreach ($_POST AS $key => $value) {
$_POST[$key] = addslashes($value);
}
$date = date("d-m-Y");
extract($_POST);
$sql_email=$conn->query("SELECT * FROM contact_details");
$sql_email1=$sql_email->fetch(PDO::FETCH_ASSOC);
$sql_name=$conn->query("SELECT * FROM site_logo");
$site_name_1=$sql_name->fetch(PDO::FETCH_ASSOC);
$name=$_POST['name'];
$phone_number=$_POST['phone'];
$to=$sql_email1['con_email'];
$from=$sql_email1['from_email'];
$p_email=$_POST['email'];
$message=$_POST['message'];
$sitename=$site_name_1['site_name'];
$message="Name : $name <br> Phone Number : $phone <br> Email-Id : $email <br> Message : $message";
$headers= "From : The Sender Name <".$from.">\r\n";
//$headers= "Reply-To: replyto@mail.com\r\n";
$headers.= "Content-type: text/html\r\n";
$subject="Customer Enquiry Mail of $sitename";
if (mail($to, $subject, $message, $headers)) {
echo "<script>alert('We have successfully received your Message and will get Back to you as soon as possible')</script>";
}else{
echo "<script>alert('Unable to send mail')</script>";
}
}
}
?>
<script type='text/javascript'>
function refreshCaptcha()
{
var img = document.images['captchaimg'];
img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;
}
</script>
<script src="admin/js/jquery-1.9.1.min.js"></script>
<script src="admin/js/jquery.validate.min.js"></script>
<script type="text/javascript">
$(function()
{
$("#completed_form").validate(
{
// Rules for form validation
rules:
{
name:
{
required: true
},
email:
{
required: true,
email: true
},
phone:
{
required: true,
digits: true,
minlength : 9,
maxlength : 14
},
subject:
{
required: true
},
message:
{
required: true
}
},
// Messages for form validation
messages:
{
name:
{
required: 'Please enter a name'
},
email:
{
required: 'Please enter a Email-Id',
email: 'Please enter a valid Email-Id'
},
phone:
{
required: 'Please enter a phone number',
digits: 'Please enter a valid phone number',
minlength : 'Invalid number',
maxlength : 'invalid numbeer'
},
subject:
{
required: 'Plese enter the subject'
},
message:
{
required: 'Plese enter the message'
}
},
// Do not change code below
errorPlacement: function(error, element)
{
error.appendTo(element.parent());
}
});
});
</script>