diff --git a/controller/selfregistration.php b/controller/selfregistration.php index fc437e1..3483e23 100644 --- a/controller/selfregistration.php +++ b/controller/selfregistration.php @@ -1,5 +1,7 @@ "; +*/ +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 ""; + 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"); +?> diff --git a/js/components/selfregistration.js b/js/components/selfregistration.js index fb32135..192e391 100644 --- a/js/components/selfregistration.js +++ b/js/components/selfregistration.js @@ -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) { diff --git a/media/file_upload/member/20230418_111816_Einwilligungserklaerung.pdf b/media/file_upload/member/20230418_111816_Einwilligungserklaerung.pdf new file mode 100644 index 0000000..53f1bed Binary files /dev/null and b/media/file_upload/member/20230418_111816_Einwilligungserklaerung.pdf differ diff --git a/templates/modern/dashboard/edit_member.html b/templates/modern/dashboard/edit_member.html index b99fde2..3d5b163 100644 --- a/templates/modern/dashboard/edit_member.html +++ b/templates/modern/dashboard/edit_member.html @@ -74,7 +74,7 @@ {$table_data[table_data].mail} {$table_data[table_data].singstimme} - +   diff --git a/templates/modern/dashboard/einwilligungen.html b/templates/modern/dashboard/einwilligungen.html new file mode 100644 index 0000000..c8feb23 --- /dev/null +++ b/templates/modern/dashboard/einwilligungen.html @@ -0,0 +1,123 @@ +{if $action == ''} + + + + JU & MI Einwilligungen + + + + + + + + + + + + + + + + + + + + + + + + + + {literal} + + {/literal} +
+ + +
+
+ + +
+
+
+ + Einwilligungen +
+ Querformat für Mobilgeräte +
+
+
+ + + + + + + + + + + + + {section name=table_data loop=$table_data} + + + + + + + + {/section} + +
VornameNachnameLivestreamHomepageSocial Media
{$table_data[table_data].vorname}{$table_data[table_data].nachname} + {if $table_data[table_data].einw_livestream == '1'} + + {else} + + {/if} + + {if $table_data[table_data].einw_homepage == '1'} + + {else} + + {/if} + + {if $table_data[table_data].einw_socialmedia == '1'} + + {else} + + {/if} +
+
+
+
+
+
+ + +
+
+ + + +{/if} \ No newline at end of file diff --git a/templates/modern/selfregistration/index.html b/templates/modern/selfregistration/index.html index edbdb45..925c620 100644 --- a/templates/modern/selfregistration/index.html +++ b/templates/modern/selfregistration/index.html @@ -69,7 +69,6 @@
-