<?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';

$userid=$_SESSION["userid"];

date_default_timezone_set("Asia/Karachi");
$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;
$userid=$_SESSION["userid"];
$cname=$_REQUEST["cname"];
include 'dbc.php';
$sql3="Select * from addclass where user_id='$userid'";
$result1 = $conn->query($sql3);
$sql4="Select * from addclass where user_id='$userid'";
$result4 = $conn->query($sql4);
$sql = "SELECT * FROM addclass where cname = '$cname' and user_id='$userid'";
$result=$conn->query($sql);
$row = $result->fetch_assoc();

$mfee=$row['mfee'] ;
$feedisc1=$row['feedisc1'] ;
$fee1=$row['fee1'] ;
$feedisc2=$row['feedisc2'] ;
$feedisc3=$row['fee2'] ;
$feedisc3=$row['feedisc3'] ;
$fee3=$row['fee3'] ;
$feedisc4=$row['feedisc4'] ;
$fee4=$row['fee4'] ;
$feedisc5=$row['feedisc5'] ;
$fee5=$row['fee5'] ;
$feedisc6=$row['feedisc6'] ;
$fee6=$row['fee6'] ;

?>
<!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-lg-12">
												<div class="card">
                            <div class="card-header"><strong>Pritn Monthly Challan All Fee Head  </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Print_Monthly_Challan_Save1.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Class</label></div>
                                                                    <div class="col-12 col-md-8">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data3=$result1->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data3['cname']; ?>"><? echo $user_data3["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
																<div class="col-6">
                                <div class="form-group"><label for="cname" class=" form-control-label">Class Section</label><input type="text" id="cls_sec" name="cls_sec" class="form-control"></div>
								</div>
							<div class="col-6">
                                <div class="form-group"><label for="cname" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" class="form-control" value="<? echo $my ?>"></div>
								</div>
								<input type="checkbox" name="mfee" value="Tution Fee"> Tution Fee<br>
								<input type="checkbox" name="feedisc1" value="<? echo $feedisc1 ?>"> <? echo $feedisc1 ?><br>
<input type="checkbox" name="feedisc2" value="<? echo $feedisc2 ?>"> <? echo $feedisc2 ?><br>
<input type="checkbox" name="feedisc3" value="<? echo $feedisc3 ?>"> <? echo $feedisc3 ?><br>
<input type="checkbox" name="feedisc4" value="<? echo $feedisc4 ?>"> <? echo $feedisc4 ?><br>
<input type="checkbox" name="feedisc5" value="<? echo $feedisc5 ?>"> <? echo $feedisc5 ?><br>
<input type="checkbox" name="feedisc6" value="<? echo $feedisc6 ?>"> <? echo $feedisc6 ?><br>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
					
					
					<div class="col-lg-12">
												<div class="card">
                            <div class="card-header"><strong>Pritn Monthly Challan Only Fee/Bal </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Print_Monthly_Challan_Save.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Class</label></div>
                                                                    <div class="col-12 col-md-8">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data4=$result4->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data4['cname']; ?>"><? echo $user_data4["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
																<div class="col-3">
                                <div class="form-group"><label for="cname" class=" form-control-label">Class Section</label><input type="text" id="cls_sec" name="cls_sec" class="form-control"></div>
								</div>
							<div class="col-3">
                                <div class="form-group"><label for="cname" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" class="form-control" value="<? echo $my ?>"></div>
								</div>
								
								
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
                    


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

    <!-- Right Panel -->

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

</body>

</html>
<?php
}
?>