Exemplo n.º 1
0
function put_comments_for_person($comments = "")
{
    if ($comments != "") {
        ?>
		<div class='Person_content'><?php 
        put_Separating("comments1.png", "Comments:");
        put_field("comments1.png", $comments);
        ?>
	</div> <?php 
    } else {
        return NULL;
    }
}
Exemplo n.º 2
0
function put_addresses_for_person($personid)
{
    if (NULL != ($Records = get_addresses(0, $personid))) {
        foreach ($Records as $Record) {
            ?>
		<div class='Person_content'>
		<?php 
            put_Separating("home82.png", $Record['city']);
            put_field("placard_1.png", get_string_of_streets_from_address($Record));
            put_field("locator7.png", $Record['location']);
            put_field("placeholder8.png", $Record['region']);
            put_field("flag11.png", $Record['country']);
            put_field("comments1.png", $Record['comments']);
            ?>
		</div>
		<?php 
        }
    }
}
Exemplo n.º 3
0
function put_phones_for_person($personid)
{
    if (NULL != ($Records = get_phones(0, $personid))) {
        ?>
<div class="Person_content"><?php 
        put_Separating("phone45.png", "Phones:");
        foreach ($Records as $Record) {
            switch ($Record['type']) {
                case 1:
                    put_field("cellphone57.png", "<a class='tel_link' href='tel:" . $Record['phone'] . "'>" . $Record['phone'] . "</a>");
                    break;
                case 2:
                    put_field("phone25.png", "<a class='tel_link' href='tel:" . $Record['phone'] . "'>" . $Record['phone'] . "</a>");
                    break;
            }
        }
        ?>
	
		</div>
	<?php 
    }
}