Your IP : 3.147.52.243
<?php
session_start(); ob_start();
include("../data.inc.php");
$repx = isset($_SESSION['sn'])?$_SESSION['sn']:$_SESSION['rid'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Registration</title>
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css">
<!-- jQuery libs -->
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript" src="js/jquery-search.js"></script>
</head>
<body>
<div id="container" style="width:100%; margin:0px;">
<input type="text" placeholder="Enter Name or Phone No to Search" autofocus id="searchData" style="width: 100%; height:35px; font-size:16px;" autocomplete="off">
<!--
-->
</div>
<div id="results"></div>
<script type="text/javascript">
setInterval(function() {
$("#refresh").load(location.href+" #refresh>*","");
}, 3000); // seconds to wait, miliseconds. 1s = 1000
</script>
<?php if(isset($reportx)){ ?> <div id="refresh" > <?php
echo '<div class="alert alert-danger alert-dismissible" style="position:fixed; top:50px; z-index:10000">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<i class="icon fa fa-check"></i> <strong>Alert!</strong> '. $reportx .'
</div>'; ?> </div> <?php } ?>
<?php if(isset($report)){ ?> <div id="refresh" > <?php
echo '<div class="alert alert-success alert-dismissible" style="position:fixed; top:50px; z-index:10000">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<i class="icon fa fa-check"></i> <strong>Alert!</strong> '. $report .'
</div>'; ?> </div> <?php } ?>
<?php if(isset($_GET['user'])){
$user = $_GET['user'];
$sq = $db->query("SELECT * FROM mdata WHERE sn = '$user' ");
$rr = mysqli_fetch_assoc($sq);
$rid = $rr['rid'];
if($rr['section']=='Adult'){$btn = 'primary'; $co = 'orange'; }
elseif($rr['section']=='Campus'){$btn = 'info'; $co = 'blue'; }
elseif($rr['section']=='Youth'){$btn = 'success'; $co = 'green'; }
elseif($rr['section']=='Children'){$btn = 'warning'; $co = 'pink'; }
?>
<div class="box-header">
<div style="float: right"><a href="?">Close</a> </div>
</div>
<div class="panel-body">
<form method="post">
<p style="display: block; background-color: <?php echo $co ?>; width: 100%; padding: 10px;"> SECTION: <strong><?php echo strtoupper($rr['section']); ?></strong> </p>
<p> Name: <strong><?php echo userName($rr['id']); ?></strong> </p>
<p> Group: <strong><?php echo gName($rr['gid']); ?></strong> </p>
<p> District: <strong><?php echo didName($rr['did']); ?></strong> </p>
<p> Gender: <strong><?php echo $rr['sex'] ?></strong> </p>
<input name="id" type="hidden" value="<?php echo $rr['sn'] ?>">
<?php if(regStatus($rr['sn'])==1){ ?>
<p><i>Tag Number</i> <input type="number" name="tag" class="form-control" min="1" max="20000" value="<?php echo userEvent($rr['sn']) ?>" placeholder="Tag Number" required></p>
<table><tr><td>
<button type="submit" class="btn btn-warning" name="ChangeTag" style="width:100%">CHANGE TAG</button>
</td><td> </td><td>
<button type="submit" class="btn btn-danger" name="UnRegUser" style="width:100%">UN-REGISTER</button>
</td></tr> </table>
<?php } else{ ?>
<p><input type="number" name="tag" class="form-control" min="1" max="20000" placeholder="Tag Number" required></p> <p>
<button type="submit" class="btn btn-<?php echo $btn ?>" name="RegUser" style="width:100%">REGISTER <?php echo strtoupper($rr['section']); ?> PARTICIPANT</button></p>
<?php } ?>
</form>
</div><!-- /.tab-content -->
<?php } ?>
</div>
<script src="../../bootstrap/js/bootstrap.min.js"></script>
</body>
</html>