Chorverwaltung
This commit is contained in:
@ -31,36 +31,36 @@ if(isset($_GET['action'])){
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
/*
|
||||
# Daten aufbereiten für Zurückbutton
|
||||
if(isset($_SESSION["anlegen_vorname"])){
|
||||
$smarty->assign('user_anlegen_vorname', $_SESSION["anlegen_vorname"]);
|
||||
}
|
||||
|
||||
if(isset($_SESSION["anlegen_nachname"])){
|
||||
$smarty->assign('user_anlegen_nachname', $_SESSION["anlegen_nachname"]);
|
||||
}
|
||||
if(isset($_GET['editcsid']) and $_GET['editcsid'] != ''){
|
||||
# Aus externer Seite edit_user.php
|
||||
#echo "<br><br><br><br><br><br><br><br>-----------------------------------------------hier";
|
||||
$csid = $_GET['editcsid'];
|
||||
$smarty->assign('create_edit', $csid);
|
||||
|
||||
$result0 = $db->query("SELECT vorname, nachname, mail, singstimme, bemerkung
|
||||
FROM jumi_chor_saenger
|
||||
WHERE csid = $csid;");
|
||||
$row0 = $result0->fetch_array();
|
||||
$smarty->assign('member_anlegen_vorname', $row0['vorname']);
|
||||
$smarty->assign('member_anlegen_nachname', $row0['nachname']);
|
||||
$smarty->assign('member_anlegen_mail', $row0['mail']);
|
||||
$smarty->assign('member_anlegen_singstimme', $row0['singstimme']);
|
||||
$smarty->assign('member_anlegen_bemerkung', $row0['bemerkung']);
|
||||
|
||||
$query = "SELECT id, filename, originalname, date_format(datum, '%d.%m.%y - %H:%i') uploaddatum FROM jumi_chor_saenger_uploads WHERE csid='$csid' ORDER BY datum DESC";
|
||||
$result = $db->query( $query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
if(isset($_SESSION["anlegen_mail"])){
|
||||
$smarty->assign('user_anlegen_mail', $_SESSION["anlegen_mail"]);
|
||||
}
|
||||
# Daten aufbereiten für Zurückbutton ENDE
|
||||
*/
|
||||
# if(isset($_GET['edituid']) and $_GET['edituid'] != ''){
|
||||
# # Aus externer Seite edit_user.php
|
||||
# #echo "<br><br><br><br><br><br><br><br>-----------------------------------------------hier";
|
||||
# $uid = $_GET['edituid'];
|
||||
# $smarty->assign('create_edit', $uid);
|
||||
#
|
||||
# $result0 = $db->query("SELECT vorname, nachname, mail
|
||||
# FROM jumi_admin
|
||||
# WHERE uid = $uid;");
|
||||
# $row0 = $result0->fetch_array();
|
||||
# $smarty->assign('member_anlegen_vorname', $row0['vorname']);
|
||||
# $smarty->assign('member_anlegen_nachname', $row0['nachname']);
|
||||
# $smarty->assign('member_anlegen_mail', $row0['mail']);
|
||||
# }
|
||||
#
|
||||
while ($row = $result->fetch_array()){
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
61
dashboard/edit_member.php
Normal file
61
dashboard/edit_member.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
*/
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
||||
|
||||
// Rechteüberprüfung
|
||||
#$db = dbconnect();
|
||||
#if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
#if(!rore($user_admin,'a_admanleg','RE')){require("lib/rechte.php");exit;}
|
||||
#// Rechteüberprüfung ende
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
|
||||
$query = "SELECT csid, vorname, nachname, mail,
|
||||
CASE
|
||||
WHEN singstimme = 1 THEN 'Sopran'
|
||||
WHEN singstimme = 2 THEN 'Alt'
|
||||
WHEN singstimme = 3 THEN 'Tenor'
|
||||
WHEN singstimme = 4 THEN 'Baß'
|
||||
END singstimme
|
||||
FROM jumi_chor_saenger ORDER BY nachname ASC, vorname ASC;";
|
||||
$result = $db->query( $query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
while ($row = $result->fetch_array()){
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
64
dashboard/edit_noten.php
Normal file
64
dashboard/edit_noten.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
*/
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
||||
|
||||
// Rechteüberprüfung
|
||||
#$db = dbconnect();
|
||||
#if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
#if(!rore($user_admin,'a_admanleg','RE')){require("lib/rechte.php");exit;}
|
||||
#// Rechteüberprüfung ende
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
|
||||
$query = "SELECT a. jndid, titel, 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
|
||||
ORDER BY titel ASC;";
|
||||
$result = $db->query( $query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
while ($row = $result->fetch_array()){
|
||||
if($row['streamlizenz'] == '1'){
|
||||
$streamlizenz_vorh = "Ja";
|
||||
}else{
|
||||
$streamlizenz_vorh = "Nein";
|
||||
}
|
||||
$row['streamlizenz_vorh'] = $streamlizenz_vorh;
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
46
dashboard/notenbuch.php
Normal file
46
dashboard/notenbuch.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $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 == '') {
|
||||
|
||||
# Gespeicherte Werte
|
||||
$query = "SELECT zsid, bezeichnung
|
||||
FROM jumi_noten_zusammenstellung
|
||||
ORDER BY bezeichnung ASC";
|
||||
|
||||
$result = $db->query($query) or die("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array()) {
|
||||
$table_data[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $table_data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
|
||||
?>
|
64
dashboard/notenbuchzuordnung.php
Normal file
64
dashboard/notenbuchzuordnung.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('rollen_edit', $zsid);
|
||||
}
|
||||
|
||||
$result_head = $db->query("SELECT bezeichnung FROM jumi_noten_zusammenstellung WHERE zsid=$zsid");
|
||||
$row_head = $result_head->fetch_array();
|
||||
$smarty->assign('notenbuchzuordnung_bezeichnung', $row_head['bezeichnung']);
|
||||
|
||||
# Nicht zugewiesene Noten
|
||||
$query = "SELECT jndid, titel
|
||||
FROM jumi_noten_daten
|
||||
WHERE jndid NOT IN (SELECT jndid FROM jumi_noten_zusammenstellung_zuord WHERE zsid=$zsid)
|
||||
ORDER BY jndid 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 Noten
|
||||
$query1 = "SELECT jndid, titel
|
||||
FROM jumi_noten_daten
|
||||
WHERE jndid IN (SELECT jndid FROM jumi_noten_zusammenstellung_zuord WHERE zsid=$zsid)
|
||||
ORDER BY jndid ASC";
|
||||
|
||||
$result1 = $db->query($query1) or die("Cannot execute query2");
|
||||
|
||||
while ($row1 = $result1->fetch_array()) {
|
||||
$table_data1[] = $row1;
|
||||
}
|
||||
$smarty->assign('table_data1', $table_data1);
|
||||
|
||||
}
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
@ -14,6 +14,34 @@ if(!rechte('__noright__', $uid)){
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
if(isset($_GET['editjndid']) and $_GET['editjndid'] != ''){
|
||||
# Aus externer Seite edit_user.php
|
||||
#echo "<br><br><br><br><br><br><br><br>-----------------------------------------------hier";
|
||||
$jndid = $_GET['editjndid'];
|
||||
$smarty->assign('create_edit', $jndid);
|
||||
|
||||
$result0 = $db->query("SELECT a. jndid, titel, 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
|
||||
AND a.jndid = $jndid
|
||||
ORDER BY titel ASC;");
|
||||
$row0 = $result0->fetch_array();
|
||||
$smarty->assign('notenupload_titel', $row0['titel']);
|
||||
$smarty->assign('notenupload_anz_lizenzen', $row0['anz_lizenzen']);
|
||||
$smarty->assign('notenupload_streamlizenz', $row0['streamlizenz']);
|
||||
$smarty->assign('notenupload_songbook', $row0['songbook']);
|
||||
$smarty->assign('notenupload_verlag', $row0['verlag']);
|
||||
|
||||
$query = "SELECT id, filename, originalname, date_format(datum, '%d.%m.%y - %H:%i') uploaddatum FROM jumi_noten_uploads WHERE jndid='$jndid' ORDER BY datum DESC";
|
||||
$result = $db->query( $query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
while ($row = $result->fetch_array()){
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
}
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/dashboard/$templatename");
|
||||
|
@ -16,10 +16,6 @@ require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
||||
$result_name = $db->query("SELECT vorname, nachname, mail FROM jumi_admin WHERE uid='$uid'");
|
||||
$row_name = $result_name->fetch_array();
|
||||
$smarty->assign('startseite_name', "$row_name[vorname] $row_name[nachname]");
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/dashboard/$templatename");
|
||||
|
Reference in New Issue
Block a user