<html>
<head>
<?php

	$lang	= $_GET['lang'];
	$pid	= $_GET['pid'];
	$xuid	= $_GET['xuid'];	
	$xfdc 	= $_GET['xfdc'];
	
	include('users.php');
	include('incjshead.php');


	include('field_names.php'); 	
	include('r_minmax_dates.php'); 			

 ?>

<?php	
// EXPENSES DESC MANAGER
include('r_dbc.php');
$sqlmid = "select desc_manager
			from ccmanager_id 
			where pid='".$pid."' 
			and expenses = 1";

$resultmid = mysqli_query($conn, $sqlmid);

if (mysqli_num_rows($resultmid) > 0) {
      while($rowmid = mysqli_fetch_assoc($resultmid)) {
		$desc_manager_expenses		= $rowmid["desc_manager"];
    }
} 
mysqli_close($conn);
?>

<title>
	  <?php include('title.php'); ?>
</title>

	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.css" >	
    <link rel="stylesheet" href="./fontawesome/css/all.css" >

 </head>
  <body>
	
	<br><br><br><br>

<div class="container">

		<div class="row justify-content-center">
			<div class="col-6 text-center  mb-3">
				<h4><?php printf("<b>$n_categs_progress $desc_manager_expenses</b>"); ?></h4>
			</div>
		</div>
	
		<form name="menuform" method="post" action="r_categs_progress_rep.php?lang=<?php echo $lang; ?>&pid=<?php echo $pid; ?>" >

		<div class="row justify-content-center">
			<div class="col-2 text-right mb-3">
				<?php echo $nfrom ?>
			</div>
			<div class="col-4 mb-3">		
				<input id="min_date" name="min_date" placeholder="From Date" value="<?php echo $min_rab_date ?>" type="text" required="required" class="form-control">
			</div>
		</div>

		<div class="row justify-content-center">
			<div class="col-2 text-right mb-3">
				<?php echo $nto ?>
			</div>
			<div class="col-4 mb-3">		
				<input id="max_date" name="max_date" placeholder="To Date" value="<?php echo $max_rab_date ?>" type="text" required="required" class="form-control">
			</div>
		</div>


		<div class="row justify-content-center">
			<div class="col-2 mb-3">
			</div>		
			<div class="col-4 text-left  mb-3">
				<button name="submit" type="submit" class="btn btn-primary"><?php echo $nrun_report ?></button>
			</div>
		</div>

	</form>

</div>

</body>
</html>