<?php
session_start();


include 'dbc.php';
$cname=$_REQUEST["cname"];
$userid=$_SESSION["userid"];
$today=date("Y-m-d");
$month = date("m",strtotime($today));
		$year = date("Y",strtotime($today));
		 $month_name = date("F", mktime(0, 0, 0, $month, 10));
		
		
		 $my=$month_name . " " . $year;
		 
		$ttime=date("h:i:sa");
	
 $sql1="Select * from addclass where user_id='$userid'";
$result1 = $conn->query($sql1);
$sql2="Select * from addclass where user_id='$userid'";
$result2 = $conn->query($sql2);
$sql3="Select * from addclass where user_id='$userid'";
$result3 = $conn->query($sql3);
?>
<!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="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Student Attendance Class and section wise  </strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Attendance_Report_Daily.php" method="post" enctype="multipart/form-data" class="form-group">
								
								
								<div class="col-3">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"> Date</label><input type="text" id="adate" name="adate" placeholder="Date" class="form-control" value="<? echo $today ?>"></div>
								</div>
								<div class="row form-group">
                                                                    
                                                                    <div class="col-12 col-md-4">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data1=$result1->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data1['cname']; ?>"><? echo $user_data1["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
																<div class="col-3">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"> Section</label><input type="text" id="cls_sec" name="cls_sec" placeholder="Section" class="form-control"></div>
								</div>
								
									
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> View Attednace Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>
											
											<div class="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Student Attendance Class Wise  </strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Attendance_Report_Daily_class.php" method="post" enctype="multipart/form-data" class="form-group">
								
								
								<div class="col-3">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"> Date</label><input type="text" id="adate" name="adate" placeholder="Date" class="form-control" value="<? echo $today ?>"></div>
								</div>
								<div class="row form-group">
                                                                    
                                                                    <div class="col-12 col-md-4">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data2=$result2->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data2['cname']; ?>"><? echo $user_data2["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
							
								
									
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> View Attednace Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>
											<div class="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Student Attendance All Classes  </strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Attendance_Report_Daily_All.php" method="post" enctype="multipart/form-data" class="form-group">
								
								
								<div class="col-3">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"> Date</label><input type="text" id="adate" name="adate" placeholder="Date" class="form-control" value="<? echo $today ?>"></div>
								</div>
								
							
								
									
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> View Attednace Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>
											<div class="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Print Student Attendance   </strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Attendance_Report_Daily_All_Print.php" method="post" enctype="multipart/form-data" class="form-group">
								
								
								<div class="col-3">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"> Date</label><input type="text" id="adate" name="adate" placeholder="Date" class="form-control" value="<? echo $today ?>"></div>
								</div>
								
							
								
									
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> Print Attednace Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>

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

    <!-- Right Panel -->

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

</body>

</html>
