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; } }
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 } } }
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 } }