Added Phone Extensions to vendors, clients, and contacts, updated DB to relect new fields, some other minor cleanups

This commit is contained in:
johnny@pittpc.com
2020-01-20 17:05:39 -05:00
parent f84e3c4b6b
commit 382a4b2842
49 changed files with 112 additions and 58 deletions

View File

@@ -87,6 +87,7 @@ $total_pages = ceil($total_found_rows / 10);
if(strlen($contact_phone)>2){
$contact_phone = substr($row['contact_phone'],0,3)."-".substr($row['contact_phone'],3,3)."-".substr($row['contact_phone'],6,4);
}
$contact_extension = $row['contact_extension'];
$contact_mobile = $row['contact_mobile'];
if(strlen($contact_mobile)>2){
$contact_mobile = substr($row['contact_mobile'],0,3)."-".substr($row['contact_mobile'],3,3)."-".substr($row['contact_mobile'],6,4);
@@ -122,7 +123,7 @@ $total_pages = ceil($total_found_rows / 10);
<?php
if(!empty($contact_phone)){
?>
<i class="fa fa-fw fa-phone text-secondary mr-2 mb-2"></i><?php echo $contact_phone; ?>
<i class="fa fa-fw fa-phone text-secondary mr-2 mb-2"></i><?php echo $contact_phone; ?> <?php if(!empty($contact_extension)){ echo "x$contact_extension"; } ?>
<br>
<?php
}