Your IP : 18.225.55.42
<?php session_start(); ob_start();
error_reporting(0);
@ini_set('display_error', 0); include("../cludes/connect.inc.php");
$page = 16;
if(isset($_POST['section'])){$_SESSION['section'] = $_POST['section']; }
$section = isset($_SESSION['section']) ? $_SESSION['section'] : '';
if(array_key_exists('regAdult', $_POST)){
$surname = sanitize($_POST['surname']);
$firstname = sanitize($_POST['firstname']);
$othername = sanitize($_POST['othername']);
$familyname = sanitize($_POST['familyname']);
$phone = strlen(trim($_POST['phone']))>10 ? trim($_POST['phone']) : '';
$phone2 = strlen(trim($_POST['phone2']))>10 ? trim($_POST['phone2']) : '';
$email = sanitize($_POST['email']);
$sex = $_POST['sex'];
$birthday = $_POST['birthday'];
$marital = $_POST['marital'];
$address = addslashes(sanitize($_POST['address']));
$addressarea = addslashes(sanitize($_POST['addressarea']));
$office = addslashes(sanitize($_POST['office']));
$occupation = addslashes(sanitize($_POST['occupation']));
$academic = sanitize($_POST['academic']);
$professional = sanitize($_POST['professional']);
$worker = $_POST['chkwork'];
$leader = $worker==1 ? $_POST['leader'] : '';
$designation = $worker==1 ? $_POST['designation'] : '';
$aow = $worker==1 ? $_POST['aow'] : '';
$id = win_hashs(16);
$pass = rand(1000,9999);
$result = $db->query(" SELECT * FROM mdata WHERE phone = '$phone' AND surname = '$surname' AND firstname = '$firstname' AND phone != '' ") or die (mysqli_error());
$num = mysqli_num_rows($result);
if($num>0){
echo "<script type=\"text/javascript\">
alert(\"Oh Sorry, This User is already Registered!\");
</script>";
}
else{
$sql = $db->query("INSERT INTO mdata (sid,rid,gid,did,section,surname,firstname,othername,familyname,sex,birthday,phone,phone2,email,address,addressarea,occupation,office,marital,academic,professional,worker,leader,designation,aow,pass,rep,id)
VALUES('$sid','$rid','$gid','$did','$section','$surname','$firstname','$othername','$familyname','$sex','$birthday','$phone','$phone2','$email','$address','$addressarea','$occupation','$office','$marital','$academic','$professional','$worker','$leader','$designation','$aow','$pass','$rep','$id') ") or die(mysqli_error());
echo "<script type=\"text/javascript\">
alert(\"Data Successfully Submited!\");
</script>";
}
}
if(array_key_exists('regCampus', $_POST)){
$surname = sanitize($_POST['surname']);
$firstname = sanitize($_POST['firstname']);
$othername = sanitize($_POST['othername']);
$familyname = sanitize($_POST['familyname']);
$phone = strlen(trim($_POST['phone']))>10 ? trim($_POST['phone']) : '';
$phone2 = strlen(trim($_POST['phone2']))>10 ? trim($_POST['phone2']) : '';
$email = sanitize($_POST['email']);
$sex = $_POST['sex'];
$birthday = $_POST['birthday'];
$marital = $_POST['marital'];
$address = addslashes(sanitize($_POST['address']));
$addressarea = addslashes(sanitize($_POST['addressarea']));
$campus = addslashes(sanitize($_POST['campus']));
$faculty = addslashes(sanitize($_POST['faculty']));
$dept = sanitize($_POST['dept']);
$level = sanitize($_POST['level']);
$worker = $_POST['chkwork'];
$leader = $worker==1 ? $_POST['leader'] : '';
$designation = $worker==1 ? $_POST['designation'] : '';
$aow = $worker==1 ? $_POST['aow'] : '';
$id = win_hashs(16);
$pass = rand(1000,9999);
$result = $db->query(" SELECT * FROM mdata WHERE phone = '$phone' AND surname = '$surname' AND firstname = '$firstname' AND phone != '' ") or die (mysqli_error());
$num = mysqli_num_rows($result);
if($num>0){
echo "<script type=\"text/javascript\">
alert(\"Oh Sorry, This User is already Registered!\");
</script>";
}
else{
$sql = $db->query("INSERT INTO mdata (sid,rid,gid,did,section,surname,firstname,othername,familyname,sex,birthday,phone,phone2,email,address,addressarea,campus,faculty,marital,dept,level,worker,leader,designation,aow,pass,rep,id)
VALUES('$sid','$rid','$gid','$did','$section','$surname','$firstname','$othername','$familyname','$sex','$birthday','$phone','$phone2','$email','$address','$addressarea','$campus','$faculty','$marital','$dept','$level','$worker','$leader','$designation','$aow','$pass','$rep','$id') ") or die(mysqli_error());
echo "<script type=\"text/javascript\">
alert(\"Data Successfully Submited!\");
</script>";
}
}
if(array_key_exists('regYouth', $_POST)){
$surname = sanitize($_POST['surname']);
$firstname = sanitize($_POST['firstname']);
$othername = sanitize($_POST['othername']);
$familyname = sanitize($_POST['familyname']);
$phone = strlen(trim($_POST['phone']))>10 ? trim($_POST['phone']) : '';
$phone2 = strlen(trim($_POST['phone2']))>10 ? trim($_POST['phone2']) : '';
$email = sanitize($_POST['email']);
$sex = $_POST['sex'];
$birthday = $_POST['birthday'];
$marital = $_POST['marital'];
$address = addslashes(sanitize($_POST['address']));
$addressarea = addslashes(sanitize($_POST['addressarea']));
$student = $_POST['chkwork'];
$school = $student==1 ? addslashes(sanitize($_POST['school'])) : '';
$class = $student==1 ? $_POST['class'] : '';
$vocation = $student==0 ? addslashes(sanitize($_POST['vocation'])) : '';
$office = $student==0 ? addslashes(sanitize($_POST['office'])) : '';
$id = win_hashs(16);
$pass = rand(1000,9999);
$result = $db->query(" SELECT * FROM mdata WHERE phone = '$phone' AND surname = '$surname' AND firstname = '$firstname' AND phone != '' ") or die (mysqli_error());
$num = mysqli_num_rows($result);
if($num>0){
echo "<script type=\"text/javascript\">
alert(\"Oh Sorry, This User is already Registered!\");
</script>";
}
else{
$sql = $db->query("INSERT INTO mdata (sid,rid,gid,did,section,surname,firstname,othername,familyname,sex,birthday,phone,phone2,email,address,addressarea,student,school,class,vocation,office,pass,rep,id)
VALUES('$sid','$rid','$gid','$did','$section','$surname','$firstname','$othername','$familyname','$sex','$birthday','$phone','$phone2','$email','$address','$addressarea','$student','$school','$class','$vocation','$office','$pass','$rep','$id') ") or die(mysqli_error());
echo "<script type=\"text/javascript\">
alert(\"Data Successfully Submited!\");
</script>";
}
}
if(array_key_exists('regChildren', $_POST)){
$surname = sanitize($_POST['surname']);
$firstname = sanitize($_POST['firstname']);
$othername = sanitize($_POST['othername']);
$familyname = sanitize($_POST['familyname']);
$phone = strlen(trim($_POST['phone']))>10 ? trim($_POST['phone']) : '';
$phone2 = strlen(trim($_POST['phone2']))>10 ? trim($_POST['phone2']) : '';
$email = sanitize($_POST['email']);
$sex = $_POST['sex'];
$birthday = $_POST['birthday'];
$marital = $_POST['marital'];
$address = addslashes(sanitize($_POST['address']));
$addressarea = addslashes(sanitize($_POST['addressarea']));
$school = addslashes(sanitize($_POST['school'])) ;
$class = $_POST['class'] ;
$id = win_hashs(16);
$result = $db->query(" SELECT * FROM mdata WHERE phone = '$phone' AND surname = '$surname' AND firstname = '$firstname' AND phone != '' ") or die (mysqli_error());
$num = mysqli_num_rows($result);
if($num>0){
echo "<script type=\"text/javascript\">
alert(\"Oh Sorry, This User is already Registered!\");
</script>";
}
else{
$sql = $db->query("INSERT INTO mdata (sid,rid,gid,did,section,surname,firstname,othername,familyname,sex,birthday,phone,phone2,email,address,addressarea,school,class,rep,id)
VALUES('$sid','$rid','$gid','$did','$section','$surname','$firstname','$othername','$familyname','$sex','$birthday','$phone','$phone2','$email','$address','$addressarea','$school','$class','$rep','$id') ") or die(mysqli_error());
echo "<script type=\"text/javascript\">
alert(\"Data Successfully Submited!\");
</script>";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Members Data</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">
<!-- daterange picker -->
<link rel="stylesheet" href="../plugins/daterangepicker/daterangepicker-bs3.css">
<!-- iCheck for checkboxes and radio inputs -->
<link rel="stylesheet" href="../plugins/iCheck/all.css">
<!-- Bootstrap Color Picker -->
<link rel="stylesheet" href="../plugins/colorpicker/bootstrap-colorpicker.min.css">
<!-- Bootstrap time Picker -->
<link rel="stylesheet" href="../plugins/timepicker/bootstrap-timepicker.min.css">
<!-- Select2 -->
<link rel="stylesheet" href="../plugins/select2/select2.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php require('header.php'); ?>
<!-- Left side column. contains the logo and sidebar -->
<?php require('sidebarx.php'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Members Registration
</h1>
<ol class="breadcrumb">
<li><i class="fa fa-dashboard"></i> Setup</li>
<li class=""> <?php echo $ro['reg']; ?></li>
<li class="active"><?php echo $ro['zone']; ?></li>
<li class="active"><?php echo $ro['district']; ?></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-4 col-sm-12 col-xs-12" id="profile">
<div class="box">
<div class="box-header">
<h3 class="box-title">REGISTER MEMBER </h3>
</div>
<div class="panel-body">
<p>
<form method="post">
<b>SECTION</b>
<select name="section" class="form-control" style = "position: relative; color:blue; font-weight:bold" onchange="submit()">
<option selected disabled>SELECT SECTION</option>
<option <?php if('Adult'==$section){ echo 'selected' ; } ?>>Adult</option>
<option <?php if('Campus'==$section){ echo 'selected' ; } ?>>Campus</option>
<option <?php if('Youth'==$section){ echo 'selected' ; } ?>>Youth</option>
<option <?php if('Children'==$section){ echo 'selected' ; } ?> >Children</option>
</select>
</form>
</p>
<?php if($section == 'Adult'){ ?>
<form method="post" >
<p>
<input name="surname" class="form-control" placeholder="Surname*" required >
</p>
<p>
<input name="firstname" class="form-control" placeholder="First Name*" required>
</p>
<p>
<input name="othername" class="form-control" placeholder="Other Names" >
</p>
<p>
<input name="familyname" class="form-control" placeholder="Family Name*" required>
<i><small>Should be the same for members of a family</small></i>
</p>
<p>
<select name="sex" class="form-control select2" required="">
<option selected disabled value="">SELECT GENDER...</option>
<option>Male</option>
<option>Female</option>
</select>
</p>
<p>
<select name="marital" class="form-control select2" required="">
<option selected disabled value="">SELECT MARITAL STATUS...</option>
<option>Single</option>
<option>Married</option>
<option>Widowed</option>
</select>
</p>
<p>
<i>Date of Birth</i>
<input name="birthday" type="date" class="form-control" placeholder="Date of Birth*" required >
</p>
<p>
<input name="phone2" class="form-control" placeholder="Phone Number (CUG)" >
</p>
<p>
<input name="phone" class="form-control" placeholder="Phone Number (Non CUG)" >
</p>
<p>
<textarea name="address" class="form-control" placeholder="Detailed Residential Address*" rows="2" required></textarea>
</p>
<p>
<textarea name="addressarea" class="form-control" placeholder="Describe Area, Community, Bus Stop, Junction" rows="2" ></textarea>
</p>
<p>
<input name="email" type="email" class="form-control" placeholder="E-mail" >
</p>
<p>
<input name="occupation" class="form-control" placeholder="Occupation" >
</p>
<p>
<input name="office" class="form-control" placeholder="Office Address" >
</p>
<p>
<input name="academic" class="form-control" placeholder="Academic Qualification" >
</p>
<p>
<input name="professional" class="form-control" placeholder="Professional Qualification" >
</p>
<script type="text/javascript">
function ShowHideDiv() {
var chkYes = document.getElementById("chkYes");
var dvPassport = document.getElementById("dvPassport");
dvPassport.style.display = chkYes.checked ? "block" : "none"; }
function Show() {
var kYes = document.getElementById("kYes");
var dvPass = document.getElementById("dvPass");
dvPass.style.display = kYes.checked ? "block" : "none";
}
</script>
<p><span><strong>Church Worker?</strong></span>
<label for="chkYes">
<input type="radio" id="chkYes" name="chkwork" onclick="ShowHideDiv()" value="1" required />
Yes
</label>
<label for="chkNo">
<input type="radio" id="chkNo" name="chkwork" onclick="ShowHideDiv()" value="0" required />
No
</label>
</p>
<div id="dvPassport" style="display: none">
<p>
<select name="designation" class="form-control select2" style="width: 100%">
<option selected disabled>DESIGNATION...</option>
<?php
$query=$db->query("select * FROM port ORDER BY port ASC " )or die(mysqli_error());
while($row=mysqli_fetch_array($query)){
?>
<option><?php echo ucwords($row['port']); ?></option>
<?php } ?>
</select>
</p>
<p>
<select name="aow" class="form-control select2" style="width: 100%">
<option selected disabled>AREA OF WORK...</option>
<?php
$query=$db->query("select * FROM aow ORDER BY aow ASC " )or die(mysqli_error());
while($row=mysqli_fetch_array($query)){
?>
<option><?php echo ucwords($row['aow']); ?></option>
<?php } ?>
</select>
<br><em>Retreats/District Area of Work</em>
</p>
<p> <b>Attends Tuesday Leaders Meeting?</b> <br><strong> <input name="leader" type="radio" value="1" > Yes <input name="leader" type="radio" value="0" > No</strong></p>
</div>
<p>
<button type="submit" class="btn btn-primary" name="regAdult" style="width:100%">REGISTER ADULT</button>
</p>
</form>
<?php } ?>
<?php if($section == 'Campus'){ ?>
<form method="post" >
<p>
<input name="surname" class="form-control" placeholder="Surname*" required >
</p>
<p>
<input name="firstname" class="form-control" placeholder="First Name*" required>
</p>
<p>
<input name="othername" class="form-control" placeholder="Other Names" >
</p>
<p>
<input name="familyname" class="form-control" placeholder="Family Name*" required>
<i><small>Should be the same for members of a family</small></i>
</p>
<p>
<select name="sex" class="form-control select2" required="">
<option selected disabled value="">SELECT GENDER...</option>
<option>Male</option>
<option>Female</option>
</select>
</p>
<p>
<select name="marital" class="form-control select2" required="">
<option selected disabled value="">SELECT MARITAL STATUS...</option>
<option>Single</option>
<option>Married</option>
<option>Widowed</option>
</select>
</p>
<p><i>Date of Birth</i>
<input name="birthday" type="date" class="form-control" placeholder="Date of Birth*" required >
</p>
<p>
<input name="phone2" class="form-control" placeholder="Phone Number (CUG)" >
</p>
<p>
<input name="phone" class="form-control" placeholder="Phone Number (Non CUG)" >
</p>
<p>
<textarea name="address" class="form-control" placeholder="Detailed Residential Address*" rows="2" required></textarea>
</p>
<p>
<textarea name="addressarea" class="form-control" placeholder="Describe Area, Community, Bus Stop, Junction" rows="2" ></textarea>
</p>
<p>
<input name="email" type="email" class="form-control" placeholder="E-mail" >
</p>
<p>
<input name="campus" class="form-control" placeholder="Institution/Campus" >
</p>
<p>
<input name="faculty" class="form-control" placeholder="Faculty/School" >
</p>
<p>
<input name="dept" class="form-control" placeholder="Department" >
</p>
<p>
<input name="level" class="form-control" placeholder="Level/Year" >
</p>
<script type="text/javascript">
function ShowHideDiv() {
var chkYes = document.getElementById("chkYes");
var dvPassport = document.getElementById("dvPassport");
dvPassport.style.display = chkYes.checked ? "block" : "none"; }
function Show() {
var kYes = document.getElementById("kYes");
var dvPass = document.getElementById("dvPass");
dvPass.style.display = kYes.checked ? "block" : "none";
}
</script>
<p><span><strong>Church Worker?</strong></span>
<label for="chkYes">
<input type="radio" id="chkYes" name="chkwork" onclick="ShowHideDiv()" value="1" required />
Yes
</label>
<label for="chkNo">
<input type="radio" id="chkNo" name="chkwork" onclick="ShowHideDiv()" value="0" required />
No
</label>
</p>
<div id="dvPassport" style="display: none">
<p>
<select name="designation" class="form-control select2" style="width: 100%">
<option selected disabled value="">DESIGNATION...</option>
<?php
$query=$db->query("select * FROM port ORDER BY port ASC " )or die(mysqli_error());
while($row=mysqli_fetch_array($query)){
?>
<option><?php echo ucwords($row['port']); ?></option>
<?php } ?>
</select>
</p>
<p>
<select name="aow" class="form-control select2" style="width: 100%">
<option selected disabled value="">AREA OF WORK...</option>
<?php
$query=$db->query("select * FROM aow ORDER BY aow ASC " )or die(mysqli_error());
while($row=mysqli_fetch_array($query)){
?>
<option><?php echo ucwords($row['aow']); ?></option>
<?php } ?>
</select>
<br><em>Retreats/District Area of Work</em>
</p>
<p> <b>Attends Tuesday Leaders Meeting?</b> <br><strong> <input name="leader" type="radio" value="1" > Yes <input name="leader" type="radio" value="0" > No</strong></p>
</div>
<p>
<button type="submit" class="btn btn-info" name="regCampus" style="width:100%">REGISTER CAMPUS STUDENT</button>
</p>
</form>
<?php } ?>
<?php if($section == 'Youth'){ ?>
<form method="post" >
<p>
<input name="surname" class="form-control" placeholder="Surname*" required >
</p>
<p>
<input name="firstname" class="form-control" placeholder="First Name*" required>
</p>
<p>
<input name="othername" class="form-control" placeholder="Other Names" >
</p>
<p>
<input name="familyname" class="form-control" placeholder="Family Name*" required>
<i><small>Should be the same for members of a family</small></i>
</p>
<p>
<select name="sex" class="form-control select2" required="">
<option selected disabled value="">SELECT GENDER...</option>
<option>Male</option>
<option>Female</option>
</select>
</p>
<p>
<i>Date of Birth</i>
<input name="birthday" type="date" class="form-control" placeholder="Date of Birth*" required >
</p>
<p>
<input name="phone2" class="form-control" placeholder="Phone Number (CUG)" >
</p>
<p>
<input name="phone" class="form-control" placeholder="Phone Number (Non CUG)" >
</p>
<p>
<textarea name="address" class="form-control" placeholder="Detailed Residential Address*" rows="2" required></textarea>
</p>
<p>
<textarea name="addressarea" class="form-control" placeholder="Describe Area, Community, Bus Stop, Junction" rows="2" ></textarea>
</p>
<p>
<input name="email" type="email" class="form-control" placeholder="E-mail" >
</p>
<script type="text/javascript">
function ShowHideDiv() {
var chkYes = document.getElementById("chkYes");
var dvPassport = document.getElementById("dvPassport");
dvPassport.style.display = chkYes.checked ? "block" : "none";
dvPass.style.display = chkNo.checked ? "block" : "none"; }
</script>
<p><span><strong>Are you a student?</strong></span>
<label for="chkYes">
<input type="radio" id="chkYes" name="chkwork" onclick="ShowHideDiv()" value="1" required />
Student
</label>
<label for="chkNo">
<input type="radio" id="chkNo" name="chkwork" onclick="ShowHideDiv()" value="0" required />
Vocational
</label>
</p>
<div id="dvPassport" style="display: none">
<p><input name="school" class="form-control" placeholder="School" ></p>
<p>
<select name="class" class="form-control select2" style="width: 100%" >
<option selected disabled value="">SELECT CLASS...</option>
<option>JSS 1</option>
<option>JSS 2</option>
<option>JSS 3</option>
<option>SSS 1</option>
<option>SSS 2</option>
<option>SSS 3</option>
<option>EX-STUDENT</option>
</select>
</p>
</div>
<div id="dvPass" style="display: none">
<p><input name="vocation" class="form-control" placeholder="Vocation" ></p>
<p><input name="office" class="form-control" placeholder="Workshop Address" ></p>
</div>
<p>
<button type="submit" class="btn btn-success" name="regYouth" style="width:100%">REGISTER STUDENT</button>
</p>
</form>
<?php } ?>
<?php if($section == 'Children'){ ?>
<form method="post" >
<p>
<input name="surname" class="form-control" placeholder="Surname*" required >
</p>
<p>
<input name="firstname" class="form-control" placeholder="First Name*" required>
</p>
<p>
<input name="othername" class="form-control" placeholder="Other Names" >
</p>
<p>
<input name="familyname" class="form-control" placeholder="Family Name*" required>
<i><small>Should be the same for members of a family</small></i>
</p>
<p>
<select name="sex" class="form-control select2" required="">
<option selected disabled value="">SELECT GENDER...</option>
<option>Male</option>
<option>Female</option>
</select>
</p>
<p><i>Date of Birth</i>
<input name="birthday" type="date" class="form-control" placeholder="Date of Birth*" required >
</p>
<p>
<textarea name="address" class="form-control" placeholder="Detailed Residential Address*" rows="2" required></textarea>
</p>
<p>
<textarea name="addressarea" class="form-control" placeholder="Describe Area, Community, Bus Stop, Junction" rows="2" ></textarea>
</p>
<p><input name="school" class="form-control" placeholder="School" ></p>
<p>
<select name="class" class="form-control select2" style="width: 100%" required>
<option selected disabled value="">SELECT CLASS...</option>
<option>PRE NUR</option>
<option>NUR</option>
<option>PRY 1</option>
<option>PRY 2</option>
<option>PRY 3</option>
<option>PRY 4</option>
<option>PRY 5</option>
<option>PRY 6</option>
<option>JSS 1</option>
<option>JSS 2</option>
<option>JSS 3</option>
</select>
</p>
<p>
<button type="submit" class="btn btn-warning" name="regChildren" style="width:100%">REGISTER CHILD</button>
</p>
</form>
<?php } ?>
</div><!-- /.tab-content -->
</div><!-- /.box -->
</div>
<div class="col-md-8 col-sm-12 col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Recent Entries</h3>
</div><!-- /.box-header -->
<div class="box-body table-responsive">
<table class="table table-bordered ">
<thead>
<tr>
<th>SN</th>
<th>Name</th>
<th>Phone (CUG)</th>
<th>Phone (Other)</th>
<th>Gender</th>
<th>Section</th>
</tr>
</thead>
<tbody>
<?php $i=1; $sql=$db->query("SELECT * FROM mdata WHERE did = '$did' ORDER BY sn DESC LIMIT 10 " )or die(mysqli_error());
while($row=mysqli_fetch_array($sql)){
$e=$i++ ;
?>
<tr class="odd gradeX">
<td><?php echo $e; ?></td>
<td><a href="updatemember.php?index=<?php echo $row['id']; ?>"> <?php echo userName($row['id']); ?></td>
<td><a href="tel:<?php echo $row['phone2']; ?>"><?php echo $row['phone2']; ?></a></td>
<td><a href="tel:<?php echo $row['phone']; ?>"><?php echo $row['phone']; ?></a></td>
<td><?php echo $row['sex']; ?></td>
<td><?php echo $row['section']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
</div><!-- /.row -->
<!-- =========================================================== -->
</div><!-- /.row -->
</section> <!-- /.content -->
</div><!-- /.content-wrapper -->
<?php require('footer.php'); ?>
<!-- Control Sidebar -->
<?php // require('settingbar.php'); ?>
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div><!-- ./wrapper -->
<!-- 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>
<!-- Select2 -->
<script src="../plugins/select2/select2.full.min.js"></script>
<!-- InputMask -->
<script src="../plugins/input-mask/jquery.inputmask.js"></script>
<script src="../plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="../plugins/input-mask/jquery.inputmask.extensions.js"></script>
<!-- date-range-picker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js"></script>
<script src="../plugins/daterangepicker/daterangepicker.js"></script>
<!-- bootstrap color picker -->
<script src="../plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!-- bootstrap time picker -->
<script src="../plugins/timepicker/bootstrap-timepicker.min.js"></script>
<!-- SlimScroll 1.3.0 -->
<script src="../plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- iCheck 1.0.1 -->
<script src="../plugins/iCheck/icheck.min.js"></script>
<!-- FastClick -->
<script src="../plugins/fastclick/fastclick.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<script>
$(function () {
//Initialize Select2 Elements
$(".select2").select2();
//Datemask dd/mm/yyyy
$("#datemask").inputmask("dd/mm/yyyy", {"placeholder": "dd/mm/yyyy"});
//Datemask2 mm/dd/yyyy
$("#datemask2").inputmask("mm/dd/yyyy", {"placeholder": "mm/dd/yyyy"});
//Money Euro
$("[data-mask]").inputmask();
//Date range picker
$('#reservation').daterangepicker();
//Date range picker with time picker
$('#reservationtime').daterangepicker({timePicker: true, timePickerIncrement: 30, format: 'MM/DD/YYYY h:mm A'});
//Date range as a button
$('#daterange-btn').daterangepicker(
{
ranges: {
'Today': [moment(), moment()],
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month': [moment().startOf('month'), moment().endOf('month')],
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
startDate: moment().subtract(29, 'days'),
endDate: moment()
},
function (start, end) {
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
}
);
//iCheck for checkbox and radio inputs
$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
checkboxClass: 'icheckbox_minimal-blue',
radioClass: 'iradio_minimal-blue'
});
//Red color scheme for iCheck
$('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
checkboxClass: 'icheckbox_minimal-red',
radioClass: 'iradio_minimal-red'
});
//Flat red color scheme for iCheck
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
checkboxClass: 'icheckbox_flat-green',
radioClass: 'iradio_flat-green'
});
//Colorpicker
$(".my-colorpicker1").colorpicker();
//color picker with addon
$(".my-colorpicker2").colorpicker();
//Timepicker
$(".timepicker").timepicker({
showInputs: false
});
});
</script>
</body>
</html>