queryRow("SELECT name, id, ts, status, type FROM league_grids WHERE id = '$id'"); $replacementset['GridName'] = $grid['name']; $replacementset['GridID'] = $grid['id']; $replacementset['GridDate'] = date("d.m.y", $grid['ts']); $replacementset['GridTime'] = date("H:i", $grid['ts']); $replacementset['disabled'] = ""; $replacementset['msg'] = ""; $replacementset['teams'] = ""; if($grid['status']=="running"){ $replacementset['disabled'] = "disabled"; $replacementset['msg'] = "
Das Turnier hat bereits begonnen.
"; }else if(BBUSERID=="BBUSERID"){ $replacementset['disabled'] = "disabled"; $replacementset['msg'] = "
Bitte registriere dich um dich zu diesem Turnier anzumelden.
"; }else if($grid['type']=="player" and $mdb2->queryRow("SELECT userid, grid_id FROM league_contestants WHERE userid = '".BBUSERID."' AND grid_id = '".$grid['id']."'")){ $replacementset['disabled'] = "disabled"; $replacementset['msg'] = "
Du bist bereits angemeldet.
"; }else if($grid['type']=="team" and userid_contestantid(BBUSERID, $grid['id'])!=NULL or $mdb2->queryRow("SELECT player1, player2, grid_id FROM league_teams WHERE (player1 = '".userid_contestantid(BBUSERID, $grid['id'])."' OR player2 = '".userid_contestantid(BBUSERID, $grid['id'])."') AND grid_id = '".$grid['id']."'")){ $replacementset['disabled'] = "disabled"; $replacementset['msg'] = "
Du bist bereits angemeldet.
"; } if($grid['type']=="team"){ $replacementset['teams'] .= "" ."" ."" .""; } $replacementset['FAQLink'] = fetch_link('content.php/12-Cup-FAQ'); $html = $output->load_template("signup_news"); $html = $output->fill_template($html, $replacementset); /*$signup = '
Anmeldung für das Turnier "'.$GridName.'" am '.$GridDate.'
Hier kannst du dich für das Turnier anmelden. Du musst nur deinen Battle.net Nickname und Character Code angeben. '.$msg.'

('.$FAQLink.'Fragen und Antworten zur Anmeldung)

';*/ return $html; } } function mail_form(){ global $output; $html = $output->load_template("news_mail"); $html = $output->fill_template($html, $replacementset); return $html; } ?>