예제 #1
0
}
?>
				</h3>
			</div>
			<div class="box-body">
				<img src="<?php 
echo getFamilyPhoto($fam_ID);
?>
" alt="" class="img-circle img-responsive center-block" />
				<ul class="fa-ul">
					<li><i class="fa-li glyphicon glyphicon-home"></i>Address: <span>
					<a href="http://maps.google.com/?q=<?php 
echo getMailingAddress($fam_Address1, $fam_Address2, $fam_City, $fam_State, $fam_Zip, $fam_Country);
?>
" target="_blank"><?php 
echo getMailingAddress($fam_Address1, $fam_Address2, $fam_City, $fam_State, $fam_Zip, $fam_Country);
echo "</a></span><br>";
if ($fam_Latitude && $fam_Longitude) {
    if ($nChurchLatitude && $nChurchLongitude) {
        $sDistance = LatLonDistance($nChurchLatitude, $nChurchLongitude, $fam_Latitude, $fam_Longitude);
        $sDirection = LatLonBearing($nChurchLatitude, $nChurchLongitude, $fam_Latitude, $fam_Longitude);
        echo $sDistance . " " . strtolower($sDistanceUnit) . " " . $sDirection . " of church<br>";
    }
}
?>
					<?php 
if (!$bHideLatLon) {
    /* Lat/Lon can be hidden - General Settings */
    ?>
						<li><i class="fa-li fa fa-compass"></i><?php 
    echo gettext("Latitude/Longitude");
예제 #2
0
파일: PersonView.php 프로젝트: dschwen/CRM
$sFamilyInfoEnd = "</span>";
// Assign the values locally, after selecting whether to display the family or person information
//Get an unformatted mailing address to pass as a parameter to a google maps search
SelectWhichAddress($Address1, $Address2, $per_Address1, $per_Address2, $fam_Address1, $fam_Address2, False);
$sCity = SelectWhichInfo($per_City, $fam_City, False);
$sState = SelectWhichInfo($per_State, $fam_State, False);
$sZip = SelectWhichInfo($per_Zip, $fam_Zip, False);
$sCountry = SelectWhichInfo($per_Country, $fam_Country, False);
$plaintextMailingAddress = getMailingAddress($Address1, $Address2, $sCity, $sState, $sZip, $sCountry);
//Get a formatted mailing address to use as display to the user.
SelectWhichAddress($Address1, $Address2, $per_Address1, $per_Address2, $fam_Address1, $fam_Address2, True);
$sCity = SelectWhichInfo($per_City, $fam_City, True);
$sState = SelectWhichInfo($per_State, $fam_State, True);
$sZip = SelectWhichInfo($per_Zip, $fam_Zip, True);
$sCountry = SelectWhichInfo($per_Country, $fam_Country, True);
$formattedMailingAddress = getMailingAddress($Address1, $Address2, $sCity, $sState, $sZip, $sCountry);
$sPhoneCountry = SelectWhichInfo($per_Country, $fam_Country, False);
$sHomePhone = SelectWhichInfo(ExpandPhoneNumber($per_HomePhone, $sPhoneCountry, $dummy), ExpandPhoneNumber($fam_HomePhone, $fam_Country, $dummy), True);
$sWorkPhone = SelectWhichInfo(ExpandPhoneNumber($per_WorkPhone, $sPhoneCountry, $dummy), ExpandPhoneNumber($fam_WorkPhone, $fam_Country, $dummy), True);
$sCellPhone = SelectWhichInfo(ExpandPhoneNumber($per_CellPhone, $sPhoneCountry, $dummy), ExpandPhoneNumber($fam_CellPhone, $fam_Country, $dummy), True);
$sEmail = SelectWhichInfo($per_Email, $fam_Email, True);
$sUnformattedEmail = SelectWhichInfo($per_Email, $fam_Email, False);
if ($per_Envelope > 0) {
    $sEnvelope = $per_Envelope;
} else {
    $sEnvelope = gettext("Not assigned");
}
// Set the page title and include HTML header
$sPageTitle = "Person Profile";
require "Include/Header.php";
$iTableSpacerWidth = 10;