';
echo $xml;
?>

Chargement en cours...
|
if (isset($HTTP_GET_VARS)){while(list($name, $value) = each($HTTP_GET_VARS)){$$name = $value;}}
if (!isset($x)) $x = 'all';
if (!isset($s)) $s = '0';
if (!isset($alpha)) $alpha ='';
if (!isset($beta)) $beta ='';
if (!isset($covers)) $covers ='';
if ($alpha) { $beta = ''; }
if ($beta) { $alpha = ''; }
$str_idcode = array ( "CPCS" => "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 .= '
';
$tiny_rate .= '
';
$x++;
}
}
else { $rate = $tiny_rate = 'N/A'; }
$x = 0;
While ($langues[$x]) {
$langue .= '
';
$x++;
$langue .= (($x % 6)?" ":"
");
}
if ($alpha) {
if ($alpha == $row['idcode']) {
if (!file_exists($pathx.$file)) {
$image = '
';
}
else {
$image = '
';
}
$html .= '';
$html .= '';
$html .= '| Cover | ';
$html .= 'Informations | ';
$html .= 'Rating |
';
$html .= '';
$html .= '| '.$image.' | ';
$html .= '';
$html .= '';
$html .= '| Titre: | '.$row['titre'].' | ';
$html .= '| Editeur: | '.(($row['editeur'])?ucwords(strtolower($row['editeur'])):'N/A').' | ';
$html .= '| Genre: | '.(($row['genre'])?ucwords(strtolower($row['genre'])):'N/A').' | ';
$html .= '| Region: |  | ';
$html .= '| Langue(s): | '.(($langue)?$langue:'N/A').' | ';
$html .= '| Taille ISO: | '.(($row['taille'])?number_format( $row['taille'], 0, '', ' ').'MB':'N/A').' | ';
$html .= '| IDCode: | '.$row['idcode'].' | ';
$html .= '| Version PSP: | '.(($row['firmware'])?$row['firmware']:'N/A').' | ';
$html .= '| Taille Sauvegarde: | '.(($row['save'])?number_format( $row['save'], 0, '', ' ').'KB':'N/A').' | ';
$html .= '| Version UMD: | '.(($row['umdver'])?$row['umdver']:'N/A').' | ';
$html .= ' | ';
$html .= ''.$rate.' | ';
$html .= '
';
}
}
else if ($beta) {
$bulle = 0;
if (!file_exists($pathx.$file)) {
$image = '
';
}
else {
$image = '
';
$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 = '
';
}
else {
$image = '
';
$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 .= '| '.$str_idcode[$idumd1[0]].' | ';
$html .= 'Titres & Infos | ';
$html .= '
'."\n";
}
$bulle = 0;
if (!file_exists($pathx.$file)) {
$image = '
';
}
else {
$image = '
';
$nb_images ++;
$nb_reg_img ++;
$bulle = 1;
}
$html .= '';
$html .= '| '.$row['idcode'].' | ';
$html .= ' |
';
$html .= '| '.$image.' | ';
$html .= '';
$html .= '';
$html .= '| Region: | | ';
$html .= '| Genre | '.(($row['genre'])?ucwords(strtolower($row['genre'])):'N/A').' | ';
$html .= '| Langues | '.(($langue)?$langue:'N/A').' | ';
$html .= '| Rating | '.$tiny_rate.' | ';
$html .= '| Firmware | '.(($row['firmware'])?$row['firmware']:'N/A').' | ';
$html .= '| Editeur | '.(($row['editeur'])?ucwords(strtolower($row['editeur'])):'N/A').' | ';
//$html .= '| Version UMD | '.(($row['umdver'])?$row['umdver']:'N/A').' | ';
$html .= '| Taille Save | '.(($row['save'])?number_format( $row['save'], 0, '', ' ').'Ko':'N/A').' | ';
//$html .= '| Taille ISO | '.(($row['taille'])?number_format( $row['taille'], 0, '', ' ').'Mo':'N/A').' | ';
$html .= ' ';
$html .= ' | ';
$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: sanaell2002()free.fr
';
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: sanaell2002()free.fr'.(($s == 1)?'
Retour':'');
}
// on libère le résultat
mysql_free_result($result);
?>