

<div class="body_midv">
            	<!--Middle Top Part-->
          		<div style="width:100%; float:left">
                
                	<div class="box3tl">&nbsp;</div>
                    <div class="box3tmwd"><p class="notice_home">Board Result</p></div>
                    <div class="box3tr">&nbsp;</div>
                
                </div>
                <div class="boxbodyd">
                	<p style="margin-bottom:-7px;">&nbsp;</p>
                	<p style="padding-left:15px; width:100%; float:left ">
                    
                 <table width="100%" border="0" cellspacing="3" cellpadding="0" style="font-family:Verdana, Geneva, sans-serif; font-size:12px; font-weight:300; color:#515151">
                  <?php 
						$this->db->distinct();
						$this->db->select("class");
                        $query = $this->main_model->result();
                        foreach($query as $row_welcome):
						 
						
                        ?>
                 				<tr>
                                <td colspan="10" width="100%" align="center" style="border:1px solid #CCCCCC; font-weight:bold; font-size:14px" height="25" valign="middle"><font color="#E67300"><?php echo $row_welcome['class']; ?></font></td>
                                
                               
                               
                              </tr> 
                         
<?php
	$passyear=$row_welcome['class']; 
?>    
                              
                              
                              <!--do while-->
                              <tr>
							  
                                <td width="6%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">S/L</td>
                                <td width="15%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Year</td>
                                 <td width="20%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Total Student</td>
                                 <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">A+</td>
                                  <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">A</td>
                                   <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">A-</td>
                                    <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">B</td>
                                     <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">C</td>
                                
                       <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">D</td>       
                               <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Pass(%)</td>
                               
                               
                                
                              </tr>
                              <?php $i=1;?>
                               <?php							
                       
						$where1 = "class='$passyear'";
						$this->db->where($where1);
					    $query2 = $this->main_model->result();
                        foreach($query2 as $row2):
						?>
                               <tr>
                                <td width="6%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $i; ?></td>
                                <td width="15%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['pass_year']; ?></td>
                                 <td width="20%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['total_stu']; ?></td>
                                 <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['aplus']; ?></td>
                                  <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['normala']; ?></td>
                                   <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['aminus']; ?></td>
                                    <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['normalb']; ?></td>
                                 <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['normalc']; ?></td>
                              <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['normald']; ?></td>
                             
                               <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['percentage']; ?></td>
                              
                                
                              </tr>
                              
                              <?php $i++;?>
                               <?php endforeach; ?>
                              <!--do while-->
                          <?php endforeach; ?>
                             
               </table>
			
            <!--Test kora hosse-->
                	</p>
                		
                
                </div>
                <div style="width:100%; float:left">
                
                	<div class="box3bl">&nbsp;</div>
                    <div class="box3bmwui">&nbsp;</div>
                    <div class="box3br">&nbsp;</div>
                
                </div>
                <!--Middle Top Part-->
               
            	
            
            
            </div>