OverLord Shell

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

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

include("db/conn.php");
include_once("headerdash.inc.php");
include("sidebar.php");

$selr=$connection_jc->query("SELECT fname,lname,memshiptype FROM otms_mst_contact WHERE con_sr_no=".$_SESSION['mid']);
$selrow=$selr->fetch_assoc();
$selr->free();

$webpagetitle="Payments ";

?>
  
          <h1 class="page-header"><?php echo $webpagetitle;?> - <small><?php echo $selrow['fname']." ".$selrow['lname']?></small></h1> <span><strong>Note : Payments made after January 2021 are refelected here.</strong></span>
          <a href="multicomp.php" class="btn btn-link"  style="float:right;"><i class="fa fa-angle-left mrm"></i>Go Back</a>    
            <div class="page-content">
            <div class="row">
                <div class="col-md-8" style="width: 72.666667%;">
                    <div class="panel">
                     <div class="panel-body">
                <?php if(!empty($_GET['msg']) && strpos($_GET['msg'],'success')!=FALSE){?>
                <div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <?php if($_GET['msg']=='add_success'){?>Added Successfully!!!<?php }?>
                    <?php if($_GET['msg']=='update_success'){?>Updated Successfully!!!<?php }?>
                    <?php if($_GET['msg']=='delete_success'){?>Deleted Successfully!!!<?php }?>
                </div>
                <?php }elseif(!empty($_GET['msg']) && $_GET['msg']=='delete_failed'){?>
                <div class="alert alert-danger">Delete Failed. Please try again.</div>
                <?php }?>
                <div class="table-responsive">
                    <table class="table table-striped table-hover" id="dataTables-listing">
                        <thead>
                            <tr>
                                <th>Payment Date</th>
                                <th>Amount</th>
                                <th>Payment Mode</th>
                                <th class="text-center">Print Receipt</th>
                                <th class="text-center">Print Invoice</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
							$listq="SELECT * FROM otms_mst_contactpayment WHERE con_sr_no=".$_SESSION['mid'];
							$listr=$connection_jc->query($listq);
                            $i=1;
                            while($listrow=$listr->fetch_assoc()){
                            ?>
                            <tr>
                                <td><?php echo date('d M Y',strtotime($listrow['recdate']))?></td>
                                <td><?php echo $listrow['amount']?></td>
                                <td><?php if(is_null($listrow['chqno']))echo "Cash";else echo "Cheque No. ".$listrow['chqno'];?></td>
                        
                                <td class="text-center"><form><button type="submit" name="id" value="<?php echo $listrow['conpaysrno']?>" formaction="contactpaymentprint.php" formtarget="_blank" class="btn btn-warning btn-sm"><i class="fa fa-file-pdf-o"></i></button></form></td>
                                
                                 <td class="text-center"><form><button type="submit" name="id" value="<?php echo $listrow['conpaysrno']?>" formaction="contactpaymenttaxinvoiceprint.php" formtarget="_blank" class="btn btn-warning btn-sm"><i class="fa fa-file-pdf-o"></i></button></form></td>
                               
                            </tr>
                            <?php
                                $i++;
                            }$listr->free();
                            ?>
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.col-lg-12 -->
       </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
  } );
</script>
<script type="text/javascript">
//$(document).ready(function(){$('#dataTables-listing').dataTable({order:[0,'asc']});});
function confirmDelete(val){if(confirm('Really Delete "'+val+'" ?'))return true;else return false;}
function confirmDefault(pname){if(confirm('Make "'+pname+'" Default ?'))return true;else return false;}
</script>
<?php $connection_jc->close();?>
<?php include_once("footer.inc.php");?>

xRyukZ - Copyright 2k19