Bugfixes
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
<?php
|
||||
echo '<h4 style="margin-left: 30px;">US 2017 - Stand: ' . $time->i18nFormat('dd.MM.yyyy HH:mm') . '</h4>';
|
||||
echo '<h4 style="margin-left: 30px;">US 2018 - Stand: ' . $time->i18nFormat('dd.MM.yyyy HH:mm') . '</h4>';
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
$.getJSON("/files/data.json", function(mps) {
|
||||
var origin = window.location.origin;
|
||||
console.log(origin);
|
||||
if (origin == 'http://km-pc-asd-ap.stmukwk.bayern.de') {
|
||||
jsonurl = '/files/data-us.json';
|
||||
}
|
||||
else {
|
||||
jsonurl = '/asd-control/files/data-us.json';
|
||||
}
|
||||
$.getJSON(jsonurl, function(mps) {
|
||||
$("#output").pivotUI(mps, {
|
||||
rows: ["Schulart"],
|
||||
cols: ["Übermittlungsstatus"],
|
||||
@@ -21,7 +29,7 @@ echo '<h4 style="margin-left: 30px;">US 2017 - Stand: ' . $time->i18nFormat('dd.
|
||||
$( "#heading").text(filters.Schulart + ' - ' + filters.Übermittlungsstatus);
|
||||
var names = [];
|
||||
pivotData.forEachMatchingRecord(filters,
|
||||
function(record){ names.push(record.Schule + ' (' + record.Datum.substring(0,10) + ')'); });
|
||||
function(record){ names.push(record.Schule + ' (' + record.Datum.substring(0,10) + ' ' + record.Datum.substring(11,19) + ')'); });
|
||||
//alert(pivotData.getColKeys());
|
||||
//alert(pivotData.colKeys);
|
||||
//pivotData.colKeys.push('Hallo');
|
||||
|
||||
Reference in New Issue
Block a user