<?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';
$id=$_REQUEST["id"];
$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;
		 
		 $sql2 = "SELECT * FROM issueslip where id = '$id' and user_id='$userid'";
$result2=$conn->query($sql2);
$row2 = $result2->fetch_assoc();
$due_date=$row2['due_date'] ;
$adm_no=$row2['adm_no'] ;
$portal_id=$row2['portal_id'] ;
$month_name=$row2['month_name'] ;
$month_period=$row2['month_period'] ;

		 $mfee=$row2['mfee'] ;
		
$feedisc1=$row2['feedisc1'] ;
$fee1=$row2['fee1'] ;
$feedisc2=$row2['feedisc2'] ;
$fee2=$row2['fee2'] ;
$feedisc3=$row2['feedisc3'] ;
$fee3=$row2['fee3'] ;
$feedisc4=$row2['feedisc4'] ;
$fee4=$row2['fee4'] ;
$feedisc5=$row2['feedisc5'] ;
$fee5=$row2['fee5'] ;
$feedisc6=$row2['feedisc6'] ;
$fee6=$row2['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="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Genrate Admission Challan Form</strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Edit_Challan_Save.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="col-3">
                                <div class="form-group"><label for="cname" class=" form-control-label">Admission No</label><input type="text" id="id" name="id" placeholder="Admission No" class="form-control" value="<? echo $id ?>" readonly></div>
								</div>
								
									<div class="col-3">
                                    <div class="form-group"><label for="mfee" class=" form-control-label">Roll no</label><input type="text" id="std_rollno" name="std_rollno" placeholder="Portal ID" class="form-control" value="<? echo $portal_id ?>" readonly></div>
									</div>
									<div class="col-3">
                                    <div class="form-group"><label for="mfee" class=" form-control-label">Tuition Fee</label><input type="text" id="mfee" name="mfee" placeholder="Tuition Fee" class="form-control" value="<? echo $mfee ?>" ></div>
									</div>
									
								
							
								
							
								<div class="col-3">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label">Due Date</label><input type="text" id="due_date" name="due_date" placeholder="Due Date" class="form-control" value="<? echo $due_date ?>"></div>
								</div>
								<div class="col-4">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label">Month </label><input type="text" id="month_name" name="month_name" placeholder="Due Date" class="form-control" value="<? echo $month_name ?>"></div>
								</div>
								<div class="col-4">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label">Month Period</label><input type="text" id="month_period" name="month_period" placeholder="Due Date" class="form-control" value="<? echo $month_period ?>"></div>
								</div>
								
								
									
								
								
								
								<div class="col-8">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"></label><input type="text" id="feedisc1" name="feedisc1" placeholder="Enter Fee Discription Name 1" class="form-control" value="<? echo $feedisc1 ?>"></div>
								</div>
								<div class="col-4">
                                    <div class="form-group"><label for="fee1" class=" form-control-label"></label><input type="text" id="fee1" name="fee1" placeholder="Enter Fee Amount 1" class="form-control" value="<? echo $fee1 ?>"></div>
									</div>
									
									<div class="col-8">
                                <div class="form-group"><label for="feedisc2" class=" form-control-label"></label><input type="text" id="feedisc2" name="feedisc2" placeholder="Enter Fee Discription Name 2" class="form-control" value="<? echo $feedisc2 ?>"></div>
								</div>
								<div class="col-4">
                                    <div class="form-group"><label for="fee2" class=" form-control-label"></label><input type="text" id="fee2" name="fee2" placeholder="Enter Fee Amount 2" class="form-control" value="<? echo $fee2 ?>"></div>
									</div>
									
									
									<div class="col-8">
                                <div class="form-group"><label for="feedisc3" class=" form-control-label"></label><input type="text" id="feedisc3" name="feedisc3" placeholder="Enter Fee Discription Name 3" class="form-control" value="<? echo $feedisc3 ?>"></div>
								</div>
								<div class="col-4">
                                    <div class="form-group"><label for="fee3" class=" form-control-label"></label><input type="text" id="fee3" name="fee3" placeholder="Enter Fee Amount 3" class="form-control" value="<? echo $fee3 ?>"></div>
									</div>
									
									
									<div class="col-8">
                                <div class="form-group"><label for="feedisc4" class=" form-control-label"></label><input type="text" id="feedisc4" name="feedisc4" placeholder="Enter Fee Discription Name 4" class="form-control" value="<? echo $feedisc4 ?>"></div>
								</div>
								<div class="col-4">
                                    <div class="form-group"><label for="fee4" class=" form-control-label"></label><input type="text" id="fee4" name="fee4" placeholder="Enter Fee Amount 4" class="form-control" value="<? echo $fee4 ?>"></div>
									</div>
									
									
									<div class="col-8">
                                <div class="form-group"><label for="feedisc5" class=" form-control-label"></label><input type="text" id="feedisc5" name="feedisc5" placeholder="Enter Fee Discription Name 5" class="form-control" value="<? echo $feedisc5 ?>"></div>
								</div>
								<div class="col-4">
                                    <div class="form-group"><label for="fee5" class=" form-control-label"></label><input type="text" id="fee5" name="fee5" placeholder="Enter Fee Amount 5" class="form-control" value="<? echo $fee5 ?>"></div>
									</div>
									
									
									<div class="col-8">
                                <div class="form-group"><label for="feedisc6" class=" form-control-label"></label><input type="text" id="feedisc6" name="feedisc6" placeholder="Enter Fee Discription Name 6" class="form-control" value="<? echo $feedisc6 ?>"></div>
								</div>
								<div class="col-4">
                                    <div class="form-group"><label for="fee6" class=" form-control-label"></label><input type="text" id="fee6" name="fee6" placeholder="Enter Fee Amount 6" class="form-control" value="<? echo $fee6 ?>"></div>
									</div>
									<div class="col-12">
                                    <div class="form-group"><label for="fee6" class=" form-control-label"></label><input type="text" id="disfee" name="disfee" placeholder="Discount on Tution Fee or Annual Fee" class="form-control"></div>
									</div>
									<div class="col-12">
                                    <div class="form-group"><label for="fee6" class=" form-control-label"></label><input type="text" id="appno" name="appno" placeholder="Application No" class="form-control"></div>
									</div>
									<div class="col-12">
                                    <div class="form-group"><label for="fee6" class=" form-control-label"></label><input type="text" id="disc" name="disc" placeholder="Enter Remarks For Discount" 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> Update Challan
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>

            


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

    <!-- Right Panel -->

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

</body>

</html>
<?php
}

?>