Fixed Edit Client Contact Title it was missing

This commit is contained in:
johnnyq 2021-08-29 14:01:04 -04:00
parent 22f5511b21
commit 94577379d4
7 changed files with 16 additions and 3 deletions

View File

@ -50,6 +50,7 @@ if(isset($_GET['client_id'])){
$primary_contact = $row['primary_contact'];
$primary_location = $row['primary_location'];
$contact_name = $row['contact_name'];
$contact_title = $row['contact_title'];
$contact_email = $row['contact_email'];
$contact_phone = $row['contact_phone'];
if(strlen($contact_phone)>2){

View File

@ -180,6 +180,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
}
$contact_id = $row['contact_id'];
$contact_name = $row['contact_name'];
$contact_title = $row['contact_title'];
$contact_phone = $row['contact_phone'];
if(strlen($client_phone)>2){
$contact_phone = substr($row['contact_phone'],0,3)."-".substr($row['contact_phone'],3,3)."-".substr($row['contact_phone'],6,4);

View File

@ -201,6 +201,16 @@
</div>
</div>
<div class="form-group">
<label>Title</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<input type="text" class="form-control" name="title" placeholder="Title" value="<?php echo $contact_title; ?>">
</div>
</div>
<label>Phone</label>
<div class="form-row">
<div class="col-8">

View File

@ -11,7 +11,7 @@
<input type="hidden" name="invoice_id" value="<?php echo $invoice_id; ?>">
<div class="modal-body bg-white">
<div class="form-group">
<textarea class="form-control" rows="8" name="note"><?php echo $invoice_note; ?></textarea>
<textarea class="form-control" rows="8" name="note" placeholder="Enter some notes"><?php echo $invoice_note; ?></textarea>
</div>
</div>
<div class="modal-footer bg-white">

View File

@ -751,6 +751,7 @@ if(isset($_POST['edit_client'])){
$state = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['state'])));
$zip = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['zip'])));
$contact = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['contact'])));
$title = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['title'])));
$phone = preg_replace("/[^0-9]/", '',$_POST['phone']);
$extension = preg_replace("/[^0-9]/", '',$_POST['extension']);
$mobile = preg_replace("/[^0-9]/", '',$_POST['mobile']);

View File

@ -11,7 +11,7 @@
<input type="hidden" name="quote_id" value="<?php echo $quote_id; ?>">
<div class="modal-body bg-white">
<div class="form-group">
<textarea class="form-control" rows="8" name="note"><?php echo $quote_note; ?></textarea>
<textarea class="form-control" rows="8" name="note" placeholder="Enter some notes"><?php echo $quote_note; ?></textarea>
</div>
</div>
<div class="modal-footer bg-white">

View File

@ -11,7 +11,7 @@
<input type="hidden" name="recurring_id" value="<?php echo $recurring_id; ?>">
<div class="modal-body bg-white">
<div class="form-group">
<textarea class="form-control" rows="8" name="note"><?php echo $recurring_note; ?></textarea>
<textarea class="form-control" rows="8" name="note" placeholder="Enter some notes"><?php echo $recurring_note; ?></textarea>
</div>
</div>
<div class="modal-footer bg-white">