Your IP : 18.224.38.170
<?php
session_start();
include("lib/connect.inc.php");
$uid = $covis->Uid();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Auto Registration</title>
<link rel="shortcut icon" href="img/fav.png" />
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<?php include('head.php'); ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<?php include('nav.php'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Auto Registration</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active">Auto Registration</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Content Header (Page header) -->
<?php if(isset($report)){$covis->Alert(); } ?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Register Multiple Accounts</h5>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered mb-2" width="100%">
<tr>
<td>Avalable PINs:<br> <b><?php $pins = sqL2('pin','rep',$uid,'status',0); echo $pins ?></b></td>
<td>Account Balance:<br> <b>$<?= number_format($covis->totalEarnings($uidx),2) ?></b></td>
<td>Service Charge:<br> <b>$0.1 per Account</b></td>
<td>Next Username:<br> <b><?= $covis->pickUser(userName($uid,'user')) ?></b></td>
<td>Registered Accountd:<br> <b><?= sqL2('user','sponsor',$uidx,'a',1); ?></b></td>
</tr>
</table>
</div>
<form class="mt-3 float-left" method="post">
<div style="margin-top: 20px"><table><tr><td>No of New Accounts
<select required name="no" class="form-control">
<option value="">Select Option</option>
<?php $i=1; $end = $pins<40 ? $pins : 40;
while($i<=$end){ $e=$i++ ?>
<option><?= $e ?></option>
<?php } ?>
</select></td><td><br><button type="submit" name="AddNewUsersAuto" class="btn btn-primary">Register Multiple Users</button></td></tr></table></div>
</form>
<a href="managepin.php" class="float-right btn btn-primary" >Buy PIN</a>
</div>
</div>
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Auto Registration List</h5>
</div>
<div class="card-body">
<div class="overflow-x-auto">
<table class="table table-striped table-bordered dataTable" id="example1">
<thead>
<tr>
<th>No</th>
<th>Username</th>
<th>PIN</th>
<th>Joined On</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
$sql = $db->query("SELECT * FROM user WHERE sponsor='$uidx' AND a=1 ORDER BY sn DESC LIMIT 200");
while($row = mysqli_fetch_assoc($sql)) { $e = $i++;
?>
<tr>
<td><?php echo $e; ?></td>
<td><?php echo $row['user']; ?></td>
<td><?php echo $row['pin'] ?></td>
<td><?php echo substr($row['created'],0,16); ?></td>
</tr>
<?php } ?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div><!-- /.card-header -->
<!-- /.card-body -->
<!-- /.card -->
</div>
<!-- right col -->
</div>
<!-- /.row (main row) -->
</div><!-- /.container-fluid -->
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php include('foot.php'); ?>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="../plugins/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="../plugins/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="../plugins/jqvmap/jquery.vmap.min.js"></script>
<script src="../plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="../plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="../plugins/moment/moment.min.js"></script>
<script src="../plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="../plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="../plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- DataTables -->
<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="../plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="../plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<!-- page script -->
<script>
$(function () {
$("#example1").DataTable({
"responsive": true,
"autoWidth": false,
});
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false,
"responsive": true,
});
});
</script>
</body>
</html>