<?php
$packageObj = new packages();
$packageList = $packageObj->getAllRecords("*"," package_status = '1'"," ORDER BY package_id DESC"); 
?>
<div class="fl" style="width:632px" >
     <?php
     		if($packageList && count($packageList) > 0){
			foreach ($packageList 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 } 
            } ?>	
    </div>