Esempio n. 1
0
         } else {
             echo "Sorry. Address could not be found. Make sure that it is a valid postal address, not a vanity address.<br/>\n";
         }
     }
 } else {
     if ($_GET['type'] == 'dir') {
         if (count($starts) == 1 && count($ends) == 1) {
             echo "Start Address:<br/>\n";
             $loc = $starts[0];
             $start_loc = $loc->desc;
             printAddress($loc, $saddr, $start_marker_img);
             echo "<br/>\n";
             echo "End Address:<br/>\n";
             $loc = $ends[0];
             $end_loc = $loc->desc;
             printAddress($loc, $daddr, $end_marker_img);
             echo "<br/>\n";
             if ($path) {
                 if ($path == "walk" || $path == "same") {
                     $cpath = $path;
                 } else {
                     $cpath = $path->path;
                 }
                 if ($cpath == "walk") {
                     echo "You don't need to take the subway. Why don't you walk instead?<br/>";
                 } else {
                     if ($cpath == "same") {
                         echo "You're just testing the system, aren't you? Go do something more interesting, like telling your firends about this great site.<br/>";
                     } else {
                         if (count($path->path) > 1) {
                             $cpath = consolidatePath($path, $_GET['type']);
$error_or_rows = $sqlResults[0];
if (substr($error_or_rows, 0, 5) == 'ERROR') {
    print "<br />Error on DB<br><br>" . $error_or_rows . "<br><br>" . $sql_statement;
} else {
    $officeCode = $sqlResults[1]['officeCode'];
    $buildingNumber = $sqlResults[1]['buildingNumber'];
    $buildingName = $sqlResults[1]['buildingName'];
    $subStreetNumber = $sqlResults[1]['subStreetNumber'];
    $subStreet = $sqlResults[1]['subStreet'];
    $streetNumber = $sqlResults[1]['streetNumber'];
    $street = $sqlResults[1]['street'];
    $area = $sqlResults[1]['area'];
    $town = $sqlResults[1]['town'];
    $country = $sqlResults[1]['country'];
    $postcode = $sqlResults[1]['postcode'];
    $address = printAddress($buildingNumber, $buildingName, $subStreetNumber, $subStreet, $streetNumber, $street, $area, $town, $country, $postcode);
}
$telephone = getOfficeContact($officeCode, 'PHNE');
$fax = getOfficeContact($officeCode, 'FAX');
$email = getOfficeContact($officeCode, 'EMAIL');
print $address . "<br><br>\n";
print "Tel: " . $telephone . "<br>\n";
print "Fax: " . $fax . "<br><br>\n";
print "E-Mail: " . $email . "<br>\n";
?>
	
	</td>
	
	<td style="	padding: 20px 20px 20px 20px;" valign="top">
	<table border='0'>
	<tr><td>Monday</td><td>09:00 to 19:00</td></tr>
Esempio n. 3
0
    ?>
</td>
						<td><?php 
    echo $_SESSION['user']->umail;
    ?>
</td>
					</tr>
				</table>
				<div id="addresses">
					<h3><?php 
    _e('Your Addresses');
    ?>
</h3><?php 
    $addresses = getAddressesByUser($_SESSION['user']->uid);
    foreach ($addresses as $address) {
        printAddress($address);
    }
    ?>
				
				</div>
			<?php 
} else {
    _e('You need to login in order to see your info');
}
?>
			</div>
		</div>
		
	
	<div style="clear:both"></div>
	</div>
Esempio n. 4
0
function getAddressOptionList($uid)
{
    global $db;
    $sql = "SELECT * FROM `adresses` WHERE `userid`={$uid}";
    $results = $db->query($sql);
    $adresses = "";
    while ($row = mysql_fetch_assoc($results)) {
        $adresses .= '<option value="' . $row['adressId'] . '">' . printAddress($row, FALSE) . '</option>' . "\n";
    }
    return $adresses;
}