settings["website"]["enable_search"]==1) { ?>
" type="text" class="searchmod pull-right"/>

settings["website"]["results_per_page"]); if(!isset($_REQUEST["num"])) { $num=1; } else { $num=$_REQUEST["num"]; $this->ms_i($num); } $listings = simplexml_load_file($this->data_file); //reversing the array with the news to show the latest first $xml_results = array(); foreach ($listings->listing as $xml_element) $xml_results[] = $xml_element; $xml_results = array_reverse($xml_results); //end reversing the order of the array $iTotResults = 0; $listing_counter=sizeof($xml_results); foreach ($xml_results as $listing) { $listing_counter--; //refine search if(isset($_REQUEST["keyword_search"])&&trim($_REQUEST["keyword_search"])!="") { if ( stripos($listing->title, $_REQUEST["keyword_search"])===false && stripos($listing->description, $_REQUEST["keyword_search"])===false ) { continue; } } //end refine search if($iTotResults>=($num-1)*$PageSize&&$iTotResults<$num*$PageSize) { $images=explode(",",$listing->images); $strLink = $homex.".php?m=news&p=news&page=details&id=".$listing_counter; ?>
<?php echo strip_tags(html_entity_decode($listing->title));?>"/>
purify($this->text_words($listing->description,80));?>
$value) { if($key != "num"&&$value!="") { $strSearchString .= $key."=".$value."&"; } } foreach ($_GET as $key=>$value) { if($key != "num"&&$value!="") { $strSearchString .= $key."=".$value."&"; } } if(ceil($iTotResults/$PageSize) > 1) { echo ''; } if($iTotResults==0) { ?>