Your IP : 18.119.19.206
<?php
session_start();
include("lib/connect.inc.php");
$uid = $covis->Uid();
if(isset($_SESSION['report'])){$report = $_SESSION['report']; }
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Live Training</title>
<!-- 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'); ?>
<script src="https://cdn.tiny.cloud/1/ouel3uwpwm72k70z91sb1tnlogecmzdka4g5vu5fpb3fheoo/tinymce/5/tinymce.min.js"></script>
<script>tinymce.init({selector:'textarea'});</script>
</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>Live Training</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">Training</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Content Header (Page header) -->
<div class="content">
<div class="container-fluid">
<div class="row">
<?php if(isset($_GET['training'])){ $t = explode('-', $_GET['training']); $t1=$t[0];
$cost = sqLx('training','sn',$t1,'cost1');
?>
<div class="col-md-12">
<div class="card ">
<div class="card-header text-white bg-dark">
<h5><?php echo sqLx('training','sn',$t1,'title') ?></h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-8" style="text-align: justify;">
<img width="100%" src="news/<?php echo sqLx('training','sn',$t1,'photo') ?>">
<br> <br>
<b>TRAINING DETAILS</b>
<?php echo stripcslashes(sqLx('training','sn',$t1,'note')) ?>
</div>
<div class="col-md-4">
<b>TRAINING INFORMATION</b>
<table class="table">
<tr><th>Fee</th><td><span>$<?php echo number_format($covis->myTrainingPrice($cost,$stage),2); ?></span> <span class="pl-2" style="text-decoration: line-through; color: grey">$<?php echo number_format($cost,2); ?></span></td></tr>
<tr><th>Date</th><td><?php echo ucwords(strtolower(sqLx('training','sn',$t1,'date'))) ?></td></tr>
<tr><th>Locations</th><td><?php $location = explode(';', sqLx('training','sn',$t1,'locations'));
$count = count($location);
$i = 0;
while($i<$count){ $e=$i++ ?>
<?php echo ($e+1).'. '.$location[$e] ?><br>
<?php } ?></td></tr>
</table>
<a href="#"data-toggle="modal" data-target="#RegTrain" class="btn btn-primary btn-block">Register for Training</a>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="col-md-12">
<div class="card ">
<div class="card-header text-white bg-dark">
<h5>Live Training Events</h5>
</div>
<div class="card-body">
<div class="row">
<?php $i=0;
$sql = $db->query("SELECT * FROM training WHERE status=1 ");
while($row = $sql->fetch_assoc()){ $i +=1; $course = $row['sn']; $cost=$row['cost1'];
?>
<div class="col-md-3 mb-1"><a href="?training=<?php echo $row['sn'].'-'.str_replace(' ', '-', $row['title']) ?>" style="color: black; ">
<img width="100%" src="news/<?php echo sqLx('training','sn',$course,'photo') ?>">
<?php echo ucwords(strtolower($row['title'])); ?><br>
<b> <span>$<?php echo number_format($covis->myTrainingPrice($cost,$stage),2); ?></span> <span class="pl-2" style="text-decoration: line-through; color: grey">$<?php echo number_format($cost,2); ?></span></b>
</a>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<!-- 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 -->
<form method="post" >
<div class="modal animated bounceInUp small-modal" id="RegTrain" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirm Registration</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<b>Registration Details</b>
<table class="table">
<tr><th>Title</th><td><span><?php echo ucwords(strtolower(sqLx('training','sn',$t1,'title'))); ?></span> </td></tr>
<tr><th>Fee</th><td><span>$<?php echo number_format($covis->myTrainingPrice($cost,$stage),2); ?></span> <span class="pl-2" style="text-decoration: line-through; color: grey">$<?php echo number_format($cost,2); ?></span></td></tr>
<tr><th>Date</th><td><?php echo ucwords(strtolower(sqLx('training','sn',$t1,'date'))) ?></td></tr>
</table>
<form method="post">
Select desired location
<select class="form-control" name="location" required>
<option value="">Select Location</option>
<?php $location = explode(';', sqLx('training','sn',$t1,'locations'));
$count = count($location);
$i = 0;
while($i<$count){ $e=$i++ ?>
<option><?php echo $location[$e] ?></option>
<?php } ?>
</select>
<br>
<button name="RegisterTrain" class="btn-block btn btn-primary"> PROCEED TO PAY $<?php echo number_format($covis->myTrainingPrice($cost,$stage),2); ?></button>
<br><br>
</form>
</div>
</div>
</div>
</div>
</form>
<!-- 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>