Home home circle
"); printf ("\"%s\"", $topImage, $topImageAlt); print ("\n"); printf ("%s\n", getTailorOverview($Filter)); print (""); printf ("", $headlineText, $headlineText); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); if (strcmp($Filter, "TailCraft") == 0) print ("\n"); else print ("\n"); if ( !isset($QueryFilter) ) { $QueryFilter = "\"" . $Filter . "\""; } $query = "select rezept.* from rezept, reztype, locType " . "where reztype.typeName = \"Schneider\" " . " and rezept.typeIndex = reztype.typeIndex" . " and locType.locName in (" . $QueryFilter . ")" . " and rezept.locIndex = locType.locIndex " . " order by locIndex, skilllevel, playerlevel"; $iconPath = "../icons/"; $link = mysql_connect("mysql3.kontent.de", "net1182731", "jf310500") or die("DB Verbindung nicht möglich"); mysql_select_db("net1182731"); $res = mysql_query($query, $link); if ( !$res ) die("Die Anfrage '$query' konnte nicht ausgeführt werden."); $locIndex = -1; class Gallery { var $picName; var $itemName; } // Daten auslesen while ( $row = mysql_fetch_array($res, MYSQL_ASSOC) ) { if ($locIndex != $row["locIndex"]) { if ($locIndex != -1) print ("\n"); $locIndex = $row["locIndex"]; } print (""); // Bildnamen für das Rezept holen $picName = getPictureName($row["rezIndex"], $link); // Existiert ein Bild zu dem Rezept? if (strcmp($picName, "") != 0) { $newGalleryItem = new Gallery(); $newGalleryItem->picName = $picName; $newGalleryItem->itemName = $row["name_de"]; // Alle Bilder merken, für später $picNameArr[] = $newGalleryItem; printf ("", $picName, $iconPath, $row["picture"], $row["name_de"]); } else { printf ("", $iconPath, $row["picture"], $row["name_de"]); } printf (""); else printf ("
%s", $row["bemerkung"]); printf ("", $row["skilllevel"]); printf ("", $row["playerlevel"]); printf ("", getAttributes($row["rezIndex"], $link)); printf ("", getPriceString($row["npcprice"])); printf ("", getIngredients($row["rezIndex"], $link)); if (strcmp($Filter, "TailCraft") == 0) printf ("", getTailLocations($row["name_de"]) ); else printf ("", getEnchants($row["rezIndex"], $link)); print ("\n"); } print ("
%s
 Name (Deu/Eng)Skill- levelSpieler- levelAttributePreis HändlerKomponenten (Anzahl)Beste Farmpunkte
Entzauberung
 
\"%s\"\"%s\"%s
%s", $row["name_de"], $row["name_en"]); if ($row["bemerkung"] == NULL) print("
%s%s%s%s%s%s%s
\n"); // Speicherfreigabe ist optional, aber sinnvoll mysql_free_result($res); // ggf. Verbindung schließen. mysql_close($link); $arrCount = count($picNameArr); // Nur anzeigen, wenn es auch Bilder gibt if ($arrCount != 0) { print("

Bildergalerie

\n"); $picCount = 0; print("\n"); for ($i = 0; $i < $arrCount; $i++) { if ($picCount == 0) print(""); $thumbName = str_replace(".jpg", "_t.jpg", $picNameArr[$i]->picName); printf("", $picNameArr[$i]->picName, $thumbName, $picNameArr[$i]->itemName); $picCount++; if ($picCount == 5) { print("\n"); $picCount = 0; } } if ($picCount != 0) print("\n"); print("
" . "\"\"
%s
\n"); } ?>