window.print()"; print "

$la_p

"; } } // Print out linked title writeLinkedTitle(getCategoryId($siteid)); if ($set_detail_login_need==1) check_valid_user(""); // If setting is not set, use these defaults... if (!$set_outer_color) { $set_outer_color = "#A9B8D1"; } if (!$set_inner_color) { $set_inner_color = "#FFFFFF"; } if (!$set_descr_color) { $set_descr_color = "#FFFFFF"; } if (!isset($set_descr_cell)) { $set_descr_cell = 10; } if (isset($preview)) { $siteid = $preview; $validation = 0; } if ($validation == 1 AND empty($pre)) { $val_string = " AND valid = 1"; } else { $val_string = ""; } $sql_links = "select * from $ads_tbl, $cat_tbl, $usr_tbl where catid=sitecatid AND ad_username = $usr_tbl.email AND siteid=$siteid $val_string"; $sql_result = q ($sql_links); $num_links = mysql_num_rows($sql_result); for ($i=0; $i<$num_links; $i++) { $row = mysql_fetch_array($sql_result); $row2 = $row; $siteid = $row["siteid"]; $sitetitle = $row["sitetitle"]; $sitedescription = $row["sitedescription"]; $userid = $row["userid"]; $sitedate = $row["sitedate"]; $sitehits = $row["sitehits"]; if (!$sitehits) $sitehits = 1; $sitevotes = $row["sitevotes"]; $sitevoters = $row["sitevoters"]; $votes = $row["votes"]; $voters = $row["voters"]; $name = $row["name"]; $phone = $row["phone"]; $email = $row["email"]; $adressfield1 = $row["adressfield1"]; $adressfield2 = $row["adressfield2"]; $catname = $row["catname"]; $catid = $row["catid"]; $catid = $row["catid"]; $vendor_url = $row["vendor_url"]; $vendor_homepage = $row["vendor_homepage"]; $usr_1 = $row["usr_1"]; $usr_2 = $row["usr_2"]; $usr_3 = $row["usr_3"]; $usr_4 = $row["usr_4"]; $usr_5 = $row["usr_5"]; $sold = $row["sold"]; $cattpl = $row["cattpl"]; $datestamp = $row["datestamp"]; $picture = $row["picture"]; $is_vendor = $row["is_vendor"]; $hide_email = $row["hide_email"]; $img_stored = $row["img_stored"]; $expire_days = $row["expire_days"]; //$expire_ad = $row["expiredate"]; $year=substr($row["datestamp"],0,4); $month=substr($row["datestamp"],4,2); $day=substr($row["datestamp"],6,2); if ($voters > 0) { $sum = $votes/$voters; $cur_user_grade = round($sum, 1); } $sitedescription = preg_replace( "/(?\s]+)/i", "\\0", $sitedescription ); // Date_format grabbed from settings... $date_added_1 = $date_format; $date_added_1 = ereg_replace("d", "$day", $date_added_1); $date_added_1 = ereg_replace("m", "$month", $date_added_1); $date_added_1 = ereg_replace("y", "$year", $date_added_1); $sitedate1 = $date_added_1; // If vote enabled, use this if ($sitevoters and $sitevotes) { $cur_grade = round($sitevotes / $sitevoters, 1); } if ($expire_days_option) { //find ($year, $month, $day, $expire_days); $num_days = getNumDaysRemain($row["datestamp"],$expire_days); # If user-supplied expire date $delete_ad = getExpireDate($row["datestamp"],$expire_days); # If system expire date } else { //find ($year, $month, $day, $delete_after_x_days); $num_days = getNumDaysRemain($row["datestamp"],$delete_after_x_days); # If system expire date $delete_ad = getExpireDate($row["datestamp"],$delete_after_x_days); # If system expire date } if ($num_days<0 AND $auto) { updateExpireAds(""); } ?>


$la_sold

"; } if ($vendor_url AND $set_vendor AND $is_vendor) { print ""; } print "
"; $sql_prevsiteid = "select siteid from $ads_tbl, $cat_tbl, $usr_tbl where catid=sitecatid AND ad_username = $usr_tbl.email AND siteid < $siteid AND catid = $catid $val_string order by siteid desc limit 1"; $result_prevsiteid = q($sql_prevsiteid); $row_prev = mysql_fetch_array($result_prevsiteid); $prevsiteid = $row_prev["siteid"]; $sql_nextsiteid = "select siteid from $ads_tbl, $cat_tbl, $usr_tbl where catid=sitecatid AND ad_username = $usr_tbl.email AND siteid > $siteid AND catid = $catid $val_string order by siteid asc limit 1"; $result_nextsiteid = q($sql_nextsiteid); $row_next = mysql_fetch_array($result_nextsiteid); $nextsiteid = $row_next["siteid"]; if ($prevsiteid) { print " $la_p"; } print "   "; if ($nextsiteid) { print "$la_n "; } print "
"; // End of Code for prev next result ?>


"); print(""); print(""); print(""); } if ($phone) { print(""); print(""); print(""); print(""); } if (isset($usr_1_text) AND isset($usr_1)) { print(""); print(""); if ($usr_1_link) { print ""; } else { print(""); } print(""); } if (isset($usr_2_text) AND isset($usr_2)) { print(""); print(""); if ($usr_2_link) { print ""; } else { print(""); } print(""); } if (isset($usr_3_text) AND isset($usr_3)) { print(""); print(""); if ($usr_3_link) { print ""; } else { print(""); } print(""); } if (isset($usr_4_text) AND isset($usr_4)) { print(""); print(""); if ($usr_4_link) { print ""; } else { print(""); } print(""); } if (isset($usr_5_text) AND isset($usr_5)) { print(""); print(""); if ($usr_5_link) { print ""; } else { print(""); } print(""); } $sql = "select cattpl from $cat_tbl where catid = ".getCategoryId($siteid); $result_1 = q($sql); $row_cat = mysql_fetch_array($result_1); $cattpl = $row_cat["cattpl"]; $string = "select * from $q_tbl where q_tpl = '$cattpl' OR q_tpl = 1 order by q_seq"; $result = mysql_query ($string); $fieldid = 0; while ($tpl=mysql_fetch_array($result)) { $q_field = $tpl["q_field"]; $q_question = $tpl["q_question"]; $q_size = $tpl["q_size"]; $q_type = $tpl["q_type"]; $q_catdescr = $tpl["q_catdescr"]; $q_seq = $tpl["q_seq"]; $q_page = $tpl["q_page"]; $q_mand = $tpl["q_mand"]; $q_tpl = $tpl["q_tpl"]; $q_isurl = $tpl["q_isurl"]; $q_between = $tpl["q_between"]; $q_include_search = $tpl["q_include_search"]; $fieldname = "e_" . $q_field; if ($q_catdescr) echo ""; echo ""; } ?>

$la_grade $name "; } } else { echo " ($votes/# $voters) $la_grade $name "; } } ?>
$la_contact_sale"; } else { print "$email"; } } else { print $la_call; } ?>
$location_text $adressfield1, $adressfield2
$add_user_phone $phone
$usr_1_text$la_link $usr_1
$usr_2_text$la_link $usr_2
$usr_3_text$la_link $usr_3
$usr_4_text$la_link $usr_4
$usr_5_text$la_link $usr_5

$q_catdescr
$q_question"; echo ""; $val = ""; $array = array(); if (isset($row["$fieldname"])) { $val = $row["$fieldname"]; if ($q_type<>"t" AND $q_type<>"d") { $array = split(",",$val); echo showItems($q_type,"e_".$q_field,$q_field,$q_size,$q_mand,$array,$q_isurl); } else { echo showItems($q_type,"e_".$q_field,$q_field,$q_size,$q_mand,"$val",$q_isurl); } } echo "

 
$delete_ad ($la_in $num_days $days)"; ?>
(# )
 

 $la_remove_fav"; } else { print " $la_add_fav"; } } ?>

1) { print "$la_show_still

"; include "pg_include.php"; } if (isset($_REQUEST["show_still"]) OR !$set_slideShow OR (!isset($_REQUEST["show_still"]) AND $set_slideShow AND $num_pictures<2)) { if ($set_slideShow AND $num_pictures>1) print "$la_show_show

"; $row = mysql_fetch_array($sql_result); $w = $row["imagew"]; $h = $row["imageh"]; $id = $row["id"]; $filename_stored = $row["filename"]; $imgSizeArray = setImageSize($maxSize_large,$w,$h); $imagehw = GetImageSize("images/$filename_stored"); $w = $imagehw[0]+30; $h = $imagehw[1]+90; if (!empty($set_gd) OR !empty($magic)) { print "
"; echo ""; echo getOneImage($siteid,"$la_large_pic",$maxSize_large,$id)."
"; } else { print "
"; echo ""; echo getOneImage($siteid,"$la_large_pic",$maxSize,$id)."
"; } } ?>

$la_similar"); print("$la_similar_ads"); print("$la_contact_sale"); print("$la_tell_a_friend"); if ($set_rate) { print("$la_rate"); } ?>
"; print "$la_ad_removed_caption
"; echo formatString($la_ad_removed_content,array("http://$url")); print "

"; include_once("footer_inc.php"); exit; } $tell=$sitehits+1; $s = "UPDATE $ads_tbl set sitehits=$tell,datestamp='$datestamp' where siteid=$siteid"; $result1=q($s); ?> $la_print_clean", array(formatDate(date("Ymd")),date("H:m"),"http://$url/detail.php?siteid=$siteid")); ?>