?>
/images/arrow.gif></a>
				</th>
				<th colspan=2>Classe <a href=gestion.php?id_inst=<?php 
echo $id_inst;
?>
&sort=1><img border=0 Src=<?php 
echo $root;
?>
/images/arrow.gif></a>
				</th>
				<th>
					Dispo
				</th>
			</tr>
<?php 
$i = 0;
foreach ($joueur as $j) {
    echo "\r\n\t\t<tr class=player " . ($mygroup[$j['id_joueur']]['nom'] ? 'style=background-color:#cee8ce' : '') . ">\r\n\t\t\t<td width=25px;>\r\n\t\t\t\t<input type=checkbox name=player[" . $j['id_joueur'] . "] value=1 " . ($taken[$j['id_joueur']] && !$mygroup[$j['id_joueur']] && $j['id_joueur'] != $id || $j['blacklisted'] || $j['dispo'] == 3 ? 'DISABLED' : '') . " " . ($mygroup[$j['id_joueur']] ? 'CHECKED' : '') . ">\r\n\t\t\t</td>\r\n\t\t\t<td>\r\n\t\t\t\t" . $j['nom'] . " " . ($j['blacklisted'] ? '(Banni)' : '') . "\r\n\t\t\t</td>\r\n\t\t\t<td style='width:25px;background-color:black;border-bottom:1px solid white'>\r\n\t\t\t\t<img  style=width:100%; name=" . $j['classe'] . " src=" . $root . "/images/classes/" . rem_acc(strtolower($j['classe'])) . ".gif>\r\n\t\t\t</td>\r\n\t\t\t<td>\r\n\t\t\t\t&nbsp;" . $j['classe'] . "\r\n\t\t\t</td>\r\n\t\t\t<td class=dispo_" . intval($j['dispo']) . ">&nbsp;" . $dispo[intval($j['dispo'])] . "\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t";
    $i++;
}
echo '	
		<tr>
			<td colspan=4 align=center>	
				<input type=submit name=select value=Sélectionner>
			</td>
		</tr>
		</form>
		</table>
	';
include 'footer.php';
예제 #2
0
        $read = implode(',', $read);
        mysql_query("UPDATE " . prefix('forum') . " SET read_by='{$read}' WHERE id_file='{$id_file}'");
        include 'header.php';
        ?>
			<big><a href=forum.php><?php 
        echo $base['display'];
        ?>
 : Index du Forum</a>> <?php 
        echo $first['titre'];
        ?>
</big>
			<table style=width:800px class=forum>
		<?php 
        $i = 0;
        foreach ($mess as $m) {
            echo "\r\n\t\t\t\t\t\t<tr " . ($i % 2 ? 'class=odd' : '') . ">\r\n\t\t\t\t\t\t\t<th rowspan=2 class=info style=background-color:black;>\r\n\t\t\t\t\t\t\t\t<a href='info_player.php?player=" . $m['id_joueur'] . "'>\r\n\t\t\t\t\t\t\t\t\t" . $m['nom'] . "<br>\r\n\t\t\t\t\t\t\t\t\t<!--<img src=image.php?race=" . $m['race'] . "&class=" . $m['classe'] . ">-->\r\n\t\t\t\t\t\t\t\t\t<img src=" . $root . "/images/races/" . strtolower($m['race']) . ".jpg>\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<!--<img style=width:20px src=" . $root . "/images/classes/" . rem_acc(strtolower($m['classe'])) . ".gif>-->&nbsp;" . ($m['poster'] == $id ? "<a href=forum.php?edit=" . $m['id_mess'] . "&action=post><img src=" . $root . "/images/edit.gif></a><a href=forum.php?del=" . $m['id_mess'] . "&action=del><img src=" . $root . "/images/del.gif></a>" : '') . "&nbsp\r\n\t\t\t\t\t\t\t</th>\r\n\t\t\t\t\t\t\t<th style=height:15px>" . $m['titre'] . "\r\n\t\t\t\t\t\t\t</th>\r\n\t\t\t\t\t\t\t<th>" . aff_date($m['date']) . "\r\n\t\t\t\t\t\t\t</th>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td colspan=2 align=justify>" . bb(nl2br(strip_tags($m['data']))) . "\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t";
            $i++;
        }
        ?>
			<form action=forum.php?action=post&reply=<?php 
        echo $id_file;
        ?>
 method=POST>
				<tr>
					<td colspan=3 style='border-top:1px solid green'>
						<input type=submit value=Repondre style=width:150px;>
					</td>
				</tr>
			</form>
			</table>
		<?php 
예제 #3
0
            foreach ($group as $g) {
                echo "\r\n\t\t\t\t\t\t<td style=width:120px;>\r\n\t\t\t\t\t\t\tGroupe de <b>" . $g['real_leader_name'] . "</b>\r\n\t\t\t\t\t\t\t<table style=width:130px;margin-left:7px cellspacing=0>\r\n\t\t\t\t\t\t\t\t" . ($joueur[$g['leader']]['nom'] ? "\r\n\t\t\t\t\t\t\t\t<tr class=leader>\r\n\t\t\t\t\t\t\t\t\t<td style=background-color:black;width:38px>\r\n\t\t\t\t\t\t\t\t\t\t<img style=width:100% src=" . $root . "/images/classes/" . rem_acc(strtolower($joueur[$g['leader']]['classe'])) . ".gif>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t" . $joueur[$g['leader']]['nom'] . "\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t" : '') . "\r\n\t\t\t\t\t";
                if ($g['players'][0]) {
                    foreach ($g['players'] as $p) {
                        echo "\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t<td style=background-color:black;>\r\n\t\t\t\t\t\t\t\t\t\t<img src=" . $root . "/images/classes/" . rem_acc(strtolower($joueur[$p]['classe'])) . ".gif>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t<td class=player>\r\n\t\t\t\t\t\t\t\t\t\t" . $joueur[$p]['nom'] . "\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t";
                    }
                }
                echo "\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t";
                $i++;
            }
            break;
        default:
            $c_key = array_keys($classe);
            foreach ($classe as $c) {
                if ($classes[$c]) {
                    echo "\r\n\t\t\t\t\t\t\t<td style=width:120px;>\r\n\t\t\t\t\t\t\t\t<table style=width:130px; cellspacing=0>\r\n\t\t\t\t\t\t\t\t\t<tr class=leader>\r\n\t\t\t\t\t\t\t\t\t\t<td style=background-color:black;width:38px><img style=width:100% src=" . $root . "/images/classes/" . rem_acc(strtolower($c)) . ".gif>\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t\t" . $c . "s<br>(" . $count_classe[$c] . ")\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t";
                    foreach ($classes[$c] as $p) {
                        echo "\r\n\t\t\t\t\t\t\t\t\t<tr class=player>\r\n\t\t\t\t\t\t\t\t\t\t<td colspan=2>\r\n\t\t\t\t\t\t\t\t\t\t\t" . $joueur[$p]['nom'] . "\r\n\t\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t";
                    }
                    echo "\r\n\t\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t";
                }
            }
            break;
    }
    echo "<td>&nbsp;</td></tr></table>";
} elseif ($player) {
    $player = intval($_GET['player']);
    $sql = "\r\n\t\t\tSELECT J.*, L2.id_joueur leader_id, B.id_joueur blacked, L.*\r\n\t\t\tFROM (" . prefix('joueurs') . " J)\r\n\t\t\tLEFT JOIN " . prefix('blacklist') . " B ON B.id_joueur=J.id_joueur\r\n\t\t\tLEFT JOIN " . prefix('liens') . " L \tON L.id_joueur=J.id_joueur\r\n\t\t\tLEFT JOIN " . prefix('liens') . " L2 \tON L2.id_inst=L.id_inst AND L2.is_lead='1' AND L2.id_leader=L.id_leader\r\n\t\t\tWHERE J.id_joueur = '{$player}'\r\n\t\t";
    //SELECTION DES DONNEES DU PERSO
    $instances = array();
    $leader = array();
            foreach ($mail as $m) {
                echo "\r\n\t\t \t\t<tr>\r\n\t\t \t\t\t<td>" . $m['nom'] . "</td>\r\n\t\t \t\t\t<td><img src=images/" . $m['img'] . "></td>\r\n\t\t \t\t\t<td>" . $m['status'] . "</td>\r\n\t\t \t\t</tr>";
            }
            ?>
			</table>
			<?php 
        } elseif ($rank && ($rank >= 3 || $id == $grp)) {
            $msg['erreur'] = "Instance trop ancienne pour envoyer les mails.";
        }
        break;
        //Par défaut affichage par classe
    //Par défaut affichage par classe
    default:
        foreach ($classe as $c) {
            if ($classes10[$c]) {
                $img_classe = rem_acc($c);
                $img_classe = strtolower($img_classe);
                //Image de la classe et nombre de membre selectionné dans cette classe
                echo "\r\n\t\t\t\t\t\t<td style=width:120px;>\r\n\t\t\t\t\t\t\t<table style=width:130px; cellspacing=0>\r\n\t\t\t\t\t\t\t\t<tr class=leader>\r\n\t\t\t\t\t\t\t\t\t<td style=background-color:black;width:38px>\r\n\t\t\t\t\t\t\t\t\t\t<img style=width:100% src=" . $root . "/images/classes/" . $img_classe . ".gif>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t<td colspan=2>\r\n\t\t\t\t\t\t\t\t\t\t" . $c . "s<br>(" . $count_classe10[$c] . ")\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>";
                //Liste des joueurs
                foreach ($classes10[$c] as $p) {
                    echo "\r\n\t\t\t\t\t\t\t\t<tr class=player>\r\n\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t" . ($rank ? "<input type=checkbox>" : '') . " \r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t<a href=info_player.php?player=" . $joueur10[$p]['id_joueur'] . ">" . $joueur10[$p]['nom'] . "</a>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t<a href=details.php?id_inst=" . $id_inst . "&delraid=" . $joueur10[$p]['id_joueur'] . "><img alt='Supprimer ce joueur du raid' src=images/del.gif height=15 width=15></a>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>";
                }
                echo "\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t</td>";
            }
        }
        break;
}
echo "\r\n\t<td width=100%>&nbsp;</td>\r\n\t</tr>\r\n</table>";
include 'footer.php';
?>