Your IP : 3.138.60.175
<?php
session_start(); ob_start();
//error_reporting(0);
//@ini_set('display_error', 0);
include('dclm/control.php');
if(array_key_exists('RegisterEvent', $_POST)){
extract($_POST);
$sql = $db->query("INSERT INTO newevent (surname,othername,phone,email,address,ministry,profession,invited,offaddress,sex,status,lga,denomination,town,region,zone) VALUES('$surname','$othername','$phone','$email','$address','$ministry','$profession','$invited','$offaddress','$sex','$status','$lga','$denomination','$town','$region','$zone')");
if($sql){$report = 'Registration Successfully Submitted'; }
}
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Conference Registration</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/AdminLTE.min.css">
<!-- iCheck -->
<link rel="stylesheet" href="plugins/iCheck/square/blue.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.2.2/css/buttons.dataTables.min.css" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.form-control{
height:45px !important;
}
</style>
</head>
<body class="">
<div class="login-box">
<center>
<!--<img src="user/upload/user.jpg"> -->
<h3>
<a href=""><b>GCK MINISTERIAL RENEWAL CONFERENCE</b></a> </h3></center>
<div class="login-box-body" style="padding:0">
<?php if(isset($report)){ ?><span class="btn btn-success btn-lg"><?= $report; ?></span> <?php } ?>
<p class="login-box-msg">Register to participate in the conference
</p>
<form method="post" enctype="multipart/form-data">
<div class="form-group has-feedback">
<label>Surname</label>
<input type="text" class="form-control" style="height:40px" placeholder="Surname*" name="surname" required>
</div>
<div class="form-group has-feedback">
<label>Other Names</label>
<input type="text" class="form-control" style="height:40px" placeholder="Other Names*" name="othername" required>
</div>
<div class="form-group has-feedback">
<label>Gender</label>
<select class="form-control" style="height:40px" name="sex" required>
<option value="">Select Option...</option>
<option>Male</option>
<option>Female</option>
</select>
</div>
<div class="form-group has-feedback">
<label>Phone Number</label>
<input type="text" class="form-control" style="height:40px" placeholder="Pnone Number*" name="phone" required>
</div>
<div class="form-group has-feedback">
<label>E-mail</label>
<input type="text" class="form-control" style="height:40px" placeholder="E-mail" name="email">
</div>
<div class="form-group has-feedback">
<label>Denomination</label>
<select class="form-control" style="height:40px" onchange="getDenom(this.value)" name="denomination" required>
<option value="">Select Option...</option>
<option value="2">Specify Denomination</option>
<option value="1">Deeper Life Bible Church</option>
</select>
</div>
<div id="2" style="display: none">
<div class="form-group has-feedback">
<label>Name of Church/Denomination</label>
<input type="text" class="form-control" style="height:40px" placeholder="Church/Ministry*" name="ministry" >
</div>
<div class="form-group has-feedback">
<label>Address of Church/Denomination</label>
<input type="text" class="form-control" style="height:40px" placeholder="Church Address" name="address">
</div>
<div class="form-group has-feedback">
<label>Town</label>
<input type="text" class="form-control" style="height:40px" placeholder="Town" name="town">
</div>
</div>
<div id="1" style="display: none">
<div class="form-group has-feedback">
<label>Region</label>
<select class="form-control" style="height:40px" onchange="getGroup(this.value)" name="region">
<option value="">Select Option...</option>
<option>Akure</option>
<option>Akure North</option>
<option>Ikare</option>
<option>Oka</option>
<option>Ose</option>
<option>Owo</option>
<option>Others</option>
</select>
</div>
<div class="form-group has-feedback">
<label>Group of Districts</label>
<select class="form-control" style="height:40px" name="zone" id="grp">
<!--<option value="">Select Option...</option>-->
</select>
</div>
</div>
<div class="form-group has-feedback">
<label>Local Government Area</label>
<select class="form-control" style="height:40px" name="lga" required>
<option value="">Select Option...</option>
<option>Akoko North-East</option>
<option>Akoko North-West</option>
<option>Akoko South-East</option>
<option>Akoko South-West</option>
<option>Akure North</option>
<option>Akure South</option>
<option>Ese Odo</option>
<option>Idanre</option>
<option>Ifedore</option>
<option>Ilaje</option>
<option>Ile Oluji/Okeigbo</option>
<option>Irele</option>
<option>Odigbo</option>
<option>Okitipupa</option>
<option>Ondo East</option>
<option>Ondo West</option>
<option>Ose</option>
<option>Owo</option>
<option>Others</option>
</select>
</div>
<div class="form-group has-feedback">
<label>Area of Work in Church</label>
<input type="text" class="form-control" style="height:40px" placeholder="Church Area of Work" name="profession">
</div>
<div class="form-group has-feedback">
<label>Status</label>
<select class="form-control" style="height:40px" onchange="getStatus(this.value)" name="status" required>
<option value="">Select Option...</option>
<option>Founder/GO</option>
<option>Bishop</option>
<option>Reverend</option>
<option>Pastor</option>
<option>Worker</option>
<option>Others</option>
</select>
</div>
<div class="form-group has-feedback" id="status"></div>
<div class="form-group has-feedback">
<!--<label>Office Address</label>-->
<input type="hidden" class="form-control" style="height:40px" placeholder="Office Address" name="offaddress">
</div>
<div class="form-group has-feedback">
<label>Who Invited You</label>
<input type="text" class="form-control" style="height:40px" placeholder="Invited By" name="invited">
</div>
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary btn-lg btn-block" style="width:100%" name="RegisterEvent">Register</button>
</div><!-- /.col -->
</div>
</form>
<!--- <a href="#">Admin</a><br> ---->
</div><!-- /.login-box-body -->
</div><!-- /.login-box -->
<!-- jQuery 2.1.4 -->
<script src="plugins/jQuery/jQuery-2.1.4.min.js"></script>
<!-- Bootstrap 3.3.5 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="plugins/iCheck/icheck.min.js"></script>
<!-- for data tables-->
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.2.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.print.min.js"></script>
<!-- page script -->
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
$(function () {
$('#example1').DataTable()
$('#example2').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : false,
'info' : true,
'autoWidth' : true,
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
})
})
$(document).ready(function() {
$('.example').DataTable( {
'lengthChange': true,
dom: 'Bfrtip',
buttons: [
'copy', 'excel', 'pdf'
]
} );
} );
</script>
<script>
function getStatus(v){
if(v=='Others'){
var x = '<label>Specify Status</label><input type="text" class="form-control" style="height:40px" placeholder="Status" name="status">';
}else{
var x = '';
}
$('#status').html(x);
}
function getDenom(v){
document.getElementById(1).style.display='none';
document.getElementById(2).style.display='none';
document.getElementById(v).style.display='block';
}
var Region = {
Akure : ["Aanuoluwa",
"Abusoro",
"Ajipowo",
"Aponmu",
"Awule",
"Ayedun",
"Boluwaji",
"Cultural",
"Dlcf",
"Esho",
"Faithfulness",
"Fanibi",
"Fiyinfolu",
"Futa",
"Glorious",
"Hospital",
"Ibukun oluwa",
"Ifeoluwa",
"Igbara-oke",
"Igbo",
"Ijapo",
"Ijare",
"Ijoka",
"Ilara",
"Inioluwa",
"Irese",
"Irewole",
"Isinkan",
"Isolo",
"Kajola",
"Oda",
"Odoikoyi",
"Oke-aro",
"Oke-ogba ",
"Oloruntedo",
"Omoniyi",
"Orita-obele",
"Oyemekun",
"Shagari",
"Surulere",
"Unity",
"Vining"],
AkureNorth: ["Agbeja", "Agunla", "Ala", "Alayere", "Ayetoro", "Bolorunduro", "Campus", "Campground", "Daada", "Igbatoro", "Igoba", "Iju College", "Iju Ijigbo", "Iluabo", "Itaogbolu", "Irowo", "Housing", "Jegele", "Kasemola", "Obaile", "Ogbese", "Okealafia", "Palace", "Ugele"],
Ikare: ["Jubilee", "Ekan ile", "Ogbagi", "Isowopo", "Ikaram", "Arigidi", "Okeagbe", "Olokun", "Okegbe", "Ugbe", "Campus"],
Oka: ["Ikese", "Agba", "Okaodo", "Owalusi", "Ayepe", "Isua", "Ilelabo", "Epinmi", "Ipe", "Okusa", "Supare", "Araromi", "Akowonjo", "Campus", "Oba", "Ayegunle", "Etioro"],
Ose: ["Ifon Oruju", "Ifon Moboluwaduro", "Ifon Uma", "Omialafa", "Sobe", "Arimogija", "Ute", "Okeluse", "Asolo", "Idoani", "Owani"],
Owo: ["Express", "Secretariat", "Okedogbon", "GRA", "Dominion", "Ijebu", "Iselu", "Victory", "Idashen", "Okeogun", "Igbo Church", "Ebira 1 and 2", "Otapete", "Campus Church", "Okebola Iyere", "Irowo Iyere", "Bolorunduro Emure", "Olutedo Emure", "Amurin", "Isho", "Isuada", "Ipenme", "Ipele", "Asabia Group"],
Others: ["Others"]
}
function getGroup(v){
var v = v.replace(' ','');
$('#grp').html('');
$('#grp').append('<option value="">Select Option...</option>');
var a = Region[v];
a.sort();
a.forEach((element) => {
$('#grp').append('<option>'+element+'</option>');
});
}
</script>
</body>
</html>