Add contact_category, phone_description, and address_description to the contacts tool.
This commit is contained in:
@@ -104,6 +104,7 @@ require_once "includes/paging.php";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
//echo th_order_by('address_name', 'Name', $order_by, $order);
|
||||
echo th_order_by('address_type', 'Type', $order_by, $order);
|
||||
//echo th_order_by('address_street', 'Street Address', $order_by, $order);
|
||||
//echo th_order_by('address_extended', 'Extended Address', $order_by, $order);
|
||||
@@ -114,6 +115,7 @@ require_once "includes/paging.php";
|
||||
//echo th_order_by('address_latitude', 'Latitude', $order_by, $order);
|
||||
//echo th_order_by('address_longitude', 'Longitude', $order_by, $order);
|
||||
echo "<th>Tools</th>\n";
|
||||
echo th_order_by('address_description', 'Description', $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo " <a href='contact_addresses_edit.php?contact_uuid=".$_GET['id']."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo "</td>\n";
|
||||
@@ -123,6 +125,7 @@ require_once "includes/paging.php";
|
||||
foreach($result as $row) {
|
||||
$map_query = $row['address_street']." ".$row['address_extended'].", ".$row['address_locality'].", ".$row['address_region'].", ".$row['address_region'].", ".$row['address_postal_code'];
|
||||
echo "<tr >\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_name']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_type']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_street']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_extended']." </td>\n";
|
||||
@@ -135,6 +138,7 @@ require_once "includes/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>\n";
|
||||
echo " <a href=\"http://maps.google.com/maps?q=".urlencode($map_query)."&hl=en\" target=\"_blank\">Map</a> \n";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <a href='contact_addresses_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='contact_addresses_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
|
||||
Reference in New Issue
Block a user