OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/plansadd.php

<?php 
session_start();
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();header("location:login.php");}
if(!in_array($_SESSION['loggedin_user'],array('admin','company'))){
	header("location:login.php");
}

include("db/conn.php");
include("header.inc.php");
$company_id=$_SESSION['company_id'];
$myplan=$_SESSION['plans'];
$compr=getData('busdir_mst_company','company_id', $_SESSION['company_id'],'','') ;

?>

<section id="content">
	
<div class="container well" style="background-color:#ffffff;">
<div class="container content">
 

<?php if($_GET['msg']=='send'){?>
	<div class="note note-danger note-dismissable " id="msg" style="color: #e42323 !important;
    background-color: #d3e6e1;    width: 1111px;">Your Plan change request has been Recived. We will reach to you soon. Thank You!!!</div>
<?php }?>
<?php if($_GET['msg']=='reg'){?>
	<div class="note note-danger note-dismissable " id="msg" style="color: #e42323 !important;
    background-color: #d3e6e1;    width: 1111px;">You are already subscribed this plan !!!</div>
<?php }?>
<?php if($_GET['msg']=='upgrade'){?>
	<div class="note note-danger note-dismissable " id="msg" style="color: #e42323 !important;
    background-color: #d3e6e1;width: 1111px;">Upgrade  plan !!!</div>
<?php }?>
<?php if($_GET['msg']=='add_success'){?>
	<div class="note note-danger note-dismissable " id="msg" style="color: #e42323 !important;
    background-color: #d3e6e1;width: 1111px;">Login Successfully !!!</div>
<?php }?>

        <div class="row">
<?php if($_SESSION['role']!='jb'){?>
        
        <div class="col-md-12">
        <p style="font-size:20px; float: left; margin-right: 25px;"><b>Continue with Trial &nbsp; </b> <a href="multicomp.php"><button class="btn12 info12">CLICK HERE</button></a><style>.btn12 {
    border: 2px solid black;
    background-color: white;
    color: black;
    padding: 4px 28px;
    font-size: 16px;
    cursor: pointer;
}
.info12 {
     background: #2196F3;
    color: white;
   
}
.info12:hover {
        border: 2px solid black;
    background-color: white;
    color: black;
    padding: 4px 28px;
    font-size: 16px;
    cursor: pointer;
    
}
</style> </p>
</div>
<?php }?>
        <p style="text-align:center;font-style:italic; font-size:30px;"> Get Registered yourself and avail Pre-launched  <span style="color:#3174f1;"><strong> Discount upto 45%</strong></span>  </p>
            <!-- Pricing -->
            <div class="col-md-3">
            
                <div class=" hover-effect">
                    <div class="pricing-head "><!--pricing-head-active-->
                            <h3>Plans 
                            </h3>
                            <h4 style="text-align: left;">
                            For India
                            
                            </h4 >
                            <h4 style="text-align: left;">
                            Other than India
                            
                            </h4>
                        </div>
                    <ul class="pricing-content list-unstyled"  >
                        <li style="text-align: left;">Listing</li>
                        <li style="text-align: left;">Own Products / Services</li>
                        <li style="text-align: left;">Send / Recived Enquiry</li>
                        <li style="text-align: left;">Search Business</li>
                        <li style="text-align: left;">Listing in Jai Jinendra App</li>
                        <li style="text-align: left;">Listing in Jai MBN App</li>
                        <li style="text-align: left;">Contact Details </li>
                        <li style="text-align: left;">Micro Web Site</li>
                        <li style="text-align: left;">Free Hosting Account with 10 GB space and Unlimited Bandwidth</li>
                        <li style="text-align: left;">Free Advertisement on MBN Portal</li>
                        <li style="text-align: left;">Free Advertisment on Jai Jinendra App (reach to 5 lac people)</li>
                        <li style="text-align: left;">Multiple Business</li>
                        <li style="text-align: left;">Free Static Web Site with Your Domain</li>
                        <li style="text-align: left;">Premium Listing in Jai Jinendra App</li>
                        <li style="text-align: left;">Premium Listing in MBN App</li>
                        <li style="text-align: left;">25% Discount on Any Mobile Application / Software</li>
                        <li style="text-align: left;"><b>Total Savings</b>
                            <br/> * min Savings and can be more</li>
                    </ul>
                    
                </div>
            </div>
           
                <div class="col-md-3" name="plan" id="plan">
                    <div id="p1" class="pricing hover-effect<?php //if($myplan=='0'){echo "pricing-active";}?>">
                        <div class="pricing-head "><!--pricing-head-active-->
                            <h3 class="<?php if($myplan=='0'){echo " pqr";}?>">Trial 
                            </h3>
                            <h4>Free
                            <span>
                            </span>
                            </h4>
                             <h4>Free
                            <span>
                            </span>
                            </h4>
                        </div>
                        <ul class="pricing-content list-unstyled">
                            <li>Y</li>
                            <li>Y</li>
                            <li>Y</li>
                            <li>Y</li>
                            <li>Y</li>
                            <li>Y</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>N</li>
                            <li>&nbsp;</li>
                         </ul>
                       <!-- <div class="pricing-footer">
                        </div>-->
                    </div>
                </div>
          
             <a href="javascript:void(0);" <?php if($myplan=='0'){ ?> onclick="myclass('2a','<?php echo trim($compr['company_country']);?>');<?php };?>">
                <div class="col-md-3" name="plan2" id="plan2">
                   <div id="p2" class="pricing hover-effect <?php //if($myplan=='2'){echo " pricing-active";}?>">
                        <div class="pricing-head"><!--pricing-head-active-->
                        	<h3 class="<?php if($myplan=='2'){echo " pqr";}?>">Startup 
                            </h3>
                            <h4><m id="a">3600</m><m id="b" style="display:none;">2500</m> <m>INR</m> <del style="font-size: 50%;color: #000000;">4500 INR</del> &nbsp; &nbsp;</h4>
                            <h4><m>$99</m> <m>USD</m> <del style="font-size: 50%;color: #000000;">$180 USD</del> &nbsp; &nbsp;</h4>
                        </div>
                       <ul class="pricing-content list-unstyled">
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>&nbsp;</n></li>
                            <li><m class="asd">Y</m><n>5000</n></li>
                            <li><m class="asd">Y</m><n>3000</n></li>
                            <li><m class="asd">Y</m><n>2000</n></li>
                            <li><m class="asd">Y</m><n>1000</n></li>
                            <li><m class="asd">N</m><n>&nbsp;</n></li>
                            <li><m class="asd">N</m><n>&nbsp;</n></li>
                            <li><m class="asd">N</m><n>&nbsp;</n></li>
                            <li><m class="asd">N</m><n>&nbsp;</n></li>
                            <li><m class="asd">N</m><n>&nbsp;</n></li>
                            <li><h4><b><m class="asd">Savings</m>11000*<n>&nbsp;</n></b></h4></li>
                         </ul>
                    </div>
                </div>
             </a>
           
                 <a href="javascript:void(0);" onclick="myclass('3a','<?php echo trim($compr['company_country']);?>')">
                <div class="col-md-3"name="plan3" id="plan3">
                   <div id="p3" class="pricing hover-effect <?php //if($myplan=='3'){echo " pricing-active";}?>">
                        <div class="pricing-head"><!--pricing-head-active-->
             				<h3 class=" <?php if($myplan=='3'){echo " pqr";}?>">Premium 
                            </h3>
                            <h4><m id="c">11500</m> <m id="d" style="display:none;">9900</m> <m>INR</m> <del style="font-size: 50%;color: #000000;">18000 INR</del> &nbsp; &nbsp;</h4>
                            <h4><m>$349</m> <m>USD</m> <del style="font-size: 50%;color: #000000;">$630 USD</del> &nbsp; &nbsp;</h4>
                        </div>
                        <ul class="pricing-content list-unstyled">
                        	<li><m class="asd">Y</m><n> </n></li>
                            <li><m class="asd">Y</m><n> </n></li>
                            <li><m class="asd">Y</m><n> </n></li>
                            <li><m class="asd">Y</m><n> </n></li>
                            <li><m class="asd">Y</m><n> </n></li>
                            <li><m class="asd">Y</m><n> </n></li>
                            <li><m class="asd">Y</m><n></n></li>
                            <li><m class="asd">Y</m><n>5000</n></li>
                            <li><m class="asd">Y</m><n>3000</n></li>
                            <li><m class="asd">Y</m><n>2000</n></li>
                            <li><m class="asd">Y</m><n>1000</n></li>
                            <li><m class="asd">Y</m><n>3000*</n></li>
                            <li><m class="asd">Y</m><n>10000</n></li>
                            <li><m class="asd">Y</m><n>1500</n></li>
                            <li><m class="asd">Y</m><n>1500</n></li>
                            <li><m class="asd">Y</m><n>6000*</n></li>
                            <li><h4><b><m class="asd">Savings</m><n>33000*</n></b></h4></li>
                           
                         </ul>
                        <!--<div class="pricing-footer">
                        </div>-->
                    </div>
                </div>
            </a>
            <!--//End Pricing -->
        </div>
    		</div>
        </div>
     </div>

<div class="sap_tabs container" id="pay_tab" <?php if($_SESSION['plans']!=2 || $_SESSION['plans']!=3){?>style="display:none;"><?php }?>

                  
    	<form id="addform" method="post" role="form" style="padding-left:5% !important; margin-right:5% !important;">
           <!-- <div class="col-md-12 col-sm-6 col-lg-12">-->
         <div class="col-sm-6" style="padding-top: 49px;">
           
         <input type="hidden" id="select_plan" name="select_plan" value="<?php echo $compr['select_plan'];?>"  />
          <div class="row">
         <div class="col-md-7 col-sm-7 col-lg-7" style="padding-top: 20px;">
         <label>Get additional Discount if You have MACCIA Membership</label></div><div class="col-md-3 col-sm-3 col-lg-3" style="padding-top: 20px;"><input class="form-control" type="text" id="jid" name="jid"  onChange="getjid()"/>
         </div>
         <div class="col-md-12 col-sm-12 col-lg-12">
         <p><strong>Don`t have JID! </strong><span><a href="http://www.maccia.org.in" target="_blank">
    <u>Get it now</u>
</a></span></p> 
         </div>
         </div>
                <div class="row">
                <div class="col-md-6 col-sm-6 col-lg-6">
                    <label>Payment Mode <span class="require">*</span></label>
                        <select class="form-control" name="paymode" id="paymode" data-validation="required" data-validation-error-msg="Invalid payment mode" onChange="cashOrBank();">
                            <option value=""> Select</option>
                            <option value="1">Cash</option>
                            <option value="2">Cheque</option>
                             <option value="3">Online</option>
                        </select>
                   </div>
                	<div class="col-md-6 col-sm-6 col-lg-6" >
                    <label>Plan Amount <span class="require">*</span></label>
                       <input type="text" class="form-control" name="planamt" id="planamt" readonly >
                   </div>
                   
                   
                </div>
          <!--  </div>-->
            <div class="row">
                <div class="col-md-4 col-sm-6 col-lg-4" style="padding-top: 20px;">
                    <label>Cheeque/Ref No.<span class="require">*</span></label>
                    <input type="text" class="form-control" name="chqno" id="chqno" maxlength="6" data-validation="required" data-validation-error-msg="Invalid Chaque/Refrence no" disabled="disabled">
                 </div>
                 <div class="col-md-4 col-sm-6 col-lg-4" style="padding-top: 20px;">
                  <label>Bank Name<span class="require">*</span></label>
                    <input type="text" class="form-control" name="bankname" id="bankname" maxlength="50" data-validation="required" data-validation-error-msg="Invalid Bank Name" disabled >
                    
                 </div>
                 <div class="col-md-4 col-sm-6 col-lg-4" style="padding-top: 20px;">
                  <label>Date <span class="require">*</span></label>
                 <input type="date" class="form-control" name="chqdate" id="chqdate" maxlength="12" disabled="disabled" data-validation="required" data-validation-error-msg="Invalid chaque date">
                 </div>
                  </div>
               
           
            <div id="sub">
                <div class="col-sm-8" style="padding-top:5%;">
                
                
                    <div class="note note-danger displaynone"></div>
                    <div style="float:right;">
                       <input type="hidden" id="splan" name="splan" />
                        <button type="submit"  class="btn btn-primary" data-loading-text="Submitting...">Add</button>
                        <button type="reset" class="btn btn-default" onClick="$('.note-danger').hide()">Reset</button>
                    </div>
                </div>
            </div>
            </div>
             <div class="col-sm-6 ">
             
<p> <pre class="tab">Name		: MACCIA<br />
A/C No		:  <br />
Account Type	: CURRENT<br />
Bank Name	: <br />
Branch Name	: <br />
City		: <br />
IFS Code	:  <br />
SWIFT Code	:  </pre></p>
            </div>
             
            </form>
            
            <br />
           
          
    	
       
 	</div>
     
</section>

 <style>
		.sap_tabs {
			background: rgb(54, 215, 172);
			padding: 20px 0 20px 0;
			border-radius: 0px;
			/*position: absolute;*/
			bottom: 0;
			z-index: 999;
			max-height: auto;
		}
		.asd
		{
			width:50% !important;
			float:left !important;
			
		}
		.pqr
		{
			background-color:red !important;
		}
		</style>

<script type="text/javascript">
$(function() {
    // setTimeout() function will be fired after page is loaded
    // it will wait for 5 sec. and then will fire
    // $("#successMessage").hide() function
    setTimeout(function() {
        $("#msg").hide('blind', {}, 500)
    }, 5000);
});
$('#planamt').val("0");

function myclass(val,val2)
{ 
	if(val=='3a'){
		if(val2=='India'){
		 $('#planamt').val("11500 INR");
		}else{
		 $('#planamt').val("$349 USD");
		}
		 $('#splan').val(val);
		$('#pay_tab').css('display','block');
		 
	document.getElementById("p3").classList.add('pricing-active');
	document.getElementById("p1").classList.remove('pricing-active');
		document.getElementById("p2").classList.remove('pricing-active');
		
	}else if(val=='2a'){
		 if(val2=='India'){
		 $('#planamt').val("3600 INR");
		}else{
		 $('#planamt').val("$99 USD");
		}
		  $('#splan').val(val);
		  $('#pay_tab').css('display','block');
		document.getElementById("p2").classList.add('pricing-active');
		document.getElementById("p1").classList.remove('pricing-active');
		document.getElementById("p3").classList.remove('pricing-active');
	}else if(val=='1a')
	{
		 $('#splan').val(val);
		 $('#planamt').val("0");
		document.getElementById("p1").classList.add('pricing-active');
		document.getElementById("p2").classList.remove('pricing-active');
		document.getElementById("p3").classList.remove('pricing-active');
	}
	else
	{
		$('#planamt input').val("0");
		document.getElementById("p1").classList.remove('pricing-active');
		document.getElementById("p2").classList.remove('pricing-active');
		document.getElementById("p3").classList.remove('pricing-active');
	}
}
    function ddlValidate() {
		
        var e = document.getElementById("paymode");
        var optionSelIndex = e.options[e.selectedIndex].value;
        var optionSelectedText = e.options[e.selectedIndex].text;
        if (optionSelIndex == 0) {
            alert("Please select a paymode");
        }
        else {
            alert("Success !! You have selected Course : " + optionSelectedText); ;
        }
    }
	
function validate1()
{
   if(document.getElementById("paymode").value == "")
   {
      alert("Please select value"); // prompt user
      document.getElementById("paymode").focus(); //set focus back to control
      return false;
   }
}
$(document).ready(function() {
$(".btn-pref .btn").click(function () {
    $(".btn-pref .btn").removeClass("btn-primary").addClass("btn-default");
    // $(".tab").addClass("active"); // instead of this do the below 
    $(this).removeClass("btn-default").addClass("btn-primary");   
});
});
</script>
<script src="js/jquery.fancybox.pack.js"></script>

<script>

function valAdd() {
	
    $.validate({
		
		modules: 'file,security',
        form: '#addform',
		
        scrollToTopOnError: false,
        onSuccess: function() {
            $('#addform button[type=submit]').button('loading');
            $('#addform button[type=reset]').attr('disabled', 'disabled');
            $('.note-danger').html('').hide();
            $.ajax({
                type: 'POST',
                url: 'plansadd_save.php',
                data: new FormData($('#addform')[0]),
				
                contentType: false,
                processData: false,
                success: function(data) {
					alert(data);
                    if (data == 'success') {
                        $('#addform')[0].reset();
                        location = 'plansadd.php?msg=add_success';
                    } else if (data.substr(data.length - 4) == '.php') location = data;
                    else if (data == 'are') {
						   location = 'plansadd.php?msg=reg';
					}else if (data == 'send') {
						   location = 'plansadd.php?msg=send';
					}else{
						 $('#addform .alert-danger').show();
                       // $('.note-danger').html(data).show();
                        $('#addform button[type=submit]').button('reset');	
                        $('#addform button[type=reset]').removeAttr('disabled');
                    }
                }
            });
            return false;
        }
    });
}
valAdd();


</script>
<script>
function getjid(){
    if ($('#jid').val() != '') {
            $.post('get_jid.php', {
                jid: $('#jid').val()
            }, function(data) {
               if(data=='success'){
                   if($('#planamt').val()=='11500 INR'){
                   $('#planamt').val("9900 INR");
                  
                   }else if( $('#planamt').val()=='3600 INR'){
                   $('#planamt').val("2500 INR");
                     
                   }
                   $('#b,#d').show();
                   $('#a,#c').hide();
                   $('#jid').attr('readonly', true);
               }else{
                   alert(data);
                   $('#jid').val('');
               }
            });
        } 
   
}  
function cashOrBank() {
	if ($('#paymode').val() == 3) {
		$('#chqno,#bankname,#chqdate').removeAttr('disabled');}
		else 
    if ($('#paymode').val() == 2) {$('#chqno,#bankname,#chqdate').removeAttr('disabled');
	}
    else $('#chqno,#bankname,#chqdate').attr('disabled', 'disabled').val('');
}
    </script>            

<style>
.col-md-3 {
    width: 24%;
    padding-left: 0%;
    padding-right: 0%;
}
/***
User Profile Sidebar by @keenthemes
A component of Metronic Theme - #1 Selling Bootstrap 3 Admin Theme in Themeforest: http://j.mp/metronictheme
Licensed under MIT
***/

/***
Content
***/
.content {
    padding: 30px 0;
}

/***
Pricing table
***/
.pricing {
  position: relative;
 /* margin-bottom: 15px; */
  border: 0px solid #eee;
}

.pricing-active {
  border: 3px solid #36d7ac;
  margin-top: -10px;
  box-shadow: 7px 7px rgba(54, 215, 172, 0.2);
}

.pricing:hover {
  border: 3px solid #36d7ac;
}

.pricing:hover h4 {
  color: #36d7ac;
}

.pricing-head {
  text-align: center;
}

.pricing-head h3,
.pricing-head h4 {
  margin: 0;
  line-height: normal;
}

.pricing-head h3 span,
.pricing-head h4 span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-style: italic;
}

.pricing-head h3 {
  font-weight: 300;
  color: #fafafa;
  padding: 12px 0;
  font-size: 27px;
  background: #36d7ac;
  border-bottom: solid 1px #41b91c;
}

.pricing-head h4 {
  color: #bac39f;
  padding: 5px 0;
      height: 47px;
  font-size: 26px;
  font-weight: 300;
  background: #fbfef2;
  border-bottom: solid 1px #36d7ac;
}

.pricing-head-active h4 {
  color: #36d7ac;
}

.pricing-head h4 i {
  top: -8px;
  font-size: 28px;
  font-style: normal;
  position: relative;
}

.pricing-head h4 span {
  top: -10px;
  font-size: 14px;
  font-style: normal;
  position: relative;
}

/*Pricing Content*/
.pricing-content li {
	text-align:center;
  color: #150101;
  font-size: 14px;
      height: 40px;
  padding: 1px 15px;
  border-bottom: solid 1px #d9dcd0;
}

/*Pricing Footer*/
.pricing-footer {
  color: #777;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  padding: 0 20px 19px;
}

/*Priceing Active*/
.price-active,
.pricing:hover {
  z-index: 9;
}

.price-active h4 {
  color: #36d7ac;
}

.no-space-pricing .price-active .pricing-head h4,
.no-space-pricing .pricing:hover .pricing-head h4 {
  color: #36d7ac;
  padding: 15px 0;
  font-size: 80px;
  transition: color 0.5s ease-in-out;
}

.yellow-crusta.btn {
  color: #FFFFFF;
  background-color: #f3c200;
}
.yellow-crusta.btn:hover,
.yellow-crusta.btn:focus,
.yellow-crusta.btn:active,
.yellow-crusta.btn.active {
    color: #FFFFFF;
    background-color: #e0e2da;
}
.li{
	    text-align: left;
}
</style>
<?php include_once("footer.inc.php");//connClose();?>

xRyukZ - Copyright 2k19