OverLord Shell
<?php
session_start();
/* if($_SESSION['plans']!=0){
header("location:dashboard.php");
}*/
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");
}
require_once("db/conn.php");
include_once("header.inc.php");
if(empty($_GET['id']))header("location:404.php");
$company_id=$_SESSION['company_id'];
$loggedin = (!empty($_SESSION['loggedin'])) ? $_SESSION['loggedin'] : null;
$companyid = (!empty($_SESSION['company_id'])) ? $_SESSION['company_id'] : null;
$companyname = (!empty($_SESSION['company_name'])) ? $_SESSION['company_name'] : null;
isAuthorized($companyid ,$companyname,$loggedin);
$listrow=getData("plan_master","companyid",$company_id);
if(count($listrow)==0)header("location:404.php");
?>
<?php echo $_SESSION['plans']?>
<section id="content">
<div class="container well ">
<form role="form" id="addform" >
<div class="table-responsive">
<div class="membership-pricing-table">
<table width="100%">
<tbody>
<tr>
<th width="50%"></th>
<th class="plan-header plan-header-free" width="16.66%">
<div class="pricing-plan-name">Trial</div>
<div class="pricing-plan-period">Free</div>
<!--<div class="pricing-plan-price">
<sup>₹</sup>0<span>.00</span>
</div>-->
</th>
<th class="plan-header plan-header-blue" colspan="2" width="16.66%">
<div class="pricing-plan-name">STARTUP</div>
<!-- <div class="pricing-plan-period">1 Year</div>
<div class="pricing-plan-price">-->
₹1008<span>.00</span>
</div>
</th>
<th class="plan-header plan-header-standard" colspan="2" width="16.66%">
<div class="header-plan-inner">
<span class="plan-head"> </span>
<!-- <span class="recommended-plan-ribbon">Premium</span>-->
<div class="pricing-plan-name">PRIMIUM</div>
<!-- <div class="pricing-plan-period">Life Time</div>
<div class="pricing-plan-price">-->
₹11111<span>.00</span>
</div>
</div>
</th>
</tr>
<tr>
<td>Listing:</td>
<td>Y</td>
<td>Y</td>
<td>-</td>
<td>Y</td>
<td>-</td>
</tr>
<tr>
<td>Own Products / Services:</td>
<td>Y</td>
<td>Y</td>
<td>-</td>
<td>Y</td>
<td>-</td>
</tr>
<tr>
<td>Send / Recived Enquiry:</td>
<td>Y</td>
<td>Y</td>
<td>-</td>
<td>Y</td>
<td>-</td>
</tr>
<tr>
<td>Search Business:</td>
<td>Y</td>
<td>Y</td>
<td>-</td>
<td>Y</td>
<td>-</td>
</tr>
<tr>
<td>Listing in Jai Jinendra App:</td>
<td>Y</td>
<td>Y</td>
<td>-</td>
<td>Y</td>
<td>-</td>
</tr>
<tr>
<td>Contact Details :</td>
<td>N</td>
<td>Y</td>
<td>-</td>
<td>Y</td>
<td>-</td>
</tr>
<tr>
<td>Micro Web Site :</td>
<td>N</td>
<td>Y</td>
<td>5000</td>
<td>Y</td>
<td>5000</td>
</tr>
<tr>
<td>Free Hosting Account with 10 GB space and Unlimited Bandwidth:</td>
<td>N</td>
<td>Y</td>
<td>3000</td>
<td>Y</td>
<td>3000</td>
</tr>
<tr>
<td>Free Advertisement on MBN Portal:</td>
<td>N</td>
<td>Y</td>
<td>2000</td>
<td>Y</td>
<td>2000</td>
</tr>
<tr><td>Free Advertisement On Jai Jinendra App <br>(reach to 5 lac people):</td>
<td>N</td>
<td>Y</td>
<td>1000</td>
<td>Y</td>
<td>1000</td>
</tr>
<tr>
<td>Free Web Site with Your Domain:</td>
<td>N</td>
<td>N</td>
<td>-</td>
<td>Y</td>
<td>10000</td>
</tr>
<tr>
<td>Premium Listing in Jai Jinendra App:</td>
<td>N</td>
<td>N</td>
<td>-</td>
<td>Y</td>
<td>1000</td>
</tr>
<tr>
<td>25% Discount on Any Mobile Application / Software:</td>
<td>N</td>
<td>N</td>
<td>-</td>
<td>Y</td>
<td>6000*</td>
</tr>
<tr>
<td>Total Savings:</td>
<td>-</td>
<td>-</td>
<td>11000</td>
<td>-</td>
<td>27000*</td>
</tr>
<tr>
<td>* min Savings, can be more:</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td style="color:red;">Select plan:</td>
<td>
<input type="button" name="plan" id="plan" value="1" onclick="myplan1('1');"><h3>Trial</h3></td>
<td colspan="2">
<input type="radio" name="plan" id="plan" value="2" onclick="myplan1('2');"><h3>one_year</h3></td>
<td colspan="2">
<input type="radio" name="plan" id="plan" value="3" onclick="myplan1('3');" ><h3>Life_time</h3></td>
</tr>
</tbody></table>
</div>
</div>
<div id="me2"><div class="col-sm-8">
<h2 class="wow fadeInRight animated" data-wow-duration="1s" style="color:red;padding-top:2%"> Add Payment</h2><br>
<div class="form-group">
<label> Amount: <span class="require">*</span></label>
<input type="text" class="form-control" name="Amount" id="Amount" value="1008" data-validation="required" data-validation-error-msg="Please select" readonly>
</div>
</div>
</div>
<div id="me3"><div class="col-sm-8">
<input type="text" class="form-control" name="plans" id="plans" value="3" >
<h2 class="wow fadeInRight animated" data-wow-duration="1s" style="color:red;padding-top:2%"> Add Payment</h2><br>
<div class="form-group">
<label> Amount: <span class="require">*</span></label>
<input type="text" class="form-control" name="Amount" id="Amount" value="9999" readonly>
</div>
</div>
</div>
<div id="me1">
<div class="col-sm-8">
<div class="form-group">
<label>Payment Mode <span class="require">*</span></label>
<select class="form-control" name="paymode" id="paymode" data-validation="required" data-validation-error-msg="Invalid Job Title" onChange="cashOrBank();" required >
<option value=" "> selected</option>
<option value="1">Cash</option>
<option value="2">Cheque</option>
</select>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label>Cheque 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 Job Title" disabled>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<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 >
<input type="hidden" name="chqdate" id="chqdate" value="2017-12-04">
</div>
</div>
</div>
<div class="col-sm-8" style="padding-top:5%;">
<div class="note note-danger displaynone"></div>
<div style="float:right;">
<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>
</form>
</div>
</div>
</div>
</section>
<script type="text/javascript">
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); ;
}
}
</script>
<script>
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 = 'dashboard.php?msg=add_success';
} else if (data.substr(data.length - 4) == '.php') location = data;
else {
$('.note-danger').html(data).show();
$('#addform button[type=submit]').button('reset');
$('#addform button[type=reset]').removeAttr('disabled');
}
}
});
return false;
}
});
}
valAdd();
</script>
<script>
function abc(){
$('#me1').hide();
$('#me2').hide();
$('#me3').hide();
$('#me4').hide();
$('#sbtn').hide();
}
function myplan1(val){
$('#me1').hide();
$('#me2').hide();
$('#me3').hide();
$('#me4').hide();
if(val=='1'){
window.location.href="dashboard.php";
/* $('#me1').hide();
$('#me2').hide();
$('#me4').show(); */
}else if(val=='2')
{
$('#me1').show();
$('#me2').show();
$('#me3').hide();
$('#me4').hide();
//$('#me3').val('').attr('disabled','disabled');
//$("#me3 *").attr("disabled", "disabled").off('click');
}else if(val=='3'){
$('#me1').show();
$('#me2').hide();
$('#me3').show();
$('#me4').hide();
// $('#me1').val('').attr('disabled','disabled');
}
}
function cashOrBank(){if($('#paymode').val()==2)$('#chqno,#bankname,#chqdate').removeAttr('disabled');else $('#chqno,#bankname,#chqdate').attr('disabled','disabled').val('');}
</script>
<style>
.membership-pricing-table {
width: 920px
}
.membership-pricing-table table .icon-no,.membership-pricing-table table .icon-yes {
font-size: 22px
}
.membership-pricing-table table .icon-no {
color: #a93717
}
.membership-pricing-table table .icon-yes {
color: #209e61
}
.membership-pricing-table table .plan-header {
text-align: center;
font-size: 48px;
border: 1px solid #e2e2e2;
padding: 25px 0
}
.membership-pricing-table table .plan-header-free {
background-color: #eee;
color: #555
}
.membership-pricing-table table .plan-header-blue {
color: #fff;
background-color: #61a1d1;
border-color: #3989c6
}
.membership-pricing-table table .plan-header-standard {
color: #fff;
background-color: #ff9317;
border-color: #e37900
}
.membership-pricing-table table td {
text-align: center;
width: 15%;
padding: 7px 10px;
background-color: #fafafa;
font-size: 14px;
-webkit-box-shadow: 0 1px 0 #fff inset;
box-shadow: 0 1px 0 #fff inset
}
.membership-pricing-table table,.membership-pricing-table table td {
border: 1px solid #ebebeb
}
.membership-pricing-table table tr td:first-child {
background-color: transparent;
text-align: right;
width: 24%
}
.membership-pricing-table table tr td:nth-child(5) {
background-color: #FFF
}
.membership-pricing-table table tr:first-child td,.membership-pricing-table table tr:nth-child(2) td {
-webkit-box-shadow: none;
box-shadow: none
}
.membership-pricing-table table tr:first-child th:first-child {
border-top-color: transparent;
border-left-color: transparent;
border-right-color: #e2e2e2
}
.membership-pricing-table table tr:first-child th .pricing-plan-name {
font-size: 22px
}
.membership-pricing-table table tr:first-child th .pricing-plan-price {
line-height: 35px
}
.membership-pricing-table table tr:first-child th .pricing-plan-price>sup {
font-size: 45%
}
.membership-pricing-table table tr:first-child th .pricing-plan-price>span {
font-size: 30%
}
.membership-pricing-table table tr:first-child th .pricing-plan-period {
margin-top: -7px;
font-size: 25%
}
.membership-pricing-table table .header-plan-inner {
position: relative
}
.membership-pricing-table table .recommended-plan-ribbon {
box-sizing: content-box;
background-color: #dc3b5d;
color: #FFF;
position: absolute;
padding: 3px 6px;
font-size: 11px!important;
font-weight: 500;
left: -6px;
top: -22px;
z-index: 99;
width: 100%;
-webkit-box-shadow: 0 -1px #c2284c inset;
box-shadow: 0 -1px #c2284c inset;
text-shadow: 0 -1px #c2284c
}
.membership-pricing-table table .recommended-plan-ribbon:before {
border: solid;
border-color: #c2284c transparent;
border-width: 6px 0 0 6px;
bottom: -5px;
content: "";
left: 0;
position: absolute;
z-index: 90
}
.membership-pricing-table table .recommended-plan-ribbon:after {
border: solid;
border-color: #c2284c transparent;
border-width: 6px 6px 0 0;
bottom: -5px;
content: "";
right: 0;
position: absolute;
z-index: 90
}
.membership-pricing-table table .plan-head {
box-sizing: content-box;
background-color: #ff9c00;
border: 1px solid #cf7300;
position: absolute;
top: -33px;
left: -1px;
height: 30px;
width: 100%;
border-bottom: none
}
</style>
<?php include_once("footer.inc.php");//connClose();?>
xRyukZ - Copyright 2k19