Neue Übersichtsseite für Reihungstests hinzugefügt

This commit is contained in:
Andreas Österreicher
2018-11-27 11:04:08 +01:00
parent 3fcfcd49b1
commit 608a86e049
9 changed files with 494 additions and 4 deletions
+15
View File
@@ -2498,6 +2498,21 @@ if($result = @$db->db_query("SELECT * FROM information_schema.role_table_grants
}
}
// App 'reihungstest' hinzufügen
if($result = $db->db_query("SELECT 1 FROM system.tbl_app WHERE app='reihungstest'"))
{
if($db->db_num_rows($result)==0)
{
$qry = "INSERT INTO system.tbl_app(app) VALUES('reihungstest');";
if(!$db->db_query($qry))
echo '<strong>App: '.$db->db_last_error().'</strong><br>';
else
echo '<br>Neue App reihungstest in system.tbl_app hinzugefügt';
}
}
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
echo '<H2>Pruefe Tabellen und Attribute!</H2>';
+22
View File
@@ -322,6 +322,28 @@ $filters = array(
}
',
'oe_kurzbz' => null,
),
array(
'app' => 'reihungstest',
'dataset_name' => 'overview',
'filter_kurzbz' => 'Reihungstest',
'description' => '{Reihungstest Übersicht}',
'sort' => 1,
'default_filter' => true,
'filter' => '
{
"name": "Reihungstest",
"columns": [
{"name": "fakultaet"},
{"name": "datum"},
{"name": "oeffentlich"},
{"name": "studiengaenge"},
{"name": "freie_plaetze"}
],
"filters": []
}
',
'oe_kurzbz' => null,
)
);