Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/vssvclinic/Admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("Includes/db.php");; $user = "SELECT * FROM `tbl_admin` WHERE id='$se'"; $user_r = mysqli_query($con,$user); $userw = mysqli_fetch_array($user_r); $name = $userw['name']; $fe_img = $userw['degree_img']; ?> <!doctype html> <html lang="en"> <head> <?php include 'Includes/head.php'; ?> </head> <body data-sidebar="dark"> <!-- <body data-layout="horizontal" data-topbar="dark"> --> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'Includes/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <?php include 'Includes/sidebar.php'; ?> <!-- Sidebar --> </div> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Docter Profile</h4> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="card"> <div class="card-body"> <h4 class="card-title"></h4> <form class="needs-validation" method="POST" action="action/docter_profile.php?id=<?php echo $se; ?>" enctype="multipart/form-data"> <div class="row"> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Name </label> <input type="text" class="form-control " name="name" id="name" value="<?php echo $userw['name']; ?>"> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Email </label> <input type="email" class="form-control " name="email" value="<?php echo $userw['email']; ?>" > </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> phone number </label> <input type="number" class="form-control " name="pnumber" id="pnumber" value="<?php echo $userw['mobile']; ?>" > </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Fees </label> <input type="number" class="form-control " name="fees" id="fees" value="<?php echo $userw['fees']; ?>" > </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Password </label> <input type="password" class="form-control " name="password" id="password" value="<?php echo $userw['password']; ?>" > </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Place </label> <select id="inputState" name="place" class="form-control"> <option value="">-- Select Appoinment Place --</option> <option value="Mangolpuri"<?=$userw['place'] == 'Mangolpuri' ? ' selected="selected"' : '';?>>Mangolpuri</option> <option value="Kalra"<?=$userw['place'] == 'Kalra' ? ' selected="selected"' : '';?>>Kalra</option> </select> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Avaliblity </label> <select class="select2 form-control select2-multiple" multiple="multiple" data-placeholder="Choose ..." name="avaliblity[]"> <?php $mc = $userw['avaliblity']; $sm = "select * from tbl_week"; $rm = mysqli_query($con,$sm); $full = array(); while ($mr = mysqli_fetch_array($rm)) { $full[] = array('vid'=>$mr['id'],'vname'=>$mr['week_name']); } $mytitle = explode(',',$mc); //Hotel tbl value foreach($full as $key=>$opt) { $d = $opt['vid']; $n = $opt['vname']; $sel = ''; if(in_array($d,$mytitle)) { $sel = ' selected="selected" '; echo '<option ' . $sel . ' value="' . $d . '">' . $n . '</option>'; } else { echo '<option value="' . $d . '">' . $n . '</option>'; } } ?> </select> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Degree Name </label> <input type="text" class="form-control " name="degree_name" id="degree_name" value="<?php echo $userw['degree_name']; ?>" > </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Degree Image</label> <input type="file" name="do_photo" class="form-control " id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*"> <img id="thumb" src="degree/<?php echo $fe_img; ?>" alt="" style="width: 100px;height: 100px;"> <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;"> Please upload file having extensions .jpeg / .jpg / .png only.</div> </div> </div> </div> </div> </div> </div> <div> <button class="btn btn-primary" type="submit">Submit </button> </div> </form> </div> </div> <!-- end card --> <!-- end col --> </div> <!-- end row --> <!-- end row --> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <footer class="footer"> <?php include 'Includes/footer.php'; ?> </footer> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <?php include 'Includes/bscript.php'; ?> </body> <script type="text/javascript"> function readThumb(input, error) { document.getElementById(error).style.display = "none"; var filePath = input.value; var allowedExtensions = /(\.jpg|\.jpeg|\.png)$/i; if(!allowedExtensions.exec(filePath)){ document.getElementById(error).style.display = "block"; input.value = ''; document.getElementById("thumb").innerHTML = ""; return false; } else if(input.files && input.files[0]) { document.getElementById("thumb").innerHTML = ""; var total = input.files.length; for(i=0; i<total; i++ ) { var reader = new FileReader(); reader.onload = function(e) { var newimg = document.createElement("img"); newimg.setAttribute("src", e.target.result); newimg.setAttribute("height", "70px"); document.getElementById("thumb").appendChild(newimg); } reader.readAsDataURL(input.files[i]); } } } </script> <script type="text/javascript"> function readImages(input, errorClass) { document.getElementById(errorClass).style.display = "none"; var len = input.files.length; var error = false; for(var i=0; i<len; i++) { var filePath = input.files[i].name; var allowedExtensions = /(\.jpg|\.jpeg|\.png)$/i; if(!allowedExtensions.exec(filePath)){ document.getElementById(errorClass).style.display = "block"; input.value = ''; document.getElementById("img-container").innerHTML = ""; error = true; break; } } if(error == true) { return false; } else if(input.files && input.files[0]) { document.getElementById("img-container").innerHTML = ""; var total = input.files.length; for(i=0; i<total; i++ ) { var reader = new FileReader(); reader.onload = function(e) { var newimg = document.createElement("img"); newimg.setAttribute("src", e.target.result); newimg.setAttribute("height", "50px"); document.getElementById("img-container").appendChild(newimg); } reader.readAsDataURL(input.files[i]); } } } </script> </html>