Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/edit-patient-record.php |
<?php require_once('lib/functions.php'); $db = new class_functions(); $flag = 0; $res_edit_id = ""; if(isset($_GET['edit_id'])){ $res_edit_id = $_GET['edit_id']; $_SESSION['edit_id'] = $res_edit_id; } echo $res_edit_id = $_SESSION['edit_id']; if(isset($_POST['full_name'])) { $patient_id = $_POST['patient_id']; $full_name = $_POST['full_name']; $gender = $_POST['gender']; $dob = $_POST['dob']; $age = $_POST['age']; $city = $_POST['city']; $pincode = $_POST['pincode']; $address_1 = $_POST['address_1']; $address_2 = $_POST['address_2']; $email = $_POST['email']; $mobile_1 = $_POST['mobile_2']; $mobile_2 = $_POST['mobile_2']; $remark = $_POST['remark']; if($db->update_patient_registration($patient_id,$full_name,$gender,$dob,$age,$city,$pincode,$address_1,$address_2,$email,$mobile_1,$mobile_2,$remark,$res_edit_id)) { $flag =1; } } $users_data = array(); $users_data = $db->get_patient_data_from_id($res_edit_id); //print_r($users_data); if(!empty($users_data)) { $id = $users_data['id']; $patient_id = $users_data['patient_id']; $pfull_name =$users_data['name']; $gender = $users_data['gender']; $dob = $users_data['dob']; $age = $users_data['age']; $city = $users_data['city']; $pincode = $users_data['pincode']; $address_1 = $users_data['address_1']; $address_2 = $users_data['address_2']; $email = $users_data['email']; $mobile_1 = $users_data['mobile_1']; $mobile_2 = $users_data['mobile_2']; $remark = $users_data['remark']; $date = $users_data['date']; $time = $users_data['time']; } ?> <!doctype html> <html lang="en" dir="ltr"> <head> <?php require_once('header-common.php'); ?> <Style> .user_measurement { margin:0px; padding :0px; font-Size:13px !important; } .user_measurement_div { margin:0px; padding :0px; margin-left :2px; margin-bottom :0px; display:inline-table; } </Style> </head> <body class=" "> <!-- loader Start --> <div id="loading"> <div class="loader simple-loader"> <div class="loader-body"></div> </div> </div> <!-- loader END --> <aside class="sidebar sidebar-default sidebar-white sidebar-base navs-rounded-all "> <div class="sidebar-header d-flex align-items-center justify-content-start"> <a href="index.php" class="navbar-brand"> <img src="images/<?php echo $logo; ?>" class="software_logo" style="height:90px; width:220px;" /> </a> <div class="sidebar-toggle" data-toggle="sidebar" data-active="true"> <i class="icon"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.25 12.2744L19.25 12.2744" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> <path d="M10.2998 18.2988L4.2498 12.2748L10.2998 6.24976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> </svg> </i> </div> </div> <?php require_once('left-side.php'); ?> <div class="sidebar-footer"></div> </aside> <main class="main-content"> <?php require_once('navbar.php'); ?> <div class="conatiner-fluid content-inner mt-n5 py-0"> <div class="row"> <div class="col-sm-12"> <div class="card"> <?php if($flag == 1) { ?> <div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;"> <span>Shirt Update Record Saved Successfully</span> <button type="submit" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button> </div> <script> alert ("Record Updated Successfully"); window.location = "patient-report.php" </script> <?php } ?> <div class="card-header d-flex justify-content-between flex-wrap"> <div class="header-title"> <h4 class="card-title mb-0">Edit Patient entry</h4> </div> <div class="card-body"> <div class="table-responsive"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <div class="row"> <div class="col-lg-3"> <div class="form-group"> <label for="name" class="form-label">Patient Id</label> <input type="number" name="patient_id" class="form-control" id="full-name" value="<?php echo $patient_id ; ?>" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="full-name" class="form-label">Name</label> <input type="text" name="full_name" class="form-control" value="<?php echo $pfull_name;?>" id="full-name" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label>Gender</label> <select class="form-control"> <option name="gender" class="form-control" >select</option> <option value="male" <?php if($gender=="Male") { ?> selected <?php } ?> >Male</option> <option value="female" <?php if($gender=="Female") { ?> selected <?php } ?>>Female</option> </select> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="dob" class="form-label">Date Of Birth</label> <input type="date" name="dob" class="form-control" value="<?php echo $dob; ?>" id="last-name" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="age" class="form-label">age</label> <input type="number" name="age" class="form-control" value="<?php echo $age; ?>" id="age" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="city" class="form-label">city</label> <input type="text" name="city" class="form-control" value="<?php echo $city; ?>" id="city" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">pincode</label> <input type="number" name="pincode" class="form-control" value="<?php echo $pincode ?>" id="email" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">Address 1</label> <input type="text" name="address_1" class="form-control" value="<?php echo $address_1 ?>" id="address" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">Address 2 </label> <input type="text" name="address_2" class="form-control" id="address" value="<?php echo $address_2 ?>" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">Email </label> <input type="email" name="email" class="form-control" id="address" value="<?php echo $email?>" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">mobile Number 1</label> <input type="number" name="mobile_1" class="form-control" id="address" value="<?php echo $mobile_1 ?>" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="email" class="form-label">Mobile Number 2</label> <input type="number" name="mobile_2" class="form-control" id="address" value="<?php echo $mobile_2 ?>" placeholder=" " $country /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="phone" class="form-label">remark</label> <input type="text" class="form-control" name="remark" id="phone" value="<?php echo $remark ?>" placeholder=" " $country /> </div> </div> <div class="d-flex justify-content-center"> <button type="submit" class="btn btn-primary" name="submit_btn">Update / Submit</button> </div> </div> </div> </div> </div> </div> </div> <!-- Library Bundle Script --> <script src="../assets/js/core/libs.min.js"></script> <!-- External Library Bundle Script --> <script src="../assets/js/core/external.min.js"></script> <!-- Widgetchart Script --> <script src="../assets/js/charts/widgetcharts.js"></script> <!-- mapchart Script --> <script src="../assets/js/charts/vectore-chart.js"></script> <script src="../assets/js/charts/dashboard.js" ></script> <!-- fslightbox Script --> <script src="../assets/js/plugins/fslightbox.js"></script> <!-- Settings Script --> <script src="../assets/js/plugins/setting.js"></script> <!-- Slider-tab Script --> <script src="../assets/js/plugins/slider-tabs.js"></script> <!-- Form Wizard Script --> <script src="../assets/js/plugins/form-wizard.js"></script> <!-- AOS Animation Plugin--> <script src="../assets/vendor/aos/dist/aos.js"></script> <!-- App Script --> <script src="../assets/js/hope-ui.js" defer></script> <style> .sidebar.sidebar-default .nav-link:not(.static-item).active , .sidebar.sidebar-default .nav-link:not(.static-item).active, .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true] { background-color:#FE6600 !important; } </style> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4