<?php 	include_once('../../config.php');   	
		include_once(ABS_PATH.'/admin/login_check.php');    
  
                   
					       
include ABS_PATH.'/admin/header.php';	
?>


 <script>
	$(function() {
		$( "#datepicker" ).datepicker(); 
	}); 
  
	$(document).ready(function()
	{   

	
	$("#product_frm").validate({
		
		errorElement:'div',
		rules:{ 
			userid:{
				required:true				 
			} 
			
			
			
		},
		messages:{				
			 
			 city:{
				required:"Enter city name"				 
			} 
		}
	});


	});
 


</script>



<script> 
$(document).ready(function()
{   
  
	
	    var URL = "<?php echo ROOTPATH; ?>";    
        $( "#userid" ).change(function() 
        {      
                   
                     
          $.ajax({	
                type: "POST",
                url: URL+"/ajax/validation.php",
                data: {userDatacheck:1,Data:$("#userid").val()},
                beforeSend: function(){ 
                },
                success: function(data)
                    {        
                        $("#AvailbleId").html("<span style='color:green;'>"+data+" &#x2713</span>");
                    }
                });   
        });
        
         $( "#useridA" ).change(function() 
        {      
                
                     
          $.ajax({	
                type: "POST",
                url: URL+"/ajax/validation.php",
                data: {userDatacheck:1,Data:$("#useridA").val()},
                beforeSend: function(){ 
                },
                success: function(data)
                    {        
                        
                        $("#AvailbleIdA").html("<span style='color:green;'>"+data+" &#x2713</span>");
                    }
                });   
        });
 
 
}); 

</script>    

		 
		 <div class="col-md-10"> 
	  			<div class="row">
	  				<div class="col-md-12">
	  					<div class="content-box-large">
							<div class="panel-heading">
						
								<div class="panel-title"> <h3> GROUP LIST </h3></div>    
								<div class="panel-options">  
								    <a class="btn btn-warning" href="groupId.php"> Add Group Id</a>  
								</div> 
							</div> 
							
						
						 
							
			  				<div class="panel-body"> 
			  				
			  					 
								 
			  				<?php 
			  				    if($myIdset==0) 
			  				    {
			  				?>
			  					 
	  				    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
						<thead>
							<tr> 
							
								<th>Sr</th>
								<th>UserID</th>  
								<th>User Name</th>  	   
							 
							 
								
							</tr>
						</thead>
						<tbody>
							<?php
                                    $stmt=$conn->prepare("select  * from  UI__GroupIds ");  
                                    //$stmt->bindValue(':Ttime', $InTime , PDO::PARAM_STR);
                                    $stmt->execute(); 
                                    $AllUsers = $stmt->fetchAll(PDO::FETCH_OBJ); 
                                    $sr = 1;
								  foreach($AllUsers as $users)
								  {    
							          
							        $stmt=$conn->prepare("select  nm from   UI__Rgst where cuurentId=:cuurentId   ");  
                                    $stmt->bindValue(':cuurentId', $users->custId ,  PDO::PARAM_STR);
                                    $stmt->execute();  
                                    $NM = $stmt->fetch(PDO::FETCH_OBJ);     
                                                                               
							?>
							<tr class="odd gradeX" <?php if( ($users->response!='') && ($users->status!=1))  { ?>style="color:red;" <?php } ?> >
								<td><?php echo $sr++;?> </td>
								<td><a href="GrpPayList.php?custId=<?php echo $users->custId;?>"><?php echo $users->custId;?></a></td>
								<td><?php echo $NM->nm;?>  </td>   
							 
							     
							</tr>  
							<?php } ?>
						</tbody>
					</table>
					
					
					
				 
					 
					
					
					        
					
					    <!--div class="panel-title"> <h3><?php echo "UPI PAYOUT"; ?> </h3></div>    
					    
			  					<form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" id="product_frm"> 
							   	 <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">PAYOUT</label>
								    <div class="col-sm-6">  
								      Bharat Pay <input type="radio" value="1" name="UpiPay" <?php if($RstUxd->Upiselect==1) echo "checked"; ?> > &nbsp;&nbsp;
								      Ecuzen <input type="radio" value="2" name="UpiPay" <?php if($RstUxd->Upiselect==2) echo "checked"; ?>>
								      Pay2all <input type="radio" value="3" name="UpiPay" <?php if($RstUxd->Upiselect==3) echo "checked"; ?>>
								    </div>
								 </div>
								 <hr>    
								 
								  <div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">Submit</label>
										<div class="col-sm-6">
										  <input type="submit"    class="btn btn-primary"  name="submitP" value="Submit">
										</div>
								  </div>   
								</form-->  
			  				</div>
			  			</div>
			  			
			  			
			  			
			  			
			  			<!--div class="content-box-large">
							<div class="panel-heading">
								<div class="panel-title"> <h3> </h3></div>    
								<div class="panel-title"> <h3><?php echo "BANK TRANSFER"; ?> </h3></div>    
							 
								 
							</div>
							
							
			  				<div class="panel-body">    
			  					<form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" id="product_frm"> 
							   	  
								 
								 
								  
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">PAYOUT</label>
								    <div class="col-sm-6">  
								      Pay2All <input type="radio" value="1" name="UpiPay1" <?php if($RstUxd1->Upiselect==1) echo "checked"; ?> > &nbsp;&nbsp;
								      Ecuzen <input type="radio" value="2" name="UpiPay1" <?php if($RstUxd1->Upiselect==2) echo "checked"; ?>>
								      Airpay <input type="radio" value="3" name="UpiPay1" <?php if($RstUxd1->Upiselect==3) echo "checked"; ?>>
								    </div>
								 </div>
								 <hr>   
								 
								 
								  <div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">Submit</label>
										<div class="col-sm-6">
										  <input type="submit"    class="btn btn-primary"  name="submitA" value="Submit">
										</div>
								  </div>   
								</form>  
			  				</div>
			  			</div-->
			  			
			  			<?php  } else {?>
			  			
			  			
			  				<div class="content-box-large">
			  				<div class="panel-body">    
			  				
			  				</div>
			  				</div>
			  			
			  			<?php } ?>  
						
						
			  			 
			  			
			  			
			  			
			  		 
			  			
						
			  			
	  				</div> 
	  			</div>    
	  		<!--  Page content -->
		  </div>
		  
		</div>
    </div>

<?php  include ABS_PATH.'/admin/footer.php';	
    unset($_SESSION['userpanadhar']);
?>    