diff --git a/footer.php b/footer.php index 505b1a9..996df04 100644 --- a/footer.php +++ b/footer.php @@ -11,6 +11,8 @@ position: fixed; bottom: 0; width: 100%; + height: 50px; /* Define the height explicitly */ + box-sizing: border-box; } .footer-bar a { @@ -22,9 +24,13 @@ .footer-bar a:hover { text-decoration: underline; } + +body { + padding-bottom: 50px; /* Add padding equal to the footer height */ + box-sizing: border-box; +} diff --git a/functions.php b/functions.php index a86ae5a..085f234 100644 --- a/functions.php +++ b/functions.php @@ -1,10 +1,11 @@ format('Y-m-d H:i:s'); -$pob_in = $json['data'][$fieldMap['pob_in']]['value']; - -if (array_key_exists($fieldMap['out_to'], $json['data'])) { - $date = DateTime::createFromFormat('d/m/Y H:i', $json['data'][$fieldMap['etd']]['value']); - $etd = $date->format('Y-m-d H:i:s'); - $pob_out = $json['data'][$fieldMap['pob_out']]['value']; - $out_to = $json['data'][$fieldMap['out_to']]['value']; -} - -$email = $json['data'][$fieldMap['email']]['value']; -$phone = $json['data'][$fieldMap['phone']]['value']; -$notes = $json['data'][$fieldMap['notes']]['value']; - -mysqli_stmt_bind_param($stmt, "ssssssisissss", $ac_reg, $ac_type, $captain, $fuel, $in_from, $eta, $pob_in, $etd, $pob_out, $email, $phone, $notes, $created_by); - -// Execute the statement -if (mysqli_stmt_execute($stmt)) { - error_log("Record inserted for " . $ac_reg); -} else { - error_log("Error: " . mysqli_stmt_error($stmt)); -} - -// Close the statement and connection -mysqli_stmt_close($stmt); -mysqli_close($mysqli); -?>