 <div class="mains_body">
        
        	<!--Top Left Part-->
        	<div class="body_left">

<div style="width:100%; float:left">
                <?php							
                       
						$where = "content_type='Message'";
						$this->db->where($where);
					    $query2 = $this->main_model->homecontent();
                        foreach($query2 as $row2):
						?>
                	<div class="box3tl">&nbsp;</div>
                    <div class="box3tm"><p class="notice_home"><?php echo $row2['content_option']; ?></p></div>
                    <div class="box3tr">&nbsp;</div>
                
                </div>
                <div class="box3body">
                	<p class="m10 lr_m10 date_txt" style="text-align:center"><img style="margin-top:-4px;" width="132" height="150" src="<?php echo base_url();?>admin/uploads/<?php echo $row2['home_image']; ?>" /></p>
                	<p class="m5 lr_m10" style="line-height:18px; background-color:#0000FF; ">
					
					<table width="100%">
						<tr>
							<td>&nbsp;</td>
							<td style="line-height:19px;"><?php
$gts=$row2['details'];
echo $rest = substr($gts, 0, 200);  // returns "abcde"

?>..... </td>
							<td>&nbsp;&nbsp;</td>
						</tr>
					
					</table>
					
					
					
					</p>
                	
					
					<p class="m10 lr_m10" style="margin-left:-5px; text-align:right; padding-right:5px;"><!--<a class="more" href="inner_page.php">--><a href="<?php echo site_url('home/headteacher/'.$row2['home_id']); ?>"> <img src="<?php echo base_url();?>assets/images/btn_more_image.gif" /></a></p>
                
                </div>
                <div style="width:100%; float:left">
                
                	<div class="box3bl">&nbsp;</div>
                    <div class="box3bm">&nbsp;</div>
                    <div class="box3br">&nbsp;</div>
                
                </div>
				<?php endforeach; ?> 
				</div>