include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'system.inc';
if(isset($iID) && strlen($iID) > 0)
{
$result = mysql_query("SELECT * FROM centers WHERE id = '$iID'");
ob_start();
if($item = mysql_fetch_assoc($result))
{
$strTitle = $item[name1];
$strArticleHeader = $item[name1];
if(!empty($item[name2]))
echo "
';
if(strlen($item[location_street1]) > 0)
echo "$item[location_street1]
";
if(strlen($item[location_street2]) > 0)
echo "$item[location_street2]
";
echo "$item[location_city], $item[location_state] $item[location_zip]
";
if(strlen($item[phone]) > 0)
echo "Tel. $item[phone]
";
if(strlen($item[intake1]) > 0)
echo "Fax. $item[intake1]
";
if(strlen($item[website]) > 0)
{
$http = strpos($item[website], 'http://') === false ? 'http://' : '';
echo "Web.
$item[website]";
}
echo "
";
echo "
Services: ";
$services = array('sa', 'mh', 'mhsa', 'gh', 'tx', 'dt', 'mm', 'dm', 'hh', 'op', 'ph', 'rs', 'rl', 'hi', 'ad', 'co', 'hv', 'gl', 'se', 'pw', 'wn', 'bc', 'mn', 'du', 'cj', 'ah', 'nx', 'sp', 'fx', 'md', 'si', 'mc', 'pi', 'mi', 'sf', 'ss', 'pa');
$services_avail = array();
foreach($services as $service)
if($item[$service] == 'X')
$services_avail[] = strtoupper($service);
echo implode(', ', $services_avail);
echo '
';
}
else
{
header('HTTP/1.0 404 Not Found');
exit;
}
$strArticleContent = ob_get_clean() . $pagination;
}
else header("Location: " . PATH_CLIENT_MAIN);
?>
include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'header.inc'; ?>
include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'footer.inc'; ?>