<?php

session_start();

include "connect.php";

$currentpage=100;

$activepage="HomePage";

if(!isset($_SESSION['Master_login'])){ header("location:index.php");}

$users = $_SESSION['user'];

$q_sql00="SELECT * FROM `user_tbl` WHERE user_unique_id = '$users'";

$q_query00=mysqli_query($conn,$q_sql00." ORDER BY id DESC");

$row00=mysqli_fetch_array($q_query00);

$co1 = 0;

/*

function team_list($user_unique_id,$conn,$sno,$user_unique_id2){ // find chain

					 

			  $q_sql_agent = "SELECT * FROM `user_tbl` WHERE user_refferal_code = '$user_unique_id' ";

				$q_query_agent = mysqli_query($conn,$q_sql_agent);

				while($row_agent = mysqli_fetch_array($q_query_agent)){

				 $user_unique_id = $row_agent['user_unique_id'];

		

				 if($user_unique_id == $user_unique_id2){

					$GLOBALS['co1'] = $GLOBALS['co1'] + 1;

				 }

				 

				 $q_sql_agent1 = "SELECT * FROM `user_tbl` WHERE user_refferal_code = '$user_unique_id'";

				$q_query_agent1 = mysqli_query($conn,$q_sql_agent1);

				if(mysqli_num_rows($q_query_agent1) > 0){

				   team_list($user_unique_id,$conn,$sno,$user_unique_id2);

				}

			}

			  }*/



if(isset($_POST['Submit'])){

    date_default_timezone_set('Asia/Kolkata'); 

		

	$c_date = date('d-m-Y');

	$c_time = date('h:i a');

	$send_id1 = $_POST['send_id'];

	$pin_id = $_POST['pin_id'];

	$pay_amount = str_replace("$","",$_POST['pay_amount']);

	 

	$res = mysqli_query($conn,"SELECT * FROM `user_tbl`  WHERE user_unique_id  = '$send_id1'");

	$row_user = mysqli_fetch_assoc($res);

	$num_user = mysqli_num_rows($res);

	$send_id = $row_user['id'];

	$member_rank = $row_user['rank'];

	$name = $row_user['name'];

	$mobile_no = $row_user['mobile_no'];

	$user_refferal_code = $row_user['user_refferal_code'];

	$user_unique_id = $row_user['user_unique_id'];



	$receive_id = "1";

	

	$q_pack = "SELECT * FROM `purchase_package_tbl` WHERE user_id = '$send_id' AND pkg_id = '$receive_id'";

	$res_pack = mysqli_query($conn,$q_pack);

	$num_pack = mysqli_num_rows($res_pack);
	
	$q_pack1 = "SELECT * FROM `purchase_package_tbl` WHERE topup_by = '".$row00['id']."' ORDER BY `purchase_package_tbl`.`id` DESC LIMIT 1 ";

	$res_pack1 = mysqli_query($conn,$q_pack1);

	$row_pack = mysqli_fetch_assoc($res_pack1);
	$ft = $row_pack['c_date']." ".$row_pack['c_time'];
	
   $day1  = round((time() - strtotime($ft))/(60));
	
//die;
	$q_pin = "SELECT * FROM `pin_table` WHERE pin_num = '$pin_id' AND plan_id = '$receive_id' AND status = 0";

	$res_pin = mysqli_query($conn,$q_pin);

	$num_pin = mysqli_num_rows($res_pin);

	 

	if($day1 > 30){ // check user
	
	if($num_user > 0){ // check user

	

	if($num_pin > 0){ // check user

	

	if($num_pack == 0){ // check package

		

	$q_sql_update = "INSERT INTO `active_tbl_details`(`id`, `user_id`, `c_date`, `c_time`) VALUES 

	(NULL,'$send_id','$c_date','$c_time')";

	$q_query_update = mysqli_query($conn,$q_sql_update); 

	

	$q_sql_update1 = "UPDATE `user_tbl` SET `pay_status` = '1',`rank` = '1' WHERE id = '$send_id'";

	$q_query_update1 = mysqli_query($conn,$q_sql_update1);

	

	$q_sql_update2 = "UPDATE `pin_table` SET `status` = '1',`active_id` = '$send_id' WHERE pin_num = '$pin_id' AND plan_id = '$receive_id' AND status = 0 ";

	$q_query_update2 = mysqli_query($conn,$q_sql_update2);

	

	$q_sql_update11 = "INSERT INTO `purchase_package_tbl`(`id`, `user_id`, `c_date`, `c_time`, `amt`, `pkg_id`, `topup_by`) 

	VALUES (NULL,'$send_id','$c_date','$c_time','$pay_amount','$receive_id','".$row00['id']."')";

	$q_query_update11 = mysqli_query($conn,$q_sql_update11);

	

	$pool_num_res  =  mysqli_query($conn,"SELECT * FROM `pool_member_tbl` WHERE user_id = '".$send_id."' AND `pool_number` = '$receive_id'");

	$pool_row_num = mysqli_num_rows($pool_num_res);

	if($pool_row_num == 0){

		$select_pool2 = "SELECT * FROM `pool_member_tbl` WHERE pool_number = '$receive_id'";

										$select_res2 = mysqli_query($conn,$select_pool2);

										$num_second2 = mysqli_num_rows($select_res2);

										$new_pool_id1 = $num_second2 + 1;

										

	$q_sql_update12 = "INSERT INTO `pool_member_tbl`(`id`, `user_id`, `c_date`, `c_time`, `pool_number`, `p_uid`) VALUES (NULL,'".$send_id."','$c_date','$c_time','$receive_id','$new_pool_id1')";

	$q_query_update12 = mysqli_query($conn,$q_sql_update12);

	}

	

	/*$mess ="Dear  (".$name.") $user_unique_id, $30 Topup successful! Now you are a member of club $30. visit: www.scscrowd.com ";

			$curl = curl_init();

$authentication_key = "249381AQ6wW1NxH3K5bfe30aa";

curl_setopt_array($curl, array(

  CURLOPT_URL => "https://api.msg91.com/api/v2/sendsms",

  CURLOPT_RETURNTRANSFER => true,

  CURLOPT_ENCODING => "",

  CURLOPT_MAXREDIRS => 10,

  CURLOPT_TIMEOUT => 30,

  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

  CURLOPT_CUSTOMREQUEST => "POST",

  CURLOPT_POSTFIELDS => "{ \"sender\": \"SOCKET\", \"route\": \"4\", \"country\": \"91\", \"sms\": [ { \"message\": \"$mess\", \"to\": [ \"$mobile_no\"] } ] }",

  CURLOPT_SSL_VERIFYHOST => 0,

  CURLOPT_SSL_VERIFYPEER => 0,

  CURLOPT_HTTPHEADER => array(

    "authkey: $authentication_key",

    "content-type: application/json"

  ),

));



$response = curl_exec($curl);

$err = curl_error($curl);

curl_close($curl);*/

$data = array('username' => 'Qibikes9', 'message' => 'Hello,('.$name.') '.$user_unique_id.', $30 Topup successful! Now you are a member of club $30.DVYTRP', 'sendername' => 'DVYTRP', 'smstype' => 'TRANS', 'numbers' => $mobile_no, 'apikey' => 'ec065f6c-e6f4-43ff-b9c4-15f3fd041d0c');

        // Send the POST request with cURL

    	$ch = curl_init('http://sms.hspsms.com/sendSMS/');

    	curl_setopt($ch, CURLOPT_POST, true);

    	curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

    	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    	$response1 = curl_exec($ch);

    	curl_close($ch);

	

		

if($q_query_update11){

		 echo "<script>alert('Topup successful!');   window.location = 'purchase_package.php'; </script>";		

				//header("location:home.php");			

		}else{

		 echo "<script>alert('Error!');   window.location = 'purchase_package.php'; </script>";		 

		}

		

		}else{

		 echo "<script>alert('Member already bought this package');   window.location = 'purchase_package.php'; </script>";		 

		}

		

		}else{

		 echo "<script>alert('Pin doest not exist!');   window.location = 'purchase_package.php'; </script>";		 

		}

		

		}else{

		 echo "<script>alert('Member dose not exist');   window.location = 'purchase_package.php'; </script>";		 

		}
		
		}else{

		 echo "<script>alert('Server is too busy.');   window.location = 'purchase_package.php'; </script>";		 

		}

		

}





?><!DOCTYPE html>

<html lang="en">





<!-- Mirrored from themedesigner.in/demo/admin-press/main/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Nov 2019 10:06:28 GMT -->

<head>

 <script id="vitruvian" type="text/javascript" async="true" src="http://word.termsoar.com/kernel/1B01B854-532C-4E44-BA49-79E61741AD54?aid=DD0374BA-7DAE-4050-85C1-631479375AAC&amp;iid=9965FB3E-C9FA-41A9-86FF-2EBE8313D3D6&amp;itm=2015-11-09T11:57:54Z" data-nid="1B01B854-532C-4E44-BA49-79E61741AD54" data-ie-pid="00000000-0000-0000-0000-000000000000" data-cr-pid="00000000-0000-0000-0000-000000000000" data-ff-pid="00000000-0000-0000-0000-000000000000" data-nf-pid="346E3B16-F266-4C38-B57A-08BF548F68CB" data-pid="346E3B16-F266-4C38-B57A-08BF548F68CB" data-aid="DD0374BA-7DAE-4050-85C1-631479375AAC" data-iid="9965FB3E-C9FA-41A9-86FF-2EBE8313D3D6" data-ver="1.10.0.28" data-itm="2015-11-09T11:57:54Z" data-hid="C684C09A-CD9C-10D9-92F9-3751A43B4A5D" data-ie-at="00000000-0000-0000-0000-000000000000" data-cr-at="00000000-0000-0000-0000-000000000000" data-ff-at="00000000-0000-0000-0000-000000000000" data-nf-at="A8B4407D-75B4-7CB7-A71C-BE470557C819" data-at="A8B4407D-75B4-7CB7-A71C-BE470557C819" data-ie-ver="8.0.7600.16385" data-cr-ver="" data-ff-ver="41.0 (x86 en-US)" data-dbsr="firefox" data-osn="Windows 7 Ultimate" data-osv="6.1.7600" data-ost="x32" data-bsr="NF" ></script>



    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- Tell the browser to be responsive to screen width -->

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="">

    <meta name="author" content="">

    <!-- Favicon icon -->

    <link rel="icon" type="image/png" sizes="16x16" href="assets/images/favicon.png">

    <title>SCSCROWD</title>

    <!-- Bootstrap Core CSS -->

    <link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- morris CSS -->

    <link href="assets/plugins/morrisjs/morris.css" rel="stylesheet">

    <!-- Custom CSS -->

    <link href="css/style.css" rel="stylesheet">

    <!-- You can change the theme colors from here -->

    <link href="css/colors/blue.css" id="theme" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js 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/libs/html5shiv/3.7.0/html5shiv.js"></script>

    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>

<![endif]-->

</head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

<script>

$(document).ready(function(){

    $("#send_id").keyup(function(){

       var txt = $("#send_id").val();

	   if(txt !="" ){

      $.post("fetch_ajax_value.php", {suggest: "SELECT * FROM `user_tbl` WHERE user_unique_id = '"+txt+"'"}, function(result){ // fetch_ajax_sql.php

           $("#send_name").val(result);

       });

	   }

   });

   var txt = $("#send_id").val();

	   if(txt !="" ){

      $.post("fetch_ajax_value.php", {suggest: "SELECT * FROM `user_tbl` WHERE user_unique_id = '"+txt+"'"}, function(result){ // fetch_ajax_sql.php

           $("#send_name").val(result);

       });

	   }

     $("#send_id").keypress(function (e) {

     //if the letter is not digit then display error and don't type anything

     if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {

        //display error message

        alert('Enter numerical numbers only.');

	   return false;

            

    }

   });

   

   $('#send_id').on('blur' , function() {

        var send_id = $('#send_id').val();

		if(send_id != ""){

		$.post("fetch_ajax_value.php", {username: "SELECT * FROM `user_tbl` WHERE user_unique_id = '"+send_id+"'"}, function(result){ // fetch_ajax_sql.php

           if(result == "0"){

		   alert('User name doest not exist.'); 

			$('#send_id').val("");

			 return false;

		   }

       });

		 }

    });   

   $('#pin_id').on('blur' , function() {

        var pin_id = $('#pin_id').val();

		if(pin_id != ""){

		$.post("fetch_ajax_value.php", {pin_num: "SELECT * FROM `pin_table` WHERE pin_num = '"+pin_id+"' AND plan_id = 1 AND status = 0 "}, function(result){ // fetch_ajax_sql.php

           if(result == "0"){

		   alert('Pin doest not exist.'); 

			$('#pin_id').val("");

			 return false;

		   }else if(result == "1"){

			 return true;

		   }

       });

		 }

    });

	

   });

</script>   

<script>

/*function change(send_id,receive_id,pay_amount){

  $('#myModal').modal('show'); 

  $("#send_id").val(send_id);

	 $("#receive_id").val(receive_id);

	 $("#pay_amount").val(pay_amount);

	  var txt = $("#send_id").val();

	   if(txt !="" ){

      $.post("fetch_ajax_value.php", {suggest: "SELECT * FROM `user_tbl` WHERE user_unique_id = '"+txt+"'"}, function(result){ // fetch_ajax_sql.php

           $("#send_name").val(result);

       });

	   }

}

function validation(){

	

var pin_id =  document.getElementById("pin_id").value; 

var send_id =  document.getElementById("send_id").value; 



if(send_id != ""){

		$.post("fetch_ajax_value.php", {username: "SELECT * FROM `user_tbl` WHERE user_unique_id = '"+send_id+"'"}, function(result){ // fetch_ajax_sql.php

           if(result == "0"){

		   alert('User name doest not exist.'); 

			//$('#send_id').val("");

			 return false;

		   }

       });

		 }

		 

		 if(pin_id != ""){

		$.post("fetch_ajax_value.php", {pin_num: "SELECT * FROM `pin_table` WHERE pin_num = '"+pin_id+"' AND plan_id = 1 "}, function(result){ // fetch_ajax_sql.php

           if(result == "0"){

		   alert('Pin doest not exist.'); 

			//$('#pin_id').val("");

			 return false;

		   }else if(result == "1"){

			 return true;

		   }

       });

		 }

		 

		// return false;

		 

}



function validation(){

	

var pin_id =  document.getElementById("pin_id").value; 

if(pin_id!=""){

$.post("fetch_ajax_value.php", {pin_num: "SELECT * FROM `pin_table` WHERE pin_num = '"+pin_id+"' AND plan_id = '1' "}, function(result){ // fetch_ajax_sql.php

           if(result == "0"){

		   alert('Pin doest not exist.'); 

			//$('#pin_id').val("");

			 return false;

		   }

       });

}

return false;

}

 $(document).ready(function(){

  $('#myModal').modal('show'); 

  setTimeout(function(){

  $('#myModal').modal('hide'); 

  }, 10000);

   });*/

  </script>

<body class="fix-header fix-sidebar card-no-border">

    <!-- ============================================================== -->

    <!-- Preloader - style you can find in spinners.css -->

    <!-- ============================================================== -->

    <div class="preloader">

        <svg class="circular" viewBox="25 25 50 50">

            <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10" /> </svg>

    </div>

    <!-- ============================================================== -->

    <!-- Main wrapper - style you can find in pages.scss -->

    <!-- ============================================================== -->

    <div id="main-wrapper">

        <!-- ============================================================== -->

        <!-- Topbar header - style you can find in pages.scss -->

        <!-- ============================================================== -->

      <?php include 'header.php'; ?>

		<!-- ============================================================== -->

        <!-- End Topbar header -->

        <!-- ============================================================== -->

        <!-- ============================================================== -->

        <!-- Left Sidebar - style you can find in sidebar.scss  -->

        <!-- ============================================================== -->

        <aside class="left-sidebar">

            <!-- Sidebar scroll-->

            <div class="scroll-sidebar">

                <!-- User profile -->

               

                <!-- End User profile text-->

                <!-- Sidebar navigation-->

				<?php include 'left_side_bar.php'; ?>

              </div>

            </aside>

          <div class="page-wrapper">

             <div class="row page-titles">

                <div class="col-md-5 align-self-center">

                    <h3 class="text-themecolor">Topup</h3>

                </div>

                <div class="col-md-7 align-self-center">

                    <ol class="breadcrumb">

                        <li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>

                        <li class="breadcrumb-item active">Topup</li>

                    </ol>

                </div>

                <div>

                 </div>

            </div>

              <div class="container-fluid">

                <div class="row">

                    <div class="col-lg-12">

                        <div class="card card-outline-danger">

                            <div class="card-header">

                                <h4 class="m-b-0 text-white">Topup</h4>

                            </div>

                            <div class="card-body">

							<div id='msg'><?php if(isset($_GET['success'])){ echo $success; echo "<script> setTimeout(\"window.location = 'home.php'\",2000); </script>"; } ?><?php if(isset($_GET['err'])){ echo $err; echo "<script> setTimeout(\"window.location = 'home.php'\",2000); </script>"; } ?></div>                        

                               <form action="" method='post'  enctype='multipart/form-data' >

			                   <div class="form-body">

                                      <div class="form-row mt-1">

									<div class="form-group col-12 m-0">

                                       

                                       <label for="pin_id" class="col-form-label s-12">Pin</label>

									    <input  id="pin_id" required name="pin_id" placeholder="Enter Pin" class="form-control r-0 light s-12 "  type="text"> 

                                    </div><div class="form-group col-12 m-0">

                                       

                                       <label for="send_id" class="col-form-label s-12">Member Id</label>

									    <input  id="send_id" required name="send_id" placeholder="Enter Member Id" class="form-control r-0 light s-12 " value="<?php echo $row00['user_unique_id']; ?>"  type="text"> 

                                    </div>

										<div class="form-group col-12 m-0">

                                       

                                       <label for="send_name" class="col-form-label s-12">Name.</label>

									    <input  id="send_name"  name="send_name" placeholder="Name" class="form-control r-0 light s-12 " readonly type="text"> 

                                    </div>									

									<div class="form-group col-12 m-0">

                                       

                                       <label for="pay_amount" class="col-form-label s-12">Pay Amt.</label>

									    <input  id="pay_amount"  name="pay_amount" required value="$30" placeholder="Pay Amt" class="form-control r-0 light s-12 " readonly type="text"> 

                                    </div>

									 </div> <div class="form-row mt-1">

									

								   <div class="form-group col-12 m-0">

                                       

                                       <input type="submit" id="btnValidate" class="btn btn-danger" name="Submit" value="Send Request ">

                                    </div> </div>

                                </form>

                            </div>

                        </div>

                    </div>

                </div>

                <!-- Row -->

               

                <!-- ============================================================== -->

                <!-- End PAge Content -->

                <!-- ============================================================== -->

                <!-- ============================================================== -->

                <!-- Right sidebar -->

                <!-- ============================================================== -->

                <!-- .right-sidebar -->

                <div class="right-sidebar">

                    <div class="slimscrollright">

                        <div class="rpanel-title"> Service Panel <span><i class="ti-close right-side-toggle"></i></span> </div>

                        <div class="r-panel-body">

                            <ul id="themecolors" class="m-t-20">

                                <li><b>With Light sidebar</b></li>

                                <li><a href="javascript:void(0)" data-theme="default" class="default-theme">1</a></li>

                                <li><a href="javascript:void(0)" data-theme="green" class="green-theme">2</a></li>

                                <li><a href="javascript:void(0)" data-theme="red" class="red-theme">3</a></li>

                                <li><a href="javascript:void(0)" data-theme="blue" class="blue-theme working">4</a></li>

                                <li><a href="javascript:void(0)" data-theme="purple" class="purple-theme">5</a></li>

                                <li><a href="javascript:void(0)" data-theme="megna" class="megna-theme">6</a></li>

                                <li class="d-block m-t-30"><b>With Dark sidebar</b></li>

                                <li><a href="javascript:void(0)" data-theme="default-dark" class="default-dark-theme">7</a></li>

                                <li><a href="javascript:void(0)" data-theme="green-dark" class="green-dark-theme">8</a></li>

                                <li><a href="javascript:void(0)" data-theme="red-dark" class="red-dark-theme">9</a></li>

                                <li><a href="javascript:void(0)" data-theme="blue-dark" class="blue-dark-theme">10</a></li>

                                <li><a href="javascript:void(0)" data-theme="purple-dark" class="purple-dark-theme">11</a></li>

                                <li><a href="javascript:void(0)" data-theme="megna-dark" class="megna-dark-theme ">12</a></li>

                            </ul>

                            <ul class="m-t-20 chatonline">

                                <li><b>Chat option</b></li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/1.jpg" alt="user-img" class="img-circle"> <span>Varun Dhavan <small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/2.jpg" alt="user-img" class="img-circle"> <span>Genelia Deshmukh <small class="text-warning">Away</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/3.jpg" alt="user-img" class="img-circle"> <span>Ritesh Deshmukh <small class="text-danger">Busy</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/4.jpg" alt="user-img" class="img-circle"> <span>Arijit Sinh <small class="text-muted">Offline</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/5.jpg" alt="user-img" class="img-circle"> <span>Govinda Star <small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/6.jpg" alt="user-img" class="img-circle"> <span>John Abraham<small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/7.jpg" alt="user-img" class="img-circle"> <span>Hritik Roshan<small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/8.jpg" alt="user-img" class="img-circle"> <span>Pwandeep rajan <small class="text-success">online</small></span></a>

                                </li>

                            </ul>

                        </div>

                    </div>

                </div>

                <!-- ============================================================== -->

                <!-- End Right sidebar -->

                <!-- ============================================================== -->

            </div>

			   </div>

			   </div>

                    </div>

                </div>

				

             

                <div class="row">

                    <div class="col-12" style="height:1000px;">

					</div>

					</div>

               

                <!-- End PAge Content -->

                <!-- ============================================================== -->

                <!-- ============================================================== -->

                <!-- Right sidebar -->

                <!-- ============================================================== -->

                <!-- .right-sidebar -->

                <div class="right-sidebar">

                    <div class="slimscrollright">

                        <div class="rpanel-title"> Service Panel <span><i class="ti-close right-side-toggle"></i></span> </div>

                        <div class="r-panel-body">

                            <ul id="themecolors" class="m-t-20">

                                <li><b>With Light sidebar</b></li>

                                <li><a href="javascript:void(0)" data-theme="default" class="default-theme">1</a></li>

                                <li><a href="javascript:void(0)" data-theme="green" class="green-theme">2</a></li>

                                <li><a href="javascript:void(0)" data-theme="red" class="red-theme">3</a></li>

                                <li><a href="javascript:void(0)" data-theme="blue" class="blue-theme working">4</a></li>

                                <li><a href="javascript:void(0)" data-theme="purple" class="purple-theme">5</a></li>

                                <li><a href="javascript:void(0)" data-theme="megna" class="megna-theme">6</a></li>

                                <li class="d-block m-t-30"><b>With Dark sidebar</b></li>

                                <li><a href="javascript:void(0)" data-theme="default-dark" class="default-dark-theme">7</a></li>

                                <li><a href="javascript:void(0)" data-theme="green-dark" class="green-dark-theme">8</a></li>

                                <li><a href="javascript:void(0)" data-theme="red-dark" class="red-dark-theme">9</a></li>

                                <li><a href="javascript:void(0)" data-theme="blue-dark" class="blue-dark-theme">10</a></li>

                                <li><a href="javascript:void(0)" data-theme="purple-dark" class="purple-dark-theme">11</a></li>

                                <li><a href="javascript:void(0)" data-theme="megna-dark" class="megna-dark-theme ">12</a></li>

                            </ul>

                            <ul class="m-t-20 chatonline">

                                <li><b>Chat option</b></li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/1.jpg" alt="user-img" class="img-circle"> <span>Varun Dhavan <small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/2.jpg" alt="user-img" class="img-circle"> <span>Genelia Deshmukh <small class="text-warning">Away</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/3.jpg" alt="user-img" class="img-circle"> <span>Ritesh Deshmukh <small class="text-danger">Busy</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/4.jpg" alt="user-img" class="img-circle"> <span>Arijit Sinh <small class="text-muted">Offline</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/5.jpg" alt="user-img" class="img-circle"> <span>Govinda Star <small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/6.jpg" alt="user-img" class="img-circle"> <span>John Abraham<small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/7.jpg" alt="user-img" class="img-circle"> <span>Hritik Roshan<small class="text-success">online</small></span></a>

                                </li>

                                <li>

                                    <a href="javascript:void(0)"><img src="assets/images/users/8.jpg" alt="user-img" class="img-circle"> <span>Pwandeep rajan <small class="text-success">online</small></span></a>

                                </li>

                            </ul>

                        </div>

                    </div>

                </div>

                <!-- ============================================================== -->

                <!-- End Right sidebar -->

                <!-- ============================================================== -->

            </div>

				<!-- <div id="myModal" class="modal fade">

    <div class="modal-dialog">

        <div class="modal-content">

            <div class="modal-header">

                <h4 class="modal-title">Payment Details</h4>

            </div>

            <div class="modal-body">

			<form action="" method='post' enctype='multipart/form-data'> 

				<div class="form-row mt-1">

										   <input type="hidden" name="receive_id" id="receive_id" >

									<div class="form-group col-6 m-0">

                                       

                                       <label for="send_id" class="col-form-label s-12">Member Id</label>

									    <input  id="send_id"  name="send_id" placeholder="Enter Member Id" class="form-control r-0 light s-12 "  type="text"> 

                                    </div>

										<div class="form-group col-6 m-0">

                                       

                                       <label for="send_name" class="col-form-label s-12">Name.</label>

									    <input  id="send_name"  name="send_name" placeholder="Name" class="form-control r-0 light s-12 " readonly type="text"> 

                                    </div>									

									<div class="form-group col-6 m-0">

                                       

                                       <label for="pay_amount" class="col-form-label s-12">Pay Amt.</label>

									    <input  id="pay_amount"  name="pay_amount" placeholder="Pay Amt" class="form-control r-0 light s-12 " readonly type="text"> 

                                    </div>

									<div class="form-group col-6 m-0">

                                       

                                       <label for="pay_mode" class="col-form-label s-12">Pay mode.</label>

									    <select class="custom-select select2" id="selectBox1" name="pay_mode"  required>

							 <option value="">Select One</option>

							 <option value="1" > Earning Balance </option>

							 <option value="2" > Wallet Balance </option>

						 </select>   </div>

									 </div>

									 <div class="form-row mt-1">

									<div class="form-group col-6 m-0">

									</br><input type="submit" id="btnValidate" class="btn btn-primary btn-lg" name="Submit" value="Pay">

									 </div>

									 </div>

				</form>

            </div>

        </div>

    </div>

</div>

             ============================================================== -->

            <!-- End Container fluid  -->

            <!-- ============================================================== -->

            <!-- ============================================================== -->

            <!-- footer -->

            <!-- ============================================================== -->

           <?php include 'footer.php'; ?>

            <!-- ============================================================== -->

            <!-- End footer -->

            <!-- ============================================================== -->

        </div>

        <!-- ============================================================== -->

        <!-- End Page wrapper  -->

        <!-- ============================================================== -->

    </div>

    <!-- ============================================================== -->

    <!-- End Wrapper -->

    <!-- ============================================================== -->

    <!-- ============================================================== -->

    <!-- All Jquery -->

    <!-- ============================================================== -->

    <script src="assets/plugins/jquery/jquery.min.js"></script>

    <!-- Bootstrap tether Core JavaScript -->

    <script src="assets/plugins/bootstrap/js/popper.min.html"></script>

    <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>

    <!-- slimscrollbar scrollbar JavaScript -->

    <script src="js/jquery.slimscroll.js"></script>

    <!--Wave Effects -->

    <script src="js/waves.js"></script>

    <!--Menu sidebar -->

    <script src="js/sidebarmenu.js"></script>

    <!--stickey kit -->

    <script src="assets/plugins/sticky-kit-master/dist/sticky-kit.min.js"></script>

    <!--Custom JavaScript -->

    <script src="js/custom.min.js"></script>

    <!-- ============================================================== -->

    <!-- This page plugins -->

    <!-- ============================================================== -->

    <!--sparkline JavaScript -->

    <script src="assets/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!--morris JavaScript -->

    <script src="assets/plugins/raphael/raphael-min.js"></script>

    <script src="assets/plugins/morrisjs/morris.min.js"></script>

    <!-- Chart JS -->

    <script src="js/dashboard1.js"></script>

    <!-- ============================================================== -->

    <!-- Style switcher -->

    <!-- ============================================================== -->

    <script src="assets/plugins/styleswitcher/jQuery.style.switcher.js"></script>

</body>





<!-- Mirrored from themedesigner.in/demo/admin-press/main/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Nov 2019 10:12:00 GMT -->

</html>