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

$sql3="Select * from addclass where user_id='$userid'";
$result1 = $conn->query($sql3);
$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'] ;
$portal_id=$row['portal_id'] ;
$std_rollno=$row['std_rollno'] ;
$adm_date=$row['adm_date'] ;
$dob=$row['dob'] ;
$cls_sec=$row['cls_sec'] ;
$class_name=$row['class_name'] ;
$std_name=$row['std_name'] ;
$fname=$row['fname'] ;
$fnic=$row['fnic'] ;
$mnic=$row['mnic'] ;
$mfee=$row['mfee'] ;
$cell_1=$row['cell_1'] ;
$cell_2=$row['cell_2'] ;
$address=$row['address'] ;
$remarks=$row['remarks'] ;
$qabeela=$row['qabeela'] ;
$job=$row['job'] ;
$income=$row['income'] ;
$bal=$row['bal'] ;

//$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>Application </strong>Form                                                    </div>
                                                    <div class="card-body card-block">
                                                        <form action="Student_Application_Save.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"><strong><span dir="RTL">&#1578;&#1575;&#1585;&#1740;&#1582;</span></strong></label>
                                                                </div>
                                                                <div class="col-12 col-md-3"><input type="text" id="date" name="date" placeholder=" Date" class="form-control" value="<? echo $today ?>"><small class="form-text text-muted"></small></div>
                                                            </div>
															
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1605;&#1587;&#1605;&#1575;&#1731;</span><span dir="LTR"> </span><span dir="LTR"> </span>/<span dir="RTL">&#1605;&#1740;&#1722; &#1605;&#1587;&#1617;&#1605;&#1740;</span></strong></label>
                                                                </div>
                                                              <div class="col-12 col-md-3"><input type="text" id="fname" name="fname" placeholder="Text" class="form-control" value="<? echo $fname ?>">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
                                                            
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1602;&#1576;&#1740;&#1604;&#1729;</span></strong></label>
                                                                </div>
                                                              <div class="col-12 col-md-3"><input type="text" id="qabeela" name="qabeela" placeholder="" class="form-control" value="<? echo $qabeela ?>">
                                                              </div>
                                                            </div>
                                                            
                                                          
															
																
																
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1587;&#1585;&#1576;&#1585;&#1575;&#1729; &#1705;&#1575; &#1662;&#1740;&#1588;&#1729; :</span><span dir="LTR"> </span><span dir="LTR"> </span> /<span dir="RTL">&#1608;&#1575;&#1604;&#1583;</span></strong></label>
                                                                </div>
                                                                <div class="col-12 col-md-6"><input type="text" id="job" name="job" placeholder="" class="form-control" value="<? echo $job ?>">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
																 <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1575;&#1619;&#1605;&#1583;&#1606;&#1740;</span></strong></label>
                                                                </div>
                                                                <div class="col-12 col-md-3"><input type="text" id="income" name="income" placeholder="" class="form-control" value="<? echo $income ?>">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1588;&#1606;&#1575;&#1582;&#1578;&#1740; &#1705;&#1575;&#1585;&#1672; </span></strong></label>
                                                                </div>
                                                              <div class="col-12 col-md-3"><input type="text" id="fnic" name="fnic" placeholder="" class="form-control" value="<? echo $fnic ?>">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
															<div class="row form-group">
                                                              <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1605;&#1608;&#1576;&#1575;&#1574;&#1604;&#1575;&#1585;&#1672; </span></strong></label>
                                                              </div>
                                                              <div class="col-12 col-md-3"><input type="text" id="cell_1" name="cell_1" placeholder="" class="form-control" value="<? echo $cell_1 ?>">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
															
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1662;&#1578;&#1729;</span></strong></label>
                                                                </div>
                                                              <div class="col-12 col-md-3"><input type="text" id="address" name="address" placeholder="" class="form-control" value="<? echo $address ?>">
                                                               <small class="form-text text-muted"></small></div>
															</div>
															   
															   
															   <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1576;&#1670;&#1740; &#1705;&#1608; &#1605;&#1606;&#1583;&#1585;&#1580;&#1729; &#1584;&#1740;&#1604; &#1585;&#1593;&#1575;&#1740;&#1578; &#1583;&#1740;&nbsp; &#1580;&#1575;&#1574;&#1746;</span><span dir="LTR"> </span><span dir="LTR"> </span> <span dir="RTL"> </span><span dir="RTL"><span dir="RTL"> </span>&nbsp;</span><span dir="LTR"> </span><span dir="LTR"> </span>/<span dir="RTL">&#1604;&#1729;&#1584;&#1575; &#1605;&#1740;&#1585;&#1746; &#1576;&#1670;&#1746; </span></strong></label>
                                                                </div>
                                                               <div class="col-12 col-md-3">
                                                                 <input type="text" id="details1" name="details1" placeholder="" class="form-control">
                                                                 <small class="form-text text-muted"></small></div>
															   </div>
															   
															   <div class="row form-group">
                                                                <div class="col col-md-3">
                                                                  <label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1585;&#1608;&#1604;&#1606;&#1605;&#1576;&#1585;&nbsp; &#1591;&#1575;&#1604;&#1576;  &#1593;&#1604;&#1605;:</span></strong></label>
                                                                </div>
                                                               <div class="col-12 col-md-3"><input type="text" id="std_rollno" name="std_rollno" placeholder="" class="form-control" value="<? echo $std_rollno ?>">
                                                               <small class="form-text text-muted"></small></div>
															   </div>
															   <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1606;&#1575;&#1605;&nbsp; &#1591;&#1575;&#1604;&#1576;  &#1593;&#1604;&#1605;:</span></strong></label>
                                                                </div>
                                                               <div class="col-12 col-md-3"><input type="text" id="std_name" name="std_name" placeholder="" class="form-control" value="<? echo $std_name ?>">
                                                               <small class="form-text text-muted"></small></div>
															   </div>
															<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label"><strong><span dir="RTL">&#1580;&#1605;&#1575;&#1593;&#1578;</span></strong></label>
                                                                    </div>
                                                                    <div class="col-12 col-md-3"><input type="text" id="class_name" name="class_name" placeholder="" class="form-control" value="<? echo $class_name ?>">
                                                               <small class="form-text text-muted"></small></div>
															   </div>
                                                          </div>
																
																
																
																
																
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1605;&#1608;&#1580;&#1608;&#1583;&#1729; &#1601;&#1740;&#1587;</span></strong></label>
                                                                </div>
                                                               <div class="col-12 col-md-3"><input type="text" id="mfee" name="mfee" placeholder="" class="form-control" value="<? echo $mfee ?>">
                                                               <small class="form-text text-muted"></small></div>
																</div>
																<div class="row form-group">
                                                                <div class="col col-md-3">
                                                                  <label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1605;&#1608;&#1580;&#1608;&#1583;&#1729;&#1576;&#1740;&#1604;&#1606;&#1587; </span></strong></label>
                                                                </div>
                                                               <div class="col-12 col-md-3"><input type="text" id="bal" name="bal" placeholder="" class="form-control" value="<? echo $bal ?>">
                                                               <small class="form-text text-muted"></small></div>
																</div>
															
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1575;&#1605;&#1578;&#1581;&#1575;&#1606;&#1740; &#1705;&#1575;&#1585;&#1705;&#1585;&#1583;&#1711;&#1740;</span></strong></label>
                                                                </div>
                                                                <div class="col-12 col-md-4"><input type="text" id="exam" name="exam" placeholder="" class="form-control">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1587;&#1705;&#1608;&#1604; &#1581;&#1575;&#1590;&#1585;&#1740;</span></strong></label>
                                                                </div>
                                                                <div class="col-12 col-md-4"><input type="text" id="atten" name="atten" placeholder="" class="form-control">
                                                                <small class="form-text text-muted"></small></div>
                                                            </div>
															<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"><strong><span dir="RTL">&#1729;&#1583;&#1575;&#1740;&#1575;&#1578; &#1605;&#1606;&#1580;&#1575;&#1606;&#1576;&nbsp;  &#1705;&#1606;&#1608;&#1606;&#1574;&#1740;&#1585;/ &#1662;&#1585;&#1606;&#1587;&#1662;&#1604;</span></strong></label>
                                                                </div>
                                                                <div class="col-12 col-md-4">
                                                                  <textarea name="remarks" cols="70" rows="5" class="form-control" id="remarks" placeholder=""></textarea>
                                                                  <small class="form-text text-muted"></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
}

?>