OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/refera.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_once("headerdash.inc.php");
include("sidebar.php");

 $actv=$_SESSION['plans'];

$_SESSION['company_id'] = (empty($_SESSION['company_id'])) ? base64_decode($_SESSION['mid']) : $_SESSION['company_id']; 
$pagename="referalrec";
$webpagetitle="Referral";

$editrowa = getData('busdir_mst_referal','company_id',$_SESSION['company_id'],null,null);

?>      
        <!--BEGIN CONTENT-->
        <div class="page-content">
            <div class="row"> 
                <div class="col-md-8">
                        <div class="panel-body"
						 style="margin-right: -12%;
    margin-left: -2%;">
                         <fielsdet><legend><h3 style="color: #eb2c33; padding-bottom: 3%;"><?php
						   echo $webpagetitle ?></h3></legend>
                         
           <?php /*?>  <?php if($actv!='0'){?>
            <a href="<?php echo $pagename?>add.php" class="btn btn-primary pull-right"  style="margin-right: 1%; 
			margin-top: -8%;" value="<?php echo $listrowa['ref_id']?>">Add New<i class="fa fa-plus mlm"></i></a>
         
            <?php }else{ ?>
          
            <a href="plansadd.php?msg=upgrade" class="btn btn-primary pull-right"  style="margin-right: 1%; 
			margin-top: -8%;" value="<?php echo $listrowa['ref_id']?>">Add New<i class="fa fa-plus mlm"></i></a>
           <?php } ?><?php */?>
       
                            <?php if(!empty($_GET['msg']) && strpos($_GET['msg'],'success')!=FALSE){?>
                            <div class="note note-success note-dismissable" id="msg">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                <?php if($_GET['msg']=='add_success'){?>Record added Successfully!!!<?php }?>
                                <?php if($_GET['msg']=='update_success'){?>Record updated Successfully!!!<?php }?>
                                <?php if($_GET['msg']=='delete_success'){?>Record deleted Successfully!!!<?php }?>
                            </div>
                            <?php }?>
                            <div class="table-responsive">
                                <table class="table table-striped table-hover" id="dataTables-listing">
                                    <thead>
                                        <tr>
                                            <th>Sender Name</th>
                                            <th>Client Name</th>
                                            <th>Client Mobile</th>
                                            <th>Client Email</th>
										    <th>Level</th>
                                              <th>View</th>
                                                                                       <th>Amount</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       
                                         <?php
										
										  $listq="SELECT * from busdir_mst_referal where active='y' ";
						
                                        $listr=$connection->query($listq);
                                        while($listrow=$listr->fetch_assoc()){	?>
									
                                          <td><?php echo $listrow['company_id']?></td>
                                            <td><?php echo $listrow['client_name']?></td>  
											
											<?php if($actv!=0){?>
                                            <td><?php echo $listrow['client_phone']?></td>
                                            <td><?php echo $listrow['client_email']?></td>
                                             <td><?php echo $listrow['level']?></td>
											<?php }else{ ?>
                                             <td><a href="plansadd.php">#####</a></td>
                                            <td><a href="plansadd.php">#####</a></td>
                                            <?php } ?>
                                               <td class="text-center"><a href="<?php echo $pagename?>_view.php?id=<?php echo base64_encode($listrow['ref_id'])?>" class="btn btn-warning btn-sm fancyboxajax">View<i class="fa fa-eye mlm"></i></a></td>
                                    
                                             <?php /*?> <td class="text-center"><button type="button" value="<?php echo $listrow['ref_id']?>" class="btn btn-sm btn-<?php if($listrow['active']!='n')echo "danger";else echo "success"?> delbtn"><?php if($listrow['active']=='n')echo 'Make Enable<i class="fa fa-check mlm"></i>';else echo 'Make Disable<i class="fa fa-close mlm"></i>'?></button></td><?php */?>
                                               <?php /*?><td class="text-center"><button type="button" value="<?php echo $listrow['ref_id']?>" class="btn btn-sm btn-<?php if($listrow['close']!='1')echo "danger";else echo "success"?> delbtn1"><?php if($listrow['close']=='1')echo 'open<i class="fa fa-check mlm"></i>';else echo 'close<i class="fa fa-close mlm"></i>'?></button></td><?php */?>
                                            <!--<td class="text-center"><button type="button" value="<?php echo $listrow['ref_id']?>" class="btn btn-sm btn-warning recyclebtn">Delete<i class="fa fa-trash-o mlm"></i></button></td>-->
                                           <td class="text-center"><?php // echo $listrow['ref_id'] ?>
                                          <a href="referalrecedit.php?id=<?php echo $listrow['ref_id']?>" class="btn btn-warning btn-sm fancyboxajax">View<i class="fa fa-eye mlm"></i></a></td> 
                                          <?php /*?> <td class="text-center"><form><button type="submit" name="id" value="<?php echo base64_encode($listrow['ref_id'])?>" formaction="<?php echo $pagename?>edit.php?id=<?php echo base64_encode($listrow['ref_id'])?>" class="btn btn-warning btn-sm fancyboxajax">View<i class="fa fa-eye mlm"></i></button></form></td><?php */?>
                                        </tr>
                                          <?php } ?>
                                        <?php // }?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--END CONTENT-->


      
<link type="text/css" rel="stylesheet" href="css/dataTables/dataTables.bootstrap.min.css">
<script src="js/dataTables/jquery.dataTables.min.js"></script>
<script src="js/dataTables/dataTables.bootstrap.min.js"></script>
<link href="css/jquery.fancybox.css" rel="stylesheet">
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/validate.js"></script>
<script>
$('#dataTables-listing').dataTable( {
    "bSort": false
  } );
$('#dataTables-listing').dataTable();
if($('#msg').html()!==''){
	setTimeout(function(){$('#msg').hide();},5000);
	if(location.search.substring(1).length){if(history!==undefined && history.pushState!==undefined){history.pushState({}, document.title, location.pathname+'<?php if(isset($_SESSION['mid']))echo "?id=".$_SESSION['mid']?>');}}
}
$('.fancyboxajax').fancybox({type:'ajax'});


</script>
<?php $connection->close();include("footer.inc.php")?>

xRyukZ - Copyright 2k19