Notenverwaltung erweitert
This commit is contained in:
@ -20,7 +20,7 @@ require_once "../language/german.inc.php";
|
||||
$jndid = $_GET['editjndid'];
|
||||
$smarty->assign('create_edit', $jndid);
|
||||
|
||||
$result0 = $db->query("SELECT a. jndid, titel, anz_lizenzen, streamlizenz, b.bezeichnung songbook, c.bezeichnung verlag
|
||||
$result0 = $db->query("SELECT a. jndid, titel, liednr, anz_lizenzen, streamlizenz, b.bezeichnung songbook, c.bezeichnung verlag
|
||||
FROM jumi_noten_daten a, jumi_noten_songbook b, jumi_noten_verlag c
|
||||
WHERE a.sbid=b.sbid
|
||||
AND a.vid=c.vid
|
||||
@ -28,6 +28,7 @@ require_once "../language/german.inc.php";
|
||||
ORDER BY titel ASC;");
|
||||
$row0 = $result0->fetch_array();
|
||||
$smarty->assign('notenupload_titel', $row0['titel']);
|
||||
$smarty->assign('notenupload_liednr', $row0['liednr']);
|
||||
$smarty->assign('notenupload_anz_lizenzen', $row0['anz_lizenzen']);
|
||||
$smarty->assign('notenupload_streamlizenz', $row0['streamlizenz']);
|
||||
$smarty->assign('notenupload_songbook', $row0['songbook']);
|
||||
|
64
dashboard/notenuserzuordnung.php
Normal file
64
dashboard/notenuserzuordnung.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte('rollen.php', $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
||||
if (isset($_GET['action'])) {
|
||||
$action = $_GET['action'];
|
||||
} else {
|
||||
$action = '';
|
||||
}
|
||||
|
||||
|
||||
if ($action == '') {
|
||||
if (isset($_GET['edit'])) {
|
||||
$zsid = $_GET['edit'];
|
||||
$smarty->assign('zusammenstellung_edit', $zsid);
|
||||
}
|
||||
|
||||
$result_head = $db->query("SELECT bezeichnung FROM jumi_noten_zusammenstellung WHERE zsid=$zsid");
|
||||
$row_head = $result_head->fetch_array();
|
||||
$smarty->assign('notenzuordnung_bezeichnung', $row_head['bezeichnung']);
|
||||
|
||||
# Nicht zugewiesene User
|
||||
$query = "SELECT csid, vorname, nachname
|
||||
FROM jumi_chor_saenger
|
||||
WHERE csid NOT IN (SELECT csid FROM jumi_noten_zus_saenger_zuord WHERE zsid=$zsid)
|
||||
ORDER BY nachname ASC";
|
||||
|
||||
$result = $db->query($query) or die("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array()) {
|
||||
$table_data[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $table_data);
|
||||
|
||||
# Zugewiesene Rechte
|
||||
$query1 = "SELECT csid, vorname, nachname
|
||||
FROM jumi_chor_saenger
|
||||
WHERE csid IN (SELECT csid FROM jumi_noten_zus_saenger_zuord WHERE zsid=$zsid)
|
||||
ORDER BY nachname ASC";
|
||||
|
||||
$result1 = $db->query($query1) or die("Cannot execute query1");
|
||||
|
||||
while ($row1 = $result1->fetch_array()) {
|
||||
$table_data1[] = $row1;
|
||||
}
|
||||
$smarty->assign('table_data1', $table_data1);
|
||||
|
||||
}
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
Reference in New Issue
Block a user