diff --git a/dashboard/notenbuch.php b/dashboard/notenbuch.php index 32d1ef9..fc143da 100644 --- a/dashboard/notenbuch.php +++ b/dashboard/notenbuch.php @@ -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); diff --git a/templates/modern/dashboard/notenbuch.html b/templates/modern/dashboard/notenbuch.html index 69fa050..2fc37df 100644 --- a/templates/modern/dashboard/notenbuch.html +++ b/templates/modern/dashboard/notenbuch.html @@ -3,10 +3,7 @@
-