        </div>
        <!------- Footer ------->
        <div class="footer footer-outer">
            <div class="copyright">
                <p>Copyright © Designed &amp; Developed by <a href="javascript:void(0);" target="_blank">adsxpedia</a> 2024</p>
            </div>
        </div>
        <!-- Required vendors -->
        <script src="/taxi/assets/vendor/global/global.min.js"></script>
        <!--script src="/taxi/assets/vendor/jquery-nice-select/js/jquery.nice-select.min.js"></script-->
        <!--script src="/taxi/assets/vendor/bootstrap-select/dist/js/bootstrap-select.min.js"></script-->
        <!--script src="/taxi/assets/vendor/select2/js/select2.full.min.js"></script-->
        <script src="/taxi/assets/js/plugins-init/select2-init.js"></script>
        <script src="/taxi/assets/js/dlabnav-init.js"></script>
        <script src="/taxi/assets/js/custom.js"></script>
<script>
function getFormValues(postData)
{
    postData.append('api', '1');
    var formData = {};
    $('#myForm').find(':input').each(function() {
        var type = this.type;
        var name = this.name;
        var value = $(this).val();

        if (type === 'checkbox' || type === 'radio') {
            if(this.checked){
                value = $(this).val();
            }else{
                name = undefined;
            }
        } else if (type === 'select-multiple') {
            value = $(this).val();
        }

        // Only add the element to formData if it has a name
        if (name) {
            if (formData[name] === undefined) {
                formData[name] = value;
            } else {
                // For multi-select or multiple checkboxes, store values in an array
                if (!Array.isArray(formData[name])) {
                    formData[name] = [formData[name]];
                }
                formData[name].push(value);
            }
        }
    });
    for (var key in formData) {
        if (formData.hasOwnProperty(key)) {
            var value = formData[key];
    
            // For arrays, append each value separately
            if (Array.isArray(value)) {
                for (var i = 0; i < value.length; i++) {
                    postData.append(key + '[]', value[i]);
                }
            } else {
                postData.append(key, value);
            }
        }
    }
    return postData;
}

function fillForm(row)
{
    $('#myForm').find(':input').each(function() {
        var type = this.type;
        var name = this.name;
        var elm_val = $(this).val();
        if (row.hasOwnProperty(name)) {
            var value = row[name];
            if (type === 'text' || type === 'textarea' || type === 'hidden') {
                $(this).val(value);
            }else if(type === 'radio') {
                if(value === elm_val){
                    $(this).prop('checked', true);
                }
            }else if(type === 'checkbox') {
                if(value){
                    if (Array.isArray(value)) {
                        for (var val of value) {
                            if(val === elm_val){
                                $(this).prop('checked', true);
                            }
                        }
                    }else if(value === elm_val){
                        $(this).prop('checked', true);
                    }
                }
            }else if(type === 'select-one') {
                $(this).val(value).change();
            }else if(type === 'select-multiple') {
                $(this).val(value).change();
            }
        }
    });
}

$(document).on("input", ".alphanumeric", function() {
    this.value = this.value.replace(/[^\w]+/g,'');
});

$(document).on("input", ".numeric", function() {
    var self = $(this);
    self.val(self.val().replace(/[^\d]+/, ""));
});

$(document).on("input", ".unsigned_float", function(evt) {
    var self = $(this);
    self.val(self.val().replace(/[^0-9\.]/g, '').replace(/(\..*?)\..*/g, '$1'));
});
</script>
    </body>
</html>
