$(function () { $('#datetimepicker5').datetimepicker({ format: 'DD/MM/YYYY', }); }); $(function () { $('#datetimepicker6').datetimepicker({ format: 'DD/MM/YYYY', }); }); function ExportQrz(station_id) { if ($(".alert").length > 0) { $(".alert").remove(); } if ($(".errormessages").length > 0) { $(".errormessages").remove(); } $(".ld-ext-right").addClass('running'); $(".ld-ext-right").prop('disabled', true); $.ajax({ url: base_url + 'index.php/qrz/upload_station', type: 'post', data: {'station_id': station_id}, success: function (data) { $(".ld-ext-right").removeClass('running'); $(".ld-ext-right").prop('disabled', false); if (data.status == 'OK') { $.each(data.info, function(index, value){ $('#modcount'+value.station_id).html(value.modcount); $('#notcount'+value.station_id).html(value.notcount); $('#totcount'+value.station_id).html(value.totcount); }); $(".card-body").append(''); } else { $(".card-body").append(''); } if (data.errormessages.length > 0) { $(".card-body").append('' + '

\n' + ' \n' + '

\n' + '
\n' + '
\n' + '
\n' + '
'); $.each(data.errormessages, function(index, value) { $(".errors").append('
  • ' + value); }); } } }); }