<style>.top-bar-minimize{display:none;}
thead, tfoot {display: table-header-group;}
.top-bar+.well,.accordion .accordion-heading+.accordion-body{display: inline-block !important;width: 100% !important;overflow: inherit !important;} 
.headPrint img{margin: -5px 14px 0px 290px;}

</style>
<script>
function fetchResult(){
	
	var section=document.getElementById(section).value;
	if(section==""){
		alert("Please Select section");
	}else if(cls==""){
		alert("Please Select class");
	}
	else{
		$.post( "<?php echo URL_ROOT ?>ExamCBSE/ajax.php", { type: "examSummery" ,cls: cls, section: section, subject: subject, term: term} , function( data ) {
			$("#detailDiv").show();
			$("#printDiv").html(data);
		});
	}
}
function  fetchSubject(cls){
	
	$.post( "<?php echo URL_ROOT ?>ExamCBSE/ajax.php", { type: "classSubject" ,cls: cls} , function( data ) {
		$("#subject_div").html(data);
	});
}

function findStudent(t){
	var cls=$("#class").val();
	var section=$("#section").val();
	$.post( "ExamCBSE/ajax.php", { type: "findStudent" ,cls: cls, section: section } , function( data ) {
	  	$("#findStudent").html(data);
	});
}

</script>
<?php
$pgMod="fee_summery";
$pgAct="view";
?>
    <form method="post" action="">
  
	<div class="row-fluid">
            <div class="span12">
            	 <div class="top-bar">
        <h3><i class="icon-cog"></i>Search Student Record</h3>
        <div>
          
          <button type="submit" name="fee" onclick="fetchResult()" class="btn btn-primary">Find Record</button>
       
        </div>
      </div>
				
				
				
 <!--
				<div class="well no-padding">
                	<div class="controls controls-row">
                        <div class="control-group span3">
                          <label class="control-label" for="medium">Term</label>
                            <div class="controls span3">
                                <select name="term" onChange="fetchResult('term','class','subject','section')" id="term">
                                    <option value="">Term</option>
                                    <?php 
                                        $class=$db->getRows("select * from examterm where school_id='".$_SESSION["admin"]["school_id"]."' ");
                                        foreach($class as $cla){
                                            ?>
                                            <option <?php if($cla["name"]==$_GET["term"])echo 'selected';?> value="<?php echo $cla["name"] ?>">
                                                <?php echo $cla["name"] ?>
                                            </option>
                                            <?php
                                        }
                                    ?>
                                </select>
                            </div>
                        </div>
                        <div class="control-group span3">
                          
                            <div class="controls span3">
                                <select onchange="fetchSubject($(this).val());fetchResult('term','class','subject','section');" name="class" id="class">
                                    <option value="">Class</option>
                                    <?php 
                                        $class=$db->getRows("select * from class  where school_id='".$_SESSION["admin"]["school_id"]."' ");
                                        foreach($class as $cla){
                                            ?>
                                            <option <?php if($cla["class"]==$aryForm["class"])echo 'selected';?> value="<?php echo $cla["class"] ?>">
                                                <?php echo $cla["class"] ?>
                                            </option>
                                            <?php
                                        }
                                    ?>
                                </select>
                            </div>
                        </div>
                        <div class="control-group span3">
                          
                            <div class="controls span3">
                               <select name="section" onchange="fetchResult('term','class','subject','section')" id="section" >
                <option value="">Section</option>
                <?php 
                    $class=$db->getRows("select * from section where school_id='".$_SESSION["admin"]["school_id"]."'");
                    foreach($class as $cla){
                        ?>
                        <option <?php if($cla["name"]==$aryForm["section"])echo 'selected';?> value="<?php echo $cla["name"] ?>">
                            <?php echo $cla["name"] ?>
                        </option>
                        <?php
            
                    }
                ?>
            </select>
                            </div>
                        </div>
                        <div class="control-group span3">
                          
                            <div class="controls span3" id="subject_div">
                                <select name="subject" id="subject">
                                    <option value="">Subject</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    
                    <br>
				</div>
             

-->
			 
				<!-- / Forms: Content -->
 <div class="well no-padding">
        <div class="controls controls-row">
        
           			    <div class="control-group span3">
                    
                           
                            <div class="controls span3">
                                <select onchange="findStudent()" name="class" id="class">
                                    <option value="">Class</option>
                                    <?php 
                                        $class=$db->getRows("select * from class where school_id='".$_SESSION["admin"]["school_id"]."'");
                                        foreach($class as $cla){
                                            ?>
                                            <option <?php if($cla["class"]==$aryForm["class"])echo 'selected';?> value="<?php echo $cla["class"] ?>">
                                                <?php echo $cla["class"] ?>
                                            </option>
                                            <?php
                                        }
                                    ?>
                                </select>
                            </div>
                       </div>
                       	<div class="control-group span3">
                            
                            <div class="controls span3">
                               <select name="section" onchange="findStudent()" id="section">
                                    <option value="">Section</option>
                                    <?php 
                                        $class=$db->getRows("select * from section where school_id='".$_SESSION["admin"]["school_id"]."'");
                                        foreach($class as $cla){
                                            ?>
                                            <option <?php if($cla["name"]==$aryForm["section"])echo 'selected';?> value="<?php echo $cla["name"] ?>">
                                                <?php echo $cla["name"] ?>
                                            </option>
                                            <?php
                                
                                        }
                                    ?>
                                </select>
                            </div>
                        </div>  
                        <div class="control-group span3">   
                               <select name="term">
                                <option value="">Exam type</option>
                                <option value="term1">Term1</option>
                                <option value="term2">Term2</option>
                                <option value="final">Final</option>
                              </select>
                           </div>
                        <div class="control-group span3">
                            <div class="controls span3" id="findStudent">
                              <select  name="idno" id="idno">
                               <option value="">All Student</option>
                              </select>
                            </div>
         			   </div>   
        </div>
        <br>
      </div>
			</div>
    </div>
    </form>
	
	<?php
	 if($_POST){
		 $mss=0; $smsAry="";$where="";$stsearch="";

if(isset($_POST["section"]) && $_POST["section"]!="")
			$where=" AND section='".$_POST["section"]."' ";
if(isset($_POST["idno"]) && $_POST["idno"]!="")
	$stsearch=" and idno='".$_POST["idno"]."' ";
		 
		 		$allStudent=$db->getRows("select * from student where school_id='".$_SESSION["admin"]["school_id"]."' and session='".$_SESSION["admin"]["session"]."' and class='".$_POST["class"]."' $where $stsearch and status=1 and issue_TC=0 order by name");
	//echo $db->getLastQuery();
	$examtype=$db->getRows("select name,id,total from examterm where school_id='".$_SESSION["admin"]["school_id"]."' order by lorder");
	?>
	<h3><i class="icon-cog"></i>Percentage  Detail</h3>
                <div style="float:right; margin-top:5px">
                    <button onclick="printDiv('printDiv')" type="button" class="btn btn-primary">Print</button>
                </div>
            <div class="well no-padding" id="printDiv">
            	
				
			<table class="table" cellpadding="0" cellspacing="0">
			<thead>
            <tr style="background: #D5DA13;">
            <td width="2%" style="color:#000;padding:6px;border-left:1px solid red; border-top:1px solid red; border-bottom:1px solid red;">S.No</td>
            <td style="color:#000;padding:6px; border-bottom:1px solid red; text-align:center ">Student</td>
            <td style="color:#000;padding:6px; border-bottom:1px solid red; text-align:center ">Father's Name</td>
			 <td style="color:#000;padding:6px; border-bottom:1px solid red; text-align:center ">Admission No.</td>
			 <td style="color:#000;padding:6px; border-bottom:1px solid red; text-align:center ">CLASS</td>
			<!--<td style="color:#000;padding:6px; border-bottom:1px solid red; text-align:center ">Term1 %</td>
			<td style="color:#000;padding:6px; border-bottom:1px solid red; text-align:center ">Term2 %</td>  !-->
			
			<td style="color:#000;padding:6px; border-right: 1px solid red; border-bottom:1px solid red; text-align:center">Overall %</td>
            
            </tr>
            </thead>
	<thead>
	<?php
	$items1 = array();
	$items2 = array();

	if(is_array($allStudent) && count($allStudent)>0){ $he=0; $ij=1;
		foreach($allStudent as $aryForm){$mss++;$he++;
		
	   ?>
		  
		   <?php if($he!=1){?><?php } ?>

		<!--three page <div style="height:2826px">end -->
		<?php
		$_GET['id']=$_POST["idno"];
		error_reporting(55);
		$_REQUEST["class"]=$db->getVal("select class from student where school_id='".$_SESSION["admin"]["school_id"]."' and idno=".$aryForm["idno"]);
		$exam=$db->getVal("select idno from student where school_id='".$_SESSION["admin"]["school_id"]."' and class='".$_POST["class"]."' and session='".$_SESSION["admin"]["session"]."' limit 0,1");
		
		$termWhere="";if($_POST["term"]!="final") $termWhere=" and term='".$_POST["term"]."' ";
		$examtype=$db->getRows("select name,id,total from examterm  where school_id='".$_SESSION["admin"]["school_id"]."'  order by lorder");
		//ECHO  $ss="SELECT * FROM student WHERE school_id='".$_SESSION["admin"]["school_id"]."' and idno='".$aryForm['idno']."'";
		//echo $db->getLastQuery();print_r($examtype);
		if(count($exam)>0){
		?>
		<?php $aryForm=$db->getRow("SELECT * FROM student WHERE school_id='".$_SESSION["admin"]["school_id"]."' and idno='".$aryForm['idno']."'");$overallTotalGrade=0; ?>
				 	 
				
				<?php $attr=$db->getRow("select * from allattandence where idno='".$aryForm["idno"]."' and session='".$_SESSION["admin"]["session"]."'"); 
				  if($attr!=NULL){
				?>
                
               	
				<?php if($aryForm['photo']!=""){ ?> 
					  
				 <?php } } else{ 
				 ?> 
                 <?php } ?> 
						
						
							
							<?php 
							
							if(is_array($examtype) && count($examtype)>0){
								 $finalObtain=0;$finalTotal=0;$f=0;	$overallper=0;
								foreach($examtype as $eytpe){ $f++; //echo "<pre>";print_r($eytpe);echo "</pre>";
								?>
								<?php

                               


								 ?>
	</td>
						<?php 	if($f==4  ){
$total_number=$db->getRow("select sum(total) from examterm  where school_id='".$_SESSION["admin"]["school_id"]."' and term= 'term1' order by lorder");	?>					
						
								<?php }  
								if($f==8  ){ 
								$total_number=$db->getRow("select sum(total) from examterm  where school_id='".$_SESSION["admin"]["school_id"]."' and term= 'term2' order by lorder");
								?>
										
								<?php }  ?>
							<?php }
							} ?>
						
						
						<?php $x=0; $finalObtain1=0; $finalTotal1=0; $finalObtain2=0; $finalTotal2=0; $overalltotalmarks=0; $overalmarkstotal=0;
						$detail=$db->getRows("select * from subject where school_id='".$_SESSION["admin"]["school_id"]."' and class='".$_REQUEST["class"]."' and session='".$_SESSION["admin"]["session"]."' order by id");
						foreach($detail as $d){ $fsAry=array();$final="";
						?>
						
						
								<?php 
								
								for($i=1; $i<=count($examtype);$i++){ 
								$examResultData=$db->getRow("select * from exammarks where idno='".$aryForm["idno"]."' and type='".$examtype[$i-1][0]."' and subject='".$d["subject"]."'"); 
								//$q="select * from exammarks where idno='".$aryForm["idno"]."' and type='".$examtype[$i-1][0]."' and subject='".$d["subject"]."'";
								//echo $q;
								//print_r($examResultData);
								?>
								
								<!--<input readonly="readonly" type="hidden" style="width:40px" name="<?php  $d["subject"]."_".$examtype[$i-1][0];?>[]" class="<?php  $examtype[$i-1][0];?>_total_marks total" value="<?php
								 $total=$db->getVal("select total from examterm where school_id='".$_SESSION["admin"]["school_id"]."' and id='".$examtype[$i-1][1]."'"); ?>" placeholder="Total Maks" />
								 <input required type="text" style="width:70px" name="<?php  $examtype[$i-1][0];?>_student[]" class="onlyZero obtain <?php  $examtype[$i-1][0];?>_obtain_marks" value="<?php (int)$examResultData["obtain"]; ?>" placeholder="Obtain Maks" /> -->
								 <?php
								 $fs=$examtype[$i-1][0];
								
								 $fsAry[$fs."_Obtain"]=$examResultData["obtain"];
								 $fsAry[$fs."_Total"]=$total;
								 /* echo FindGrade($examResultData["obtain"],$total);//."/".$examResultData["obtain"]."-".$total; */
								  
								  
								   //echo $examResultData[obtain]; 
						if($i==1)  number_format($examResultData["obtain"]*10/$total,1)+0;
						 if($i==2)  number_format($examResultData["obtain"]*5/$total,1)+0;
						 if($i==3)  number_format($examResultData["obtain"]*5/$total,1)+0;
						 if($i==4)  number_format($examResultData["obtain"]*80/$total,1)+0;
						 
						 if($i==5)  number_format($examResultData["obtain"]*10/$total,1)+0;
						 if($i==6)  number_format($examResultData["obtain"]*5/$total,1)+0;
						 if($i==7)  number_format($examResultData["obtain"]*5/$total,1)+0;
						 if($i==8)  number_format($examResultData["obtain"]*80/$total,1)+0;
								
								
								
								
								?>
								
								<?php  if($i==4){?>
										<?php 
								/*
								$fa1Obtain=number_format($fsAry["PT1_Obtain"]*10/30,1)+0;
							    $note1Obtain=number_format($fsAry["NOTE1_Obtain"]*5/5)+0;
							    $sa1Obtain=number_format($fsAry["SUBEN1_Obtain"]*5/5)+0;
							    $half=number_format($fsAry["HALFYEARLY_Obtain"]*80/80)+0;*/
												
																						
			  $PT1Obtain=number_format($fsAry["PT1_Obtain"]*10/$fsAry["PT1_Total"],1)+0;
			$NOTE1_obtain=number_format($fsAry["NOTE1_Obtain"]*5/$fsAry["NOTE1_Total"],1)+0;
			$SUBEN1=number_format($fsAry["SUBEN1_Obtain"]*5/$fsAry["SUBEN1_Total"],1)+0;
			$HALFYEARLY=number_format($fsAry["HALFYEARLY_Obtain"]*80/$fsAry["HALFYEARLY_Total"],1)+0;																						
											
												$AllTotal =100;
												
									//echo $AllObtain=$fsAry["PT1_Obtain"]+$fsAry["NOTE1_Obtain"]+$fsAry["SUBEN1_Obtain"]+$fsAry["HALFYEARLY_Obtain"];
									
									//echo $AllObtain=$fa1Obtain+$note1Obtain+$sa1Obtain+$half;
									
									 $AllObtain=$PT1Obtain+$NOTE1_obtain+$SUBEN1+$HALFYEARLY;
									
										//echo $AllObtain;
										$final=FindGrade($AllObtain,$AllTotal);
											$finalObtain1+=$AllObtain;
											$finalTotal1+=$AllTotal;
											
										?>
										<?php  $final; ?></td>
								<?php  } ?>
								
								
								
								<?php  if($i==8){?>
										<?php 
								/*			
								$PT2_Obtain=number_format($fsAry["PT2_Obtain"]*10/30,1)+0;
								$NOTE2_Obtain=number_format($fsAry["NOTE2_Obtain"]*5/5)+0;
								$SUBEN2_Obtain=number_format($fsAry["SUBEN2_Obtain"]*5/5)+0;
								$FINAL_Obtain=number_format($fsAry["FINAL_Obtain"]*80/80)+0;*/
								
								
			$PT2Obtain=number_format($fsAry["PT2_Obtain"]*10/$fsAry["PT2_Total"],1)+0;
			$NOTE2obtain=number_format($fsAry["NOTE2_Obtain"]*5/$fsAry["NOTE2_Total"],1)+0;
			$SUBEN2=number_format($fsAry["SUBEN2_Obtain"]*5/$fsAry["SUBEN2_Total"],1)+0;
			$final=number_format($fsAry["FINAL_Obtain"]*80/$fsAry["FINAL_Total"],1)+0;
			
			
																		
											
											
												$AllTotal =100;
							//echo $AllObtain=$PT2_Obtain+$NOTE2_Obtain+$SUBEN2_Obtain+$FINAL_Obtain;
							$overalltotalmarksfinal=200;
							 $AllObtain2=$PT2Obtain+$NOTE2obtain+$SUBEN2+$final;
							
									$final=FindGrade($AllObtain2,$AllTotal);
										//echo $AllObtain;
											$finalObtain2+=$AllObtain2;
											
											$finalTotal2+=$AllTotal;
											
											$alltotalmarks=$AllObtain+$AllObtain2;
											$overalltotalmarks+=$alltotalmarks;
											$overalmarkstotal+=$overalltotalmarksfinal;
										?>
										<?php  $final; ?></td>
								<?php  } ?>
								
								
								
								<?php }$x++; ?>
								
								
								
								<?php if($_POST["term"]=="final"){?> 
									<!-- overall term1 FA+SA1 -->
							   
									  <!-- overall term2 FA+SA -->
								<!--<td style="border-right:2px solid #FA0606"><?php 
									$fa3Obtain=($fsAry["FA3_Obtain"]*100)/$fsAry["FA3_Total"];
									$fa4Obtain=($fsAry["FA4_Obtain"]*100)/$fsAry["FA4_Total"];
									$sa2Obtain=($fsAry["SA2_Obtain"]*100)/$fsAry["SA2_Total"];
									$fa3Obtain=(10*$fa3Obtain)/100;
									$fa4Obtain=(10*$fa4Obtain)/100;
									$sa2Obtain=(30*$sa2Obtain)/100;
									
									$faObtain=$fa3Obtain + $fa4Obtain;
									$AllTotal =50;
									$AllObtain = $sa2Obtain + $faObtain;
									//$AllTotal = $saTotal + $faTotal;
									 $final=FindGrade($AllObtain,$AllTotal);//."/".$AllObtain."-".$AllTotal;
									$finalObtain+=$AllObtain;
									
									$finalTotal+=$AllTotal;
								?></td>
								 <!-- overall final term FA+SA+Overall Grade -->
								<!--<td style="border-right:2px solid #FA0606"><?php 
											$fa1Obtain=($fsAry["FA1_Obtain"]*100)/$fsAry["FA1_Total"];
											$fa2Obtain=($fsAry["FA2_Obtain"]*100)/$fsAry["FA2_Total"];
											$fa3Obtain=($fsAry["FA3_Obtain"]*100)/$fsAry["FA3_Total"];
											$fa4Obtain=($fsAry["FA4_Obtain"]*100)/$fsAry["FA4_Total"];
											$fa1Obtain=(10*$fa1Obtain)/100;
											$fa2Obtain=(10*$fa2Obtain)/100;
											$fa3Obtain=(10*$fa3Obtain)/100;
											$fa4Obtain=(10*$fa4Obtain)/100;
											$faObtain=$fa1Obtain + $fa2Obtain + $fa3Obtain + $fa4Obtain;
											$faTotal=40;
//$faObtain=$fsAry["FA1_Obtain"]+$fsAry["FA2_Obtain"]+$fsAry["FA3_Obtain"]+$fsAry["FA4_Obtain"];$faTotal=$fsAry["FA1_Total"]+$fsAry["FA2_Total"]+$fsAry["FA3_Total"]+$fsAry["FA4_Total"];
								 FindGrade($faObtain,$faTotal);//."/".$faObtain."-".$faTotal; ?></td>
								<td style="border-right:2px solid #FA0606"><?php
									$sa1Obtain=($fsAry["SA1_Obtain"]*100)/$fsAry["SA1_Total"];
									$sa2Obtain=($fsAry["SA2_Obtain"]*100)/$fsAry["SA2_Total"];
									$sa1Obtain=(30*$sa1Obtain)/100;
									$sa2Obtain=(30*$sa2Obtain)/100;
									$saObtain=$sa1Obtain + $sa2Obtain;
									$saTotal=60;
								 //$saObtain=$fsAry["SA1_Obtain"]+$fsAry["SA2_Obtain"];$saTotal=$fsAry["SA1_Total"]+$fsAry["SA2_Total"];
								 FindGrade($saObtain,$saTotal);//."/".$saObtain."-".$saTotal; ?></td>
								<td style="border-right:2px solid #FA0606">
								<?php 
								$AllObtain = $saObtain + $faObtain;
								$AllTotal = $saTotal + $faTotal;
								 $final=FindGrade($AllObtain,$AllTotal);//."/".$AllObtain."-".$AllTotal;
								$finalObtain+=$AllObtain;
								$finalTotal+=$AllTotal;
								$ary[]=$final;
								?>
								</td>-->
								<?php } ?>
								
							
						<?php
						 $stid=$_GET["id"];$subj1=$d["subject"];
						$smsAry.="$stid~$subj1~".$final."<br/>";
						}
						
	?>	
	
<tr>
                	<td style="border-left: 1px solid red; border-bottom:1px solid red; "><?php echo $ij; ?></td>
                	<td style="text-align:center; border-bottom:1px solid red;"><?php echo $aryForm["name"] ?></td>
                    <td style="text-align:center; border-bottom:1px solid red;"><?php echo $aryForm["fname"] ?></td>
					  <td style="text-align:center; border-bottom:1px solid red;"><?php echo $aryForm["admissionno"] ?></td>
					   <td style="text-align:center; border-bottom:1px solid red;"><?php echo $aryForm["class"] ?>-<?php echo $aryForm["section"] ?></td>
				<!--	<td style="text-align:center; border-bottom:1px solid red;"><?php //echo (number_format($finalObtain1*100/ $finalTotal1,2)+0)."%"; ?></td>
					<td style="text-align:center; border-bottom:1px solid red;"><?php  //echo (number_format($finalObtain2*100/ $finalTotal2,2)+0)."%";; ?></td> !-->
					<td style=" border-right: 1px solid red; text-align:center;  border-bottom:1px solid red;" ><?php echo $overallper=(number_format($overalltotalmarks*100/ $overalmarkstotal,2)+0)."%"; ?></td>
                    
                </tr>				
			<?php	
				$records = array(
  array(				
        'id' => 2135,
        'first_name' => 'John',
        'percentageob' => $overallper,
   ),
);
//arsort($records);
 $items1[] = $aryForm["idno"];
 $items2[] = $overallper;
 
//echo 'Highest is -'.$records[0].', Second highest is -'.$records[1];
	//print_r($records);

	
//$first_names = array_column($records, 'percentageob');
//print_r($first_names);
	
	
/*	
foreach($records as $x=>$x_value)
   {
   echo "Key=" . $x . ", Value=" . $x_value;
   echo "<br>";
   }

*/   
	?>	
				<?php  $ij++;
?>				
				
				
			
						
						<!--<div style="margin-left: 5px;">
			<div style="width:65%;float:left;  margin-top: 10px;color:#1224A5;font-size: 13px;font-weight: 800;">
				Subject wise Indicative percentage of marks = 9.5 x GP of the subject <br/><br/>
			   First Term - FA1(10%)+FA2(10%)+SA1(30%) = 50%  <br/><br/>
				Second Term - FA3(10%)+FA4(10%)+SA2(30%) = 50% <br/><br />
				FORMATIVE ASSESSMENT(FA) 1 + 2 + 3 + 4 = 40%   <br/><br />
				SUMMATIVE ASSESSMENT(SA) 1 + 2 = 60%           <br/><br />
				CGPA is calculated excluding 3rd language.
			</div>
			<div style="width:34%;float:left;margin-top:8px;">
			<table border="1" cellpadding="1" cellspacing="0" style="text-align:center;color:#1224A5;font-size: 13px;font-weight: 800;">
				<tr>
					<td colspan="3">GRADING SYSTEM - SCHOLASTIC</td>
				</tr>
				<tr>
					<td>MARK RANGE</td><td>GRADE</td><td>GRADE POINT</td>
				</tr>
				<tr>
					<td>91 - 100</td><td>A1</td><td>10.0</td>
				</tr>
				<tr>
					<td>81 - 90</td><td>A2</td><td>9.0</td>
				</tr>
				<tr>
					<td>71 - 80</td><td>B1</td><td>8.0</td>
				</tr>
				<tr>
					<td>61 - 70</td><td>B2</td><td>7.0</td>
				</tr>
				<tr>
					<td>51 - 60</td><td>C1</td><td>6.0</td>
				</tr>
				<tr>
					<td>41 - 50</td><td>C2</td><td>5.0</td>
				</tr>
				<tr>
					<td>33 - 40</td><td>D</td><td>4.0</td>
				</tr>
				<tr>
					<td>21 - 32</td><td>E1</td><td>3.0</td>
				</tr>
				<tr>
					<td>0 - 20</td><td>E2</td><td>2.0</td>
				</tr>
			</table>
			</div>
		</div>-->
		
							 
			
		<?php
		
		
		} }
$c = array_combine($items1, $items2);
arsort($c);
		//print_r($c)
		
		?> </thead>	
</table>				<?php
			?>
	   
	
	<?php   } }
	