include $_SERVER['DOCUMENT_ROOT']."/common.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/includes/common-head.php" ?>
if( isset($_GET['siteurl']) )
{
$siteurl = $_GET['siteurl'];
}
if( isset($_GET['listingurl']) )
{
$listingurl = $_GET['listingurl'];
}
$listings = getlistingsbyURL(str_replace('/','',$listingurl));
if(empty($listings)){
ob_end_clean( );
header('Location: /locations/' .$siteurl. '/buy-a-business/active-business-listings/');
exit;
}
$agenturl = '';
foreach ($listings as $listing) {
$name = $listing->c_ad_headline__c;
$description = $listing->c_business_description__c;
$price = $listing->c_listing_price__c;
$listing_number = $listing->c_listing_number__c;
$image = $listing->c_website_listing_image__c;
$intro = $listing->c_ad_headline__c;
$seller_discretionary_earnings = $listing->c_seller_discretionary_earnings__c;
$city = $listing->c_ttl_listing_city__c;
$county = $listing->c_county__c;
$state = $listing->c_state__c;
$reason = $listing->c_reason_for_sale__c;
$currency_code = $listing->c_currencyisocode;
$inventory = $listing->c_inventory_value__c;
$category = str_replace(array('"', '[', ']','\\'),'',$listing->c_category__c);
$comment_1 = $listing->c_comment1__c;
$comment_2 = $listing->c_comment2__c;
$comment_3 = $listing->c_comment3__c;
$comment_4 = $listing->c_comment4__c;
$ff_e = $listing->c_ff_e_value__c;
$down_payment = $listing->c_down_payment_requested__c;
$employees = $listing->c_of_employees__c;
$years_owned = $listing->c_years_owned__c;
$assignedTo = $listing->assignedTo;
$agentemail = $listing->assignedTo;
if ($assignedTo <> ''){
$agents = getAgentbyId($assignedTo);
foreach ($agents as $agent) {
$agenturl = $agent->c_site_url__c;
$agentname = $agent->c_employee_full_name__c;
$agentphone = $agent->c_phone__c;
$agentemail = $agent->c_site_email__c;
$agentaddress = $agent->c_email__c;
$agentdescription = $agent->description;
$agenttwitter = $agent->c_twitter_url__c;
$agentfacebook = $agent->c_facebook_url__c;
$agentlinkedin = $agent->c_linkedin_url__c;
$agentimage = $agent->c_employee_imagetemp__c;
}
}
}
?>
include $_SERVER['DOCUMENT_ROOT']."/locations/includes/header.php" ?>
Description
..
Listing Details
- Listing Number:
- Location: '') echo $county . ', ';?>
- Price: 0
- Down Payment: 0
- Sellers Discretionary Earnings: 0
- Category:
- Inventory: 0
- FF&E: 0
- Employees:
- Years Owned:
- Reason for Selling:
''){?>
}
?>
Please use the form below to request more information on this business opportunity.
Please use the form below to share this business opportunity with others.
include $_SERVER['DOCUMENT_ROOT']."/locations/includes/footer.php" ?>
include $_SERVER['DOCUMENT_ROOT']."/includes/js-scripts.php" ?>