   <?php
    session_start();
include("dbconfig.php");
if(isset($_SESSION['username']) && isset($_SESSION['password']))
{
    $username=$_SESSION['username'];
    $pass=$_SESSION['password'];
    
}
else
{
     echo '<META http-equiv="refresh" content="0;logout.php">';
}
?>
    
    <!DOCTYPE html>
    <html lang="en">
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <head>
    <title>NPH-Amdin</title>

    <link rel="icon" href="images/logo.png" type="image/x-icon" class="abc">
    
    <link rel="icon" type="image/icon" href="images/logo.png" />
    
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Quicksand:500,700" rel="stylesheet">
    
    <link rel="stylesheet" type="text/css" href="../files/bower_components/bootstrap/css/bootstrap.min.css">
    
    <link rel="stylesheet" href="../files/assets/pages/waves/css/waves.min.css" type="text/css" media="all">
    
    <link rel="stylesheet" type="text/css" href="../files/assets/icon/feather/css/feather.css">
    
    <link rel="stylesheet" type="text/css" href="../files/assets/css/font-awesome-n.min.css">
    
    <link rel="stylesheet" href="../files/bower_components/chartist/css/chartist.css" type="text/css" media="all">
    
    <link rel="stylesheet" type="text/css" href="../files/assets/css/style.css">
    <link rel="stylesheet" type="text/css" href="../files/assets/css/widget.css">
    
    <style>
        .img-fluid {
    max-width: 66%;
    height: auto;
    margin-left: -47px;
}
.pcoded li.pcoded-hasmenu[dropdown-icon=style1]>a:after {
    content: none;
}
.pcoded[theme-layout=vertical] .pcoded-navbar .pcoded-item[item-border=true][item-border-style=solid] li>a {
    border-bottom-style: solid;
    height: 53px;
}
div#c1 {
    background-color: cadetblue;
}
div#c2 {
    background-color: slategrey;
}
div#c3 {
    background-color: salmon;
}
div#c4 {
    background-color: #a549a5;
}
{
    padding-left: 10px;
    font-size: 20px;
}
    </style>

    </head>
    <body>
    
    <div class="loader-bg">
    <div class="loader-bar"></div>
    </div>
    
    <div id="pcoded" class="pcoded">
    <div class="pcoded-overlay-box"></div>
    <div class="pcoded-container navbar-wrapper">
    
    <nav class="navbar header-navbar pcoded-header">
    <div class="navbar-wrapper">
    <div class="navbar-logo">
    <a href="index.php">
     <h5>Admin</h5>
    </a>
    <a class="mobile-menu" id="mobile-collapse" href="#!">
    <i class="feather icon-menu icon-toggle-right"></i>
    </a>
    <a class="mobile-options waves-effect waves-light">
    <i class="feather icon-more-horizontal"></i>
    </a>
    </div>
    <div class="navbar-container container-fluid">
    <ul class="nav-left">
    <li class="header-search">
    <div class="main-search morphsearch-search">
    <div class="input-group">

    <input type="text" class="form-control" placeholder="Enter Keyword">

    </div>
    </div>
    </li>
    
    </a>
    </li>
    </ul>
    <ul class="nav-right">
    <li class="header-notification">
    <div class="dropdown-primary dropdown">
   
    <ul class="show-notification notification-view dropdown-menu" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
    
    <li>
   
    </li>
    <li>
    
    </li>
    <li>
   
    </li>
    </ul>
    </div>
    </li>
   
    <li class="user-profile header-notification">
    <div class="dropdown-primary dropdown">
    <div class="dropdown-toggle" data-toggle="dropdown">
    <img src="../files/assets/images/avatar-4.jpg" class="img-radius" alt="User-Profile-Image">
    <span>Admin</span>
    <i class="feather icon-chevron-down"></i>
    </div>
    <ul class="show-notification profile-notification dropdown-menu" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
   
    <!--<li>-->
    <!--<a href="#">-->
    <!--<i class="feather icon-user"></i> Profile-->
    <!--</a>-->
    <!--</li>-->
    <li>
    <a href="logout.php">
    <i class="feather icon-log-out"></i> Logout
    </a>
    </li>
    </ul>
    </div>
    </li>
    </ul>
    </div>
    </div>
    </nav>
    
    
    
  
   
    <div class="pcoded-main-container">
    <div class="pcoded-wrapper">
    
    <nav class="pcoded-navbar">
    <div class="nav-list">
    <div class="pcoded-inner-navbar main-menu">
    <div class="pcoded-navigation-label">Navigation</div>
    <ul class="pcoded-item pcoded-left-item">
        
    <li class="pcoded-hasmenu">
        <a href="index.php" class="waves-effect waves-dark">
            <span class="pcoded-micon"><i class="feather icon-home"></i></span>
            <span class="pcoded-mtext">Dashboard</span>
        </a>
    </li>
    
    <li class="pcoded-hasmenu active pcoded-trigger">
        <a href="PatientDetails.php" class="waves-effect waves-dark">
            <span class="pcoded-micon"><i class="fa fa-registered"></i></span>
            <span class="pcoded-mtext">Patient Details</span>
        </a>
    </li>
        <li class="pcoded-hasmenu">
        <a href="StaffDetails.php" class="waves-effect waves-dark">
            <span class="pcoded-micon"><i class="fa fa-registered"></i></span>
            <span class="pcoded-mtext">Staff Details</span>
        </a>
    </li>
                           <li class="pcoded-hasmenu ">
        <a href="javascript:void(0)" class="waves-effect waves-dark">
            <span class="pcoded-micon"><i class="fa fa-users"></i></span>
            <span class="pcoded-mtext">Users</span>
        </a>
            <ul class="pcoded-submenu">
 <li class="">
        <a href="CreateUsers.php" class="waves-effect waves-dark">
           
            <span class="pcoded-mtext">Create Billing Users</span>
        </a>
    </li>
                <li class="">
                    <a href="ViewUsers.php" class="waves-effect waves-dark">
                        <span class="pcoded-mtext">View Billing Users</span>
                    </a>
                </li>
            </ul> 
    </li>
    </ul>
    </div>
    </div>
    </nav>

    <div class="pcoded-content">
            <div class="page-header card">
    <div class="row align-items-end">
    <div class="col-lg-8">
    <div class="page-header-title">
    <i class="feather icon-inbox bg-c-blue"></i>
    <div class="d-inline">
    <h5>Update Patient Details</h5>
    </div>
    </div>
    </div>
    <div class="col-lg-4">
    <div class="page-header-breadcrumb">
    <ul class=" breadcrumb breadcrumb-title">
    <li class="breadcrumb-item">
    <a href="index.html"><i class="feather icon-home"></i></a>
    </li>
    <li class="breadcrumb-item"><a href="#!">Home</a>
    </li>
    <li class="breadcrumb-item"><a href="#!">Update</a>
    </li>
    
    
    
    
    </ul>
    </div>
    </div>
    </div>
    </div>

    <div class="pcoded-inner-content" style="margin:0% 20%;">

<?php
if(isset($_GET['name'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="Pname">Patient Name</label>
      <input  class="form-control" type="text" name="Pname" required value="<? echo $_GET['name'];?>" id="Pname" >
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['fhname'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="fhname">Father/Husband Name</label>
      <input  class="form-control" type="text" name="fhname" required value="<? echo $_GET['fhname'];?>" id="fhname" >
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>

<?
}
if(isset($_GET['contact1'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="contact1">Contact No.</label>
      <input  class="form-control" type="text" name="contact1" required value="<? echo $_GET['contact1'];?>" id="contact1" >
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['contact2'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="contact2">Emergency Contact No.</label>
      <input  class="form-control" type="text" name="contact2" required value="<? echo $_GET['contact2'];?>" id="contact2">
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>

<?
}
if(isset($_GET['email'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="email">Email Id</label>
      <input  class="form-control" type="email" name="email" required value="<? echo $_GET['email'];?>" id="email">
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['dob'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="dob">Date of Birth</label>
      <input  class="form-control" type="date" name="dob" required value="<? echo $_GET['dob'];?>" id="dob" >
    </div> 

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>

<?
}
if(isset($_GET['age'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="age">Age</label>
      <input  class="form-control" type="number" name="age" required value="<? echo $_GET['age'];?>" id="age" >
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['gender'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="Gender">Gender</label>
      <select class="form-control" name="Gender" required id="Gender" >
        <option value="">Choose Option</option>
        <option value="Male">Male</option>
        <option value="Female">Female</option>
      </select>
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>

<?
}
if(isset($_GET['blood'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="Blood">Blood Group</label>
      <select  class="form-control" name="Blood" required id="Blood" >
          <option value="">Choose Option</option>
          <option value="A+">A+</option>
          <option value="B+">B+</option>
          <option value="AB+">AB+</option>
          <option value="O+">O+</option>
          <option value="A-">A-</option>
          <option value="B-">B-</option>
          <option value="AB-">AB-</option>
          <option value="O-">O-</option>
      </select>
    </div> 

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>

<?
}
if(isset($_GET['wt'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="Weight">Body Weight</label>
      <input  class="form-control" type="text" name="Weight" required value="<? echo $_GET['wt'];?>" id="Weight">
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['height'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="Height">Height</label>
      <input  class="form-control" type="text" name="Height" required value="<? echo $_GET['height'];?>" id="Height">
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>

<?
}
if(isset($_GET['Aadhaar'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
        <div class="form-group">
      <label for="Aadhaar">Aadhaar ID</label>
      <input  class="form-control" type="text" name="Aadhaar" required value="<? echo $_GET['Aadhaar'];?>" id="Aadhaar" >
    </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['Address'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
<div class="form-group">
      <label for="Address">Address</label>
      <textarea class="form-control" name="Address" required value="<? echo $_GET['Address'];?>" id="Address" rows="6" ></textarea>
  </div>

    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>
<?
}
if(isset($_GET['Mark'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
<div class="form-group">
      <label for="Mark">Identification Mark</label>
      <input  class="form-control" type="text" name="Mark" required value="<? echo $_GET['Mark'];?>" id="Mark">
</div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['Consultant'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
<div class="form-group">
      <label for="Consultant">Consultant</label>
      <input  class="form-control" type="text" name="Consultant" required value="<? echo $_GET['Consultant'];?>" id="Consultant" >
    </div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>
<?
}
if(isset($_GET['CaseType'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="CaseType">Case Type</label>
      <select  class="form-control" name="CaseType" required id="CaseType" >
        <option value="">Choose Option</option>
        <option value="MLC">MLC</option>
        <option value="Non MLC">Non MLC</option>
      </select>
    </div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['PatientType'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="PatientType">Patient Type</label>
      <select  class="form-control" name="PatientType" required id="PatientType" >
        <option value="">Choose Option</option>
        <option value="IPD">IPD</option>
        <option value="OPD">OPD</option>
        <option value="Daily Care">Daily Care</option>
      </select>
    </div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>




<?
}
if(isset($_GET['AdmitDate'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
 <div class="form-group">
      <label for="AdmitDate">Admit Date</label>
      <input  class="form-control" type="date" name="AdmitDate" required value="<? echo $_GET['AdmitDate'];?>" id="AdmitDate" >
    </div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['AdmitTime'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="AdmitTime">Admit Time</label>
      <input  class="form-control" type="time" name="AdmitTime" required value="<? echo $_GET['AdmitTime'];?>" id="AdmitTime" >
    </div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['AdvanceAmount'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
    <div class="form-group">
      <label for="AdvanceAmount">Advance Amount</label>
      <input  class="form-control" type="number" name="AdvanceAmount" id="AdvanceAmount" required value="<? echo $_GET['AdvanceAmount']?>">
    </div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['PaymentMode'])){
    ?>
<form action="storepat.php" method="POST">
 <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">

       <div class="form-group col">
  <label for="">Payment Mode</label>
  <select class="form-control" name="PaymentMode" required>
    <option value="">Choose Option</option>
    <option value="Cash">Cash</option>
    <option value="Check">Check</option>
    <option value="UPI">UPI</option>
    <option value="Net Banking">Net Banking</option>
  </select>
</div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>


<?
}
if(isset($_GET['photo'])){
?>
<form action="storepat.php" method="POST" enctype="multipart/form-data">
    <input type="hidden" name="patid" value="<? echo $_GET['patid'];?>">
     <div class="form-group">
  <label for=Photo">Upload Photo</label>
  <br>
 
  <input  class="form-control" type="file" name="Photo"   required  id="Photo">
</div>
    <div style="text-align: center">
  <button type="submit" class="btn btn-primary">Update</button>
<a href="ViewMorePatient.php"><button type="button" class="btn btn-info">Cancel</button></a>
</div>
</form>
<?  
}


?>
  </div>
    </div>
    </div>



    
    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/jquery/js/jquery.min.js"></script>
    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/jquery-ui/js/jquery-ui.min.js"></script>
    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/popper.js/js/popper.min.js"></script>
    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/bootstrap/js/bootstrap.min.js"></script>

    <script src="../files/assets/pages/waves/js/waves.min.js" type="a0935012553127c718007911-text/javascript"></script>

    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/jquery-slimscroll/js/jquery.slimscroll.js"></script>

    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/modernizr/js/modernizr.js"></script>
    <script type="a0935012553127c718007911-text/javascript" src="../files/bower_components/modernizr/js/css-scrollbars.js"></script>

    <script src="../files/assets/pages/waves/js/waves.min.js" type="a0935012553127c718007911-text/javascript"></script>

    <script src="../files/bower_components/datatables.net/js/jquery.dataTables.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/bower_components/datatables.net-buttons/js/dataTables.buttons.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/assets/pages/data-table/js/jszip.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/assets/pages/data-table/js/pdfmake.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/assets/pages/data-table/js/vfs_fonts.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/bower_components/datatables.net-buttons/js/buttons.print.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/bower_components/datatables.net-buttons/js/buttons.html5.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/bower_components/datatables.net-bs4/js/dataTables.bootstrap4.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/bower_components/datatables.net-responsive/js/dataTables.responsive.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/bower_components/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js" type="a0935012553127c718007911-text/javascript"></script>

    <script src="../files/assets/pages/data-table/js/data-table-custom.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/assets/js/pcoded.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/assets/js/vertical/vertical-layout.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script src="../files/assets/js/jquery.mCustomScrollbar.concat.min.js" type="a0935012553127c718007911-text/javascript"></script>
    <script type="a0935012553127c718007911-text/javascript" src="../files/assets/js/script.js"></script>

    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13" type="a0935012553127c718007911-text/javascript"></script>
    <script type="a0935012553127c718007911-text/javascript">
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-23581568-13');
    </script>
    <script src="rocket-loader.min.js" data-cf-settings="a0935012553127c718007911-|49" defer=""></script></body>

    </html>
