$value) { //$crumb .= ' - '.stripslashes(htmlspecialchars(str_replace($replacethis,$withthis,$value))); //we are pulling data from MySQL so we must clean slashes //and protect against HTML code in the category names //using stripslashes and htmlspecialchars $title_name .= ' - '.stripslashes(htmlspecialchars($value)) . ' '; } //our crumb will have a trailing > character with a space either side - //let’s chop that off $title_name = substr($title_name, 0, strlen($titles) - 1); //echo $title_name; //$title_name = ' - '.get_dcategory_name_by_uid($_GET['pid']); } ?> Directory<? echo stripslashes($title_name); ?>
Directory
angels & urchins > Directory > "; buildCrumb($_GET['pid']); //here we call our function - pass your ID variable for the current category here //reverse sort the arrays (sorting on the key not the value) krsort($crumb_arr, SORT_NUMERIC); krsort($crumbid_arr, SORT_NUMERIC); //cycle through arrays - we only need to cycle through one as the keys will be identical on both arrays foreach($crumb_arr as $key => $value) { $crumb .= ''; //we are pulling data from MySQL so we must clean slashes //and protect against HTML code in the category names //using stripslashes and htmlspecialchars $crumb .= stripslashes(htmlspecialchars($value)) . ' > '; } //our crumb will have a trailing > character with a space either side - //let’s chop that off $crumb = substr($crumb, 0, strlen($crumb) - 6); echo $crumb; ?> angels & urchins > Directory
','',get_dcategory_sub_dropdown($_GET['pid'])); } else { $dropdown = str_replace('','',get_dcategory_dropdown()); }*/ ?>
The Directory currently contains shops, services and information listings
isResult(); echo '
Showing Results for keyword "'.$_GET['sstring'].'"
'; if(!$isResults == 0) { while($current=$paging->result_assoc()) { echo '
'; $imagefile = $_SERVER['DOCUMENT_ROOT'].'/directory/images/item/'.$current['uid'].'.jpg'; if( file_exists($imagefile) ) { echo '
'; } echo '
'.stripslashes($current['title']).'
'.stripslashes($current['details']); if (strlen($current['link']) != 0) { echo '
'.stripslashes($current['link']).''; } echo '
'; echo '
'; } echo "
".$paging->print_link2()."
"; } else { echo '
No results found! Please check your spelling. Alternatively, you may wish to broaden your search criteria.
'; } ?>
Not found what you're looking for?
'; echo '
'; $rows = 0; $count_categories = count_sub_dcategory($_GET['pid']); $categories_count = mysql_fetch_array($count_categories); $categories_b4_round = ($categories_count['acount']/3); $round_amount = ceil($categories_b4_round); while($current = mysql_fetch_array($get_categories)) { $rows++; echo ''.stripslashes($current['name']).' ('.get_uids($current['uid']).')
'; //echo ''; if ($round_amount != 0) { if (($rows/$round_amount) == floor($rows/$round_amount)) { echo '
'; } } $num_items = 0; $count = 0; } //echo $rows; echo '
'; echo '
'; ?> isResult(); if(!$isResults == 0) { while($current=$paging->result_assoc()) { echo '
'; $imagefile = $_SERVER['DOCUMENT_ROOT'].'/directory/images/item/'.$current['uid'].'.jpg'; if( file_exists($imagefile) ) { echo '
'; } echo '
'.stripslashes($current['title']).'
'.stripslashes($current['details']); if (strlen($current['link']) != 0) { echo '
'.stripslashes($current['link']).''; } echo '
'; echo '
'; } echo $paging->print_link_browse(); } ?> '; $rows = 0; //$count_categories = count_top_dcategory(); //$categories_count = mysql_fetch_array($count_categories); //$categories_b4_round = ($categories_count['acount']/3); //$round_amount = ceil($categories_b4_round); while($current = mysql_fetch_array($get_categories)) { $rows++; //$count = get_uids($current['uid']); echo '
'; echo '
'; echo ''.stripslashes($current['name']).' ('.get_uids($current['uid']).')'; $check_sub_categories = check_sub_dcategory($current['uid']); $has_sub_categories = mysql_fetch_array($check_sub_categories); if ($has_sub_categories['acount'] != 0) { echo '
'; $get_sub_categories = get_sub_dcategories_fe($current['uid'],"3"); while($current_sub = mysql_fetch_array($get_sub_categories)) { echo ''.stripslashes($current_sub['name']).', '; } echo ' ...'; } //echo $rows; echo '
'; echo '
'; //if (($rows/$round_amount) == floor($rows/$round_amount)) { if ($rows == 3) { echo '
'; $rows = 0; } $num_items = 0; $count = 0; //echo $rows; } echo '
'; ?>