Liste der laufenden und zukünftigen Veranstaltungen anzeigen

" + row[sortId] ; }, "targets": sortColumn,"bUseRendered": false},'; break; case 'nosort': columns += '{ "bSortable": false, "sClass": "'+ getElementClass( this ) +'"},'; break; case 'currency': columns += '{ "sType": "currency" },'; break; case 'link': columns += '{"sType": "html"},'; break; default: if ( $(this).text() ) { columns += '{"sClass": "'+ getElementClass( this ) +'"},'; } else { columns += '{ "bSortable": false },'; } break; } count++; }); // Fixme: this could be done without eval columns = columns.substring(0, columns.length - 1 ); sortColumn = sortColumn.substring(0, sortColumn.length - 1 ); eval('sortColumn =[' + sortColumn + ']'); eval('columns =[' + columns + ']'); var noRecordFoundMsg = 'Nichts gefunden.'; var oTable; if ( useAjax ) { oTable = $(tabId).dataTable({ "iDisplayLength": 25, "bFilter": false, "bAutoWidth": false, "aaSorting": sortColumn, "aoColumns": columns, "bProcessing": true, "bJQueryUI": true, "asStripClasses": [ "odd-row", "even-row" ], "sPaginationType": "full_numbers", "sDom": 'rt', "bServerSide": true, "sAjaxSource": sourceUrl, "oLanguage":{ "sEmptyTable": noRecordFoundMsg, "sZeroRecords": noRecordFoundMsg }, "fnServerData": function ( sSource, aoData, fnCallback ) { $.ajax( { "dataType": 'json', "type": "POST", "url": sSource, "data": aoData, "success": fnCallback }); } }); } else { oTable = $(tabId).dataTable({ "aaSorting": sortColumn, "bPaginate": false, "bLengthChange": true, "bFilter": false, "bInfo": false, "asStripClasses": [ "odd-row", "even-row" ], "bAutoWidth": false, "aoColumns": columns, "bSort": true, "sDom": 'ti', "oLanguage":{ "sEmptyTable": noRecordFoundMsg, "sZeroRecords": noRecordFoundMsg } }); } }); }); //plugin to sort on currency cj.fn.dataTableExt.oSort['currency-asc'] = function(a,b) { var symbol = "€"; var x = (a == "-") ? 0 : a.replace( symbol, "" ); var y = (b == "-") ? 0 : b.replace( symbol, "" ); x = parseFloat( x ); y = parseFloat( y ); return ((x y) ? 1 : 0)); }; cj.fn.dataTableExt.oSort['currency-desc'] = function(a,b) { var symbol = "€"; var x = (a == "-") ? 0 : a.replace( symbol, "" ); var y = (b == "-") ? 0 : b.replace( symbol, "" ); x = parseFloat( x ); y = parseFloat( y ); return ((x y) ? -1 : 0)); };
Veranstaltung Wann Standort Kategorie E-Mail