All pastes #965234 Raw Edit

Anonymous

public php v1 · immutable
#965234 ·published 2008-03-31 21:04 UTC
rendered paste body
//DEBUT AJOUTER-SUPPRIMER-EDITER CALENDRIER//function editresultserie($id){	global $ModPath, $NPDS_Prefix, $ThisFile;	menuprincipal();	Opentable();	$query = sql_query("SELECT id,idclubD,idequipD,idclubV,idequipV,feuilleD,departD,com,score FROM ".$NPDS_Prefix."cha_match where id='$id'");	list($tid,$idclubD,$idequipD,$idclubV,$idequipV,$feuilleD,$departD,$com,$score)=sql_fetch_row($query);	echo '<div class="cadre_admin">'	.'<div align="center" class="titre_admin">'.adm_citation_trad('G&eacute;rer les r&eacute;sultats').'</div><br />'	.'<form action="'.$ThisFile.'" method="post" name="adminForm">'	.'<input type="hidden" name="id" value="'.$id.'">'	/*equipe domicile*/	.'<table width="99%" cellpadding="3" cellspacing="3" align="center" border="0">'	.'<tr class="sous_titre_module" align="center">';	$query2 = sql_query("SELECT nom FROM ".$NPDS_Prefix."cha_club where idclub='$idclubD'");	list($nomD)=sql_fetch_row($query2);	echo '<td width="50%" colspan="6">'.adm_citation_trad('Domicile').' '.$nomD.'</td>'	.'</tr>'	.'<tr class="titre_admin" align="center">'	.'<td>'.adm_citation_trad('ID').'</td>'	.'<td>'.adm_citation_trad('Joueurs').'</td>'	.'<td>'.adm_citation_trad('Feuille de match').'</td>'	.'<td>'.adm_citation_trad('Equipe de d&eacute;part').'</td>'	.'</tr>';	$j=0;	$query1 = sql_query("SELECT id, nom, pren FROM ".$NPDS_Prefix."cha_joueurs where idequip='$idequipD' order by nom asc, pren asc");	while (list($sid,$nom,$pren)=sql_fetch_row($query1))	{$p=0;		echo '<tr class="titre_admin">'		.'<td align="center">'.$sid.'</td>'		.'<td>'.$nom.' '.$pren.'</td>';		echo '<td align="center">';	$query=sql_query("select feuilleD from ".$NPDS_Prefix."cha_matchstat where idmatch='$tid'");	list($feuilleD) = sql_fetch_row($query);	$feuil=explode(",",$feuilleD);	$affich=false;	if ($feuil)	{		foreach($feuil as $feuilaff)		{			if ($feuilaff==$sid)			{				if (!$affich)				{					echo '<input type="checkbox" name="departD['.$j.']" value="'.$sid.'" checked>';				}			}		}	}	else	{		echo '<input type="checkbox" name="departD['.$j.']" value="'.$sid.'">';	}		echo '</td>';		echo '<td align="center">'		/*$depD= explode(",", $departD);		if ($id == $depD[$k]) {$check1="checked";}		else if ($id != $depD[$k]) {$check1="";}*/		//echo '<input type="checkbox" name="departD['.$j.']" value="'.$row[id].'" '.$check1.'>'		.'</td>'		.'</tr>';$p++;		$j++;	}	echo '</td>'	.'</tr>'	.'</table>'	.'</form>'	.'</div>';	Closetable();}//FIN AJOUTER-SUPPRIMER-EDITER JOUEUR//