$(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 += "
| Nazwa użytkownika | Status | Opis | ||
|---|---|---|---|---|
| "+ob.name+" | "; if(ob.accepted == '1'){ html += "Zaakceptowany | "; } if(ob.accepted == '0'){ html += "Oczekujący | "; } if(ob.accepted == '2'){ html += "Odrzucony | "; } tmp = "" +ob.accepteddes; tmp = tmp.replace(/XVZC/g,""+tmp+" | "; html += "