mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 12:32:18 +01:00 
			
		
		
		
	Collect emails
This commit is contained in:
		@@ -59,6 +59,10 @@ if ($tournament->isFinal())
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
<?php if (!isset($_GET["modifier"]) && ($_SESSION["role"] == Role::ADMIN || $_SESSION["role"] == Role::ORGANIZER && $tournament->organize($_SESSION["user_id"]))) { ?>
 | 
			
		||||
    <div class="alert alert-info">
 | 
			
		||||
        <a href="mailto:contact@tfjm.org?<? foreach ($emails as $email) echo "bcc=" . $email . "&" ?>subject=TFJM² <?= $YEAR ?>" target="_blank">Envoyer un mail à toutes les personnes inscrites au tournoi</a>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <a href="/tournoi/<?= $tournament->getName() ?>/modifier"><button class="btn btn-secondary btn-lg btn-block">Éditer le tournoi</button></a>
 | 
			
		||||
<?php } ?>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,12 @@
 | 
			
		||||
    <h2 class="display-3">Liste des tournois</h2>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
 | 
			
		||||
<div class="alert alert-info">
 | 
			
		||||
    <a href="mailto:contact@tfjm.org?<? foreach ($emails as $email) echo "bcc=" . $email . "&" ?>subject=TFJM² <?= $YEAR ?>" target="_blank">Envoyer un mail à toutes les personnes inscrites au tournoi</a>
 | 
			
		||||
</div>
 | 
			
		||||
<?php } ?>
 | 
			
		||||
 | 
			
		||||
<table class="table table-striped table-bordered table-hover">
 | 
			
		||||
    <thead>
 | 
			
		||||
    <tr>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user