<?php
	error_reporting(0);
	define('INCLUDE_CHECK',true);
	session_start();
	require ('classes/config.php');
	require_once('classes/session.php');
	
	
?>
<title>OSCOTECH, ESA-OKE :: Admin-Dashboard > Admitted Student Operation</title>


        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Delete Admitted Student</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                	<div class="well" style="background:#FFF">
                    	<form method="post" action="" role="form">
                        	<div class="form-group input-group">
                                <input type="text" class="form-control" placeholder="Search for Form No"name="searchtxt" title="Enter name for search " autocomplete="off">
                                <span class="input-group-btn">
                                    <input type="submit" class="btn btn-danger" name="btnsearch" value="Search" id="button-search" title="Search Student">
                                </span>
                            </div>
                        </form>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Student Details Table
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th>S/N</th>
                                            <th>FORM NO</th>
                                            <th>STATUS</th>
                                            <th>TYPE</th>
                                            <th>ENTRY</th>
                                            <th>OPERATION</th>
                                        </tr>
                                    </thead>
					<?php
                        $key="";
                        if(isset($_POST['searchtxt']))
                            $key=$_POST['searchtxt'];
                        
                        if($key !="")
                            $sql=mysql_query("SElECT * FROM admission_status WHERE formno='$key'");
                        else
                            $sql=mysql_query("SELECT * FROM admission_status");
                        
                            
                           
                        $i=0;
                        while($row=mysql_fetch_array($sql)){
							//$emailS=$row['email'];
							$cardidS=$row['cardno'];
                        $i++;
                        $color=($i%2==0)?"lightblue":"white";
                    ?>
                                    <tbody>
                                        <tr >
                                        	<td><?php echo $i;?></td>
                                            <td><?php echo $row['formno'];?></td>
                                            <td><?php echo $row['status'];?></td>
                                            <td><?php echo $row['type'];?></td>
                                            <td><?php echo $row['entry'];?></td>
                                            <td><a href="?action=is_deleted_admitted&opr=del&rs_id=<?php echo $row['formno'];?>" title="Delete"><img src="images/icon-48-delete.png" /></a></td>
                                        </tr>
                                    </tbody>
                          <?php	
							}														
							?>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                            
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
                        
           

        </div>
        <!-- /#page-wrapper -->
        

    </div>
    <!-- /#wrapper -->
    
