Server IP : 50.63.8.133 / Your IP : 3.16.125.156 Web Server : Microsoft-IIS/10.0 System : Windows NT P3NWVPWEB032 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : IWPD_10999(xformtec) ( 0) PHP Version : 5.4.45 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : G:/PleskVhosts/xform.in/madhurivivah.com/ |
Upload File : |
Current File : G:/PleskVhosts/xform.in/madhurivivah.com/purchase-membership.php |
<?php
session_start();
//Database Configuration File
include('include/config.php');
error_reporting(0);
?>
<?php
if (isset($_SESSION['email']) && isset($_SESSION['id']) && $_SESSION['id'] != '') {
$sqlses = "SELECT * FROM member WHERE id=" . $_SESSION['id'];
$resses = mysqli_query($con, $sqlses);
$rowses = mysqli_fetch_array($resses);
if (isset($_GET['member_profile_id']) && $_GET['member_profile_id'] != '') {
$member_profile_id = $_GET['member_profile_id'];
$sql = "SELECT * FROM member_profile WHERE member_profile_id='$member_profile_id'";
$res = mysqli_query($con, $sql);
$row = mysqli_fetch_array($res);
}
}
// echo $_SESSION['username'];
?>
<?php
if (isset($_GET['id']) && $_GET['id'] != '') {
$id = $_GET['id'];
$sql3 = "SELECT * FROM membership WHERE id='$id'";
$res3 = mysqli_query($con, $sql3);
$row3 = mysqli_fetch_array($res3);
}
?>
<?php
if (isset($_POST['submit'])) {
$membership_id = $_POST['membership_id'];
$user_id = $_POST['user_id'];
$start_date = $_POST['start_date'];
$expiry_date = $_POST['expiry_date'];
$plan_name = $_POST['plan_name'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email = $_POST['email'];
$mobile_number = $_POST['mobile_number'];
$amount = $_POST['amount'];
$status = 1;
$query = mysqli_query($con, "insert into membership_user( membership_id,user_id,start_date,expiry_date,first_name,last_name,email,mobile_number,amount,plan_name,status) values('$membership_id','$user_id ','$start_date','$expiry_date','$first_name','$last_name','$email','$mobile_number','$amount','$plan_name','$status')");
if ($query) {
echo "<script>
alert('Please Wait..!!!');
window.location.assign('https://pmny.in/0IucDDK3ff3c');
</script>";
} else {
$error = "Something went wrong . Please try again.";
}
}
?>
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<!-- Meta Tags -->
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<!-- Page Title -->
<title>MADHURI VIVAH SANSTHA</title>
<!-- Favicon and Touch Icons -->
<link href="images/favicon.png" rel="shortcut icon" type="image/png">
<link href="images/apple-touch-icon.png" rel="apple-touch-icon">
<link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
<link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114">
<link href="images/apple-touch-icon-144x144.png" rel="apple-touch-icon" sizes="144x144">
<!-- Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/jquery-ui.min.css" rel="stylesheet" type="text/css">
<link href="css/animate.css" rel="stylesheet" type="text/css">
<link href="css/css-plugin-collections.css" rel="stylesheet" />
<!-- CSS | menuzord megamenu skins -->
<link id="menuzord-menu-skins" href="css/menuzord-skins/menuzord-boxed.css" rel="stylesheet" />
<!-- CSS | Main style file -->
<link href="css/style-main.css" rel="stylesheet" type="text/css">
<!-- CSS | Theme Color -->
<link href="css/colors/theme-skin-orange.css" rel="stylesheet" type="text/css">
<!-- CSS | Preloader Styles -->
<link href="css/preloader.css" rel="stylesheet" type="text/css">
<!-- CSS | Custom Margin Padding Collection -->
<link href="css/custom-bootstrap-margin-padding.css" rel="stylesheet" type="text/css">
<!-- CSS | Responsive media queries -->
<link href="css/responsive.css" rel="stylesheet" type="text/css">
<!-- CSS | Style css. This is the file where you can place your own custom css code. Just uncomment it and use it. -->
<!-- <link href="css/style.css" rel="stylesheet" type="text/css"> -->
<!-- external javascripts -->
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- JS | jquery plugin collection for this theme -->
<script src="js/jquery-plugin-collection.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="">
<div id="wrapper" class="clearfix">
<!-- preloader -->
<?php //include_once('preloader.php');
?>
<?php include_once('include/header.php'); ?>
<!-- start main-content -->
<div class="main-content">
<!-- Section: home -->
<section id="home" class="divider bg-lighter">
<div class="display-table">
<div class="display-table-cell">
<div class="container" style="background-color:#FFB300;">
<div class="row">
<div class="col-md-6 col-md-push-3">
<div class="text-center mb-60"><a href="#" class=""><img alt="" src="images/bg/bg999.jpg"></a></div>
<h4 class="text-theme-colored mt-0 pt-5">Purchase Membership Plan (Profile ID:<?php if (isset($row)) {
echo $row['member_profile_id'];
} elseif (isset($rowses)) {
echo $rowses['member_profile_id'];
} else {
if (isset($row1)) {
echo $row1['member_profile_id'];
}
} ?>)</h4>
<hr>
<p style="color:brown;">आपल्या पसंतीचा जोडीदार शोधण्यासाठी
आजच सुरुवात करूया.</p>
<p>
<?php if ($msg) { ?>
<div class="alert alert-success" role="alert">
<strong>Well done!</strong> <?php echo htmlentities($msg); ?>
</div>
<?php } ?>
<!---Error Message--->
<?php if ($error) { ?>
<div class="alert alert-danger" role="alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>
</div>
<?php } ?></p>
<?php
if ($ermsg) {
?>
<div class="alert alert-danger" role="alert">
<?php echo htmlentities($ermsg); ?>
</div>
<?php
}
?>
<table>
<tr>
<td>
<h4> Plan Name:</h4>
</td>
<td>
<h4><?php echo htmlentities($row3['plan_name']); ?></h4>
</td>
</tr>
<tr>
<td>
<h4> Membership Plan Price:</h4>
</td>
<td>
<h4><?php echo htmlentities($row3['plan_price']); ?>/-</h4>
</td>
</tr>
<tr>
<td>
<h4> Plan Validity:</h4>
</td>
<td>
<h4><?php echo htmlentities($row3['plan_validity']); ?></h4>
</td>
</tr>
<tr>
<td>
<h4> Number Of Profile</h4>
</td>
<td>
<h4><?php echo htmlentities($row3['number_profile']); ?>Profile</h4>
</td>
</tr>
<tr>
<td>
<h4><?php echo htmlentities($row3['plan_description']); ?></h4>
</td>
</tr>
</table>
<form name="postForm" action="" method="POST">
<input type="hidden" name="txnid" value="<?php echo $txnid = time() . rand(1000, 99999); ?>" />
<input type="hidden" id="postId" name="plan_name" value="<?php if (isset($row3)) {
echo $row3['plan_name'];
}
?>">
<input type="hidden" id="postId" name="amount" value="<?php if (isset($row3)) {
echo $row3['plan_price'];
}
?>">
<div class="row">
<div class="form-group col-md-12">
<label for="form_username_email" style="color:brown;">Enter Your First Name</label>
<input id="form_username_email" name="first_name" class="form-control" type="text" value="<?php if (isset($res)) {
echo $res['first_name'];
}
?> " required>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="form_username_email" style="color:brown;">Enter Your Last Name</label>
<input id="form_username_email" name="last_name" class="form-control" type="text" value="<?php if (isset($row)) {
echo $row['last_name'];
}
?> " required>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="form_password" style="color:brown;">Primary Email</label>
<input id="form_password" name="email" class="form-control" value="<?php if (isset($row)) {
echo $row['email'];
}
?> " type="email">
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="form_password" style="color:brown;">Primary Mobile Number</label>
<input id="form_password" name="mobile_number" class="form-control" type="number" value="<?php if (isset($row)) {
echo $row['mobile_number'];
}
?> ">
</div>
</div>
<div class="checkbox pull-left mt-15">
<label for="form_checkbox">
<input id="form_checkbox" name="form_checkbox" type="checkbox">
Red Privacy Policy </label>
</div>
<div class="clear text-center pt-10">
<button class="btn btn-dark btn-lg btn-block no-border mt-15 mb-15" data-bg-color="#C62828" name="submit" type="submit" onclick="pay_now()">Parchase Now</button>
<button class="btn btn-dark btn-lg btn-block no-border mt-15 mb-15" data-bg-color="black" name="submit" type="reset">Reset</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- end main-content -->
<!-- Footer -->
<a class="scrollToTop" href="#"><i class="fa fa-angle-up"></i></a>
</div>
<?php include_once('include/footer.php'); ?>
<!-- end wrapper -->
<!-- Footer Scripts -->
<!-- JS | Custom script for all pages -->
<script src="js/custom.js"></script>
</body>
</html>