<?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'] ;
$month=$row['month'] ;
$portal_id=$row['portal_id'] ;
$std_rollno=$row['std_rollno'] ;
$adm_date=$row['adm_date'] ;
$dob=$row['dob'] ;
$cls_sec=$row['cls_sec'] ;
$std_name=$row['std_name'] ;
$fname=$row['fname'] ;
$fnic=$row['fnic'] ;
$mnic=$row['mnic'];
$cell_1=$row['cell_1'];
$cell_2=$row['cell_2'];
$gender=$row['gender'];
$address=$row['address'];
$barcode=$row['barcode'];
$remarks=$row['remarks'];
$app_file=$row['app_file'];
$app_file1=$row['app_file1'];
$gname=$row['gname'];
$gnic=$row['gnic'];
$cell_3=$row['cell_3'];
$feestatus=$row['feestatus'];
$religion=$row['religion'];
$pclass=$row['pclass'];
$pschool=$row['pschool'];
$caste=$row['caste'];
$qabeela=$row['qabeela'];
$job=$row['job'];
$income=$row['income'];
$qualification=$row['qualification'];
$paidby=$row['paidby'];


//$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 Registration</strong> Form
                                                    </div>
                                                    <div class="card-body card-block">
                                                        <form action="Update_Student_Registration_Info.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">month</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="month" name="month" placeholder="month" class="form-control" value="<? echo $month ?>" readonly><small class="form-text text-muted">This is a month</small></div>
                                                            </div>
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">B-Form</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="portal_id" name="portal_id" placeholder="B-Form" class="form-control" value="<? echo $portal_id ?>"><small class="form-text text-muted">This is School B-Form</small></div>
                                                            </div>
															
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Student Roll No</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="std_rollno" name="std_rollno" placeholder="Student Roll No" class="form-control" value="<? echo $std_rollno ?>"><small class="form-text text-muted">This is Student Rollno</small></div>
                                                            </div>
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Admission Date</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="adm_date" name="adm_date" placeholder="Admission Date" class="form-control" value="<? echo $adm_date ?>"><small class="form-text text-muted">This is Admission Date of Student</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Date of Birh</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="dob" name="dob" placeholder="date of Birh" class="form-control" value="<? echo $dob ?>"><small class="form-text text-muted">This is date of Birh of Student</small></div>
                                                            </div>
															
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Class Section</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="cls_sec" name="cls_sec" placeholder="Class Section" class="form-control" value="<? echo $cls_sec ?>"><small class="form-text text-muted">This is Class Section of Student</small></div>
                                                            </div>
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Student Name</label></div>
                                                                <div class="col-12 col-md-6"><input type="text" id="std_name" name="std_name" placeholder="Student Name" class="form-control" value="<? echo $std_name ?>"><small class="form-text text-muted">This is Student Name</small></div>
                                                            </div>
																
																
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Father Name</label></div>
                                                                <div class="col-12 col-md-6"><input type="text" id="fname" name="fname" placeholder="Father Name" class="form-control" value="<? echo $fname ?>"><small class="form-text text-muted">This is Father Name</small></div>
                                                            </div>
																
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Father Nic No</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="fnic" name="fnic" placeholder="Father Nic No" class="form-control" value="<? echo $fnic ?>"><small class="form-text text-muted">This is Father Nic No</small></div>
                                                            </div>
															
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Father Cell No</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="cell_1" name="cell_1" placeholder="Father Cell No" class="form-control" value="<? echo $cell_1 ?>"><small class="form-text text-muted">This is Father Cell No</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Whatsapp Cell No</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="cell_2" name="cell_2" placeholder="Whatsapp cell No" class="form-control" value="<? echo $cell_2 ?>"><small class="form-text text-muted">This is Whatsapp cell No</small></div>
                                                            </div>
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Business / Job</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="job" name="job" placeholder="Business / Job" class="form-control" value="<? echo $job ?>" ><small class="form-text text-muted">This is Business / Job</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Income/Salary</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="income" name="income" placeholder="Income/Salary" class="form-control" value="<? echo $income ?>"><small class="form-text text-muted">This is Income/Salary</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Father Qualification</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="qualification" name="qualification" placeholder="Qualification" class="form-control" value="<? echo $qualification ?>"><small class="form-text text-muted">This is Qualification</small></div>
                                                            </div>
															<div class="row form-group">
                                                                <div class="col col-md-3">
                                                                  <label for="text-input" class=" form-control-label">Mother Name </label>
                                                                </div>
                                                                <div class="col-12 col-md-4"><input type="text" id="mnic" name="mnic" placeholder="Mother Name" class="form-control" value="<? echo $mnic ?>">
                                                                <small class="form-text text-muted">This is Mother Name</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3">
                                                                  <label for="text-input" class=" form-control-label">Mother Nic </label>
                                                                </div>
                                                                <div class="col-12 col-md-4"><input type="text" id="gnic" name="gnic" placeholder="Mother Nic No" class="form-control" value="<? echo $gnic ?>"><small class="form-text text-muted">This is Guardian Nic No</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3">
                                                                  <label for="text-input" class=" form-control-label">Mother Cell No</label>
                                                                </div>
                                                                <div class="col-12 col-md-4"><input type="text" id="cell_3" name="cell_3" placeholder="Mother Cell No" class="form-control" value="<? echo $cell_3 ?>"><small class="form-text text-muted">This is Mother Cell No</small></div>
                                                            </div>
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Mother Qualification</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="gname" name="gname" placeholder="Mother Qualification" class="form-control" value="<? echo $gname ?>"><small class="form-text text-muted">This is Mother Qualification</small></div>
                                                            </div>
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Religion</label></div>
                                                                <div class="col-12 col-md-4"><input name="religion" type="text" class="form-control" id="religion" placeholder="Religion" value="<? echo $religion ?>">
                                                                <small class="form-text text-muted">This is Religion</small></div>
                                                            </div>
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Previous Class</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="pclass" name="pclass" placeholder="Previous Class" class="form-control" value="<? echo $pclass ?>"><small class="form-text text-muted">This is Previous Class</small></div>
                                                            </div>
															
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Previous School</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="pschool" name="pschool" placeholder="Previous School" class="form-control" value="<? echo $pschool ?>"><small class="form-text text-muted">This is Previous School</small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Caste</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="caste" name="caste" placeholder="Caste" class="form-control" value="<? echo $caste ?>"><small class="form-text text-muted">This is Caste</small></div>
                                                            </div>
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Qabeela</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="qabeela" name="qabeela" placeholder="Caste" class="form-control" value="<? echo $qabeela ?>"><small class="form-text text-muted">This is qabeela</small></div>
                                                            </div>
															
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Gender</label></div>
                                                                <div class="col-12 col-md-4"><input type="text" id="gender" name="gender" placeholder="Caste" class="form-control" value="<? echo $gender ?>"><small class="form-text text-muted">This is qabeela</small></div>
                                                            </div>
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Home/Service Address</label></div>
                                                                <div class="col-12 col-md-9"><input type="text" id="address" name="address" placeholder="Home Address" class="form-control" value="<? echo $address ?>"><small class="form-text text-muted">This is Home Address</small></div>
                                                            </div>
															
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label">Paid By</label></div>
                                                                <div class="col-12 col-md-9"><input type="text" id="paidby" name="paidby" placeholder="Home Address" class="form-control" value="<? echo $paidby ?>"><small class="form-text text-muted">This is Paid By</small></div>
                                                            </div>
															
															
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="textarea-input" class=" form-control-label">Remarks</label></div>
                                                                <div class="col-12 col-md-9"><input type="text" id="remarks" name="remarks" placeholder="remarks" class="form-control" value="<? echo $remarks ?>"></textarea></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
}
}
?>