'; echo $xml; ?>
Chargement en cours...
"JAPON", "TCPS" => "JAPON", "UCJB" => "SAMPLER DISCS", "UCJM" => "DEMOS JAPON", "UCKM" => "DEMOS COREE", "UCAS" => "ASIE", "UCED" => "DEMOS EUROPE", "UCES" => "EUROPE", "UCET" => "BETAS EUROPE", "UCJS" => "JAPON", "UCKS" => "COREE", "UCUS" => "USA", "ULAS" => "ASIE", "ULES" => "EUROPE", "ULJM" => "JAPON", "ULJS" => "JAPON", "ULKS" => "COREE", "ULUS" => "USA", "ULUX" => "BETAS USA"); require ('_cnx.php'); $link = mysql_connect ($host,$user,$pass) or die ('Erreur : '.mysql_error() ); mysql_select_db($bdd) or die ('Erreur :'.mysql_error()); $c1 = "#323296"; $c2 = "#EAEAFF"; $c3 = "#DADAFF"; $c4 = "#EFDEDE"; // requête SQL qui compte le nombre total d'enregistrements dans la table et qui //récupère tous les enregistrements if ($x == "all") { $select = "SELECT titre,region,langue,editeur,genre,firmware,idcode,taille,umdver,save,rating FROM listing_iso ORDER BY idcode ASC"; } else { $select = "SELECT titre,region,langue,editeur,firmware,idcode,genre,taille,umdver,save,rating FROM listing_iso where region=\"$x\" ORDER BY idcode ASC"; } $result = mysql_query($select,$link) or die ('Erreur : '.mysql_error() ); $total = mysql_num_rows($result); $a = 1; $idumd2 = $html = ''; $nb_images = $nb_reg = $nb_reg_img = 0; // si on a récupéré un résultat on l'affiche. if($total) { // début du tableau while($row = mysql_fetch_array($result)) { $pathx = '/mnt/115/free.fr/2/9/sanaell2002/psp-tutos/img/'; $pathr ='http://sanaell2002.free.fr/psp-tutos/img/'; $pathroot = 'http://sanaell2002.free.fr/flags/'; $pathrate = 'http://sanaell2002.free.fr/rate/'; $langues = explode("/",$row['langue']); $ratings = explode("/",$row['rating']); $langue = $rate = $tiny_rate = $file = ''; $file = $row['idcode'].".jpg"; if ($row['rating']) { $x = 0; While ($ratings[$x]) { $rate .= '.$ratings[$x].'; $tiny_rate .= ''; $x++; } } else { $rate = $tiny_rate = 'N/A'; } $x = 0; While ($langues[$x]) { $langue .= '\''.$langues[$x].'\''; $x++; $langue .= (($x % 6)?" ":"
"); } if ($alpha) { if ($alpha == $row['idcode']) { if (!file_exists($pathx.$file)) { $image = '\'nocover.jpg\''; } else { $image = '\''.$row['idcode'].'\''; } $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
CoverInformationsRating
'.$image.''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
Titre:'.$row['titre'].'
Editeur:'.(($row['editeur'])?ucwords(strtolower($row['editeur'])):'N/A').'
Genre:'.(($row['genre'])?ucwords(strtolower($row['genre'])):'N/A').'
Region:
Langue(s):'.(($langue)?$langue:'N/A').'
Taille ISO:'.(($row['taille'])?number_format( $row['taille'], 0, '', ' ').'MB':'N/A').'
IDCode:'.$row['idcode'].'
Version PSP:'.(($row['firmware'])?$row['firmware']:'N/A').'
Taille Sauvegarde:'.(($row['save'])?number_format( $row['save'], 0, '', ' ').'KB':'N/A').'
Version UMD:'.(($row['umdver'])?$row['umdver']:'N/A').'
'.$rate.'
'; } } else if ($beta) { $bulle = 0; if (!file_exists($pathx.$file)) { $image = '\'nocover.jpg\''; } else { $image = '\''.$row['idcode'].'\''; $nb_images ++; $nb_reg_img ++; $bulle = 1; } if (!$bulle) { $html .= $row['idcode']." ".$row['titre'].'
'; } } else if ($covers == "cso") { $bulle = 0; if (!file_exists($pathx.$file)) { $image = '\'nocover.jpg\''; } else { $image = '\''.$row['idcode'].'\''; $nb_images ++; $bulle = 1; } if ($bulle) { $html .= $row['idcode']." ".$row['titre'].'
'; } } else { $idumd1 = explode("-",$row['idcode']); $nb_reg_tot = $nb_reg - $nb_reg_img; if ($idumd2 != $idumd1[0]) { $a = 1 ; if ($nb_reg != 0 ) { $html .= ''; $html .= ''.(($nb_reg > 1)?$nb_reg." jeux":$nb_reg." jeu").' / '.$nb_reg_img.(($nb_reg_img > 1)?" images":" image").''; $html .= "

\n"; } $nb_reg = $nb_reg_img = 0; } $nb_reg ++; if ($a == 1) { $html .= '

'; $html .= ''."\n"; $html .= ''; $html .= ''; $html .= ''; $html .= ''."\n"; } $bulle = 0; if (!file_exists($pathx.$file)) { $image = '\'nocover.jpg\''; } else { $image = '\''.$row['idcode'].'\''; $nb_images ++; $nb_reg_img ++; $bulle = 1; } $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
'.$str_idcode[$idumd1[0]].'Titres & Infos
'.$row['idcode'].'
'.$image.''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; //$html .= ''; $html .= ''; //$html .= ''; $html .= '
Region:
Genre
'.(($row['genre'])?ucwords(strtolower($row['genre'])):'N/A').'
Langues
'.(($langue)?$langue:'N/A').'
Rating
'.$tiny_rate.'
Firmware
'.(($row['firmware'])?$row['firmware']:'N/A').'
Editeur
'.(($row['editeur'])?ucwords(strtolower($row['editeur'])):'N/A').'
Version UMD
'.(($row['umdver'])?$row['umdver']:'N/A').'
Taille Save
'.(($row['save'])?number_format( $row['save'], 0, '', ' ').'Ko':'N/A').'
Taille ISO
'.(($row['taille'])?number_format( $row['taille'], 0, '', ' ').'Mo':'N/A').'
'; $html .= '
'; $html .= ']">'.''.(($bulle == 1)?'':'').$row['titre'].''; $html .= ''."\n"; $a++; $y++; $idumd2 = $idumd1[0]; } } if (!$alpha) { } } else $html .= 'Pas d\'enregistrements dans cette table...'; //on construit tout le code HTML if (!$alpha) { echo 'Il y a '.$total.' jeux avec '.$nb_images.' images
Contact:
'; echo $html; $html = ''; $html .= ''.(($nb_reg > 1)?$nb_reg." jeux":$nb_reg." jeu").' / '.$nb_reg_img.(($nb_reg_img > 1)?" images":" image").''; $html .= ''."\n"; echo $html; } else { echo '
'; echo $html; echo '
'; echo 'Contact: '.(($s == 1)?'
Retour
':''); } // on libère le résultat mysql_free_result($result); ?>