<?php 
include('header.php');
include('sidebar.php');?>

<div class="main-content">	<div class="page-content">
<div class="container-fluid">
	<div class="row">
		<div class="col-12 col-lg-8 mr-auto ml-auto">
            <div class="row">
				<div class="col-sm-12 col-12 ">
                    <div class="card">
						<div class="card-body">
						 <h5 class="card-title">Gali Desawar Games Rate</h5>
							<form method="POST" action="action-code/update-gali-desawar-game-rates.php">
							    
							<div class="row">
								<div class="form-group col-md-6">
									<label class="col-form-label">Left Digit Value 1</label>
									<?php $select = mysqli_fetch_array(mysqli_query($con,"SELECT * FROM gali_desawar_game_rates WHERE type='Left Digit'"));?>
                                    <input type="number" class="form-control" placeholder="" value="<?php echo $select['min_value'];?>" name="left_digit_1" required>
								</div>
								
								<div class="form-group col-md-6">
									<label class="col-form-label">Left Digit Value 2</label>
									<input type="number" class="form-control" placeholder="" value="<?php echo $select['max_value'];?>" name="left_digit_2" required>
								</div>
								
								<div class="form-group col-md-6">
									<label class="col-form-label">Right Digit Value 1</label>
									<?php $select = mysqli_fetch_array(mysqli_query($con,"SELECT * FROM gali_desawar_game_rates WHERE type='Right Digit'"));?>
                                    <input type="number" class="form-control" placeholder="" value="<?php echo $select['min_value'];?>" name="right_digit_1" required>
								</div>
								
								<div class="form-group col-md-6">
									<label class="col-form-label">Right Digit Value 2</label>
								<input type="number" class="form-control" placeholder=""  value="<?php echo $select['max_value'];?>" name="right_digit_2" required>
								</div>
								
								<div class="form-group col-md-6">
									<label class="col-form-label">Jodi Digit Value 1</label>
									<?php $select = mysqli_fetch_array(mysqli_query($con,"SELECT * FROM gali_desawar_game_rates WHERE type='Jodi Digit'"));?>
                                    <input type="number" class="form-control" placeholder="" value="<?php echo $select['min_value'];?>" name="jodi_digit_1" required>
								</div>
								
								<div class="form-group col-md-6">
									<label class="col-form-label">Jodi Digit Value 2</label>
									<input type="number" class="form-control" placeholder="" value="<?php echo $select['max_value'];?>" name="jodi_digit_2" required>
								</div>
								
							</div>	
								<div class="form-group">
									<button type="submit" class="btn btn-primary waves-light m-t-10" id="submitBtn" name="buysubmitBtn">Submit</button>
								</div>
								<div class="form-group">
									<div id="error"></div>
								</div>
							</form>
						</div>
                    </div>
                </div>
			</div>
		</div>
	</div>
</div>
</div>	
<?php include('footer.php');?>