Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/kpmim.org/admin/old/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/kpmim.org/admin/old/edit-payment.php

<?php
		include('header.php');
?>
<?php	
	$flag						=	0;
	$success_flag				=	0;
	$client_name				=	"";
	$amount						=	"";
	if(isset($_GET['edit_id']))
	{
		$edit_id				=	$_GET['edit_id'];
		$_SESSION['edit_id']	=	$edit_id;
	}
	if(isset($_SESSION['edit_id']))
	{
		$edit_id	=	$_SESSION['edit_id'];
	}
	if(isset($_POST['add']))
	{
		$client_name		=	$_POST['client_name'];
		$amount				=	$_POST['amount'];
		$month				=	date("Y-m");
		if($db->update_client_payment($client_name,$amount,$month,$edit_id))
		{
			$success_flag	=	1;
		}
		else
		{
			$success_flag	=	2;
		}
		
	}
	$payment	=	array();
	$payment	=	$db->get_payment_record($edit_id);
	if(!empty($payment))
	{
		$client_id	=	$payment[0];
		$amount		=	$payment[1];
	}
	
			
	

?>

<!--
	Author: W3layouts
	Author URL: http://w3layouts.com
	License: Creative Commons Attribution 3.0 Unported
	License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html lang="en">
<!-- Head -->
<head>
<title>Jar Supplier</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<!-- .css files -->
	<link href="css/bars.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="all" />
	<link rel="stylesheet" href="/css/style.css" type="text/css" media="all" />
	<link rel="stylesheet" href="css/font-awesome.css" />
<!-- //.css files -->
<!-- Default-JavaScript-File -->
	<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- //Default-JavaScript-File -->
<!-- fonts -->
	<link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&amp;subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet">
	<link href="//fonts.googleapis.com/css?family=Ropa+Sans:400,400i&amp;subset=latin-ext" rel="stylesheet">
<!-- //fonts -->
<!-- scrolling script -->
<script type="text/javascript">
	jQuery(document).ready(function($) {
		$(".scroll").click(function(event){		
			event.preventDefault();
			$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
		});
	});
</script>
<!-- //scrolling script -->
<link rel="stylesheet" href="/css/stylesheet.css" type="text/css" media="all" />
<link href="css/support.css" rel="stylesheet" type="text/css" media="all">
<style>
th
{
	text-align:center;
}
</style>
</head>
<!-- //Head -->
<!-- Body -->
<body>
	
	
<div class="exp1">	
<section class="about" style="background-color:#FFFFFF;">
	<div class="container" style="width:100%;">
	
	
		
	<h2>Update Payment</h2>
	<div style="margin:auto; width:500px; height:400px;">
	 <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" >
		<?php
		if($success_flag==1)
		{
		?>
	
		<div class="alert alert-success">
		<span class="alert-link">Success!</span>Payment Updated successfully.
		</div>	
		<?php
		}
		?>
		
				<div class="form-group col-lg-12">
						<label style="text-align:left">Select Client:</label>
						<select name="client_name" class="form-control">
							
						<option value="select client">Select Client</option>
						<?php
								$select_data	=	array();
								$select_data	=	$db->select_register_data();
								
								if(!empty($select_data))
								{
									$counter = 0;
									foreach($select_data as $record)
									{
										$res_id			=	$record[0];
										$full_name		=	$record[1];
										$contact_no		=	$record[2];
										$paddress		=	$record[3];
										$daddress		=	$record[4];
										$jar			=	$record[5];
										$date			=	$record[6];
										$time			=	$record[7];
										$seq_no			=	$record[8];
										$user_id		=	$record[9];
										$password		=	$record[10];
										
								?>
								
							<option value="<?php echo $res_id; ?>" <?php if($client_id==$res_id) {?> selected <?php }?>> <?php echo $full_name; ?> </option>
							<?php
								
								$counter++;
								}
								}
							?>
						</select>
				</div>
				<div class="form-group col-lg-12">
						<label style="text-align:left">Amount:</label>
						<input type="number" class="form-control" name="amount" placeholder="Enter Amount." value="<?php echo $amount; ?>" required />
				</div>
				<div class="form-group col-lg-12" style="text-align:center;">
					<button type="submit" class="btn btn-primary" name="add" style="width:40%; margin-left:-70px;">Update Payment</button>
				</div>
	</form>

	<div class="clearfix"></div>
		</div>
		</div>
		</section>

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