<div class="wrapper">
  <div class="fl" style="width:632px" >
    <div class="packages">
      <h3><?php echo $pageTitle?></h3>
      <div class="contain">
        <?php
       if(count($searchPackageList) > 0){
	   if($searchPackageList && count($searchPackageList) > 0){
			foreach ($searchPackageList as $package){
				
				$class = 'class="contain bk-image-none"' ;
				?>
        <div class="packages">
          <div <?php echo $class;?>>
            <div class="fl">
              <?php if($package->package_image!='' && file_exists(DIR_UPLOAD_BANNER.$package->package_image)) {?>
              <img src="<?php echo SITE_URL; ?>libs/timthumb.php?src=<?php echo DIR_UPLOAD_BANNER_SHOW.$package->package_image ?>&w=150&zc=0&q=90"  />
              <?php } ?>
            </div>
            <h4><?php echo $package->package_title; ?> </h4>
            <p class="style3"><?php echo $package->package_short_desc; ?> </p>
            <p class="style3">&nbsp;</p>
            <p>
              <?php 
                                  $string = $package->package_desc;
                                    $stringDisplay = substr(strip_tags($string), 0, 200);
                                    if (strlen(strip_tags($string)) > 200)
                                        $stringDisplay .= ' ...';	
                                        echo $stringDisplay;
                                  ?>
            </p>
            <p><a href="<?php echo SITE_URL.'package/'.$package->package_slug; ?>">More...</a></p>
          </div>
        </div>
        <?php } 
            }
	   
	   }
	   
	   
	   if($searchNewsList && count($searchNewsList) > 0){
			foreach ($searchNewsList as $news){
				
				$class = 'class="contain bk-image-none"' ;
				?>
        <div <?php echo $class;?>>
        <div class="fl news-img">
          <p class="month"><?php echo date('M',strtotime($news->news_date))?></p>
          <p class="day"><?php echo date('d',strtotime($news->news_date))?><strong></strong></p>
        </div>
        <div class="fl" style="width:632px">
          <h4><a href="<?php echo SITE_URL.'n/'.$news->news_slug?>"><?php echo $news->news_title?></a></h4>
          <p>
            <?php 
                                 $string = $news->news_desc;
                                    $stringDisplay = substr(strip_tags($string), 0, 250);
                                    if (strlen(strip_tags($string)) > 250)
                                        $stringDisplay .= ' ...';	
                                        echo $stringDisplay;
                                  ?>
          </p>
        </div>
      </div>
        <?php } 
            }
	   
	   if(count($searchPageList) > 0){
	   if($searchPageList && count($searchPageList) > 0){
			foreach ($searchPageList as $page){
				
				$class = 'class="contain bk-image-none"' ;
				?>
        <div class="packages">
          <div <?php echo $class;?>>
             <h4><?php echo $page->page_title; ?> </h4>
            <p class="style3">&nbsp;</p>
            <p>
              <?php 
                                  $string = $page->page_desc;
                                    $stringDisplay = substr(strip_tags($string), 0, 200);
                                    if (strlen(strip_tags($string)) > 200)
                                        $stringDisplay .= ' ...';	
                                        echo $stringDisplay;
                                  ?>
            </p>
            <p><a href="<?php echo SITE_URL.'p/'.$page->page_slug; ?>">More...</a></p>
          </div>
        </div>
        <?php } 
            }
	   
	   }
	   ?>
      </div>
    </div>
  </div>
  <div class="fr" style="width:305px">
    <div class="fr" style="width:305px">
      <h3>Testimonials</h3>
      <?php $count=0;
		 if($testimonialList && count($testimonialList) > 0){
			foreach ($testimonialList as $testimonial){
			$count++; 
				$class = ($count == 1) ? 'class="contain"' : 'class="contain bk-image-none"' ;
			?>
      <div <?php echo $class;?>>
        <div class="fl testi">
          <p><a href="<?php echo SITE_URL.'testimonial';?>">&quot; <?php echo $testimonial->testimonial_desc;?> &quot; </a></p>
          <p align="right"><?php echo $testimonial->testimonial_title;?><br />
            <?php echo $testimonial->testimonial_company;?></p>
        </div>
      </div>
      <?php } 
		 } ?>
    </div>
    <div class="fr" style="width:305px">
      <h3>Latest News</h3>
      <?php
      //class="contain bk-image-none"
	 $count = 0;
		if($newsList && count($newsList) > 0){
			foreach ($newsList as $news){
				$count++; 
				$class = ($count == 1) ? 'class="contain"' : 'class="contain bk-image-none"' ;
				?>
      <div <?php echo $class;?>>
        <div class="fl news-img">
          <p class="month"><?php echo date('M',strtotime($news->news_date))?></p>
          <p class="day"><?php echo date('d',strtotime($news->news_date))?><strong></strong></p>
        </div>
        <div class="fl" style="width:232px">
          <h4><a href="<?php echo SITE_URL.'n/'.$news->news_slug ?>"><?php echo $news->news_title?></a></h4>
          <p>
            <?php 
                                  $string = $news->news_desc;
                                    $stringDisplay = substr(strip_tags($string), 0, 50);
                                    if (strlen(strip_tags($string)) > 50)
                                        $stringDisplay .= ' ...';	
                                        echo $stringDisplay;
                                  ?>
          </p>
        </div>
      </div>
      <?php } 
                
                } ?>
    </div>
  </div>
</div>
