AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.145.69.185


Current Path : /var/www/lhjmq-records.qc.ca/public_html/administration/op_temptransfers/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/administration/op_temptransfers/selectplayer.php

<?

//Modules information
$moduleclassid = "{g49o-3h56swk}-(491th2j-m3hyf3t)";
$permission = 1;

//Load the standard includes
include("../includes/secur_isloggedin.php");
include("../includes/mysql_connect.php");
include("../includes/secur_accessverify.php");

//Libraries
include('../lib/team.php');
include('../lib/arenas.php');

if ($selStyle != 1) {
	$selStyle = 0;
}

$game = mysql_fetch_assoc(mysql_query('SELECT * FROM parties WHERE id_partie = '.$_GET['id_partie'], $mysql_link));
$teams = team_get_data($mysql_link, $game['id_equipe_vis'], $game['date_match']);
$teams += team_get_data($mysql_link, $game['id_equipe_dom'], $game['date_match']);

$entrees_merged = array();

if ($selStyle == 0) {
	$entrees = mysql_query($sql = "SELECT pj.*, tpos.description_fr AS position FROM parties_joueurs AS pj LEFT JOIN types_positions AS tpos ON tpos.id_type_pos = pj.id_position WHERE pj.temporaire = 1 AND pj.id_partie = " . $id_partie . " ORDER BY nom, prenom", $mysql_link);
	while ($entree = mysql_fetch_assoc($entrees)) {  //joueurs
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["ville"] = $teams[$entree[id_equipe]]['hist_city'];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["numero"] = $entree[numero];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["nom"] = $entree[nom] . ", " . $entree[prenom];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["position"] = $entree[position];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["system_type"] = "4";
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["id_entree"] = $entree[id_partie_joueur];
	}
	$entrees = mysql_query($sql = "SELECT pe.*, tpers.description_fr AS position FROM parties_ent AS pe LEFT JOIN types_personnels AS tpers ON tpers.id_type_pers = pe.id_type_pers WHERE pe.temporaire = 1 AND pe.id_partie = " . $id_partie . " ORDER BY nom, prenom", $mysql_link);
	while ($entree = mysql_fetch_assoc($entrees)) {  //entraineurs
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["ville"] = $teams[$entree[id_equipe]]['hist_city'];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["numero"] = "-";
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["nom"] = $entree[nom] . ", " . $entree[prenom];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["position"] = $entree[position];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["system_type"] = "3";
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["id_entree"] = $entree[id_partie_ent];
	}
	$entrees = mysql_query($sql = "SELECT po.*, tpers.description_fr AS position FROM parties_off AS po LEFT JOIN types_personnels AS tpers ON tpers.id_type_pers = po.id_type_pers WHERE po.temporaire = 1 AND po.id_partie = " . $id_partie . " ORDER BY nom, prenom", $mysql_link);
	while ($entree = mysql_fetch_assoc($entrees)) {  //joueurs
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["ville"] = "LHJMQ - Officiel";
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["numero"] = "-";
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["nom"] = $entree[nom] . ", " . $entree[prenom];
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["position"] = $entree[position];
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["system_type"] = "2";
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["id_entree"] = $entree[id_partie_off];
	}
} else {
	$entrees = mysql_query($sql = "SELECT pj.*, tpos.description_fr AS position FROM parties_joueurs AS pj LEFT JOIN types_positions AS tpos ON tpos.id_type_pos = pj.id_position WHERE pj.id_partie = " . $id_partie . " ORDER BY nom, prenom", $mysql_link);
	while ($entree = mysql_fetch_assoc($entrees)) {  //joueurs
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["ville"] = $teams[$entree[id_equipe]]['hist_city'];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["numero"] = $entree[numero];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["nom"] = $entree[nom] . ", " . $entree[prenom];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["position"] = $entree[position];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["system_type"] = "4";
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - " . $entree[numero] . " - " . $entree[nom] . ", " . $entree[prenom]]["id_entree"] = $entree[id_partie_joueur];
	}
	$entrees = mysql_query($sql = "SELECT pe.*, tpers.description_fr AS position FROM parties_ent AS pe LEFT JOIN types_personnels AS tpers ON tpers.id_type_pers = pe.id_type_pers WHERE pe.id_partie = " . $id_partie . " ORDER BY nom, prenom", $mysql_link);
	while ($entree = mysql_fetch_assoc($entrees)) {  //entraineurs
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["ville"] = $teams[$entree[id_equipe]]['hist_city'];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["numero"] = "-";
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["nom"] = $entree[nom] . ", " . $entree[prenom];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["position"] = $entree[position];
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["system_type"] = "3";
		$entrees_merged[$teams[$entree[id_equipe]]['hist_city'] . " - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["id_entree"] = $entree[id_partie_ent];
	}
	$entrees = mysql_query($sql = "SELECT po.*, tpers.description_fr AS position FROM parties_off AS po LEFT JOIN types_personnels AS tpers ON tpers.id_type_pers = po.id_type_pers WHERE po.id_partie = " . $id_partie . " ORDER BY nom, prenom", $mysql_link);
	while ($entree = mysql_fetch_assoc($entrees)) {  //joueurs
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["ville"] = "LHJMQ - Officiel";
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["numero"] = "-";
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["nom"] = $entree[nom] . ", " . $entree[prenom];
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["position"] = $entree[position];
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["system_type"] = "2";
		$entrees_merged["ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ - 99999 - " . $entree[nom] . ", " . $entree[prenom]]["id_entree"] = $entree[id_partie_off];
	}
}
if (is_array($entrees_merged)) {
	ksort($entrees_merged);
	reset($entrees_merged);
}
?>
<html>
	<head>
		<title>Administration - www.lhjmq.qc.ca</title>
		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
		<link rel="stylesheet" href="../css/base.css" type="text/css">
		<link rel="stylesheet" href="../css/admintheme.css" type="text/css">
		<link rel="stylesheet" href="../css/tablespecials.css" type="text/css">
		<link href="../../css/links.css" rel="stylesheet" type="text/css">
		<link href="../../css/table.css" rel="stylesheet" type="text/css">
		<link href="../../css/tags.css" rel="stylesheet" type="text/css">
		<link href="../../css/text.css" rel="stylesheet" type="text/css">
	</head>
	<body bgcolor="#BBBFCE" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<form action="entry_selectmatch_script.php" method="post" name="matches" id="matches">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr><td background="../images/scoreboard_top.gif"><img src="../images/spacer.gif" width="1" height="11"></td></tr>
				<tr><td bgcolor="#E8E9F5" align="center"><p><strong><br />
				S&eacute;lection du joueur temporaire</strong><br />
        <br />
        <span class="blackText10px"><a href="log.php?id_saison=<?= $_GET['id_saison'] ?>" class="lnkBase10px">Voir le d&eacute;tail des changements effectu&eacute;s</a></span><br />
        <span class="blackText10px"><a href="../session/session_menu.php?currentmenu=ops" class="lnkBase10px">Retour au menu principal</a></span><br />
				<br /></p></td></tr>
				<tr><td background="../images/scoreboard_bottom.gif"><img src="../images/spacer.gif" width="1" height="10"></td></tr>
				<tr><td><img src="../images/spacer.gif" width="1" height="4"></td></tr>
			</table>
			<br />
			<table border="0" cellspacing="0" cellpadding="0" class="outlinetab">
				<tr><td bgcolor="#546085">
					<table width="401" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="8" bgcolor="#546085"><img src="../images/spacer.gif" width="8" height="1"></td>
							<td width="393" height="15" bgcolor="#546085"><span class="orangeText9px"><strong> Entr&eacute;es temporaire pour le match s&eacute;lectionn&eacute;</strong></span></td>
						</tr>
					</table>
				</td></tr>
				<tr align="center">
					<td bgcolor="#FFFFFF"><br />
						  <table width="95%" border="0" cellspacing="0" cellpadding="3">
              		<tr class="darkblueRow">
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
             				<td colspan="9" align="left" nowrap class="whiteText12px">
              					<input type="radio" name="selStyle" onClick="window.location = '?id_saison=<?= $_GET['id_saison'] ?>&id_partie=<?= $id_partie ?>&selStyle=0'" value="0"<?php if ($selStyle == 0) { echo " CHECKED"; } ?>>
              					Entr&eacute;es temporaires seulement
              					<input type="radio" name="selStyle" onClick="window.location = '?id_saison=<?= $_GET['id_saison'] ?>&id_partie=<?= $id_partie ?>&selStyle=1'" value="1"<?php if ($selStyle == 1) { echo " CHECKED"; } ?>>
              					Toutes les entr&eacute;es</td>
              				<td align="right" nowrap class="whiteText12px">&nbsp;</td>
         				</tr>
              		<tr class="darkblueRow">
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td align="right" nowrap class="whiteText12px">&nbsp;</td>
         				</tr>
              		<tr class="darkblueRow">
              				<td width="20" align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px"><strong>Team</strong></td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px"><strong>#</strong></td>
              				<td align="center" nowrap class="whiteText12px">&nbsp;</td>
              				<td align="center" nowrap class="whiteText12px"><strong>Nom</strong></td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td nowrap class="whiteText12px"><strong>Pos</strong></td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td nowrap class="whiteText12px">&nbsp;</td>
              				<td width="20" align="right" nowrap class="whiteText12px">&nbsp;</td>
         				</tr>
              		<?php
					foreach ($entrees_merged as $entree) {
						if (substr($rowClass,0,5) == "list1") {
							$rowClass = "list2Reg";
						} else {
							$rowClass = "list1Reg";
						}
					?>
					<tr class="<?= $rowClass ?>">
							<td nowrap class="blackText9px">&nbsp;</td>
							<td nowrap class="blackText9px">
              		<center>
              				<?= $entree[ville] ?>
         				</center>
							</td>
							<td nowrap class="blackText9px">&nbsp;</td>
							<td nowrap class="blackText9px">
								<center>
									<?= $entree[numero] ?>
								</center>
						</td>
							<td nowrap class="blackText9px">&nbsp;</td>
							<td nowrap class="blackText9px"><?= $entree[nom] ?></td>
							<td nowrap class="blackText9px">&nbsp;</td>
							<td nowrap class="blackText9px"><?= $entree[position] ?></td>
							<td align="right" nowrap class="blackText9px">&nbsp;</td>
							<td align="right" nowrap class="blackText9px"><a href="search_replacement.php?id_saison=<?= $_GET['id_saison'] ?>&id_partie=<?= $id_partie ?>&replace_this=<?= $entree[id_entree] ?>&selStyle=<?= $selStyle ?>&system_type=<?= $entree[system_type] ?>" class="lnkBase9px">Choisir cette entr&eacute;e</a></td>
							<td align="right" nowrap class="blackText9px">&nbsp;</td>
				</tr>
					<?php
					}
					?>
					</table>
				      <div align="left"><br />
                  		<a href="entry_selectmatch.php?id_saison=<?= $_GET['id_saison'] ?>&selStyle=<?= $selStyle ?>" class="lnkBase10px">Retour &agrave; la s&eacute;lection de matchs</a><br />
		      		</div></td>
				</tr>
				<tr><td bgcolor="#FFFFFF"><img src="../images/spacer.gif" width="1" height="8"></td></tr>
			</table>
	</form>
	</body>
</html>
<?
//Load the standard includes footers
include("../includes/mysql_cleanup.php");
?>