<?php
session_start();
if($_SESSION["username"]=="")
{
 	echo "You are not Logged in Please <a href='index.html'>Sign in </a> First ";
}
else
{
include 'dbc.php';
date_default_timezone_set("Asia/Karachi");
$today=date("Y-m-d");

$userid=$_SESSION["userid"];
$month_name=$_POST["month_name"];

?>
<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head>
   <?php include("includes/header.php") ?>
</head>

<body>


    <!-- Left Panel -->

    <?php include("includes/menu.php") ?><!-- /#left-panel -->

    <!-- Left Panel -->

    <!-- Right Panel -->

    <div id="right-panel" class="right-panel">

        <!-- Header-->
        <header id="header" class="header">

             <?php include("includes/headermenu.php") ?>

        </header><!-- /header -->
        <!-- Header-->

        <div class="breadcrumbs">
            <div class="col-sm-6">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><? echo "" . $_SESSION["userid"]; ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li class="active"><? echo "" . $_SESSION["username"]; ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <div class="content mt-3">
            <div class="animated fadeIn">
                <div class="row">

                    <div class="col-md-14">
                        <div class="card">
                            <div class="card-header">
                                <strong class="card-title">Do InActive Student </strong>
                            </div>
                            <div class="card-body">
							<?php

include 'dbc.php';


$userid=$_SESSION["userid"];
$month_name=$_POST["month_name"];
$sql = "SELECT * FROM teacher where status='Active' and user_id='$userid' order by class_name";
$result=$conn->query($sql);
?>
                                <table id="bootstrap-data-table-export" class="table table-striped table-bordered">
                                    <thead>
									<tr>
<td><form name="form1" method="post" action="Teacher_Increament_Yearly_Save.php">

<table width="1000" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF">Increament %<input type="text" name="incamount" value="10"></td>
<td bgcolor="#FFFFFF">Month<input type="text" name="month" value="<? echo $month_name ?>"></td>
<td colspan="6" bgcolor="#FFFFFF"><strong>All Student Info</strong> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">#</td>
<td align="center" bgcolor="#FFFFFF"><strong>Id</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Date of Joining</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Teacher Name</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Father Name</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong> Desg </strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Salary</strong></td>

</tr>

                                    </thead>
									
                                    <tbody>
									<?php
                                       while($rows = $result->fetch_assoc())
 
  {
  $adm_date = $rows['adm_date'];
  $month1 = date("m",strtotime($adm_date));
		$year = date("Y",strtotime($adm_date));
		 $month_name1 = date("F", mktime(0, 0, 0, $month1, 10));
		 if ($month_name == $month_name1)
		 {
  ?>
 <tr>
<td align="center" bgcolor="#FFFFFF"><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $rows['id']; ?>"></td>
<td bgcolor="#FFFFFF"><? echo $rows['id']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['adm_date']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['tech_name']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['father_name']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['class_name']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['monthly_salary']; ?></td>

</tr>

<?php
}
}
?>
<tr>
<td colspan="7" align="center" bgcolor="#FFFFFF"><input name="delete" type="submit" id="delete" value="Update"></td>
</tr>

</form>
		 
		  
		 

                                
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>


                </div>
            </div><!-- .animated -->
        </div> <!-- .content -->
    </div><!-- /#right-panel -->

    <!-- Right Panel -->

   <?php include("includes/footermenu.php") ?>

</body>

</html>
<?php
}

?>