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

$username=$_SESSION["username"];
$current_file_name = basename($_SERVER['PHP_SELF']);
$sql = "SELECT * FROM adduser where feedisc2 = '$current_file_name' and uname = '$username'";
$result=$conn->query($sql);
$row = $result->fetch_assoc();
$status=$row['feedisc3'] ;

if ($status =="")
{
echo "You are not Authorized This Page <a href='maindashboard.php'>Back </a> ";
}
else
{
include 'dbc.php';
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"];
$id=$_REQUEST["id"];
$sql = "SELECT * FROM admission where id = '$id' and user_id='$userid'";
$result=$conn->query($sql);
$row = $result->fetch_assoc();
$adm_no=$row['adm_no'] ;
$mfee=$row['mfee'] ;
$bal=$row['bal'] ;
$remarks=$row['remarks'] ;
$feedisc1=$row['feedisc1'] ;
$feebal1=$row['feebal1'] ;
$feedisc2=$row['feedisc2'] ;
$feebal2=$row['feebal2'] ;
$feedisc3=$row['feedisc3'] ;
$feebal3=$row['feebal3'] ;
$feedisc4=$row['feedisc4'] ;
$feebal4=$row['feebal4'] ;
$feedisc5=$row['feedisc5'] ;
$feebal5=$row['feebal5'] ;
$feedisc6=$row['feedisc6'] ;
$feebal6=$row['feebal6'] ;


//$rows3=$result1 ->fetch_assoc();
?>
<!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>Edit Student Balance</strong> Form
                                                    </div>
                                                    <div class="card-body card-block">
                                                        <form action="Update_Student_Registration_Fee.php" method="post" enctype="multipart/form-data" class="form-horizontal">
                                                            
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Admission No</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="adm_no" name="adm_no" placeholder="Text" class="form-control" value=" <? echo $adm_no ?>" readonly><small class="form-text text-muted">This is a Software genrated no</small></div>
                                                            </div>
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Tution Fee</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="mfee" name="mfee" placeholder="Text" class="form-control" value="<? echo $mfee ?>"><small class="form-text text-muted">This is School Tution Fee</small></div>
                                                            </div>
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Consession Fee</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="cfee" name="cfee" placeholder="Consession" class="form-control"><small class="form-text text-muted">This is School Tution Fee</small></div>
                                                            </div>
															
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Student Fee Balance</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="bal" name="bal" placeholder="Student Balance" class="form-control" value="<? echo $bal ?>"><small class="form-text text-muted">This is Student Fee Balance</small></div>
                                                            </div>
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription1 Name</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feedisc1" name="feedisc1" placeholder="Fee Discription Name" class="form-control" value=" <? echo $feedisc1 ?>"><small class="form-text text-muted">This is Fee Discription Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription1 Bal</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feebal1" name="feebal1" placeholder="Fee Discription1 Bal" class="form-control" value=" <? echo $feebal1 ?>"><small class="form-text text-muted">This is Fee Discription Bal</small></div>
                                                            </div>
															
																
																 
															 <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription2 Name</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feedisc2" name="feedisc2" placeholder="Fee Discription2 Name" class="form-control" value=" <? echo $feedisc2 ?>"><small class="form-text text-muted">This is Fee Discription2 Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription2 Bal</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feebal2" name="feebal2" placeholder="Fee Discription2 Bal" class="form-control" value=" <? echo $feebal2 ?>"><small class="form-text text-muted">This is Fee Discription2 Bal</small></div>
                                                            </div>
															
															
															
															 <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription3 Name</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feedisc3" name="feedisc3" placeholder="Fee Discription3 Name" class="form-control" value=" <? echo $feedisc3 ?>"><small class="form-text text-muted">This is Fee Discription3 Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription3 Bal</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feebal3" name="feebal3" placeholder="Fee Discription3 Bal" class="form-control" value=" <? echo $feebal3 ?>"><small class="form-text text-muted">This is Fee Discription3 Bal</small></div>
                                                            </div>
															
															
															
															 <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription4 Name</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feedisc4" name="feedisc4" placeholder="Fee Discription4 Name" class="form-control" value=" <? echo $feedisc4 ?>"><small class="form-text text-muted">This is Fee Discription4 Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription4 Bal</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feebal4" name="feebal4" placeholder="Fee Discription4 Bal" class="form-control" value=" <? echo $feebal4 ?>"><small class="form-text text-muted">This is Fee Discription4 Bal</small></div>
                                                            </div>
															
															
															 <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription5 Name</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feedisc5" name="feedisc5" placeholder="Fee Discription5 Name" class="form-control" value=" <? echo $feedisc5 ?>"><small class="form-text text-muted">This is Fee Discription5 Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription5 Bal</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feebal5" name="feebal5" placeholder="Fee Discription5 Bal" class="form-control" value=" <? echo $feebal5 ?>"><small class="form-text text-muted">This is Fee Discription5 Bal</small></div>
                                                            </div>
															 
                                                                
                                                                
                                                              <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription6 Name</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feedisc6" name="feedisc6" placeholder="Fee Discription6 Name" class="form-control" value=" <? echo $feedisc6 ?>"><small class="form-text text-muted">This is Fee Discription6 Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Fee Discription6 Bal</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="feebal6" name="feebal6" placeholder="Fee Discription6 Bal" class="form-control" value=" <? echo $feebal6 ?>"><small class="form-text text-muted">This is Fee Discription6 Bal</small></div>
                                                            </div>
															
                                                                
                                                       
                                                    </div>
                                                    <div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> Submit
                                                        </button>
                                                        <button type="reset" class="btn btn-danger btn-sm">
                                                            <i class="fa fa-ban"></i> Reset
                                                        </button>
                                                    </div>
													 </form>
                                                </div>
                                                
                                            </div>

            


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

    <!-- Right Panel -->

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

</body>

</html>
<?php
}
}
?>