diff --git a/app/Controllers/Business.php b/app/Controllers/Business.php index 98fe182..5023888 100644 --- a/app/Controllers/Business.php +++ b/app/Controllers/Business.php @@ -16,6 +16,8 @@ class Business extends BaseController $business=$BusinessModel->findAll(); $data['business']=$business; + // echo "
";
+        // print_r($data);die;
         return view('business_list',$data);
     }
 
diff --git a/app/Controllers/Vehicle.php b/app/Controllers/Vehicle.php
index db65a0a..89ad6d3 100644
--- a/app/Controllers/Vehicle.php
+++ b/app/Controllers/Vehicle.php
@@ -163,7 +163,12 @@ class Vehicle extends BaseController
         $register_find = $VehicleModel->where('reg_no',$reg_no)->first();
 
 
-        return json_encode($register_find);
+        if ($register_find) {
+            return json_encode($register_find);
+        }else{
+            return json_encode(false);
+        }
+
     }
     
 }
\ No newline at end of file
diff --git a/app/Views/branch_edit_form.php b/app/Views/branch_edit_form.php
index f36467b..12337ca 100644
--- a/app/Views/branch_edit_form.php
+++ b/app/Views/branch_edit_form.php
@@ -14,7 +14,7 @@
     
-
get('logged_user_branch_id'); ?>" method="post"> + get('logged_user_branch_id'); ?>" method="post">
@@ -35,11 +35,11 @@
- +
- +
@@ -93,4 +93,16 @@
+ + + + + diff --git a/app/Views/branch_list.php b/app/Views/branch_list.php index 6262112..343884f 100644 --- a/app/Views/branch_list.php +++ b/app/Views/branch_list.php @@ -1,4 +1,6 @@ + +
@@ -6,7 +8,7 @@

Branch List -

@@ -98,7 +100,7 @@
- +
@@ -110,13 +112,13 @@
- +
- +
@@ -192,7 +194,7 @@ }; var form = $(params).parent().parent(); - + // console.log(form); var isValid = true; form[0].querySelectorAll('[required]').forEach(function(element) { if (!element.value.trim()) { @@ -249,6 +251,11 @@ } }); } + + $('#add_branch_model_open').click( function(){ + $('#model_form_data')[0].reset(); + }) + diff --git a/app/Views/business_list.php b/app/Views/business_list.php index 6f7fa42..c58e219 100644 --- a/app/Views/business_list.php +++ b/app/Views/business_list.php @@ -25,13 +25,13 @@ # Business Name - Email - Mobile + + - City - State - Postal Code - Country + + + + Branch List Action @@ -44,13 +44,13 @@ - - - - - - - + + + + + + + " style="margin-left: 20px;">View diff --git a/app/Views/client_form.php b/app/Views/client_form.php index 5d74b00..34c9e59 100644 --- a/app/Views/client_form.php +++ b/app/Views/client_form.php @@ -24,7 +24,7 @@
- +
diff --git a/app/Views/job_card_form.php b/app/Views/job_card_form.php index 3c3b496..bd1c4f1 100644 --- a/app/Views/job_card_form.php +++ b/app/Views/job_card_form.php @@ -60,7 +60,7 @@
- +

Billing Address Details :


@@ -182,7 +182,7 @@

Complaint

-

Custom Complaint

+

Customer Complaint

Outsource

@@ -299,7 +299,7 @@
- +
@@ -313,7 +313,7 @@
-

Terms & Condition :


-
-
- - - - - -
-
- - - - + + + +
diff --git a/app/Views/sales_order_form.php b/app/Views/sales_order_form.php index 6d113d4..28f794b 100644 --- a/app/Views/sales_order_form.php +++ b/app/Views/sales_order_form.php @@ -59,8 +59,8 @@ + value="" maxlength="16" + minlength="6" onkeypress="return onlyNumbers(event)" readonly>
-
+
> - @@ -284,18 +284,23 @@ document.getElementById('category').addEventListener('change', function() { // var customFields = document.getElementById('customFields'); var makeSelect = document.getElementById('make'); var modelSelect = document.getElementById('model'); + var serviceSelected = document.getElementById('serviceSelected'); if (this.value == '1') { // customFields.style.display = 'block'; $('#make_hide').css('display' , 'block'); $('#model_hide').css('display' ,'block'); + $('#service_hide').css('display' ,'block'); makeSelect.setAttribute('required', 'required'); modelSelect.setAttribute('required', 'required'); + serviceSelected.setAttribute('required', 'required'); } else { // customFields.style.display = 'none'; $('#make_hide').css('display' , 'none'); $('#model_hide').css('display' ,'none'); + $('#service_hide').css('display' ,'none'); makeSelect.removeAttribute('required'); modelSelect.removeAttribute('required'); + serviceSelected.removeAttribute('required'); $.ajax({ url: '', // URL to your CodeIgniter controller method diff --git a/app/Views/user_form.php b/app/Views/user_form.php index 2240db0..5bcff05 100644 --- a/app/Views/user_form.php +++ b/app/Views/user_form.php @@ -64,7 +64,7 @@
- +
diff --git a/app/Views/vendor_form.php b/app/Views/vendor_form.php index 3e02b6e..649de73 100644 --- a/app/Views/vendor_form.php +++ b/app/Views/vendor_form.php @@ -82,7 +82,7 @@
- +
@@ -96,7 +96,7 @@
- +
@@ -110,7 +110,7 @@
- +