<? include "top.php"; ?>
<!DOCTYPE html>
<html>
<head>
	<?php include('include/head.php'); 
    
    // require_once('vendor/autoload.php');
    // define('PROJECT','vendor/paytm/paytm-pg');
    ?>
	<title>Cable Customer List</title>
	<link rel="stylesheet" type="text/css" href="https://sarmac.b-cdn.net/plugins/datatables/media/css/jquery.dataTables.css">
	<link rel="stylesheet" type="text/css" href="https://sarmac.b-cdn.net/plugins/datatables/media/css/dataTables.bootstrap4.css">
	<link rel="stylesheet" type="text/css" href="https://sarmac.b-cdn.net/plugins/datatables/media/css/responsive.dataTables.css">
</head>
<body>
	<?php include('include/header.php'); ?>
	<?php include('include/sidebar.php'); 

	
	


	?>
	<style type="text/css">
		
		th{

			font-size: 14px;
		}

		td{

			font-size: 12px;
		}
	</style>
	<div class="main-container">
		<div class="pd-ltr-20 customscroll customscroll-10-p height-100-p xs-pd-20-10">
			<div class="min-height-200px">
				<div class="page-header">
					<div class="row">
						<div class="col-md-6 col-sm-12">
							<div class="title">
								<h4>Online Payment</h4>
							</div>
							<nav aria-label="breadcrumb" role="navigation">
								<ol class="breadcrumb">
									<li class="breadcrumb-item"><a href="index.php">Home</a></li>
									<li class="breadcrumb-item active" aria-current="page">Cable Customer</li>
								</ol>
							</nav>
						</div>
						<div class="col-md-6 col-sm-12 text-right">
							<!-- <div class="dropdown">
								<a class="btn btn-secondary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
									January 2018
								</a>
								<div class="dropdown-menu dropdown-menu-right">
									<a class="dropdown-item" href="#">Export List</a>
									<a class="dropdown-item" href="#">Policies</a>
									<a class="dropdown-item" href="#">View Assets</a>
								</div>
							</div> -->
						</div>
					</div>
				</div>
				<!-- Default Basic Forms Start -->
				
				<div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
					<div class="clearfix mb-20">
						<div class="pull-left">
							<h5 class="text-blue"></h5>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-6">
                            <?php 

                                $blid=$_REQUEST['blid'];
                                $getb=f(q("SELECT * FROM cbill WHERE bl_trn='$blid'"));
                                $billamt=$getb['bl_amt'];
                                $onlcharge=floatval($billamt)*floatval(2/100);
                                $payamount=floatval($billamt)+floatval($onlcharge);

                            
                            ?>

                           <img src="image/payapi.png" class="img-fluid">

                        </div>
                        <div class="col-lg-6">

                            <form method="POST" action="#">
    <div class="row">
        <div class="col-lg-5">
            <label for="ORDER_ID">Order ID</label>
        </div>
        <div class="col-lg-7">
            <input id="ORDER_ID"  class="form-control"  name="ORDER_ID" value="<?php echo $blid ?>" type="text" readonly/>
        </div>
    </div><br>
    <div class="row">
        <div class="col-lg-5">
            <label for="">Transaction Amount</label>
        </div>
        <div class="col-lg-7"> 
            <input type="text" class="form-control" id="TXN_AMOUNT" name="TXN_AMOUNT" value="<?php echo $payamount?>" readonly/>
            <small>* including 2% transaction charges</small>
    </div>

    </div>
    
    
    <input type="hidden" id="CUST_ID" name="CUST_ID" value="<?php echo $getb['bl_cid']?>"/>
    
   
    <input id="INDUSTRY_TYPE_ID" name="INDUSTRY_TYPE_ID" type="hidden" value="Service" />
   
    
    <input id="CHANNEL_ID" name="CHANNEL_ID" type="hidden" value="WEB"/>
    
   
     
    
        <input type="hidden" name="CALLBACK_URL" value="https://cable.biswascable.in/success.php"/>
   
    <div class="row">
            <div class="col-lg-5"></div>
            <div class="col-lg-7"><br>

            <input type="submit" class="btn btn-primary" value="Pay Now"/>
            </div>

     </div>
    
    </form>

                        </div>
					</div>
				</div>
				

			</div>
			<?php include('include/footer.php'); ?>
		</div>
	</div>
	<?php include('include/script.php'); ?>

	<script src="src/plugins/datatables/media/js/jquery.dataTables.min.js"></script>
	<script src="src/plugins/datatables/media/js/dataTables.bootstrap4.js"></script>
	<script src="src/plugins/datatables/media/js/dataTables.responsive.js"></script>
	<script src="src/plugins/datatables/media/js/responsive.bootstrap4.js"></script>
	<!-- buttons for Export datatable -->
	<script src="src/plugins/datatables/media/js/button/dataTables.buttons.js"></script>
	<script src="src/plugins/datatables/media/js/button/buttons.bootstrap4.js"></script>
	<script src="src/plugins/datatables/media/js/button/buttons.print.js"></script>
	<script src="src/plugins/datatables/media/js/button/buttons.html5.js"></script>
	<script src="src/plugins/datatables/media/js/button/buttons.flash.js"></script>
	<script src="src/plugins/datatables/media/js/button/pdfmake.min.js"></script>
	<script src="src/plugins/datatables/media/js/button/vfs_fonts.js"></script>
	<script>
		$('document').ready(function(){
			$('.data-table').DataTable({
				scrollCollapse: true,
				autoWidth: false,
				responsive: true,
				columnDefs: [{
					targets: "datatable-nosort",
					orderable: false,
				}],
				"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
				"language": {
					"info": "_START_-_END_ of _TOTAL_ entries",
					searchPlaceholder: "Search"
				},
			});
			$('.data-table-export').DataTable({
				scrollCollapse: true,
				autoWidth: false,
				responsive: true,
				columnDefs: [{
					targets: "datatable-nosort",
					orderable: false,
				}],
				"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
				"language": {
					"info": "_START_-_END_ of _TOTAL_ entries",
					searchPlaceholder: "Search"
				},
				dom: 'Bfrtip',
				buttons: [
				'copy', 'csv', 'pdf', 'print'
				]
			});
			var table = $('.select-row').DataTable();
			$('.select-row tbody').on('click', 'tr', function () {
				if ($(this).hasClass('selected')) {
					$(this).removeClass('selected');
				}
				else {
					table.$('tr.selected').removeClass('selected');
					$(this).addClass('selected');
				}
			});
			var multipletable = $('.multiple-select-row').DataTable();
			$('.multiple-select-row tbody').on('click', 'tr', function () {
				$(this).toggleClass('selected');
			});
		});
	</script>
</body>
</html>