File: /home/puthuppa/www/donation-cart.php.bak
<?php
ob_start();
session_start();
include('controlpanel/includes/toolBox.php');
include('donationcartaction.php');
/*google captcha*/
$sitekey = "6Lect6EUAAAAALTMGuzoU-hdnT1xpJbCQ8XtRDzI";
$secretkey = "6Lect6EUAAAAAJQHyvUc5Nh1bYYJz08YjgJmQDBi";
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Puthuppally Pally</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.png" type="image/x-icon">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="src/css/jquery.mmenu.all.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="main.css" rel="stylesheet">
<link href="responsive.css" rel="stylesheet">
<script src="js/jquery-1.11.1.min.js"></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
</head>
<body>
<?php include("header.php"); ?>
<div class="contain">
<div class="lay">
<div class="shead">
<div>Donation Cart</div>
</div>
</div>
</div>
<div class="contain bT pTB">
<div class="lay">
<div class="contain">
<form method="post" enctype="multipart/form-data" id="doantioncartform">
<div id="donate">
<ul>
<li class="l"><h5>Name</h5></li>
<li class="r"><input type="text" name="name" placeholder="Enter your name" class="ibox"></li>
<li class="l"><h5>Email ID</h5></li>
<li class="r"><input type="text" name="email" placeholder="Enter your email id" class="ibox"></li>
<li class="l"><h5>Phone</h5></li>
<li class="r"><input type="text" name="phone" placeholder="Enter your phone number" class="ibox"></li>
<!-- <li class="l"><h5>Message</h5></li>
<li class="r"><textarea name="message" placeholder="Enter you message" class="iarea"></textarea></li>
-->
<li class="l"><h5>Amount</h5></li>
<li class="r"><input type="text" name="amount" placeholder="Enter your amount" class="ibox"></li>
<li class="l"><h5>Purpose</h5></li>
<li class="r"><textarea name="purpose" placeholder="Enter you purpose" class="iarea"></textarea></li>
<!-- <li class="l"><h5> </h5></li>-->
<!-- <li class="r"><img src="captcha_code_file.php?rand=<?php //echo rand();?>" id='captchaimg'>-->
<!-- <span class="rFresh">Can't read the image? click <a href='javascript: refreshCaptcha();'>here</a> to refresh</span>-->
<!-- </li> -->
<!-- <li class="l"><h5>Captcha</h5></li>-->
<!-- <li class="r"><input type="text" name="captcha" placeholder="Captcha Code" class="ibox"></li>-->
<?php
//if(isset($mesg))
//{
//?>
<!-- <li class="l"><h5> </h5></li>-->
<!-- <li class="r">-->
<!-- <span class="message">
<?php // echo $mesg?></span>-->
<!-- </li>-->
<?php
// }
?>
<li class="l"><h5> </h5></li>
<li class="r"><div class="g-recaptcha" data-sitekey="<?php echo $sitekey;?>"></div></li>
<br/>
<li class="l no-mb"><h5> </h5></li>
<li class="r"><input type="submit" value="Make Payment" class="di-btn"></li>
</ul>
</div>
</form>
</div>
</div>
</div><div class="clear"></div>
<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>
<script>
// When the browser is ready...
$(function() {
// Setup form validation on the #register-form element
$("#doantioncartform").validate({
// Specify the validation rules
rules: {
name: "required",
email: {
required: true,
email: true
},
phone: "required",
message: {
required: true,
minlength: 5
},
amount:"required",
purpose: {
required: true,
minlength: 5
},
captcha: "required"
},
// Specify the validation error messages
messages: {
name: "Please enter your name",
email: "Please enter a valid email address",
message: "Please enter your message",
captcha: "Please Enter the validation code"
},
submitHandler: function(form) {
form.submit();
}
});
});
</script>
<?php include("footer.php"); ?>
<div class="banned-buttons"><a class="ban-b1 liveStreamOpen" id="mute"><img src="css/elements/live.png" alt="LIVE STREAM" draggable="false">LIVE STREAM</a>
<a href="donation-cart.php" class="ban-b2"><img src="css/elements/donate.png" alt="NERCHAS" draggable="false">NERCHAS</a>
<a href="prayer-request.php" class="ban-b3"><img src="css/elements/prayer.png" alt="PRAYER REQUEST" draggable="false">PRAYER REQUEST</a></div>
<section class="liveStreamWindow poparticle">
<div class="popsection">
<div class="container">
<!---
<div class="streamFrame"><iframe width="550" height="350" src="http://eventsonlive.com/live_player/live/webstream_CDNnetwork/index.php" scrolling="yes"allowfullscreen="allowfullscreen"
mozallowfullscreen="mozallowfullscreen"
msallowfullscreen="msallowfullscreen"
oallowfullscreen="oallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen"></iframe><div class="streamClose"><i class="fa fa-minus closepup"></i></div>
--->
<div class="streamFrame"><iframe width="550" height="350" src="http://puthuppallylive.com/" scrolling="yes" allowfullscreen="allowfullscreen"
mozallowfullscreen="mozallowfullscreen"
msallowfullscreen="msallowfullscreen"
oallowfullscreen="oallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen"></iframe><div class="streamClose"><i class="fa fa-minus closepup"></i></div></div>
</div>
</div>
</section>
<div class="popoverlay"></div>
<script>
$('.liveStreamOpen').click(function() {
$('.popoverlay').addClass('active');
$('.liveStreamWindow').delay(300).queue(function(){
$(this).addClass('active').clearQueue();
});
});
$('.closepup').click(function() {
$('.liveStreamWindow').removeClass('active');
$('.popoverlay').removeClass('active');
});
$(".banned-buttons a").hover(function(){
var a = $(this).width();
$(this).animate({left: -a}, 500);
},function(){
$(this).animate({left: '-44px'}, 400);
});
$("#mute").click(function(){
var audio = document.getElementById('background_audio');
audio.pause();
});
</script>
</body>
</html>
<?php
ob_end_flush();
?>