public static function getLeagueCommissionerEmails($leagueID) { $email = ''; $sep_comma = ""; $coaches = Coach::getCoaches(); foreach ($coaches as $c) { if ($c->isNodeCommish(T_NODE_LEAGUE, $leagueID) && Email::checkEmail($c->mail)) { $email = $email . $sep_comma . $c->mail; if ($email) { $sep_comma = ", "; } } } return $email; }
</div> </div> <?php if (Module::isRegistered('Registration') && $settings['allow_registration']) { ?> <div class="boxCommon"> <div class="boxTitle<?php echo T_HTMLBOX_ADMIN; ?> "> Activate Users </div> <div class="boxBody"> <?php $retiredCoaches = Coach::getCoaches('retired = 2'); if (empty($retiredCoaches)) { echo 'No coaches to activate!'; } else { ?> <table> <?php foreach ($retiredCoaches as $retiredCoach) { if ($coach->mayManageObj(T_OBJ_COACH, $retiredCoach->coach_id)) { ?> <tr> <td><?php echo $retiredCoach->name; ?> </td> <td><?php
public function AdminEmails() { $email = $this->email_admin; $sep_comma = ""; if ($email) { $sep_comma = ", "; } $coaches = Coach::getCoaches(); foreach ($coaches as $c) { if ($c->ring === Coach::T_RING_GLOBAL_ADMIN && $this->chk_email_Admin($c->mail)) { $email = $email . $sep_comma . $c->mail; if ($email) { $sep_comma = ", "; } } } return $email; }