Kleinere Verbesserungen
This commit is contained in:
parent
c4505e1b4d
commit
ee6846e9be
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$db = dbconnect();
|
||||
|
||||
$function = $_POST['function'];
|
||||
|
||||
if ($function == 'membersave') {
|
||||
|
63
dashboard/einwilligungen.php
Normal file
63
dashboard/einwilligungen.php
Normal file
@ -0,0 +1,63 @@
|
||||
<?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, einw_livestream, einw_homepage, einw_socialmedia
|
||||
FROM jumi_chor_saenger ORDER BY nachname ASC, vorname ASC";
|
||||
$result = $db->query( $query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
while ($row = $result->fetch_array()){
|
||||
|
||||
if(($row['einw_livestream'] == '' AND $row['einw_homepage'] == '' AND $row['einw_socialmedia'] == '') OR ($row['einw_livestream'] == '0' AND $row['einw_homepage'] == '0' AND $row['einw_socialmedia'] == '0')){
|
||||
$bgcolor='red';
|
||||
}else{
|
||||
$bgcolor='';
|
||||
}
|
||||
|
||||
$row['bgcolor'] = $bgcolor;
|
||||
$value[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $value);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
@ -29,8 +29,8 @@ function membersave(){
|
||||
elements[i].selected = false;
|
||||
}
|
||||
}
|
||||
$('#msg1').show().delay(10000).fadeOut(500);
|
||||
$('#msg1').html(a[0]);
|
||||
$('#msg').show().delay(10000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
|
Binary file not shown.
@ -74,7 +74,7 @@
|
||||
<td class="d-none d-md-table-cell">{$table_data[table_data].mail}</td>
|
||||
<td class="d-none d-md-table-cell">{$table_data[table_data].singstimme}</td>
|
||||
<td>
|
||||
<a href="create_member.php?editcsid={$table_data[table_data].csid}" class="settings" title="Edit Member" data-toggle="tooltip"><i class="fas fa fa-cog"></i></a>
|
||||
<a href="create_member.php?editcsid={$table_data[table_data].csid}" class="settings" title="Edit Member" data-toggle="tooltip"><i class="fas fa fa-edit"></i></a>
|
||||
|
||||
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="delMember({$table_data[table_data].csid})"><i class="fa fa-trash" style="width:18px;"></i></a>
|
||||
</td>
|
||||
|
123
templates/modern/dashboard/einwilligungen.html
Normal file
123
templates/modern/dashboard/einwilligungen.html
Normal file
@ -0,0 +1,123 @@
|
||||
{if $action == ''}
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>JU & MI Einwilligungen</title>
|
||||
<link rel="stylesheet" href="../jquery/jquery-ui.css">
|
||||
<link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
|
||||
<link href="css/styles.css" rel="stylesheet" />
|
||||
<!-- icons in nav-->
|
||||
<!-- data Table: https://datatables.net/ -->
|
||||
<script src="../bootstrap/data-table/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="../bootstrap/data-table/dataTables.bootstrap5.min.css">
|
||||
</style>
|
||||
<link rel="stylesheet" href="../bootstrap/data-table/rowReorder.dataTables.min.css">
|
||||
</style>
|
||||
<script type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"></script>
|
||||
<script type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"></script>
|
||||
<script type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"></script>
|
||||
<link rel="stylesheet" href="../bootstrap/data-table/jumistyle.css">
|
||||
</style>
|
||||
<script src="js/all.js" crossorigin="anonymous"></script>
|
||||
<script src="../jquery/jquery-3.4.1.min.js"></script>
|
||||
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
|
||||
</head>
|
||||
<body class="sb-nav-fixed">
|
||||
<div id="navtop"></div>
|
||||
{literal}
|
||||
<script>
|
||||
$(function(){
|
||||
// im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
|
||||
$("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
|
||||
$("#navleft").load("nav.php");
|
||||
$("#footer").load("footer.php");
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="layoutSidenav">
|
||||
<!-- Navigation left -->
|
||||
<div id="navleft"></div>
|
||||
<div id="layoutSidenav_content">
|
||||
<main>
|
||||
<!--Anwendung-->
|
||||
<script type="text/javascript" src="../js/file_upload/vpb_uploader_member.js"></script>
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fa-solid fa-user"></i>
|
||||
Einwilligungen
|
||||
<div class="d-lg-none">
|
||||
<font color="red">Querformat für Mobilgeräte</font>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<!-- https://datatables.net/download/release -->
|
||||
<table id="myTable" class="table table-striped table-bordered table-hover" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vorname</th>
|
||||
<th>Nachname</th>
|
||||
<th>Livestream</th>
|
||||
<th>Homepage</th>
|
||||
<th>Social Media</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{section name=table_data loop=$table_data}
|
||||
<tr>
|
||||
<td><font color="{$table_data[table_data].bgcolor}">{$table_data[table_data].vorname}</font></td>
|
||||
<td><a href="create_member.php?editcsid={$table_data[table_data].csid}"><font color="{$table_data[table_data].bgcolor}">{$table_data[table_data].nachname}</font></a></td>
|
||||
<td>
|
||||
{if $table_data[table_data].einw_livestream == '1'}
|
||||
<i class="fa fa-fw fa-thumbs-up" style="color: #008000;"></i>
|
||||
{else}
|
||||
<i class="fa fa-fw fa-thumbs-down" style="color: #800000;"></i>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[table_data].einw_homepage == '1'}
|
||||
<i class="fa fa-fw fa-thumbs-up" style="color: #008000;"></i>
|
||||
{else}
|
||||
<i class="fa fa-fw fa-thumbs-down" style="color: #800000;"></i>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[table_data].einw_socialmedia == '1'}
|
||||
<i class="fa fa-fw fa-thumbs-up" style="color: #008000;"></i>
|
||||
{else}
|
||||
<i class="fa fa-fw fa-thumbs-down" style="color: #800000;"></i>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="msg"></div>
|
||||
</main>
|
||||
<!-- footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var table = new DataTable('#myTable', {
|
||||
rowReorder: true,
|
||||
pageLength: 5,
|
||||
language: {
|
||||
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
||||
search: "",
|
||||
lengthMenu: "_MENU_ Zeilen",
|
||||
},
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
{/if}
|
@ -69,7 +69,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="msg"></div>
|
||||
<div id="msg1"></div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user