| Voir le sujet précédent :: Voir le sujet suivant |
| Auteur |
Message |
befa76
Inscrit le: 28 Mai 2007 Messages: 42
|
|
| Revenir en haut |
|
 |
cedmar21
Inscrit le: 12 Aoû 2007 Messages: 52
|
Posté le: Ven 12 Oct 2007, 08:55 Sujet du message: |
|
|
pour se qui est de mettre des images à la place de Min, CJ, CR, Buts (oubli pas de faire une copie de ton fichier avant)
c'est ici que sa ce passe vers la ligne 121
| Code: | echo "<tr class=trphpl3>
<td width=\"5%\" align=\"center\">Poste</td>
<td width=\"5%\" align=\"center\">N°</td>
<td width=\"8%\" align=\"center\">Pays</td>
<td width=\"25%\" align=\"center\">Joueur</td>
<td width=\"7%\" align=\"center\">Taille</td>
<td width=\"7%\" align=\"center\">Poids</td>
<td width=\"8%\" align=\"center\">Date</td>
<td width=\"5%\" align=\"center\">Tit.</td>
<td width=\"5%\" align=\"center\">Remp.</td>
<td width=\"8%\" align=\"center\">Min.</td>
<td width=\"5%\" align=\"center\">CJ.</td>
<td width=\"5%\" align=\"center\">CR.</td>
<td width=\"7%\" align=\"center\">Buts.</td>
</tr>"; |
la tu remplace Min, CJ, CR, Buts par
<image src=\"../consult/images/ce que tu veut.gif\" border=\"0\">
pour la barre se séparation j'ai rajouté ligne 119
juste après
| Code: | | echo "<table class=\"tablephpl2\" align=\"center\" cellspacing=\"0\" width=\"100%\"> |
rajoute
| Code: | | <tr class=\"trphpl3\"><td align=\"center\" colspan=\"13\"><b>$poste[$i]</b></td></tr>"; |
je crois que sais tout dit moi si s'est bien se que tu veut _________________ http://www.footajauxerre.com |
|
| Revenir en haut |
|
 |
befa76
Inscrit le: 28 Mai 2007 Messages: 42
|
|
| Revenir en haut |
|
 |
cedmar21
Inscrit le: 12 Aoû 2007 Messages: 52
|
Posté le: Sam 13 Oct 2007, 06:59 Sujet du message: |
|
|
je ne suis pas sur alors sauvegarde bien ton fichier avant
il faut que tu supprime cette partie pour moi elle se trouvait entre les lignes 137 et 150
| Code: | $poste = explode(",", $postes);
$nombre = count($poste);
$i=0;
while ($i<$nombre)
{
$requete = "SELECT phpl_joueurs.id, phpl_joueurs.nom, phpl_joueurs.prenom, DATE_FORMAT(phpl_joueurs.date_naissance, '%d/%m/%Y') as datefr,
phpl_joueurs.position_terrain,phpl_joueurs.drapeau,phpl_joueurs.nat,phpl_joueurs.poid,phpl_joueurs.taille, phpl_joueurs.num,phpl_effectif.id
FROM phpl_joueurs, phpl_effectif
WHERE phpl_joueurs.id=phpl_effectif.id_joueur
AND phpl_effectif.id_equipe='$equipe'
AND position_terrain='$poste[$i]'";
$result = mysql_query($requete);
echo "<table style=\"BORDER-BOTTOM: #000000 1px solid\" cellspacing=\"0\" align=center width=\"100%\">\n"; | *
tiens moi au courant mais je ne suis pas la ce week-end alors si sa ne marche pas je verais sa lundi _________________ http://www.footajauxerre.com |
|
| Revenir en haut |
|
 |
befa76
Inscrit le: 28 Mai 2007 Messages: 42
|
Posté le: Lun 15 Oct 2007, 18:09 Sujet du message: |
|
|
| c'est dans quel fIchier? car sur consult/effectif il n'y a pas c'est ligne....... |
|
| Revenir en haut |
|
 |
cedmar21
Inscrit le: 12 Aoû 2007 Messages: 52
|
Posté le: Mer 17 Oct 2007, 07:37 Sujet du message: |
|
|
je te met mon code
| Code: | <?php
//***********************************************************************/
// Phpleague : gestionnaire de championnat */
// ============================================ */
// */
// Version : 0.82 */
// http://phpleague.univert.org */
// */
// This program is free software. You can redistribute it and/or modify */
// it under the terms of the GNU General Public License as published by */
// the Free Software Foundation; either version 2 of the License. */
// */
//***********************************************************************/
// Support technique : http://phpleague.univert.org/forum */
// */
//***********************************************************************/
$postes = "Gardien,Défenseur,Milieu,Attaquant";
include ("avant.php");
require ("../config.php") ;
require ("../consult/fonctions.php");
ouverture ();
ENTETE2 ();
//Choix du championnat
if ((!isset($_REQUEST['champ'])) and ($id_equipe==""))
{
demande_champ ();
}
// Choix du club
elseif ((!isset($_REQUEST['id_clubs'])) and ($id_equipe==""))
{
$champ = $_REQUEST['champ'];
$query="SELECT phpl_clubs.id, phpl_clubs.nom, id_champ, id_club
FROM phpl_clubs, phpl_equipes
WHERE phpl_equipes.id_champ='$champ' and phpl_equipes.id_club=phpl_clubs.id
ORDER BY nom";
$result=mysql_query($query);
echo "<div align=\"center\"><font color=\"#000000\" size=\"2\"><u>".DETAILEQ_TITRE."</u></font>";
echo "<form action=\"\" method=\"get\">";
echo DETAILEQ_1;
echo "<select name=\"id_clubs\" onchange=\"javascript:document.location.href=('?champ=$champ&id_clubs='+this.value);\">";
echo "<option value=\"0\"> </option>";
while($row = mysql_fetch_array($result))
{
$row[1] = stripslashes($row[1]);
$a=$row[1]+1;
if ($row[0]==$id_clubs) echo (" <option value=\"$row[0]\" selected>$row[1]");
else {echo (" <option value=\"$row[0]\">$row[1]");}
echo ("</option>\n");
}
echo "</select>";
echo "</form></div>";
}
// Le choix du club étant fait on affiche la fiche du club
elseif ((isset($_REQUEST['id_clubs'])) or (!($id_equipe=="")))
{
$id_clubs = $_REQUEST['id_clubs'];
$champ = $_REQUEST['champ'];
if(!($id_equipe==""))
{
$query="SELECT phpl_equipes.id_champ,phpl_clubs.id,phpl_equipes.id
FROM phpl_equipes, phpl_clubs
WHERE phpl_equipes.id_club=phpl_clubs.id
and phpl_equipes.id='$id_equipe'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
{
$champ=$row[0];
$id_clubs=$row[1];
}
}
echo "<table class=\"tablephpl2\" cellspacing=\"0\" align=\"center\" width=\"100%\"><tr class=\"trphpl3\"><td align=\"center\"><b>Effectif</b></td></tr><tr><td>";
$query="SELECT phpl_equipes.id FROM phpl_equipes, phpl_clubs
WHERE phpl_clubs.id='$id_clubs' AND id_champ='$champ' AND phpl_clubs.id=phpl_equipes.id_club";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$equipe=$row[0];
echo "<table class=\"tablephpl2\" align=\"center\" cellspacing=\"0\" width=\"100%\">";
$poste = explode(",", $postes);
$nombre = count($poste);
$i=0;
while ($i<$nombre)
{
$requete = "SELECT phpl_joueurs.id, phpl_joueurs.nom, phpl_joueurs.prenom, DATE_FORMAT(phpl_joueurs.date_naissance, '%d/%m/%Y') as datefr,
phpl_joueurs.position_terrain,phpl_joueurs.drapeau,phpl_joueurs.nat,phpl_joueurs.poid,phpl_joueurs.taille, phpl_joueurs.num,phpl_effectif.id
FROM phpl_joueurs, phpl_effectif
WHERE phpl_joueurs.id=phpl_effectif.id_joueur
AND phpl_effectif.id_equipe='$equipe'
AND position_terrain='$poste[$i]'
ORDER BY num ASC";
$result = mysql_query($requete);
echo "<table class=\"tablephpl2\" cellspacing=\"0\" align=\"center\" width=\"100%\"><tr class=\"trphpl3\"><td align=\"center\" colspan=\"13\"><b>$poste[$i]</b></td></tr>";
echo "<tr class=trphpl3>
<td width=\"5%\" align=\"center\">Poste</td>
<td width=\"5%\" align=\"center\"> N°</td>
<td width=\"8%\" align=\"center\">Pays</td>
<td width=\"25%\" align=\"center\">Nom/Prénom</td>
<td width=\"7%\" align=\"left\"> Taille</td>
<td width=\"7%\" align=\"left\"> Poids</td>
<td width=\"8%\" align=\"center\">Naissance</td>
<td width=\"5%\" align=\"center\">Tit</td>
<td width=\"5%\" align=\"right\">Remp</td>
<td width=\"8%\" align=\"center\"><image src=\"../consult/images/horloge.gif\" border=\"0\"></td>
<td width=\"5%\" align=\"center\"><image src=\"../consult/images/cj.gif\" border=\"0\"></td>
<td width=\"5%\" align=\"center\"><image src=\"../consult/images/cr.gif\" border=\"0\"></td>
<td width=\"7%\" align=\"center\"><image src=\"../consult/images/ballon.gif\" border=\"0\"></td>
</tr>";
while($row = mysql_fetch_array($result))
{
$id_joueur=$row[0];
$num=$row["num"];
$id_effectif=$row[10];
$requete2 = "SELECT sum(phpl_compo.tps)
FROM phpl_effectif,phpl_compo
WHERE phpl_effectif.id=phpl_compo.id_effectif
and phpl_effectif.id='$id_effectif'";
$result2 = mysql_query($requete2);
while($row2 = mysql_fetch_array($result2))
{
$tps=$row2[0];
}
$requete2a = "SELECT count(phpl_compo.matchs)
FROM phpl_effectif,phpl_compo
WHERE phpl_effectif.id=phpl_compo.id_effectif
and phpl_effectif.id='$id_effectif'";
$result2a = mysql_query($requete2a);
while($row2a = mysql_fetch_array($result2a))
{
$tit=$row2a[0];
}
$requete2b = "SELECT count(phpl_compo.remp)
FROM phpl_effectif,phpl_compo
WHERE phpl_effectif.id=phpl_compo.id_effectif
and phpl_effectif.id='$id_effectif'
and phpl_compo.remp='1'";
$result2b = mysql_query($requete2b);
while($row2b = mysql_fetch_array($result2b))
{
$remp=$row2b[0];
}
$requete2d = "SELECT count(phpl_compoCJ.id)
FROM phpl_effectif,phpl_compoCJ
WHERE phpl_effectif.id=phpl_compoCJ.id_effectif
and phpl_effectif.id='$id_effectif'";
$result2d = mysql_query($requete2d);
while($row2d = mysql_fetch_array($result2d))
{
$cj=$row2d[0];
}
$requete2e = "SELECT count(phpl_compoCR.id)
FROM phpl_effectif,phpl_compoCR
WHERE phpl_effectif.id=phpl_compoCR.id_effectif
and phpl_effectif.id='$id_effectif'";
$result2e = mysql_query($requete2e);
while($row2e = mysql_fetch_array($result2e))
{
$cr=$row2e[0];
}
$requete2f = "SELECT count(phpl_buteurs.id)
FROM phpl_effectif,phpl_buteurs
WHERE phpl_effectif.id=phpl_buteurs.id_effectif
and phpl_effectif.id='$id_effectif'";
$result2f = mysql_query($requete2f);
while($row2f = mysql_fetch_array($result2f))
{
$but=$row2f[0];
}
if($tps==""){$tps="0";}
if($tit==""){$tit="N.C";}
if($remp==""){$remp="N.C";}
if($cj==""){$cj="N.C";}
if($cr==""){$cr="N.C";}
if($but==""){$but="N.C";}
if($row["position_terrain"]=="Gardien") {$quoi="G";}
if($row["position_terrain"]=="Défenseur"){$quoi="D";}
if($row["position_terrain"]=="Milieu"){$quoi="M";}
if($row["position_terrain"]=="Attaquant"){$quoi="A";}
if($row["taille"]==""){$taille="N.C";}
if(!($row["taille"]=="")){$taille=$row["taille"];}
if($row["poid"]==""){$poid="N.C";}
if(!($row["poid"]=="")){$poid=$row["poid"];}
echo"<tr><td width=\"5%\" align=\"center\">$quoi</td>";
if(($num=="") or ($num=="0"))
{
echo"<td width=\"5%\" align=\"center\"></td>";
}
else
{
echo"<td width=\"5%\" align=\"center\">$num</td>";
}
if(($row[5]=="0") or ($row[6]=="")){echo"<td width=\"8%\"></td>";}
if($row[5]=="1")
{
$max_caracteres=0;
$texte=$row[6];
// Test si la longueur du texte dépasse la limite
if (strlen($texte)>$max_caracteres)
{
// Séléction du maximum de caractères
$texte = substr($texte, 0, $max_caracteres);
echo "<td width=\"8%\" align=\"center\"><img src=../consult/images/photo/nat/".$row[6].".jpg alt=\"\"> ".$texte."</td>";
}}
echo "<td width=\"25%\" align=\"left\"><a href=\"#\" onclick=\"window.open('joueurs.php?id_joueur=$id_joueur','Fichejoueur',
'toolbar=0,location=0,directories=0,status=0,scrollbars=1, resizable=0,copyhistory=0,menuBar=0,width=560,height=600');
return false;\">".$row["nom"]." ".$row["prenom"]."</a>";
echo "</td><td width=\"7%\" align=\"center\">$taille</td>
<td width=\"7%\" align=\"center\">$poid</td>
<td width=\"8%\" align=\"center\">".$row["datefr"]."</td>
<td width=\"5%\" align=\"center\">$tit</td>
<td width=\"5%\" align=\"center\">$remp</td>
<td width=\"8%\" align=\"center\">$tps</td>
<td width=\"5%\" align=\"center\">$cj</td>
<td width=\"5%\" align=\"center\">$cr</td>
<td width=\"7%\" align=\"center\">$but</td>
</tr>";
$tps="";
$tit="";
$remp="";
$cj="";
$cr="";
}
echo "</table>";
$i++;
}
echo"</td></tr></table>";
}
?>
<p align="center">
Taille moyenne : ? M<br />
Poids moyen : ?Kg <br />
Moyenne d'age : ? Ans <br /> <br />
<image src="images/ta photo.jpg" border=\"0\"></p>
<br />
<p align="right"><font face="Verdana" size="1">Powered by <a href="http://phpleague.univert.org" target="_blank">PhpLeague</a> et
<a href="http://tangofoot.free.fr/" target="_blank">Tangofoot</a></font></p>
<?php
include ("apres.php");
?> |
pour se qui ai du calcul moyen des joueurs je les fait manuellement _________________ http://www.footajauxerre.com |
|
| Revenir en haut |
|
 |
|
 Inscriptions bloquées: 51
|