diff --git a/add_client_modal.php b/add_client_modal.php index 87ff35cb..3f50517d 100644 --- a/add_client_modal.php +++ b/add_client_modal.php @@ -10,7 +10,7 @@
- - -
-
-
- -
- -
-
- -
- -
-
- -
- -
-
-
-
- -
-
- -
- -
-
-
- +
@@ -138,6 +102,21 @@
+ +
+ +
+
+ +
+ +
+
@@ -161,12 +140,12 @@
- +
- +
@@ -177,7 +156,7 @@
- + @@ -219,6 +198,16 @@ +
+ +
+
+ +
+ +
+
+
diff --git a/edit_client_modal.php b/edit_client_modal.php index 31e8ae56..aaf60035 100644 --- a/edit_client_modal.php +++ b/edit_client_modal.php @@ -11,7 +11,7 @@
- -
-
-
- -
- -
-
- -
- -
-
- -
- -
-
-
-
- -
-
- -
- -
-
-
@@ -138,6 +103,21 @@
+ +
+ +
+
+ +
+ +
+
@@ -161,12 +141,12 @@
- +
- +
@@ -219,6 +199,16 @@ +
+ +
+
+ +
+ +
+
+
diff --git a/post.php b/post.php index d7bdea27..284f68d7 100644 --- a/post.php +++ b/post.php @@ -524,20 +524,6 @@ if(isset($_POST['add_client'])){ mkdir("uploads/clients/$session_company_id/$client_id"); } - //Add Primary Contact - - mysqli_query($mysqli,"INSERT INTO contacts SET contact_name = '$contact', contact_title = 'Main Contact', contact_phone = '$phone', contact_extension = '$extension', contact_mobile = '$mobile', contact_email = '$email', contact_primary = 1, contact_billing = 1, contact_created_at = NOW(), client_id = $client_id, company_id = $session_company_id"); - - //Log Add Primary Contact - mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Contact', log_action = 'Created', log_description = '$name', log_created_at = NOW(), company_id = $session_company_id, user_id = $session_user_id"); - - //Add Primary Location - - mysqli_query($mysqli,"INSERT INTO locations SET location_name = 'Main Location', location_address = '$address', location_city = '$city', location_state = '$state', location_zip = '$zip', location_phone = '$phone', location_hours = '$hours', location_primary = 1, location_created_at = NOW(), client_id = $client_id, company_id = $session_company_id"); - - //Log Add Primary Location - mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Location', log_action = 'Created', log_description = '$name', log_created_at = NOW(), company_id = $session_company_id, user_id = $session_user_id"); - //Log Add Client mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Client', log_action = 'Created', log_description = '$name', log_created_at = NOW(), client_id = $client_id, company_id = $session_company_id, user_id = $session_user_id");