mirror of
https://github.com/itflow-org/itflow
synced 2026-03-09 15:24:51 +00:00
Added hours of operation to client locations
This commit is contained in:
@@ -55,6 +55,17 @@
|
|||||||
<input type="text" class="form-control" name="phone" placeholder="Phone Number" data-inputmask="'mask': '999-999-9999'" required>
|
<input type="text" class="form-control" name="phone" placeholder="Phone Number" data-inputmask="'mask': '999-999-9999'" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Hours</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa fa-fw fa-clock"></i></span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control" name="hours" placeholder="Hours of operation">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer bg-white">
|
<div class="modal-footer bg-white">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||||||
|
|||||||
@@ -54,6 +54,17 @@
|
|||||||
<input type="text" class="form-control" name="phone" placeholder="Phone Number" data-inputmask="'mask': '999-999-9999'" value="<?php echo $client_location_phone; ?>" required>
|
<input type="text" class="form-control" name="phone" placeholder="Phone Number" data-inputmask="'mask': '999-999-9999'" value="<?php echo $client_location_phone; ?>" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Hours</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa fa-fw fa-clock"></i></span>
|
||||||
|
</div>
|
||||||
|
<input type="text" class="form-control" name="hours" placeholder="Hours of operation" value="<?php echo $client_location_hours; ?> ">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer bg-white">
|
<div class="modal-footer bg-white">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||||||
|
|||||||
6
post.php
6
post.php
@@ -1603,8 +1603,9 @@ if(isset($_POST['add_client_location'])){
|
|||||||
$zip = strip_tags(mysqli_real_escape_string($mysqli,$_POST['zip']));
|
$zip = strip_tags(mysqli_real_escape_string($mysqli,$_POST['zip']));
|
||||||
$phone = strip_tags(mysqli_real_escape_string($mysqli,$_POST['phone']));
|
$phone = strip_tags(mysqli_real_escape_string($mysqli,$_POST['phone']));
|
||||||
$phone = preg_replace("/[^0-9]/", '',$phone);
|
$phone = preg_replace("/[^0-9]/", '',$phone);
|
||||||
|
$hours = strip_tags(mysqli_real_escape_string($mysqli,$_POST['hours']));
|
||||||
|
|
||||||
mysqli_query($mysqli,"INSERT INTO client_locations SET client_location_name = '$name', client_location_address = '$address', client_location_city = '$city', client_location_state = '$state', client_location_zip = '$zip', client_location_phone = '$phone', client_id = $client_id");
|
mysqli_query($mysqli,"INSERT INTO client_locations SET client_location_name = '$name', client_location_address = '$address', client_location_city = '$city', client_location_state = '$state', client_location_zip = '$zip', client_location_phone = '$phone', client_location_hours = '$hours', client_id = $client_id");
|
||||||
|
|
||||||
$_SESSION['alert_message'] = "Location added";
|
$_SESSION['alert_message'] = "Location added";
|
||||||
|
|
||||||
@@ -1622,8 +1623,9 @@ if(isset($_POST['edit_client_location'])){
|
|||||||
$zip = strip_tags(mysqli_real_escape_string($mysqli,$_POST['zip']));
|
$zip = strip_tags(mysqli_real_escape_string($mysqli,$_POST['zip']));
|
||||||
$phone = strip_tags(mysqli_real_escape_string($mysqli,$_POST['phone']));
|
$phone = strip_tags(mysqli_real_escape_string($mysqli,$_POST['phone']));
|
||||||
$phone = preg_replace("/[^0-9]/", '',$phone);
|
$phone = preg_replace("/[^0-9]/", '',$phone);
|
||||||
|
$hours = strip_tags(mysqli_real_escape_string($mysqli,$_POST['hours']));
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE client_locations SET client_location_name = '$name', client_location_address = '$address', client_location_city = '$city', client_location_state = '$state', client_location_zip = '$zip', client_location_phone = '$phone' WHERE client_location_id = $client_location_id");
|
mysqli_query($mysqli,"UPDATE client_locations SET client_location_name = '$name', client_location_address = '$address', client_location_city = '$city', client_location_state = '$state', client_location_zip = '$zip', client_location_phone = '$phone', client_location_hours = '$hours' WHERE client_location_id = $client_location_id");
|
||||||
|
|
||||||
$_SESSION['alert_message'] = "Location updated";
|
$_SESSION['alert_message'] = "Location updated";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user