1) { foreach( $ext_terms as $term_no => $term_text){ $aftext = $aftext.$term_text.$term_no.$KW1.$KW2; if ((stristr($row['site_name'], $term_text)=== false)and((stristr($row['site_keywords'], $term_text)=== false) or (isset($KW_Value))) and (($term_no == 0 and $KW1 == 1) or ($term_no == 1 and $KW2 == 0))){ $use_term_text = str_replace("Z", "_", $term_text); $use_term_text = str_replace("\"", """, $use_term_text); $dispstr = trim($dispstr); $ext_search_filter .= $ext_search_join.trim($term_text, "\t"); $ext_search_join = "+"; } } } // insert code to remove ext_search elements - end if (isset($SEARCH_ADDRESS) and strlen($ext_search_filter) > 1) { $USE_ADDRESS = str_replace(" ", "", str_replace("XXXseespend_fsXXX", $ext_search_filter, $SEARCH_ADDRESS)); } else { $USE_ADDRESS = "http://".$row['Address']; } if (isset($KW_ADDRESS) and strlen($KW_ADDRESS) > 10) { $USE_ADDRESS = "http://".$KW_ADDRESS; } if (strpos($USE_ADDRESS,"?")>0) { $affiliate_prefix = "&"; } // Affiliate codes disabled //if ($affiliate_id == 'CS') // { // $USE_ADDRESS = $affiliate_code.'&redirect='.urlencode($USE_ADDRESS); // } //elseif (isset($affiliate_code) and strlen($affiliate_code) > 2) // { // $USE_ADDRESS .= $affiliate_prefix.$affiliate_code; // } $USE_ADDRESS = str_replace(" ", "+", str_replace("ZZZ.", "www.", $USE_ADDRESS)); $DEF_RATING=$row['def_rating']; $YOUR_RATING=$row['your_rating']; $SITE_FAVICON=$row['site_favicon']; $SITE_FAVICON_URL=$row['site_favicon_url']; if( !strpos($SITE_FAVICON_URL, "://")) { $SITE_FAVICON_URL = "http://".$SITE_FAVICON_URL; } $SITE_FAVICON_BG=$row['site_favicon_bg']; $SITE_FAVICON_BG_STR = " "; if(isset($SITE_FAVICON_BG) and strlen($SITE_FAVICON_BG) > 0) { $SITE_FAVICON_BG_STR = " style=\"background-color: #".$SITE_FAVICON_BG.";\" "; } $SITE_ID=$row['site_id']; if((isset($YOUR_RATING) and strlen($YOUR_RATING) > 0) and $hide_site<>1) { $USE_RATING = $YOUR_RATING; $USE_RATE_NOTE = "Your"; $URN="y"; $FAVOURITE_SITE = $row['favourite_site']; $HAVE_SHOPPED = $row['have_shopped']; } else { $USE_RATING = $DEF_RATING; $USE_RATE_NOTE = "SeeSpend"; $URN=""; $FAVOURITE_SITE = 0; $HAVE_SHOPPED = 0; } if($HAVE_SHOPPED == 1) { $FAV_STYLE = " "; $FAV_STYLE_END = " "; } else { $FAV_STYLE = " "; $FAV_STYLE_END = " "; } $round_rating=round($USE_RATING); $i = $r; // $id = $row['site_class_id']; // $id = (int)$id; if ($fbme['name'] == $admin_user) { $site_id_note = " - Site ID: ".$SITE_ID." "; } else { $site_id_note = " "; } #do we use the heat map? if (preg_match('/fc=(\d+)/i', $ss_url)) { $use_colour = array_search($round_rating,$heat_a); $use_sprite = 'sprite-H'; $use_legend = 'legend-H'; $use_heat = 'yes'; } else { #lookup the colour if used before $use_colour = array_search($id,$colour_a); $use_sprite = 'sprite-A'; $use_legend = 'legend-A'; $use_heat = ''; } #if a new store type, then assign the next colour if (strlen($use_colour)<1) { array_push($colour_a, $id); $use_colour = array_search($id,$colour_a); } $k = $r + 1; if ($k <= $ACount ) { $class_str = "anchor ".$use_sprite." ".$use_sprite.$use_colour." "; $lclass_str = "anchorlabel"; $dim_str = "width='$Aw' height='$Ah'"; $det_id = "\"detail\""; $rating_id = "\"rating\""; } else { $class_str = "regular ".$use_sprite." ".$use_sprite.$use_colour; $lclass_str = "regularlabel"; $dim_str = "width=\"".$Rw."\" height=\"".$Rh."\""; $det_id = "\"detail_sm\""; $rating_id = "\"rating_sm\""; } if (preg_match('/fc=/i', $ss_url)) { $xfc = '/fc='.$row['site_class_id'].'/i'; if (preg_match($xfc, $ss_url)) { $ss_tmp_filter = "fc="; $xfc_title = 'Remove filter for '; } else { $ss_tmp_filter = "fc=".$row['site_class_id']; $xfc_title = 'Filter on '; } $ss_filter = preg_replace('/fc=([0-9])?([0-9])?/i',$ss_tmp_filter,$ss_url); } else { $ss_filter = $ss_url.$contd_str."fc=".$row['site_class_id']."&page=1"; } $Legendc[$row['site_class_id']] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>$row['site_class_id'],"desc"=>$row['site_class_desc'],"xfc"=>$xfc_title,"filter"=>$ss_filter); $Heatc[5] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>"","desc"=>$row['site_class_desc']." Rated 5","xfc"=>$xfc_title,"filter"=>$ss_filter); $Heatc[4] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>"","desc"=>$row['site_class_desc']." Rated 4","xfc"=>$xfc_title,"filter"=>$ss_filter); $Heatc[3] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>"","desc"=>$row['site_class_desc']." Rated 3","xfc"=>$xfc_title,"filter"=>$ss_filter); $Heatc[2] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>"","desc"=>$row['site_class_desc']." Rated 2","xfc"=>$xfc_title,"filter"=>$ss_filter); $Heatc[1] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>"","desc"=>$row['site_class_desc']." Rated 1","xfc"=>$xfc_title,"filter"=>$ss_filter); $Heatc[0] = array("url"=>"http://www.seespend.com/image/bg/v".$vers."/A".$use_colour.".png","id"=>"","desc"=>$row['site_class_desc']." Rated 0","xfc"=>$xfc_title,"filter"=>$ss_filter); echo "
"; echo "\n"; echo "\"".$row['site_id']."\""; echo "\n"; // // $round_rating=round($row['use_rating']); // // Add RATING icons START // echo "
"; if ($ShowRate == 1) { echo "\n
"; //echo ""; echo ""; echo "
\n"; } // // Add rating icons END // // Add detail icons START // if ($Det == 1) { $site_detail_q = "SELECT D.SITE_ID, D.DETAIL_TYPE, DETAIL_URL, DETAIL_DESC, DETAIL_TYPE_DESC, DETAIL_TYPE_ICON, T.SORT_ORDER FROM SS_SITE_DETAILS D, SS_DETAIL_TYPES T where D.ACTIVE_FLAG = 'Y' and T.ACTIVE_FLAG = 'Y' and D.DETAIL_TYPE = T.DETAIL_TYPE and D.SITE_ID = '".$row['site_id']."' ORDER BY T.SORT_ORDER LIMIT 0, ".$DCount; $det_row = 1; $dresult = mysql_query($site_detail_q); $det_table = good_query_detail($site_detail_q); foreach($det_table as $det_result) { $det_row++; $det_url_search = str_replace("XXXseespend_fsXXX", $fs, $det_result['DETAIL_URL']); // Affiliate codes disabled //if(isset($affiliate_code) and strlen($affiliate_code) > 2) // { // $det_url_search .= $affiliate_prefix.$affiliate_code; // } echo "\n
"; echo ""; echo ""; echo "
\n"; $Legendd[$det_result['SORT_ORDER']] = array("url"=>$det_result['DETAIL_TYPE_ICON'],"desc"=>$det_result['DETAIL_TYPE_DESC']); } } echo "
"; //detail_span // Add detail icons END // // echo "
\n"; $i++; // // Add Labels and favicon START // echo "\n"; // Label-span // // Add Labels END // echo "
\n"; $r++; // if ($r == $yah ){$r++;} } } } // // This is where the alternate query is pieced together - used to fill out incomplete result sets // $alt_r = $MCount - $r; // $alt_r = 0; // $alt_r = 0; turns off the alt query // $limit_str = " LIMIT 0, $alt_r"; // // Mall Background div // echo '
'; if ($r == 0) { echo '
'; include("./php/pop_list_div.php"); echo "
"; echo '
'; include("./php/brand_list_div.php"); echo "
"; // echo "
There are no entries for that type.
"; } ?>
"; ?>
0) { $UAH_label="All sites".$req_hs_note.$SITE_CLASS_LABEL." ".$req_note." on level ".$page." of ".$lvl_count."."; } else { $UAH_label="All Sites".$req_hs_note.$SITE_CLASS_LABEL." ".$req_note." on level ".$page."."; } if ($row_count<1) { $UAH_label="No sites found - please check the spelling or reduce the filters."; echo "LEVEL ".$page.""; } else { echo "LEVEL ".$page.""; } ?>
0){ echo 'Filters: '; foreach ($xfilter as $key => $value) { $tmp_title = str_replace('SS_fc_SS',$row['site_class_desc'],$value); echo ''; } } ?>
EOH; echo($html); } ?>
1) { $Legendc = $Heatc; $irow_count=-1; } $test = $Legendc; if(!empty($test)) // true { ?>
$row_value) { $irow_count++; foreach ($row_value as $irow_class => $irow_value) { if ($irow_class == 'url') { $irow_value_url=$irow_value; } else if ($irow_class == 'desc') { $irow_value_desc=$irow_value; } else if ($irow_class == 'id') { $irow_value_id=$irow_value; } else if ($irow_class == 'xfc') { $irow_value_xfc=$irow_value; } else { $irow_value_filter=preg_replace($url_pattern2, $url_match2, $irow_value); //$irow_value_filter=str_replace("?", "&", $irow_value_filter); //$irow_value_filter=str_replace("&","?", $irow_value_filter,1); //echo ""; if ( xxx == 'fc' ) { $new_loc = str_replace("%".$yfilter[$key],"",str_replace("&".$yfilter[$key],"",$ss_rtn_stri)); } else { $new_loc = $ss_rtn_stri; } echo ""; } } } if ($irow_count<12) {echo "";}; if ($irow_count<8) {echo "";}; if ($irow_count<4) {echo "";}; ?>
Legend

".$irow_value_desc." ".$irow_value_desc."
"; echo "
You could try one of these popular searches:
"; } ?>
1 ) { echo " "; echo ""; } else { echo ""; echo ""; } if ( $page < $lvl_count ) { echo ""; } else { echo ""; } ?>
1 ) { echo " "; echo ""; } else { echo ""; echo ""; } if ( $page < $lvl_count ) { echo ""; } else { echo ""; } ?>
Learn More
<< Testing Hosting User Logging Product Site Blog Mail Colours >>
EOH; echo($html); $html = <<< EOH "; echo ""; echo "
"; echo "(debug_marker)"; echo "
Users: ".$user_count; echo "
Row Count: ".$row_count; echo "
Date: ".date("Y-m-d"); echo "
Time: ".date("H:i:s"); echo "
PHP: ".phpversion().""; echo '
Twitter Followers:
'; echo 'VigLink
'; echo 'PHP Admin
'; echo 'NatureSounds
'; echo 'SeeSpend Gmail
'; echo 'kodingen.com
'; echo "
fb msg: $fbmsg
"; echo "
version: $ssrand
"; echo "
"; echo "
"; echo "
"; } ?>
\n"; */ include("./php/std_footer.php"); include("./php/search_footer.php"); ?>