JDRQ - Galaxia
0){ $rowcal = mysql_fetch_array($resultcal); extract($rowcal); //On r�cup�re le nom de chaque mois du calendrier $A=1; $querymois = "SELECT * FROM jdrq_calendriers_mois WHERE NoCalendrier = $NoCalendrier"; $resultmois = mysql_query($querymois) or die ("Impossible d'executer la requ�te: $querymois "); while ($rowmois = mysql_fetch_array($resultmois)) { extract($rowmois); $NomMois[$A]=$Mois; $A++; } } $datedebut=date('o/m/d',mktime(0 , 0 , 0, date('m'), date('d')-14, date('o'))); $A=0; If ($Num != 0 ) { $query = "SELECT * FROM sysfitzz_jdrq_sorts WHERE NoSort=$Num"; $result = mysql_query($query) or die ("Impossible d'executer la requ�te: $query "); $row = mysql_fetch_array($result); extract($row); echo "

$Nom

"; echo ""; echo ""; echo "
Incantations: TousMagiePsychismeSpiritualit�S�duction

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } else { $Sorte = array ('pouvoirs','sortil�ges','pouvoirs','oraisons','techniques'); $Discipline = array ('magie, psychisme, spiritualit� et s�duction','Magie','Psychisme','Spiritualit�','S�duction'); If ($Typ == 0 ) { $query = "SELECT * FROM sysfitzz_jdrq_sorts ORDER BY Type,Cout,Nom"; } else { $query = "SELECT * FROM sysfitzz_jdrq_sorts WHERE Type='$Discipline[$Typ]' ORDER BY Type,Cout,Nom"; } echo "

Liste des $Sorte[$Typ] de $Discipline[$Typ]

"; echo "
Type / Co�t:$Type $Cout
Temps d'invocation:$Invocation
Distance:$Distance
Cible:$Cible
Dur�e:$Duree
D�fense:$Defense
Description:$DescLongue
Dommage:$Dommage
"; echo ""; echo "
Incantations: TousMagiePsychismeSpiritualit�

"; echo ""; echo ""; $result = mysql_query($query) or die ("Impossible d'executer la requ�te: $query "); while ($row = mysql_fetch_array($result)) { extract($row); $MAJNOUV=""; $DateModif=str_replace("-","/",$DateModif); $DateAjout=str_replace("-","/",$DateAjout); If ($DateAjout > $datedebut ) { $MAJNOUV="$DateAjout - Nouveau"; $COULEUR="#00FF00"; } If ($DateModif > $datedebut ) { $MAJNOUV="$DateModif - Modifier"; $COULEUR="#FFFF00"; } if ( $A % 2 == 0 ) { echo ""; } else { echo ""; } echo ""; $A++; } echo "
TypeCo�tNomDescription
$MAJNOUV$Type$Cout$Nom$DescCourte
"; } ?>