382 lines
23 KiB
PHP
382 lines
23 KiB
PHP
<?php
|
|
// vérifier les paramètres
|
|
$intMenu = 0;
|
|
$strAction = '';
|
|
|
|
$strPage = 'late_fees.php';
|
|
$strLangue = 'fr';
|
|
|
|
if (isset($_GET['lng'])) {
|
|
if ($_GET['lng'] != '')
|
|
$strLangue = $_GET['lng'];
|
|
}
|
|
|
|
if (!empty($_GET['p']))
|
|
$strParam = $_GET['p'];
|
|
else
|
|
$strParam = '';
|
|
|
|
require_once('php/inc_start_time.php');
|
|
require_once('php/inc_functions.php');
|
|
require_once('php/inc_fx_messages.php');
|
|
|
|
|
|
//var pour mail
|
|
$strMsgBodyWaivers = "Dear 24 Hours of Adrenalin Participant,<br>
|
|
It appears your waiver has not been accepted:<br>
|
|
<ul>
|
|
<li>Please log into your MS1inscription account and accept the event's waiver so that all your team's waivers are signed (accepted digitally or for those participants under age 18, downloaded, signed by legal guardian, and bring it to the event)</li>
|
|
</ul>
|
|
Deadline for completion is July 14th, Noon MT.
|
|
Teams will be charged a $50 late fee for any incomplete team dashboard after that date.";
|
|
$strMsgSubjectWaivers = "Incomplete Dashboard - Waivers unsigned";
|
|
|
|
$strMsgBody = "Dear Captains/Team Owners;<br>
|
|
Your current team dashboard is incomplete, which requires you to take action.<br>
|
|
Please log into your team dashboard and ensure that:<br>
|
|
<ul><li>You have assigned a team captain</li>
|
|
<li>Your team is completed by inviting all necessary team members</li>
|
|
<li>You have invited your volunteer and selected your volunteer's shift (for 4 Person, 5 Person and Corporate teams only)</li>
|
|
<li>Have selected your campsite</li>
|
|
<li>Your teammate/volunteer does not have to actually receive the email to be able to accept an invite, they can just login onto ms1inscription.com and they will see the pending invitation.</li>
|
|
<li>Make sure that email address where the invitation is sent is the same email used in the participant profile at ms1inscription.com.</li>
|
|
<li>Deadline for completion is July 14th, Noon MT.</li></ul>
|
|
You will be charged a $50 late fee for any incomplete team dashboard after that date.";
|
|
$strMsgSubject = "Incomplete Dashboard";
|
|
|
|
$strMsgFromName = 'MS1 Inscription - 24 Hours of Adrenlin';// a valider
|
|
$strMsgFromMail = 'info@ms1timing.com'; // a valider
|
|
|
|
//data pour les waivers non signes
|
|
$sqlLateWaivers = "SELECT p.pec_id, p.par_nom, p.par_prenom, p.par_courriel
|
|
FROM resultats_participants p, resultats_epreuves_commandees e
|
|
WHERE p.eve_id = 175
|
|
AND waiver_cleared = 0
|
|
and p.pec_id = e.pec_id_original
|
|
and e.is_cancelled = 0
|
|
and e.pec_actif = 1
|
|
ORDER BY pec_id";
|
|
$tabLateWaivers = $GLOBALS['db']->fxGetResults($sqlLateWaivers);
|
|
|
|
// data pour les dashboards incomplets.
|
|
$sqlInscriptions = "SELECT ec.pec_id_original AS pec_id, e.epr_type_en AS race, MID(e.epr_type_en, INSTR(e.epr_type_en, '(')) AS category, (CASE ec.pec_equipe WHEN 1 THEN 'Yes' ELSE 'No' END) AS pec_equipe, ec.pec_nom_equipe, (SELECT ach_maj FROM inscriptions_panier_acheteurs WHERE no_commande = ec.no_commande) AS pec_maj, ec.no_equipe, co.com_prenom AS firstname_owner, co.com_nom AS lastname_owner, co.com_login AS login_owner, co.com_nom AS lastname_owner, co.com_courriel AS email_owner, (SELECT CONCAT(COUNT(par_id),'/1') FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id = 1) AS nb_captain, (SELECT CONCAT(COUNT(par_id),'/',e.epr_nb_participants) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id <= 2) AS nb_participants, (SELECT CONCAT(COUNT(par_id),'/',e.epr_nb_benevole) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id = 3) AS nb_benevoles, (SELECT CONCAT(COUNT(par_id),'/',e.epr_nb_pit_manager) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id = 4) AS nb_pit_manager, (SELECT CONCAT(COUNT(pro_id),'/',e.epr_nb_camping) FROM resultats_produits_new WHERE pec_id = ec.pec_id_original) AS nb_camping, (SELECT COALESCE(SUM(par_age), 0) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id <= 2) AS age_sum, (IF(ec.epr_id = 109, CASE WHEN (SELECT SUM(par_age) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id <= 2) <= 150 THEN 'Under 150' WHEN (SELECT SUM(par_age) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id <= 2) <= 189 THEN '150 to 189' WHEN (SELECT SUM(par_age) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id <= 2) <= 219 THEN '190 to 219' WHEN (SELECT SUM(par_age) FROM resultats_participants WHERE pec_id = ec.pec_id_original AND is_cancelled = 0 AND rol_id <= 2) >= 220 THEN '220+' END, '-')) AS age_category FROM resultats_epreuves_commandees ec, inscriptions_panier_epreuves e, inscriptions_comptes co WHERE ec.epr_id = e.epr_id AND ec.com_id = co.com_id AND ec.eve_id = 175 AND ec.is_cancelled = 0 AND ec.pec_actif = 1 AND ec.pec_dashboard_complete = 0 ORDER BY ec.pec_nom_equipe";
|
|
$tabInscriptions = $GLOBALS['db']->fxGetResults($sqlInscriptions);
|
|
//var_dump($tabInscriptions);
|
|
$tabLateTeams = array();
|
|
// $tabLateTeams['liste'] = array();
|
|
$intCtr = 1;
|
|
for ($i = 1; $i <= count($tabInscriptions); $i++) {
|
|
|
|
// captain
|
|
$tabCaptain = explode("/", $tabInscriptions[$i]['nb_captain']);
|
|
$tabParticipant = explode("/", $tabInscriptions[$i]['nb_participants']);
|
|
$tabVolunteer = explode("/", $tabInscriptions[$i]['nb_benevoles']);
|
|
$tabPitManager = explode("/", $tabInscriptions[$i]['nb_pit_manager']);
|
|
$tabCamping = explode("/", $tabInscriptions[$i]['nb_camping']);
|
|
if($tabCaptain[0] != $tabCaptain[1]){
|
|
$tabLateTeams[] = $tabInscriptions[$i]['pec_id'];
|
|
// $tabLateTeams['liste'][] = $tabInscriptions[$i]['pec_id'];
|
|
$intCtr++;
|
|
}
|
|
|
|
// nb participants
|
|
if($tabParticipant[0] != $tabParticipant[1] || ($tabParticipant[0] < 6 && $tabParticipant[1] == 10)){
|
|
if(!in_array($tabInscriptions[$i]['pec_id'], $tabLateTeams)) {
|
|
$tabLateTeams[] = $tabInscriptions[$i]['pec_id'];
|
|
}
|
|
$intCtr++;
|
|
}
|
|
|
|
// volunteers
|
|
if($tabVolunteer[0] != $tabVolunteer[1]){
|
|
if(!in_array($tabInscriptions[$i]['pec_id'], $tabLateTeams)) {
|
|
$tabLateTeams[] = $tabInscriptions[$i]['pec_id'];
|
|
}
|
|
$intCtr++;
|
|
}
|
|
|
|
// pit managers
|
|
if($tabPitManager[0] != $tabPitManager[1]){
|
|
if(!in_array($tabInscriptions[$i]['pec_id'], $tabLateTeams)) {
|
|
$tabLateTeams[] = $tabInscriptions[$i]['pec_id'];
|
|
}
|
|
$intCtr++;
|
|
}
|
|
|
|
// campings
|
|
if($tabCamping[0] != $tabCamping[1]){
|
|
if(!in_array($tabInscriptions[$i]['pec_id'], $tabLateTeams)) {
|
|
$tabLateTeams[] = $tabInscriptions[$i]['pec_id'];
|
|
}
|
|
$intCtr++;
|
|
}
|
|
}
|
|
|
|
sort($tabLateTeams);
|
|
|
|
|
|
if (isset($_POST['frm_action'])) {
|
|
switch ($_POST['frm_action']) {
|
|
case 'retard-depot':
|
|
$sqlEpreuves = "SELECT c.no_commande, c.no_panier, md.com_id, md.eve_id, c.pec_id_original AS pec_id, CONCAT(e.epr_type_en, ' ', e.epr_nom_en) AS epreuve_nom, c.pec_nom_equipe, CONCAT(a.com_prenom, ' ', a.com_nom) AS nom_complet, a.com_courriel, md.md_montant, md.md_date_limite_paiement, md.md_motif_en FROM resultats_epreuves_commandees c, inscriptions_panier_epreuves e, inscriptions_montants_dus md, inscriptions_panier_acheteurs a WHERE c.pec_id_original = md.pec_id AND c.epr_id = e.epr_id AND c.eve_id = 175 AND c.no_panier = a.no_panier AND (md.no_commande_paye = '' OR md.no_commande_paye IS NULL) ORDER BY md.com_id, md.no_commande DESC, md.md_date_ajout";
|
|
$tabEpreuves = $GLOBALS['db']->fxGetResults($sqlEpreuves);
|
|
|
|
if ($tabEpreuves != null) {
|
|
$strLastAcheteur = '';
|
|
$tabAcheteurs = array();
|
|
|
|
for ($intCtr = 1; $intCtr <= count($tabEpreuves); $intCtr++) {
|
|
// Ajouter les frais à la table montants_dus
|
|
$sqlInsert = "INSERT INTO inscriptions_montants_dus SET com_id = " . intval($tabEpreuves[$intCtr]['com_id']) . ", pec_id = " . intval($tabEpreuves[$intCtr]['pec_id']) . ", md_montant = " . floatval($_POST['md_montant']) . ", eve_id = " . intval($tabEpreuves[$intCtr]['eve_id']) . ", no_commande = '" . $GLOBALS['db']->fxEscape(fxUnescape($tabEpreuves[$intCtr]['no_commande'])) . "', no_panier = '" . $GLOBALS['db']->fxEscape(fxUnescape($tabEpreuves[$intCtr]['no_panier'])) . "', md_date_limite_paiement = '" . $GLOBALS['db']->fxEscape($_POST['md_date_limite_paiement']) . "', md_motif_fr = '" . $GLOBALS['db']->fxEscape($_POST['md_motif_fr']) . "', md_motif_en = '" . $GLOBALS['db']->fxEscape($_POST['md_motif_en']) . "'";
|
|
$qryInsert = $GLOBALS['db']->fxQuery($sqlInsert);
|
|
|
|
if ($qryInsert != null) {
|
|
$tabAcheteurs[$tabEpreuves[$intCtr]['com_id']]['nom'] = fxUnescape($tabEpreuves[$intCtr]['nom_complet']);
|
|
$tabAcheteurs[$tabEpreuves[$intCtr]['com_id']]['courriel'] = fxUnescape($tabEpreuves[$intCtr]['com_courriel']);
|
|
$tabAcheteurs[$tabEpreuves[$intCtr]['com_id']]['courses'][] = array('epreuve_nom' => fxUnescape($tabEpreuves[$intCtr]['epreuve_nom']), 'nom_equipe' => fxUnescape($tabEpreuves[$intCtr]['pec_nom_equipe']), 'no_commande' => fxUnescape($tabEpreuves[$intCtr]['no_commande']));
|
|
}
|
|
}
|
|
|
|
$from_mail = fxUnescape($GLOBALS['vEmail']);
|
|
$from_name = fxUnescape($GLOBALS['vClient']);
|
|
|
|
foreach ($tabAcheteurs as $acheteur) { // Avertir le client par courriel (seulement 1 courriel par nom_complet)
|
|
$to_mail = $acheteur['courriel'];
|
|
$to_name = $acheteur['nom'];
|
|
|
|
$strSubject = "Late fees added to your account";
|
|
$strMessage = "
|
|
Hello " . $to_name . ",
|
|
<br><br>
|
|
this message is to notify you that a late fee of $75.00 has been add to your account because the 50% deposit for the following race(s) has not been paid by January 15, 2015.
|
|
<br><br>
|
|
";
|
|
|
|
foreach ($acheteur['courses'] as $course) {
|
|
$strMessage .= "- <strong>" . $course['no_commande'] . "</strong>: " . $course['epreuve_nom'];
|
|
|
|
if ($course['nom_equipe'] != '')
|
|
$strMessage .= " (" . $course['nom_equipe'] . ")";
|
|
|
|
$strMessage .= "<br>";
|
|
}
|
|
|
|
$strMessage .= "
|
|
<br><br>
|
|
<small>This is an auto-message sent on by " . $from_name . " " . fxShowDate(fxGetDate(), 'en') . " @ " . fxShowTime(fxGetDateTime()) . ".</small>
|
|
";
|
|
|
|
fxSendMail($strSubject, $strMessage, $to_mail, $to_name, $from_mail, $from_name, 1, 1);
|
|
}
|
|
|
|
|
|
$_SESSION['msg'] = 667; // message réussite
|
|
}
|
|
else
|
|
$_SESSION['msg'] = 666; // message erreur
|
|
break;
|
|
|
|
case 'retard-waivers':
|
|
for($i = 1; $i <= count($tabLateWaivers); $i++){
|
|
$strMsgToName = $tabLateWaivers[$i]['par_prenom'] . " " . $tabLateWaivers[$i]['par_nom'];
|
|
|
|
// $strMsgToMail = "alex@progiweb.ca"; // for testing purposes
|
|
$strMsgToMail = $tabLateWaivers[$i]['par_courriel'];
|
|
|
|
$blnSend = fxSendMail($strMsgSubjectWaivers, $strMsgBodyWaivers, $strMsgToMail, $strMsgToName, $strMsgFromMail, $strMsgFromName, 1,1);
|
|
// var_dump($blnSend); // for testing
|
|
// exit; // for testing
|
|
}
|
|
|
|
break;
|
|
|
|
case 'retard-dashboard':
|
|
// for($i = 1; $i <= 60; $i++){
|
|
for($i = 1; $i <= count($tabLateTeams); $i++){
|
|
$sqlCaptain = "SELECT c.com_courriel, c.com_prenom, c.com_nom FROM resultats_participants p, inscriptions_comptes c WHERE c.com_id = p.com_id and p.rol_id = 1 and p.pec_id = " . intval($tabLateTeams[$i]);
|
|
$tabCaptain = $GLOBALS['db']->fxGetRow($sqlCaptain);
|
|
if($tabCaptain != null){
|
|
$strMsgToName = $tabCaptain['com_prenom'] . " " . $tabCaptain['com_nom'];
|
|
$strMsgToMail = $tabCaptain['com_courriel'];
|
|
}
|
|
else {
|
|
$sql = "SELECT c.com_courriel, c.com_prenom, c.com_nom FROM resultats_epreuves_commandees e, inscriptions_comptes c WHERE c.com_id = e.com_id and e.pec_id_original = " . intval($tabLateTeams[$i]);
|
|
$tabOwner = $GLOBALS['db']->fxGetRow($sql);
|
|
$strMsgToName = $tabOwner['com_prenom'] . " " . $tabOwner['com_nom'];
|
|
$strMsgToMail = $tabOwner['com_courriel'];
|
|
}
|
|
//;
|
|
// $strMsgBody .= var_dump($strMsgToName);
|
|
// $strMsgToMail = "alex@progiweb.ca"; // for testing purposes
|
|
|
|
$blnSend = fxSendMail($strMsgSubject, $strMsgBody, $strMsgToMail, $strMsgToName, $strMsgFromMail, $strMsgFromName, 1,1);
|
|
// var_dump($blnSend); // for testing
|
|
// exit;// for testing
|
|
}
|
|
break;
|
|
}
|
|
|
|
// retourner à la page d'origine
|
|
header('Location: ' . $strPage . '?p=' . $strParam);
|
|
exit;
|
|
}
|
|
|
|
require_once('inc_header.php');
|
|
?>
|
|
<script>
|
|
$().ready(function() {
|
|
$('#btn_retard').click(function(){
|
|
return confirm("Êtes-vous certain de vouloir envoyer un courriel aux clients concernés ?");
|
|
});
|
|
});
|
|
</script>
|
|
<div id="main">
|
|
<div id="main_inner" class="fluid">
|
|
<div id="primaryContent_2columns">
|
|
<div id="columnA_2columns">
|
|
<h1>Frais de retard</h1>
|
|
<ul class="links">
|
|
<li><a href="?p=depot">Montant du non-payé sur dépôt de 50% (15 janvier 2015)</a></li>
|
|
<li><a href="?p=waiver">Waiver non-signé (juillet 2015)</a></li>
|
|
<li><a href="?p=dashboard">Incomplete Dashboards (juillet 2015)</a></li>
|
|
</ul>
|
|
<p> </p>
|
|
<?php
|
|
if (isset($_SESSION['msg']) && $_SESSION['msg'] != 0)
|
|
echo fxMessage($_SESSION['msg'], $strLangue);
|
|
|
|
switch($strParam) {
|
|
case 'depot':
|
|
echo $sqlEpreuves = "SELECT c.no_commande, c.no_panier, md.com_id, md.eve_id, c.pec_id_original AS pec_id, CONCAT(e.epr_type_en, ' ', e.epr_nom_en) AS epreuve_nom, c.pec_nom_equipe, CONCAT(a.com_nom,', ',a.com_prenom) AS nom_complet, a.com_courriel, md.md_montant, md.md_date_limite_paiement, md.md_motif_en FROM resultats_epreuves_commandees c, inscriptions_panier_epreuves e, inscriptions_montants_dus md, inscriptions_panier_acheteurs a WHERE c.pec_id_original = md.pec_id AND c.epr_id = e.epr_id AND c.eve_id = 175 AND c.no_panier = a.no_panier AND (md.no_commande_paye = '' OR md.no_commande_paye IS NULL) ORDER BY md.com_id, md.no_commande DESC, md.md_date_ajout";
|
|
$tabEpreuves = $GLOBALS['db']->fxGetResults($sqlEpreuves);
|
|
|
|
if ($tabEpreuves != null) {
|
|
?>
|
|
<p style="color: red; font-size: 24px; font-weight: bold;">Vous ne devriez cliquer ce bouton qu'une seule fois, soit le 16 janvier 2015. Soyez prudent puisque ça envoie des courriels aux clients. :)</p>
|
|
<p><span></span></p>
|
|
<form id="frm_retard" name="frm_retard" method="post">
|
|
<input type="hidden" name="frm_action" value="retard-depot">
|
|
<input type="hidden" name="md_montant" value="75">
|
|
<input type="hidden" name="md_date_limite_paiement" value="2015-01-31 01:59:59">
|
|
<input type="hidden" name="md_motif_fr" value="Late fees 50% due by January 15th 2015 23h59 MT">
|
|
<input type="hidden" name="md_motif_en" value="Late fees 50% due by January 15th 2015 23h59 MT">
|
|
<button type="submit" id="btn_retard" name="btn_retard"><img src="images/email.png" alt=""> Envoyer courriel</button>
|
|
</form>
|
|
<p class="clearer"><span></span></p>
|
|
<table class="liste">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align: center;">#</th>
|
|
<th style="text-align: left;">No commande</th>
|
|
<th style="text-align: center;">pec_id</th>
|
|
<th style="text-align: left;">Équipe</th>
|
|
<th style="text-align: left;">Acheteur</th>
|
|
<th style="text-align: right;">Montant du</th>
|
|
<th style="text-align: left;">Date limite</th>
|
|
<th style="text-align: left;">Motif</th>
|
|
<th><span></span></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
for ($intCtr = 1; $intCtr <= count($tabEpreuves); $intCtr++) {
|
|
?>
|
|
<tr <?php if ($intCtr % 2) { ?>class="odd"<?php } ?>>
|
|
<td style="text-align: center;"><?php echo $intCtr; ?></td>
|
|
<td style="text-align: left;"><?php echo fxUnescape($tabEpreuves[$intCtr]['no_commande']); ?></td>
|
|
<td style="text-align: center;"><?php echo fxUnescape($tabEpreuves[$intCtr]['pec_id']); ?></td>
|
|
<td style="text-align: left;"><?php echo fxUnescape($tabEpreuves[$intCtr]['pec_nom_equipe']); ?></td>
|
|
<td style="text-align: left;"><?php echo fxUnescape($tabEpreuves[$intCtr]['nom_complet']); ?></td>
|
|
<td style="text-align: right;"><?php echo fxShowMoney($tabEpreuves[$intCtr]['md_montant'], 'fr'); ?></td>
|
|
<td style="text-align: left;"><?php echo fxShowDate($tabEpreuves[$intCtr]['md_date_limite_paiement'], 'fr'); ?> @ <?php echo fxShowTime($tabEpreuves[$intCtr]['md_date_limite_paiement']); ?></td>
|
|
<td style="text-align: left;"><?php echo fxUnescape($tabEpreuves[$intCtr]['md_motif_en']); ?></td>
|
|
<td style="text-align: left"><a href="<?php echo $vDomaine; ?>/facture.php?no_panier=<?php echo fxUnescape($tabEpreuves[$intCtr]['no_panier']); ?>" target="_blank">Voir facture</a></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
}
|
|
else {
|
|
?>
|
|
<p>Il n'y a aucun montant du non-payé pour le moment.</p>
|
|
<?php
|
|
}
|
|
break;
|
|
|
|
case 'waiver':
|
|
?>
|
|
<p style="color: red; font-size: 24px; font-weight: bold;">Cliquer pour envoyer un courriel de notification - Waivers manquants (seulement : pas de creation de produit!!)</p>
|
|
<p><span></span></p>
|
|
<form id="frm_retard_dashboard" name="frm_retard_waivers" method="post">
|
|
<input type="hidden" name="frm_action" value="retard-waivers">
|
|
<button type="submit" id="btn_waivers_email" name="btn_waivers_email"><img src="images/email.png" alt=""> Envoyer courriel</button>
|
|
</form>
|
|
<p class="clearer"><span></span></p>
|
|
<table id="table_late_waivers" class="liste"><h2>Waivers not signed (<?php echo count($tabLateWaivers) ?>)</h2>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Captain/Owner name</th>
|
|
<th>Email</th>
|
|
<!-- <th></th>-->
|
|
</tr>
|
|
<?php
|
|
for($i = 1; $i <= count($tabLateWaivers); $i++){
|
|
echo "<tr><td>" . $tabLateWaivers[$i]['pec_id'] . "</td>";
|
|
echo "<td>" . $tabLateWaivers[$i]['par_prenom'] . " " . $tabLateWaivers[$i]['par_nom'] . "</td>";
|
|
echo "<td>" . $tabLateWaivers[$i]['par_courriel'] . "</td>";
|
|
// echo "<td><a href=''>Email</a></td></tr>";
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
break;
|
|
|
|
case 'dashboard':
|
|
?>
|
|
<p style="color: red; font-size: 24px; font-weight: bold;">Cliquer pour envoyer un courriel de notification (seulement : pas de creation de produit!!)</p>
|
|
<p><span></span></p>
|
|
<form id="frm_retard_dashboard" name="frm_retard_dashboard" method="post">
|
|
<input type="hidden" name="frm_action" value="retard-dashboard">
|
|
<button type="submit" id="btn_dashboard_incomplete" name="btn_dashboard_incomplete"><img src="images/email.png" alt=""> Envoyer courriel</button>
|
|
</form>
|
|
<p class="clearer"><span></span></p>
|
|
<?php
|
|
if($tabInscriptions != null) {
|
|
?>
|
|
<table id="table_late_waivers" class="liste"><h2>Incomplete dashboards - 2015 (<?php echo count($tabLateTeams) ?>)</h2>
|
|
<tr>
|
|
<th>ctr</th>
|
|
<th>#</th>
|
|
<th>Captain/Owner name</th>
|
|
<th>Email</th>
|
|
<th></th>
|
|
</tr>
|
|
<?php
|
|
for($j = 0; $j < count($tabLateTeams); $j++){
|
|
// for($j = 1; $j <= count($tabLateTeams['liste']); $j++){
|
|
echo "<tr><td>" . $j . "</td><td>" . $tabLateTeams[$j] . "</td>";
|
|
$sql = "SELECT c.com_courriel, c.com_prenom, c.com_nom FROM resultats_epreuves_commandees e, inscriptions_comptes c WHERE c.com_id = e.com_id and e.pec_id_original = " . intval($tabLateTeams[$j]);
|
|
$tabOwner = $GLOBALS['db']->fxGetRow($sql);
|
|
echo "<td>" . $tabOwner['com_prenom'] . " " . $tabOwner['com_nom'] . "</td>";
|
|
echo "<td>" . $tabOwner['com_courriel'] . "</td></tr>";
|
|
}
|
|
|
|
?>
|
|
</table>
|
|
<?php
|
|
}
|
|
break;
|
|
}
|
|
?>
|
|
<p> </p>
|
|
<br class="clear" />
|
|
</div>
|
|
</div>
|
|
|
|
<?php require_once('inc_droite.php'); ?>
|
|
</div>
|
|
</div>
|
|
<?php require_once('inc_footer.php'); ?>
|