SängerIn bearbeiten mit Einwilligungen
This commit is contained in:
@ -8,22 +8,15 @@ 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");
|
||||
#require_once("../config.inc.php");
|
||||
require_once("../config/datenbankanbindung.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{
|
||||
@ -32,37 +25,6 @@ if(isset($_GET['action'])){
|
||||
|
||||
if($action == ''){
|
||||
|
||||
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");
|
||||
|
||||
while ($row = $result->fetch_array()){
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user