home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
addressbook
/
show_contact.inc
< prev
Wrap
Text File
|
2004-03-08
|
5KB
|
143 lines
<table border="0" cellpadding="0" cellspacing="20">
<tr>
<td>
<table border="0" cellpadding="" cellspacing="3" width="100%">
<tr>
<td valign="top" width="200">
<table border="0" class="normal" cellpadding="0" cellspacing="3" width="100%">
<tr>
<td align="right" nowrap><?php echo $strFirstName; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["first_name"]); ?></td>
</tr>
<tr heigth="25">
<td align="right" nowrap><?php echo $strMiddleName; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["middle_name"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strLastName; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["last_name"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strInitials; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["initials"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strSex; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($strSexes[$contact['sex']]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strBirthday; ?>: </td>
<?php
$birthday = ($contact['birthday'] > 0) ? date($_SESSION['GO_SESSION']['date_format'], $contact['birthday']) : '';
?>
<td width="100%"><?php echo empty_to_stripe($birthday); ?></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strAddress; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["address"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strZip; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["zip"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strCity; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["city"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strState; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["state"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strCountry; ?>: </td>
<td width="100%"><?php echo empty_to_stripe($contact["country"]); ?></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td valign="top"><?php echo $ab_comment; ?>:</td>
<td><?php echo $contact["comment"]; ?></td>
</tr>
</table>
</td>
<td valign="top" width="200">
<table border="0" class="normal" cellpadding="0" cellspacing="3" width="100%">
<tr>
<td align="right" nowrap><?php echo $strEmail; ?>: </td>
<td><?php echo mail_to(empty_to_stripe($contact["email"])); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strPhone; ?>: </td>
<td><?php echo empty_to_stripe($contact["home_phone"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strFax; ?>: </td>
<td><?php echo empty_to_stripe($contact["fax"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strCellular; ?>: </td>
<td><?php echo empty_to_stripe($contact["cellular"]); ?></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strCompany; ?>: </td>
<td><?php
if ($contact['company_id'] > 0)
{
echo '<a class="normal" href="'.$GO_MODULES->url.'company.php?addressbook_id='.$addressbook_id.'&company_id='.$contact['company_id'].'&return_to='.urlencode($link_back).'">'.$contact['company_name'].'</a>';
}else
{
echo '-';
}
?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strDepartment; ?>: </td>
<td><?php echo empty_to_stripe($contact["department"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strFunction; ?>: </td>
<td><?php echo empty_to_stripe($contact["function"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strWorkphone; ?>: </td>
<td><?php echo empty_to_stripe($contact["work_phone"]); ?></td>
</tr>
<tr>
<td align="right" nowrap><?php echo $strWorkFax; ?>: </td>
<td><?php echo empty_to_stripe($contact["work_fax"]); ?></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<?php
if ($write_perm)
{
$button = new button($contacts_edit, "document.forms[0].task.value='edit';document.forms[0].submit();");
echo ' ';
}
$button = new button($cmdClose, "javascript:document.location='".$return_to."'");
?>
</td>
</tr>
</table>
</td>
</tr>
</table>