File manager - Edit - /home/autoph/public_html/connectv1/requested_reports.php
Back
<?php include('cfg/db.php'); // include('api/controllers/utility.php'); if(!isset($_SESSION['user']['id'])){ header('location:signin.php'); } // $utility = new Utility(); $granted_company_ids = $utility_class->isNotEmpty($_SESSION['user']['company_permissions_implode']) ? $_SESSION['user']['company_permissions_implode'] : '-1' ; if(!(isset($global_action_permissions['5']['40']['13']) && in_array("1", $global_action_permissions['5']['40']['13']))){ header('location:signin.php'); } $report_type = "0"; if(isset($_GET['q'])){ $json_params = $db -> base64_url_decode( $db -> escape(trim($_GET['q'])) ); $record_params = json_decode($json_params,true); $params_report_id = $record_params['record_id']; $params_employee_id = $record_params['employee_id']; $params_generate_by_employee_id = $record_params['generate_by_employee_id']; $current_user_employee_id = $_SESSION['user']['id']; // echo "SELECT count(id) FROM report_status WHERE `report_id` = '$report_id' AND `employee_id` = '$current_user_employee_id'"; $q_count = $db -> select("SELECT count(id) FROM report_status WHERE `report_id` = '$params_report_id' AND `employee_id` = '$params_generate_by_employee_id'"); // echo "<script>alert('$params_report_id')</script>"; // echo "SELECT count(id) FROM report_status WHERE `report_id` = '$params_report_id' AND `employee_id` = '$params_generate_by_employee_id'";exit; if($q_count == '0'){ // echo "<script>alert('sada')</script>"; header('location:requested_reports.php'); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo $variable['site_name']; ?> | Requested Reports</title> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <!-- Font Awesome --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- overlayScrollbars --> <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <link href="plugins/bootstrap-table/css/bootstrap-table.min.css" rel="stylesheet"> <!-- daterange picker --> <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css"> <!-- iCheck for checkboxes and radio inputs --> <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css"> <!-- Bootstrap Color Picker --> <link rel="stylesheet" href="plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css"> <!-- Tempusdominus Bootstrap 4 --> <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css"> <!-- Select2 --> <link rel="stylesheet" href="plugins/select2/css/select2.min.css"> <link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css"> <!-- Bootstrap4 Duallistbox --> <link rel="stylesheet" href="plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css"> <!-- BS Stepper --> <link rel="stylesheet" href="plugins/bs-stepper/css/bs-stepper.min.css"> <!-- dropzonejs --> <link rel="stylesheet" href="plugins/dropzone/min/dropzone.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- overlayScrollbars --> <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <link href="dist/img/<?php echo $variable['logo']; ?>" rel="icon" /> <style> .form-div { margin-top: 100px; border: 1px solid #e0e0e0; } #profileDisplay { display: block; height: 160px; width: 160px; margin: 0px auto; border-radius: 50%; } .img-placeholder { width: 160px; color: white; height: 160px; background: black; opacity: .7; border-radius: 50%; z-index: 2; position: absolute; left: 50%; transform: translateX(-50%); display: none; } .img-placeholder h4 { margin-top: 40%; color: white; } .img-div:hover .img-placeholder { display: block; cursor: pointer; } table { cursor: pointer; } table th { cursor: default; } .input-group-append { display: none; } #customer-report select { -webkit-appearance: none; -moz-appearance: none; text-indent: 1px; text-overflow: ''; } #approver-list { pointer-events: none; } #report-date, #report-status, #control-number, #report-type { border-width: 0px; border: none; /* height:20px; */ } #report-status, #report-type { font-weight: bold; } .required-symbol { display: none; } </style> </head> <body class="hold-transition sidebar-mini text-sm layout-fixed"> <div class="wrapper"> <!-- Preloader --> <div class="preloader flex-column justify-content-center align-items-center" hidden> <img class="animation__shake" src="dist/img/<?php echo $variable['logo']; ?>" alt="<?php echo $variable['logo']; ?>" height="60" width="60"> </div> <!-- INCLUDE HEADER --> <?php include('include/header.php'); ?> <?php include('include/sidebar.php'); ?> <div class="content-wrapper"> <section id="customer-table" class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md mt-3"> <div class="card card-primary" id="report-list-main"> <div class="card-header"> <h3 class="card-title">Requested Reports</h3> </div> <!-- INSERT TABLE HERE --> <div class="card"> <div class="card-body"> <!-- <div class="row"> <div class="col-sm-2"> <div class="form-group my-0 mx-0"> <div class="form-group dropdown-input mr-2 mb-1" > <label class="dropdown mx-0 my-0" hidden >Data</label> <select name="filter-data-report" id="filter-data-report" class="form-control form-control-sm" style="width: 100%;"> <option value="0" >Pending</option> <option value="1" >Approved</option> <option value="2" >Declined</option> <option value="3" >Expired</option> </select> </div> </div> </div> </div> --> <div class="form-group row my-1"> <div class="mr-1"> <span class=" align-middle col-form-label font-weight-bold">Filter</span> </div> <div class="col-sm-2"> <select name="filter-data-report" id="filter-data-report" class="form-control form-control-sm" style="width: 100%;"> <option value="-1">All Status</option> <option value="0">Pending</option> <option value="1">Approved</option> <option value="2">Declined</option> <option value="3">Expired</option> </select> </div> </div> <div id="report-list"> <table id="report-table" class="table table-sm" data-toggle="table" data-url="" data-pagination="true" data-search="true" data-show-refresh="false" data-show-toggle="false" data-show-columns="false" data-show-columns-toggle-all="false" data-show-export="false" data-side-pagination="server" data-page-list="[10, 25, 50, 100, all]" data-minimum-count-columns="2" data-show-pagination-switch="false" data-pagination="true" data-query-params="queryParams" data-click-to-select="true"> <thead> <tr> <th data-field="date">Request Date</th> <th data-field="control_number">Number</th> <th data-field="type">Type</th> <th data-field="expire_date">Expiration Date</th> <!-- <th data-field="description">Description</th> --> <th data-field="status">Overall Status</th> </tr> </thead> </table> </div> <!--report-list--> </div> <!--card-body--> </div> <!--card--> </div> <!--card card-primary--> <!-- Start Customer Report Information --> <div class="card card-primary" id="customer-report" style="display:none;"> <div class="card-header"> <h3 class="card-title"><button class="btn btn-tool" title="Go to Customer employee list" type="button" onclick="back()"><i class="fas fa-arrow-alt-circle-left fa-2x"></i></button> <span>Report Information</span></h3> </div><!-- /.card-header --> <div class="overlay" name="loader" style="display:;"> <div class="fas fa-2x fa-sync-alt fa-spin "> </div> <strong><span class="ml-2" id="loading-message"> Fetching data, please wait...</span></strong> </div> <div class="card-body"> <!-- <div class="row"> <div class="col-sm-2">Report ID:</div> <div class="col-sm-2"><?php echo $report_id; ?></div> </div> <div class="row"> <div class="col-sm-2">Control No.:</div> <div class="col-sm-2"><?php echo '0923827323232427824'; ?></div> </div> <div class="row mt-0 mb-0"> <label class="col-sm-3 mt-0 mb-0" style="color:blue;">Control No.:</label> <label class="mt-0 mb-0">0923827323232427824</label> </div>--> <div class="row mb-0 mt-0"> <div class="col-sm-2"> <label class="mt-0 mb-0" style="color:blue;">Report Type:</label> </div> <div class="col-sm-6"><span id="report-type"></span></div> </div> <div class="row"> <div class="col-sm-2 mt-0 mb-0"> <label class="mt-0 mb-0" style="color:blue;">Control No.:</label></div> <div class="col-sm-6"><span id="control-number"></span></div> </div> <div class="row"> <div class="col-sm-2"> <label class="mt-0 mb-0" style="color:blue;">Report Date & Time:</label></div> <div class="col-sm-6"><span id="report-date"></span></div> </div> <div class="row mb-3"> <div class="col-sm-2"> <label class="mt-0 mb-0" style="color:blue;">Report Status:</label></div> <div class="col-sm-6"><span id="report-status"></span></div> </div> <!-- <div class="form-group mb-1"> <strong><span style="color:blue;">Control No.: </span></strong><span id="control-number"></span> </div> <div class="form-group mb-1"> <strong><span style="color:blue;">Report Date & Time: </span></strong><span id="report-date"></span> </div> <div class="form-group mb-3"> <strong><span style="color:blue;">Status: </span></strong><span id="report-status"></span> </div> --> <?php include('include/components/reports/generate_report.php'); ?> <div class="mt-3"> <div class="card"> <div class="card-header"> <h3 class="card-title">Approver</h3> </div> <!-- /.card-header --> <div class="card-body p-0"> <table class="table table-bordered table-hover table-sm" id="approver-list"> <thead> <tr> <th style="width: 20%">Name</th> <th style="width: 5%">Status</th> <th style="width: 15%">Date</th> <th style="width: 60%">Notes</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <!-- /.card-body --> </div> <div class="row mt-3"> <div class="col-12"> <div class="alert alert-info float-right" role="alert" id="error-alert" style="display:none;"> <span id="error-icon" class="icon fas fa-info"> </span> <span id="alert-message"> Please Select File.</span></a> </div> </div> <div class="col-12"> <form id="print-form"> <span onclick="back()" href="#" class="btn btn-secondary ">Back</span> <input type="hidden" name="report-id" id="report-id" readonly /> <!-- <a href="print-report.php" rel="noopener" target="_blank" class="btn btn-success float-right"><i class="fas fa-print"></i> Print Report</a> --> <!-- <input type="submit" name="submit" id="submit" value="Print Report" class="btn float-right"><i class="fas fa-print"></i> Print Report</input> --> <button type="submit" name="submit" id="submit" class="btn btn-success float-right"> <i class="fas fa-print"></i> Print Report </button> </form> </div> </div> </div> <!-- ./card-body --> </div> <!-- ./card-primary --> <!-- End Customer Report Information --> </div> <!-- col --> </div> <!-- row --> </div><!-- /.container-fluid --> </section> </div> <!--/.content wrapper--> <?php include('include/footer.php'); ?> <aside class="control-sidebar control-sidebar-dark"> </aside> </div> <!-- ./wrapper --> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <!-- overlayScrollbars --> <script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- Select2 --> <script src="plugins/select2/js/select2.full.min.js"></script> <!-- Bootstrap4 Duallistbox --> <script src="plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script> <!-- InputMask --> <script src="plugins/moment/moment.min.js"></script> <script src="plugins/inputmask/jquery.inputmask.min.js"></script> <!-- date-range-picker --> <script src="plugins/daterangepicker/daterangepicker.js"></script> <!-- bootstrap color picker --> <script src="plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script> <!-- Tempusdominus Bootstrap 4 --> <script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script> <!-- Bootstrap Switch --> <script src="plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script> <!-- BS-Stepper --> <script src="plugins/bs-stepper/js/bs-stepper.min.js"></script> <!-- dropzonejs --> <script src="plugins/dropzone/min/dropzone.min.js"></script> <!-- bs-custom-file-input --> <script src="plugins/bs-custom-file-input/bs-custom-file-input.min.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- jquery-validation --> <script src="plugins/jquery-validation/jquery.validate.min.js"></script> <script src="plugins/jquery-validation/additional-methods.min.js"></script> <!-- Navigation Highlight --> <script src="dist/js/main.js"></script> <!-- Page specific script --> <script src="plugins/bootstrap-table/js/tableExport.min.js"></script> <script src="plugins/bootstrap-table/js/bootstrap-table.min.js"></script> <script src="plugins/bootstrap-table/js/bootstrap-table-en-US.js"></script> <script src="plugins/bootstrap-table/js/bootstrap-table-export.min.js"></script> <script> // var selected_model_name = ""; // $(document).ready(function() { // $('#brand').on('change', function(event) { // event.preventDefault(); // var brand = this.value; // // alert(brand) // $.ajax({ // url: "app/misc/get_asa_car_model.php", // method: "POST", // data: { // brand: brand // }, // cache: false, // beforeSend: function() { // $("#model").html('<option value="0" selected>Loading...</option>'); // }, // success: function(data) { // $("#model").html('<option value="0" selected>All</option>' + data); // // $('#model').attr('disabled', false); // // setTimeout(function () { // $('#model').val(selected_model_name).trigger('change'); // // }, 1000); // }, // error: handleErrorModel // }) // }); // }); // function handleErrorModel(xhr, status, error) { // $("#model").html(''); // $("#model").html('<option value="0" selected>Error</option>'); // } </script> <script> window.addEventListener("hashchange", function(e) { var type = window.location.hash.substr(1); // alert(type) switch (type) { case "report_data": break; default: reportList() } }); function reportList() { $('#report-list-main').fadeIn(); $('#customer-report').fadeOut(); refreshTableCustomer(); function refreshTableCustomer() { var $table = $('#report-table') $(function() { $table.bootstrapTable('refresh', { url: 'app/table/reports.php' }); }) } } function back() { window.history.back(); } </script> <script> $("#print-form").submit(function(event) { //do validatons event.preventDefault(); // var report_id = $("#report-id").val(); // alert(report_id);return; // window.open('print_report.php?q='+report_id, '_blank', 'noreferrer'); // return; //logic //if report employee_id not equal to user employee id //if report id not in user employee id $.ajax({ url: "print_report.php", data: new FormData(this), type: "POST", dataType: 'json', contentType: false, cache: false, processData: false, beforeSend: function() { $('#error-icon').addClass("fa-info"); $('#error-alert').addClass("alert-info"); $('#error-alert').fadeIn(); $('#alert-message').text(" Generating report, please wait..."); $('#submit').attr('disabled', true); }, success: function(result) { console.log(result.status + " " + result.message); if (result.status != 1) { remove_alert_bg(); $('#error-icon').addClass("fa-ban"); $('#error-alert').addClass("alert-danger"); $('#alert-message').text(result.message); setTimeout(function() { $('#error-alert').fadeOut() }, 3000); } else { //success remove_alert_bg(); $('#error-icon').addClass("fa-check"); $('#error-alert').addClass("alert-success"); $('#alert-message').text(result.message); setTimeout(function() { $('#error-alert').fadeOut() }, 3000); window.open('pdf.php?token=' + result.file, '_blank', 'noreferrer'); } $('#submit').attr('disabled', false); }, error: handleError }); }); function remove_alert_bg() { $('#error-alert').removeClass("alert-success"); $('#error-alert').removeClass("alert-danger"); $('#error-alert').removeClass("alert-info"); $('#error-icon').removeClass("fa-check"); $('#error-icon').removeClass("fa-info"); $('#error-icon').removeClass("fa-ban"); } function handleError(xhr, status, error) { remove_alert_bg(); $('#error-icon').addClass("fa-ban"); $('#error-alert').addClass("alert-danger"); $('#alert-message').text("Something went wrong, try again."); $('#submit').attr('disabled', false); } </script> <script> function reportList() { $('#report-list-main').fadeIn(); $('#customer-report').fadeOut(); } </script> <script> $(document).ready(function() { // report-field $(".report-field").prop("disabled", true); $(".report-field").css("background-color", "white"); $('#filter-data-report').on('change', function(event) { refreshTableCustomer(); }); $('input[name="order"]').click(function(e) { e.preventDefault(); }); $('input[name="downloadable"]').click(function(e) { e.preventDefault(); }); refreshTableCustomer() function refreshTableCustomer() { var $table = $('#report-table') $(function() { $table.bootstrapTable('refresh', { url: 'app/table/requested_reports.php' }); }) } function statusFormatter(value, row, index) { if (row.status == 1) { return '<input id="' + row.employee_id + '" class="status" name="status" type="checkbox" checked>'; } else { return '<input id="' + row.employee_id + '" class="status" name="status" type="checkbox">'; } } function imageFormatter(value, row, index) { return '<a class="pic" href="#"><img width="50px" height="50px" class="user-image img-circle elevation-2" src="dist/img/' + value + '" /></a>'; } window.statusEvents = { 'click :checkbox': function(e, value, row, index) { var employee_id = row.employee_id; $.ajax({ url: "app/employee/status.php", method: "POST", data: { employee_id: employee_id }, success: function(data) { //alert(data); //window.location.reload(); } }); } }; }); </script> <script> function queryParams(params) { var filter_data = $("#filter-data-report").val(); return { search: params.search, offset: params.offset, limit: params.limit, filter_data: filter_data }; } </script> <?php if(isset($_GET['q'])){ ?> <script> $(document).ready(function() { var params_report_id = '<?php echo $params_report_id;?>'; var params_employee_id = '<?php echo $params_employee_id;?>'; var params_generate_by_employee_id = '<?php echo $params_generate_by_employee_id;?>'; $.ajax({ url: "app/report/report_information.php", method: "POST", dataType: 'json', data: { record_id: params_report_id, params_generate_by_employee_id: params_generate_by_employee_id, params_employee_id: params_employee_id }, beforeSend: function() { cleanFields(); }, success: function(result) { fetchReportData(result); } }); }); function removeBtnClass() { $('#submit').removeClass("btn-warning"); $('#submit').removeClass("btn-danger"); $('#submit').removeClass("btn-success"); } function refreshNotification() { $.ajax({ url: "app/misc/refresh_notification.php", method: "POST", dataType: 'json', data: { type: 1 }, success: function(result) { // alert(result.count) $("#notification-count").text(result.count); $("#notification-count-sub").text(result.sub_count); $("#notification-content").html(result.data); } }); } </script> <?php } ?> <script> $('#report-table').on('click-cell.bs.table', function(field, value, row, $el) { window.location.hash = 'report_data'; var report_id = $el.id; $.ajax({ url: "app/report/report_information.php", method: "POST", dataType: 'json', data: { record_id: report_id }, beforeSend: function() { cleanFields(); }, success: function(result) { fetchReportData(result); } }); }); function removeBtnClass() { $('#submit').removeClass("btn-warning"); $('#submit').removeClass("btn-danger"); $('#submit').removeClass("btn-success"); } function refreshNotification() { $.ajax({ url: "app/misc/refresh_notification.php", method: "POST", dataType: 'json', data: { type: 1 }, success: function(result) { // alert(result.count) $("#notification-count").text(result.count); $("#notification-count-sub").text(result.sub_count); $("#notification-content").html(result.data); } }); } function cleanFields() { $('#state').val('0').trigger('change'); $('#city').val('0').trigger('change'); $('#company').val('0').trigger('change'); $('#dealer').val('0').trigger('change'); $('#dms').val('0').trigger('change'); $('#type').val('0').trigger('change'); $('#filter-data').val('0').trigger('change'); $('#gender').val('0').trigger('change'); $('#brand').val('0').trigger('change'); $('#model').val('0').trigger('change'); $("#reg-from").val(''); $("#reg-to").val(''); $("#age-from").val(''); $("#age-to").val(''); $("#upload-from").val(''); $("#upload-to").val(''); $("#upload-by").val(''); $("#report-description").val(''); $("#report-date").text(''); $("#control-number").text(''); $("#report-status").text(''); $("#report-type").text(''); // $('#error-alert').fadeOut(); $('#report-list-main').fadeOut(); $('#customer-report').fadeIn(); } function fetchReportData(result) { <?php include('include/components/reports/report_field_mgmt.php'); ?> $("#report-id").val(result.id); $("#control-number").text(result.control_number); $("#report-date").text(result.report_date); $('#type').val(result.customer_type).trigger('change'); $('#filter-data').val(result.customer_data_type).trigger('change'); $('#gender').val(result.gender_id).trigger('change'); $('#brand').val(result.brand_id).trigger('change'); $("#model").html('<option selected>' + result.model_id + '</option>'); $('#insurance-company').val(result.insurance_company_id).trigger('change'); $('#insurance-type').val(result.insurance_type_id).trigger('change'); $('#finance-company').val(result.finance_company_id).trigger('change'); // selected_model_name = result.model_name; $("#reg-from").val(result.activity_date_from); $("#reg-to").val(result.activity_date_to); $("#age-from").val(result.age_from); $("#age-to").val(result.age_to); $("#upload-from").val(result.uploaded_date_from); $("#upload-to").val(result.uploaded_date_to); $('#sort-by').val(result.sort_by).trigger('change'); $("#date-of-birth").val(result.date_of_birth); $('#category').val(result.customer_category).trigger('change'); $('#active-status').val(result.customer_status).trigger('change'); if (result.order_by == 'ASC') { $("#rdo-asc").prop("checked", true); } else if (result.order_by == 'DESC') { $("#rdo-desc").prop("checked", true); } if (result.is_downloadable == '1') { $("#rdo-dl-yes").prop("checked", true); } else if (result.is_downloadable == '0') { $("#rdo-dl-no").prop("checked", true); } // alert(result.upload_by_employee_id); // $("#upload-by").val(result.upload_by_employee_id); $("#upload-by").html('<option selected>' + result.upload_by_employee_id + '</option>'); $("#report-description").val(result.description); // $('#city').val(result.city_id).trigger('change'); // $('#company').val(result.company_id).trigger('change'); // $('#dealer').val(result.dealer_id).trigger('change'); $("#company").html('<option selected>' + result.company_id + '</option>'); $("#dealer").html('<option selected>' + result.dealer_id + '</option>'); $('#dms').val(result.dms_id).trigger('change'); $('#state').val(result.state_id).trigger('change'); setTimeout(function() { $('#city').val(result.city_id).trigger('change'); }, 1000); $('#approver-list > tbody').html(''); $('#approver-list').find('tbody').append(result.approver_list); if (result.report_status == 3) { // $("#submit").val('Print Report'); removeBtnClass(); $('#submit').css("cursor", "no-drop"); $(":submit").attr("disabled", true); $('#submit').addClass("btn-danger"); $('#report-status').css("color", "red"); $("#report-status").text('EXPIRED'); } else if (result.report_status == 2) { // $("#submit").val('Print Report'); removeBtnClass(); $('#submit').css("cursor", "no-drop"); $(":submit").attr("disabled", true); $('#submit').addClass("btn-danger"); $('#report-status').css("color", "red"); $("#report-status").text('DECLINED'); } else if (result.report_status == 1) { // $("#submit").val('Print Report'); removeBtnClass(); $('#submit').css("cursor", "pointer"); $('#submit').addClass("btn-success"); $(":submit").removeAttr("disabled"); $('#report-status').css("color", "green"); $("#report-status").text('APPROVED'); } else { // $("#submit").val('Print Report'); removeBtnClass(); $('#submit').css("cursor", "no-drop"); $('#submit').addClass("btn-warning"); $(":submit").attr("disabled", true); $('#report-status').css("color", "orange"); $("#report-status").text('PENDING'); } refreshNotification(); $('.overlay').fadeOut(); } </script> <script> $(document).ready(function() { $('#state').on('change', function(event) { event.preventDefault(); var state_id = this.value; $.ajax({ url: "app/misc/get_city.php", method: "POST", data: { state_id: state_id }, cache: false, beforeSend: function() { $('#city').attr('disabled', true); }, success: function(data) { $("#city").html('<option value="0" selected>All</option>' + data); // $('#city').attr('disabled', false); } }) }); }); </script> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings