<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'); 			
	
	include('z_a_version_check.php'); 						



 ?>

<?php include('nf_chosen01.php'); ?>

<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-8 text-center  mb-3">
				<h4><?php printf("<b>$title_gantt_centers</b>"); ?></h4>
			</div>
		</div>
	
		<form name="menuform" method="post" action="r_gantt_centers_rep.php?lang=<?php echo $lang; ?>&pid=<?php echo $pid; ?>&xuid=<?php echo $xuid; ?>&xfdc=<?php echo $xfdc; ?>" >

		<?php 
		if ($rabio_premium == 1) {
		?>
		<div class="row justify-content-center">
			<div class="col-2 text-end mb-3">
				<?php echo $n_data ?>
			</div>
			<div class="col-8 mb-3">		
					<?php
					echo "<select class='form-select' name='datayesno' > ";
					printf ("<option value = 1 > $n_data : $nyes </option>");
					printf ("<option value = 0 > $n_data : $nno </option>");
					echo "</select>";
					?>				
			</div>
		</div>
		<?php
		}
		if ($rabio_premium == 0) {
		?>
			 <input type="hidden" id="datayesno" name="datayesno" value=0 >
		<?php
			}			
		?>


		
		<?php
				// CHECK DAYS FOR SUGGESTION ON PERIOD
			if ($ccmanager_date_diff <= 90) 									{  $n_days 		= $n_days." (".$n_suggested.")"; }
			if ($ccmanager_date_diff > 90 && $ccmanager_date_diff <= 180) 		{  $n_weeks 	= $n_weeks." (".$n_suggested.")"; }
			if ($ccmanager_date_diff > 180 && $ccmanager_date_diff <= 540) 		{  $n_months 	= $n_months." (".$n_suggested.")"; }
			if ($ccmanager_date_diff > 540 && $ccmanager_date_diff <= 1100) 	{  $n_quarters 	= $n_quarters." (".$n_suggested.")"; }
			if ($ccmanager_date_diff > 1100) 									{  $n_years 	= $n_years." (".$n_suggested.")"; }
		
		?>
		
		
		
		<div class="row justify-content-center">
			<div class="col-2 text-end mb-3">
				<?php echo $nrange ?>
			</div>
			<div class="col-8 mb-3">		
					<?php
					echo "<select class='form-select' name='periodin' required > ";
					printf ("<option value = '' 	> $nselect </option>");
					printf ("<option value = 'pdd' 	> $n_days </option>");
					printf ("<option value = 'pww' 	> $n_weeks </option>");
					printf ("<option value = 'pmm' 	> $n_months </option>");
					printf ("<option value = 'pqq' 	> $n_quarters </option>");
					printf ("<option value = 'pyy' 	> $n_years </option>");
					echo "</select>";
					?>				
			</div>
		</div>		


		<div class="row justify-content-center">
			<div class="col-2 mb-3">
			</div>		
			<div class="col-6 text-start mb-3">
				<button name="submit" type="submit" class="btn btn-primary btn-block"><?php echo $nview." ".$title_gantt_centers; ?></button>
			</div>
		</div>

	</form>

</div>

</body>
<?php include('nf_chosen02.php'); ?>
</html>