$(document).ready(function(){ // call the tablesorter plugin $("table").tablesorter({ theme: 'blue', // initialize zebra striping of the table widgets: ['zebra','staticRow'], // change the default striping class names // updated in v2.1 to use widgetOptions.zebra = ["even", "odd"] // widgetZebra: { css: [ "normal-row", "alt-row" ] } still works widgetOptions : { zebra : [ "normal-row", "alt-row" ] } }); $("#checkAll" ).click(function() { $( "input:checkbox" ).attr('checked', this.checked); }); }); var ajax_url = "index.php?module=EcmReports&action=helper&to_pdf=1"; function getDes(id) { var params = { id : id, job : 'getDes' }; $.ajax({ type: "POST", url: ajax_url, datatype : "json", success: function(data) { var html = "
"; if (data == '-1') { html += "Nie ma opisów do wyświetlenia"; }else{ data = $.parseJSON(data); html += ""; $.each(data, function(index, ob){ html += ""; html += ""; if(ob.accepted == '1'){ html += ""; } if(ob.accepted == '0'){ html += ""; } if(ob.accepted == '2'){ html += ""; } tmp = "" +ob.accepteddes; tmp = tmp.replace(/XVZC/g,"
"); html += ""; html += ""; }); html +="
Nazwa użytkownikaStatusOpis
"+ob.name+"ZaakceptowanyOczekującyOdrzucony"+tmp+"
"; } $('#raport').html(html); $('#raport').show(); }, data: params }); } function hide() { $('#raport').hide(); }