
<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">  
All Digital Content</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">
                              <tr>
                                <td width="6%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">S/L</td>
                                <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Date</td>
                                <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Class</td>
                                <td width="20%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Teacher</td>
                                 <td width="10%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Type</td>
                                 
                             
                               <td width="34%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Title</td>
                                 <td width="13%" align="center" style="border:1px solid #CCCCCC; font-weight:bold" height="25" valign="middle">Download</td>
                               
                                
                              </tr>
                              <!--do while-->
                              <?php $i=1;?>
                               <?php
						$this->db->order_by("date", "desc");
					    $query2 = $this->main_model->digitalcontent();
                        foreach($query2 as $row2):
						?>
                <?php  $fnames=$row2['date']; 
				 $fs=explode(" ",$fnames);
				 $fname=$fs[0]; ?>
				<?php $f=explode("-",$fname); ?>
                               <tr>
                                <td width="6%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $i; ?></td>
                                <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $f[2].'-'.$f[1].'-'.$f[0]; ?></td>
                                <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['sclass']; ?></td>
                                 <td width="20%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['steacher']; ?></td>
                                <td width="10%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><?php echo $row2['file_type']; ?></td>
                                 
                             
                               <td width="34%" align="left" style="border:1px solid #CCCCCC;" height="25" valign="middle">&nbsp;&nbsp;<?php echo $row2['ssubject']; ?>-<?php echo $row2['title']; ?></td>
                                 <td width="13%" align="center" style="border:1px solid #CCCCCC;" height="25" valign="middle"><a style="text-decoration:none; color:#F27900; font-weight:bold" href="<?php echo base_url();?>admin/uploads/<?php echo $row2['thumb_image']; ?>">Click Here</a></td>
                                 
                               
                                
                              </tr>
                              <!--do while-->
                              <?php $i++;?>
                             <?php endforeach; ?> 
               </table>
			
            <!--Test kora hosse-->
                	</p>
                		<!--<p class="m10 lr_m10" style="margin-left:-5px; text-align:right; padding-right:5px;"><a class="more" href="notice.php"> <img src="images/btn_more_image.gif" /></a></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>