mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added Client Details and Contacts module and invoice stuff
This commit is contained in:
55
client_contacts.php
Normal file
55
client_contacts.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php $sql = mysqli_query($mysqli,"SELECT * FROM client_contact_contacts ORDER BY client_contact_contact_id DESC"); ?>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-borderless table-hover" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Title</th>
|
||||
<th>Phone</th>
|
||||
<th>Email</th>
|
||||
<th class="text-center">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
while($row = mysqli_fetch_array($sql)){
|
||||
$client_contact_id = $row['client_contact_id'];
|
||||
$client_contact_name = $row['client_contact_name'];
|
||||
$client_contact_title = $row['client_contact_title'];
|
||||
$client_contact_email = $row['client_contact_email'];
|
||||
$client_contact_phone = $row['client_contact_phone'];
|
||||
if(strlen($client_contact_phone)>2){
|
||||
$client_contact_phone = substr($row['client_contact_phone'],0,3)."-".substr($row['client_contact_phone'],3,3)."-".substr($row['client_contact_phone'],6,4);
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo "$client_contact_name"; ?></td>
|
||||
<td><?php echo "$client_contact_title"; ?></td>
|
||||
<td><a href="mailto:<?php echo $client_contact_email; ?>"><?php echo "$client_contact_email"; ?></a></td>
|
||||
<td><?php echo "$client_contact_phone"; ?></td>
|
||||
<td>
|
||||
<div class="dropdown dropleft text-center">
|
||||
<button class="btn btn-secondary btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editClientContactModal<?php echo $client_contact_id; ?>">Edit</a>
|
||||
<a class="dropdown-item" href="#">Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
include("edit_client_contact_modal.php");
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php include("add_client_contact_modal.php"); ?>
|
||||
Reference in New Issue
Block a user