Anzahl Lizenzen

This commit is contained in:
aschwarz
2023-04-05 14:29:24 +02:00
parent 892e8f779c
commit e69b4e3434
9 changed files with 17 additions and 51 deletions

View File

@ -32,6 +32,12 @@ if ($action == '') {
$result = $db->query($query) or die("Cannot execute query");
while ($row = $result->fetch_array()) {
$result_rl = $db->query("SELECT $row[anzahl_lizenz]-count(*) Rest
FROM jumi_noten_zus_saenger_zuord
WHERE zsid = $row[zsid];");
$row_rl = $result_rl->fetch_array();
$row['restlizenz'] = $row_rl['Rest'];
$table_data[] = $row;
}
$smarty->assign('table_data', $table_data);