<?php
session_start();
include "connect.php";



		$id = intval($_REQUEST['id']);
		
		$eve = "select iieltstestname from res_inquiryielts_detail where iieltsdid=$id";
		$re = mysqli_query($conn, $eve);
		
		while($rt = mysqli_fetch_assoc($re))
		{
			$iieltstestname = $rt['iieltstestname'];
		}

		
		

?>


						<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	 <?php if($iieltstestname == 'IELTS' || $iieltstestname == 'CLEB' || $iieltstestname == 'TOEFL'|| $iieltstestname == 'PTE'|| $iieltstestname == 'TEF') { ?>
							
                            <th>Reading
                            </th>
							<th>Listening
                            </th>
							<th>Writing
                            </th>
                            <th>Reading
                            </th>
                            <th>Overall
                            </th>
							<?php }else if($iieltstestname == 'GRE'){ ?>
                            
							<th>Verbal Reasoning
                            </th>
							<th>Quantitative Reasoning
                            </th>
                            <th>Analytical writing
                            </th>
                            <th>Overall
                            </th>
							<?php }else if($iieltstestname == 'SAT'){ ?>
							<th>Maths
                            </th>
                            <th>English
                            </th>
                            <th>Overall
                            </th>
							<?php } ?>
																	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
															$i=1;
															$tt1=0;
															$evepay = "select * from res_inquiryielts_detail where iieltsdid=$id";
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$iieltsread=$rtpay['iieltsread'];
															$iieltswrite=$rtpay['iieltswrite'];
															$iieltsspeak=$rtpay['iieltsspeak'];
															$iieltslisten=$rtpay['iieltslisten'];
															$iieltsoverall=$rtpay['iieltsoverall'];
															$iieltsverbalreasoning=$rtpay['iieltsverbalreasoning'];
															$iieltsquantitativereasoning=$rtpay['iieltsquantitativereasoning'];
															$iieltsanalyticalwriting=$rtpay['iieltsanalyticalwriting'];
															$iieltsmaths=$rtpay['iieltsmaths'];
															$iieltsenglish=$rtpay['iieltsenglish'];
															$iieltsclblevel=$rtpay['iieltsclblevel'];
															
															
															}
															?>
																<tr>
																	<?php if($iieltstestname == 'IELTS' || $iieltstestname == 'CLEB' || $iieltstestname == 'TOEFL'|| $iieltstestname == 'PTE'|| $iieltstestname == 'TEF') { ?>
																	 
                            <td>
                              <?php echo $iieltsread;?>
                            </td>
							<td>
                              <?php echo $iieltslisten;?>
                            </td> 
							<td>
                              <?php echo $iieltswrite;?>
                            </td>
                            <td>
                              <?php echo $iieltsspeak;?>
                            </td>
                            <td>
                              <?php echo $iieltsoverall;?>
                            </td>
							<?php }else if($iieltstestname == 'GRE'){ ?>
							<td>
                              <?php echo $iieltsverbalreasoning;?>
                            </td> 
							<td>
                              <?php echo $iieltsquantitativereasoning;?>
                            </td>
                            <td>
                              <?php echo $iieltsanalyticalwriting;?>
                            </td>
                            <td>
                              <?php echo $iieltsoverall;?>
                            </td>
							<?php }else if($iieltstestname == 'SAT'){ ?>
							<td>
                              <?php echo $iieltsmaths;?>
                            </td>
                            <td>
                              <?php echo $iieltsenglish;?>
                            </td>
                            <td>
                              <?php echo $iieltsoverall;?>
                            </td>
																	<?php } ?>
							 

							
							
																	
																</tr>
															
																</tbody>
															<!--end::Table head-->
														</table>
																			
