Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 18.118.28.31
<?php
session_start();
include_once('inc/headers.inc.php');
// Check the stage
if ( ! isset($_GET[stage]) || $_GET[stage] == '') {
//$_GET[stage] = 1;
}
if (isset($_GET[id_season])){
$id_season = $_GET[id_season];
}
if (isset($_POST[id_season])){
$id_season = $_POST[id_season];
}
if ($sSortDirLink == ""){
$sSortDirLink = "asc";
}
if (isset($_GET[id_season]) && isset($_GET[team_id])){
if (isset($_GET[sort])){
if (isset($_GET[dir])){
$sSortDirLink = $_GET[dir];
}
if ($_GET[sort] == 'taille1'){
$_GET[sort] = "taille1 $sSortDirLink, taille2 $sSortDirLink, taille3";
}
$sortorder = " order by " . $_GET[sort] . " " . $sSortDirLink;
}
else{
$sortorder = "";
}
if ($_GET[team_id] == "all"){
$whereforteam = "";
}
else{
$whereforteam = " AND id_team = ".$_GET[team_id]." ";
}
if ($_SESSION['accesslevel'] == "admin"){
$TeamDatasql = "SELECT players_evaluated.profile_id, avg( players_evaluated.cr_value_0 ) AS cr_value_0, avg( players_evaluated.cr_value_1 ) AS cr_value_1, avg( players_evaluated.cr_value_2 ) AS cr_value_2, avg( players_evaluated.cr_value_3 ) AS cr_value_3,
avg( players_evaluated.cr_value_4 ) AS cr_value_4, avg( players_evaluated.cr_value_5 ) AS cr_value_5, avg( players_evaluated.cr_value_6 ) AS cr_value_6,
avg( players_evaluated.cr_value_7 ) AS cr_value_7, avg( players_evaluated.cr_value_8 ) AS cr_value_8, avg( players_evaluated.cr_value_9 ) AS cr_value_9, avg( players_evaluated.cr_value_10 ) AS cr_value_10, avg( players_evaluated.cr_value_11 ) AS cr_value_11,
avg( players_evaluated.cr_value_12 ) AS cr_value_12, avg( players_evaluated.cr_value_13 ) AS cr_value_13, avg( players_evaluated.cr_value_14 ) AS cr_value_14, avg( players_evaluated.cr_value_15 ) AS cr_value_15, avg( players_evaluated.cr_value_16 ) AS cr_value_16, avg( players_evaluated.cr_value_17 ) AS cr_value_17, avg( players_evaluated.cr_value_18 ) AS cr_value_18,
avg( players_evaluated.cr_value_19 ) AS cr_value_19, avg( players_evaluated.cr_value_20 ) AS cr_value_20, avg( players_evaluated.cr_value_21 ) AS cr_value_21,
avg( players_evaluated.cr_value_22 ) AS cr_value_22, avg( players_evaluated.cr_value_23 ) AS cr_value_23, avg( players_evaluated.cr_value_24 ) AS cr_value_24, profiles.nom,profiles.prenom, profiles.numero, profiles.pos, profiles.tir, levels.level_abbreviation, teams.team_name, states.state_name
FROM lhjmqcsr_season_0708_pii.players_evaluated
INNER JOIN lhjmqcsr_season_0708_pii.profiles ON profiles.id = players_evaluated.profile_id
INNER JOIN lhjmqcsr_season_0708_pii.levels ON levels.id = profiles.level_id
INNER JOIN lhjmqcsr_season_0708_pii.teams ON teams.id = profiles.id_team
INNER JOIN lhjmqcsr_season_0708_pii.states ON states.id = profiles.province_id
INNER JOIN lhjmqcsr_season_0708_pii.evaluators ON evaluators.id = players_evaluated.id_evaluator
WHERE players_evaluated.saison_id = ".$_GET[id_season]." AND profiles.pos != 'G' ". $whereforteam ."
AND evaluators.access_level = 'evaluateur'
GROUP BY players_evaluated.profile_id".$sortorder;
}
else
{
$TeamDatasql = "SELECT evaluators.id as eid,players_evaluated.status as statusid, players_evaluated.*,profiles.nom,profiles.prenom,profiles.numero,profiles.pos,profiles.tir,levels.level_abbreviation,teams.team_name,states.state_name
FROM lhjmqcsr_season_0708_pii.profiles
LEFT JOIN lhjmqcsr_season_0708_pii.levels ON levels.id = profiles.level_id
LEFT JOIN lhjmqcsr_season_0708_pii.teams ON teams.id = profiles.id_team
LEFT JOIN lhjmqcsr_season_0708_pii.states ON states.id = profiles.province_id
LEFT OUTER JOIN lhjmqcsr_season_0708_pii.players_evaluated ON players_evaluated.profile_id = profiles.id
LEFT OUTER JOIN lhjmqcsr_season_0708_pii.evaluators ON evaluators.id = players_evaluated.id_evaluator
WHERE (evaluators.id IS NULL OR evaluators.id =".$_SESSION['evaluatorid'].") AND profiles.saison_id = ".$_GET[id_season]. " and players_evaluated.id is not null AND pos != 'G' " . $whereforteam .$sortorder;;
}
$aTeamDatacount = mysql_query($TeamDatasql, $mysql_link);
if ($sSortDirLink == "asc")
{
$sSortDirLink = "desc";
}
else{
$sSortDirLink = "asc";
}
}
?>
<style>
.input_err0 { background: #CCFF99; }
.input_err1 { background: #FFFF00; }
.input_err2 { background: #CCFFFF; }
.input_err3 { background: #FFEEEE; }
.input_err4 { background: #FFAFFF; }
.input_err5 { background: #00FFF0; }
.input_err6 { background: #B2FFDF; }
.input_err7 { background: #FFDD9B; }
.input_err8 { background: #FBFFBC; }
.input_err9 { background: #E3E5FF; }
.input_in { background: #E8E9F5; }
.input_out { background: #FFFFFF; }
</style>
</head>
<body bgcolor="#BBBFCE" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
<?php
$sHeaderSlogan = "Rapport des criteres des joueurs";
include_once('inc/page_top.inc.php');
if(isset($_GET[id_season])){
$aCriterias = mysql_fetch_assoc(mysql_query($sql = "SELECT * FROM lhjmqcsr_season_0708_pii.criterias1 WHERE saison_id = ".$_GET[id_season]." ", $mysql_link));
}
?>
<table cellpadding=0 cellspacing=0 border=0 width="100%">
<tr>
<td>
<?php
$sDestination = 'reportcsr3';
include_once('inc/season_select.inc.php');
if ($sThisDbExists) {
$aGamesData = mysql_query($sql = "SELECT * FROM lhjmqcsr_season_0708_pii.teams WHERE saison_id = ".$_GET[id_season]." ORDER BY team_name DESC", $mysql_link);
if (mysql_num_rows($aGamesData) > 0) {
?>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td height=20></td>
</tr>
</table>
<form action="" method="GET" name="season_games_form" id="season_games_form">
<table cellpadding=0 cellspacing=0 border=0 width=940>
<tr>
<td width=100 valign=top>
<table cellpadding=0 cellspacing=0 border=0 class="blackText11px">
<tr>
<td colspan=2><b>Choisir un equipe :</b></td>
</tr>
<tr>
<td height=10></td>
</tr>
<tr>
<td>
<select name="team_id" id="team_id" class="blackText11px" onchange='season_games_form.submit();'>
<option value="">Choisissez une equipe...</option>
<option value="all" <?if($_GET[team_id] == "all" ){echo "selected"; }?> >Tous les equipes</option>
<?
while ($aGameData = mysql_fetch_assoc($aGamesData)) {
if($_GET[team_id] == $aGameData[id] ){$selectstatut = "selected"; }else{$selectstatut = "";}
echo '<option value="'.$aGameData[id].'" '.$selectstatut.'>'.$aGameData[team_name].'</option>';
}
?>
</select>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type=hidden name="id_season" value="<?echo $id_season;?>">
</form>
<?
}
?>
</td>
</tr>
</table>
<?
}
?>
<br>
<br>
<?
if (isset($_GET[id_season]) && isset($_GET[team_id]) && $_GET[team_id] != ""){
if (mysql_num_rows($aTeamDatacount) > 0){
echo '<table border=0 cellpadding=5 cellspacing=0 class="outlinetab" bgcolor=white>
<tr class="darkblueRow" >
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='nom' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=nom&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par nom" class="orangeText11px lnkBaseOrange">Nom</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='prenom' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=prenom&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par prenom" class="orangeText11px lnkBaseOrange">Prenom</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='numero' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=numero&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par numero" class="orangeText11px lnkBaseOrange">#</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='pos' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=pos&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par position" class="orangeText11px lnkBaseOrange">Pos</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='tir' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=tir&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par tir" class="orangeText11px lnkBaseOrange">Tir</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='team_name' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=team_name&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par Equipe" class="orangeText11px lnkBaseOrange">Equipe</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='class_csr' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=level_abbreviation&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par classe" class="orangeText11px lnkBaseOrange">Classe</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>
<td nowrap class="orangeText11px" align="center">'
.($sSortString=='province_id' ? $sSortArrow : "").'<b><a href="'.$_SERVER[PHP_SELF].'?sort=province_id&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par province" class="orangeText11px lnkBaseOrange">PV</a></b>
</td>
<td>
<img src="images/blank.gif" width=10 height=1 border=0 />
</td>';
?>
<?= ($aCriterias[cr_name_0]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_0&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_0].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_1]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_1&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_1].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_2]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_2&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_2].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_3]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_3&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_3].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_4]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_4&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_4].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_5]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_5&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_5].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_6]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_6&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_6].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_7]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_7&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_7].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_8]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_8&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_8].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_9]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_9&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_9].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_10]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_10&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_10].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_11]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_11&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_11].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_12]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_12&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_12].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_13]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_13&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_13].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_14]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_14&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_14].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_15]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_15&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_15].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_16]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_16&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_16].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_17]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_17&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_17].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_18]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_18&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_18].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_19]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_19&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_19].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_20]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_20&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_20].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_21]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_21&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_21].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_22]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_22&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_22].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_23]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_23&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_23].'</a></b></td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_24]!='' ? '<td nowrap class="vheader" align="right"><b><a href="'.$_SERVER[PHP_SELF].'?sort=cr_value_24&team_id='.$_GET[team_id].'&dir='.$sSortDirLink.'" title="Ordonner par critere" class="orangeText11px lnkBaseOrange">'.$aCriterias[cr_name_24].'</a></b></td>'."\n" : '') ?>
<?
echo '</tr>';
}
$i = 0;
while ($aStatesData = mysql_fetch_assoc($aTeamDatacount)) {
$iCurrentRow = $i % 2;
if ($iCurrentRow != 0) {
$sRowClass = 'blue_row';
} else {
$sRowClass = '';
}
$sDeleteId = 'delete_'.$aStatesData[id];
echo '<tr class="'.$sRowClass.'">
<td>';
if ($_SESSION['accesslevel'] == "admin"){
echo '<label onMouseOver="style.cursor=\'hand\'" onclick="get_down_comments(\'div_'.$aStatesData[numero].'\')">
<img src="../images/icons/add.gif" name="" id="" border=0 alt="" />
</label>';
}
echo ' </td>
<td nowrap class="blackText11px">'
.$aStatesData[nom].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[prenom].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[numero].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[pos].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[tir].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[team_name].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[level_abbreviation].'
</td>
<td>
</td>
<td nowrap class="blackText11px">'
.$aStatesData[state_name].'
</td>
<td>
</td>';
?>
<?= ($aCriterias[cr_name_0]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_0].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_1]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_1].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_2]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_2].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_3]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_3].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_4]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_4].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_5]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_5].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_6]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_6].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_7]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_7].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_8]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_8].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_9]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_9].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_10]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_10].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_11]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_11].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_12]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_12].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_13]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_13].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_14]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_14].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_15]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_15].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_16]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_16].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_17]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_17].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_18]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_18].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_19]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_19].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_20]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_20].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_21]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_21].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_22]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_22].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_23]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_23].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_24]!='' ? '<td class="blackText11px" align="center">'.$aStatesData[cr_value_24].'</td>'."\n" : '') ?>
<?
echo '</tr>';
echo '<tbody id="div_'.$aStatesData[numero].'" style="display:none;">';
echo '<tr class="'.$sRowClass.'">
<td colspan="50">';
if (isset($_SESSION['evaluatorid']) && $_SESSION['accesslevel'] == "admin"){
$sql = "SELECT players_evaluated.*, profiles.nom,profiles.prenom, profiles.numero, profiles.pos, profiles.tir, levels.level_abbreviation, teams.team_name, states.state_name,evaluators.evaluator_lname, evaluators.evaluator_fname
FROM lhjmqcsr_season_0708_pii.players_evaluated
INNER JOIN lhjmqcsr_season_0708_pii.profiles ON profiles.id = players_evaluated.profile_id
INNER JOIN lhjmqcsr_season_0708_pii.levels ON levels.id = profiles.level_id
INNER JOIN lhjmqcsr_season_0708_pii.teams ON teams.id = profiles.id_team
INNER JOIN lhjmqcsr_season_0708_pii.states ON states.id = profiles.province_id
INNER JOIN lhjmqcsr_season_0708_pii.evaluators ON evaluators.id = players_evaluated.id_evaluator
WHERE players_evaluated.saison_id = ".$_GET[id_season]." AND players_evaluated.profile_id = " . $aStatesData[profile_id] . "
AND evaluators.access_level = 'evaluateur' ";
//echo $sql;
$statsothersResult = mysql_query($sql, $mysql_link);
if ($statsothersResult != ""){
//echo '<table width=100% border=1 cellspacing="0" cellpadding="0">';
while ($statsothers = mysql_fetch_assoc($statsothersResult)) {
echo '<tr><td></td>
<td nowrap colspan="50" class="blackText11px" style="background-color:#e8e9f5;">
Evaluateur : <b>'.$statsothers[evaluator_fname].','.$statsothers[evaluator_lname].'</b>
</td>
</tr>';
echo '
<tr>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[nom].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[prenom].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[numero].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[pos].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[tir].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[team_name].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[level_abbreviation].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[state_name].'</td>
<td></td>';
?>
<?= ($aCriterias[cr_name_0]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_0].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_1]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_1].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_2]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_2].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_3]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_3].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_4]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_4].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_5]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_5].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_6]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_6].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_7]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_7].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_8]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_8].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_9]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_9].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_10]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_10].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_11]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_11].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_12]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_12].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_13]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_13].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_14]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_14].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_15]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_15].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_16]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_16].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_17]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_17].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_18]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_18].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_19]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_19].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_20]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_20].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_21]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_21].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_22]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_22].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_23]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_23].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_24]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_24].'</td>'."\n" : '') ?>
</tr>
<? }
//echo '</table>';
}
}
$sql = "SELECT players_evaluated.*, profiles.nom,profiles.prenom, profiles.numero, profiles.pos, profiles.tir, levels.level_abbreviation, teams.team_name, states.state_name,evaluators.evaluator_lname, evaluators.evaluator_fname
FROM lhjmqcsr_season_0708_pii.players_evaluated
INNER JOIN lhjmqcsr_season_0708_pii.profiles ON profiles.id = players_evaluated.profile_id
INNER JOIN lhjmqcsr_season_0708_pii.levels ON levels.id = profiles.level_id
INNER JOIN lhjmqcsr_season_0708_pii.teams ON teams.id = profiles.id_team
INNER JOIN lhjmqcsr_season_0708_pii.states ON states.id = profiles.province_id
INNER JOIN lhjmqcsr_season_0708_pii.evaluators ON evaluators.id = players_evaluated.id_evaluator
WHERE players_evaluated.saison_id = ".$_GET[id_season]." AND players_evaluated.profile_id = " . $aStatesData[profile_id] . "
AND evaluators.access_level = 'admin' ";
//echo $sql;
$statsothersResult = mysql_query($sql, $mysql_link);
//echo $sql;
if ($statsothersResult != ""){
//echo '<table width=100% border=1 >';
while ($statsothers = mysql_fetch_assoc($statsothersResult)) {
echo '<tr ><td></td><td nowrap colspan=50 class="blackText11px" style="background-color:#e8e9f5;">Evaluateur : <b>Admin</b></td></tr>';
echo '<tr>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[nom].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[prenom].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[numero].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[pos].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[tir].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[team_name].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[level_abbreviation].'</td>
<td></td>
<td nowrap class="blackText11px">'.$statsothers[state_name].'</td>
<td></td>';
?>
<?= ($aCriterias[cr_name_0]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_0].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_1]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_1].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_2]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_2].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_3]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_3].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_4]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_4].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_5]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_5].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_6]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_6].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_7]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_7].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_8]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_8].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_9]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_9].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_10]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_10].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_11]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_11].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_12]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_12].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_13]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_13].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_14]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_14].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_15]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_15].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_16]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_16].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_17]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_17].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_18]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_18].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_19]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_19].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_20]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_20].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_21]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_21].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_22]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_22].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_23]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_23].'</td>'."\n" : '') ?>
<?= ($aCriterias[cr_name_24]!='' ? '<td class="blackText11px" align="center">'.$statsothers[cr_value_24].'</td>'."\n" : '') ?>
</tr>
<?
}
//echo '</table>';
}
echo '</td></tr></tbody>';
$i++;
}
}
?>
</table>
</form>
<br>
</td>
</tr>
</table>
</body>
</html>
|