1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
img {
border:none;
}
#box div{display:none;}
#box:hover div{
display:block;
width:500px;
position:absolute;top:20px;left:300px;
padding:15px;
font:normal 14px verdana, sans-serif;}
-->
</style>
<title>Steckbrief</title>
<link rel="stylesheet"
href="http://wemper.bplaced.net/DECKSTATION/TEXTSEITEN/style.css">
</head>
<body>
<?php
// Verbindung zur Datenbank
include("db.php");
// Hiermit wird der Wert geholt, der über die URL übergeben wurde. Dieser wird nun für die Abfrage genutzt.
// Somit werden nur genau die Daten abgefragt, die diese ID haben
$id = "$_GET[id]";
$Ergebnis = mysql_query( "SELECT * FROM pferd where ID='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "Dieses Pferd existiert nicht!";
}
else {
$Data = mysql_fetch_array( $Ergebnis );
//Anzeige der Links (Wenn du den Chara auf mehrere Seiten verteilst
//Hier die Angabe der Daten vom Pferd. Es kann wieder HTML verwendet werden ganz normal eben (; Nur an der Stelle wo die Daten sein sollen schreibt ihr $Data[Spaltenname] hin
echo "<br>
<br
<table bordercolor=#111111; text-align=left; width=100%; font-weight: bold;
border=0 cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td><center><big><b>$Data[name]</b></big></center></td>
</tr>
</tbody>
</table>
<table bordercolor=#111111; text-align=center; width=100%; border=1
cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td width=220px>$Data[vorbild]</td>
<td>
<table bordercolor=#111111; text-align=center; width=100%; border=1
cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td style=width=50%; font-weight: bold;>Geschlecht</td>
<td style=width=50%;>$Data[geschlecht]</td>
</tr>
<tr>
<td style=font-weight=bold>Rasse</td>
<td>$Data[rasse]</td>
</tr>
<tr>
<td style=font-weight=bold>Geboren</td>
<td>* $Data[geburtsjahr]</td>
</tr>
<tr>
<td style=font-weight=bold>Farbe</td>
<td>$Data[farbe]</td>
</tr>
<tr>
<td style=font-weight=bold>Stockmaß</td>
<td>$Data[stockmas] cm</td>
</tr>
</tbody>
</table>
</td>
<td width=35px>
<div id=box>
<a href=#><img src=$Data[bild] width=50px height=50px alt=bild></a>
<div><p><img src=$Data[bild]></p></div>
</div> <div id=box>
<a href=#><img src=$Data[bild2] width=50px height=50px alt=bild></a>
<div><p><img src=$Data[bild2]></p></div>
</div> <div id=box>
<a href=#><img src=$Data[bild3] width=50px height=50px alt=bild></a>
<div><p><img src=$Data[bild3]></p></div>
</div> <div id=box>
<a href=#><img src=$Data[bild4] width=50px height=50px></a>
<div><p><img src=$Data[bild4]></p></div>
</div>
</td>
</tr>
</tbody>
</table><br>
<table style=text-align=left; width=100%; border=0
cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td>$Data[charakter]</td>
</tr>
</tbody>
</table>
<br>
<table bordercolor=#111111; style=text-align=left; width=100%; border=0
cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td width=34%;> </td>
<td width=33%; font-weight=bold;><center><b>Ausbildung</b></center></td>
<td width=33%; font-weight=bold;><center><b>Potenzial</b></center></td>
</tr>
</tbody>
</table>
<table bordercolor=#111111; style=text-align=left; width=100%; border=0
cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td>
<center>Der Schwerpunkt von <b>$Data[name]</b> liegt im Bereich <b>$Data[schwerpunkt]</b> und der Turnierreiter von <b>$Data[name]</b> ist <b>$Data[turnierreiter]</b></center></td>
</tr>
</tbody>
</table>
<table bordercolor=#111111; style=text-align=left; width=100%; border=0
cellpadding=2 cellspacing=2>
<tbody>
<tr>
<td width=34%; style=font-weight=bold><b>Dressur</b></td>
<td width=33%; style=text-align=center><center>$Data[dausbildung]</center></td>
<td width=33%; style=text-align=center><center>$Data[dpotenzial]</center></td>
</tr>
<tr>
<td style=font-weight=bold><b>Springen</b></td>
<td style=text-align=center><center>$Data[sausbildung]</center></td>
<td style=text-align=center><center>$Data[spotenzial]</center></td>
</tr>
<tr>
<td style=font-weight=bold><b>Gelände</b></td>
<td style=text-align=center><center>$Data[vsausbildung]</center></td>
<td style=text-align=center><center>$Data[vspotenzial]</center></td>
</tr>
<tr>
<td style=font-weight=bold><b>Sonstiges</b></td>
<td style=text-align=center><center>$Data[sonstigesa]</center></td>
<td style=text-align=center><center>$Data[sonstigesp]</center></td>
</tr>
</tbody>
</table>
<br>
<table style=border-collapse: collapse; border=0 bordercolor=#111111 cellpadding=2 cellspacing=2 width=100%>
<tbody>
<tr>
<td width=50%><b>Besitzer</b></td>
<td width=50%>$Data[besitzer]</td>
</tr>
<tr>
<td width=50%><b>Züchter</b></td>
<td width=50%>$Data[zuchter]</td>
</tr>
<tr>
<td width=50%><b>Vorbesitzer</b></td>
<td width=50%>$Data[vorbesitzer]</td>
</tr>
<tr>
<td width=50%><b>gekört/prämiert als</b></td>
<td width=50%>$Data[zugelassen]</td>
</tr>
<tr>
<td width=50%><b>Urkunde</b></td>
<td width=50%>$Data[urkunde]</td>
</tr>
<tr>
<td width=50%><b>Zugelassen für</b></td>
<td width=50%>$Data[for]</td>
</tr>
<tr>
<td width=50%><b>Taxe</b></td>
<td width=50%>$Data[taxe]</td>
</tr>
<tr>
<td width=50%><b>Sonstiges</b></td>
<td width=50%>$Data[sonstiges]</td>
</tr>
</tbody>
</table>
<br>
<table border=0 cellpadding=2 cellspacing=2 height=223 width=100%>
<tbody>
<tr>
<td style=background-color:#D1E3AE; rowspan=4 ; height=72px width=34%>
<b>$Data[vater1]</b></td>
<td rowspan=2 colspan=2 style=background-color:#D1E3AE; height=36px width=33%>
$Data[vater2]</td>
<td style=background-color:#D1E3AE height=18px width=33>$Data[vater4]</b></td>
</tr>
<tr>
<td height=18px width=33%>$Data[mutter4]</td>
</tr>
<tr>
<td rowspan=2 colspan=2 height=36px width=33%>$Data[mutter2]</td>
<td style=background-color:#D1E3AE; height=18px width=33%>
$Data[vater5]</td>
</tr>
<tr>
<td height=18px width=33%>$Data[mutter5]</td>
</tr>
<tr>
<td rowspan=4 height=72px width=34%>
$Data[mutter1]</td>
<td rowspan=2 colspan=2 style=background-color:#D1E3AE; height=36px width=33%>
<b>$Data[vater3]</b></td>
<td style=background-color:#D1E3AE; height=18px width=33%>
$Data[vater6]</td>
</tr>
<tr>
<td height=18px width=33%>$Data[mutter6]</td>
</tr>
<tr>
<td rowspan=2 colspan=2 height=36px width=33%>$Data[mutter3]</td>
<td style=background-color:#D1E3AE; height=18px width=33%>
<b>$Data[vater7]</b></td>
</tr>
<tr>
<td height=18px width=33%>$Data[mutter7]</td>
</tr>
</tbody>
</table>
<br>
<table border=0 cellpadding=2 cellspacing=2 width=100%>
<tbody>
<tr>
<td><b><center><big>Erfolge</big></center></b></td>
</tr>
</tbody>
</table><br><br>
"
;
}
?>
<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tr>
<td class=trrund width=33%><center><b>Platzierung</center></b></td>
<td class=trrund width=33%><center><b>Disziplin</center></b></td>
<td class=trrund width=34%><center><b>Austragungsort</center></b></td>
</tr>
<?php
// Verbindung zur Datenbank
include("db.php");
// Hier die Abfrage übersetzt: RUFE * (alle Spalten) VON der Tabelle Pferd auf WO in der Spalte Besitzer nichts steht.
$Ergebnis = mysql_query("SELECT * FROM erfolge WHERE pferd = '$Data[name]'");
// Wenn das Ergebnis 0 ist gib aus
if (@mysql_num_rows($Ergebnis) == 0) {
echo " <tr>
<td class=hell width=33%><center>-</center></td>
<td class=hell width=33%><center>-</center></td>
<td class=hell width=34%><center>-</center></td></tr>";
}
else {
// Sonst zeige an ..
while($Data = mysql_fetch_array($Ergebnis)) {
// Der Name wird ausgegeben .. die HTML Elemente sind frei anpassbar- Vor " muss aber immer ein \.
// Der Steckbriefname lautet Pferd. Diesem wird jetzt die ID des Pferdes angehängt, damit die Datei nachher weiß, welche Daten sie abfragen muss.
// Ihr könnt die ganzen anderen Infos auch angeben .. sprich $Data[Jahrgang] oder $Data[Geschlecht]
echo "<tr>
<td class=hell width=33%><center>$Data[Platzierung] Platz</center></td>
<td class=hell width=33%><center>$Data[Disziplin]</center></td>
<td class=hell width=34%><a href="$Data[AustragungsortLink]"><center>$Data[Austragungsort]</center></a></td>
</tr>
";
}
}
?>
</tbody>
</table><br>
<table border=0 cellpadding=2 cellspacing=2 width=100%>
<tbody>
<tr>
<td><b><center><big>Nachzucht</big></center></b></td>
</tr>
</tbody>
</table><br><br>
<table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr>
<td class=trrund width=25%><center><b>Name</center></b></td>
<td class=trrund width=25%><center><b>Vater</center></b></td>
<td class=trrund width=25%><center><b>Mutter</center></b></td>
<td class=trrund width=25%><center><b>Besitzer</center></b></td>
</tr>
<?php
// Verbindung zur Datenbank
include("db.php");
// Hier die Abfrage übersetzt: RUFE * (alle Spalten) VON der Tabelle Pferd auf WO in der Spalte Besitzer nichts steht.
$Ergebnis = mysql_query("SELECT * FROM nachzucht WHERE elternteil = '$Data[name]' OR e2 = '$Data[name]'");
// Wenn das Ergebnis 0 ist gib aus
if (@mysql_num_rows($Ergebnis) == 0) {
echo " <tr>
dieses Pferd hat noch keine Nachkommen";
}
else {
// Sonst zeige an ..
while($Data = mysql_fetch_array($Ergebnis)) {
// Der Name wird ausgegeben .. die HTML Elemente sind frei anpassbar- Vor " muss aber immer ein \.
// Der Steckbriefname lautet Pferd. Diesem wird jetzt die ID des Pferdes angehängt, damit die Datei nachher weiß, welche Daten sie abfragen muss.
// Ihr könnt die ganzen anderen Infos auch angeben .. sprich $Data[Jahrgang] oder $Data[Geschlecht]
echo "
<table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr>
<td class=trrund width=25%><center><b>Name</center></b></td>
<td class=trrund width=25%><center><b>Vater</center></b></td>
<td class=trrund width=25%><center><b>Mutter</center></b></td>
<td class=trrund width=25%><center><b>Besitzer</center></b></td>
</tr><tr>
<td class=hell width=25%><center><a href="$Data[NachkommenLink]"><center>$Data[Nachkommen]</center></td>
<td class=hell width=25%><center><a href="$Data[VaterLink]"><center>$Data[e1]</center></td>
<td class=hell width=25%><center><a href="$Data[MutterLink]"><center>$Data[e2]</center></a>
<td class=hell width=25%><center><a href="$Data[BesitzerLink]"><center>$Data[Besitzer]</center></a></td>
</tr>
</tbody></table>
";
}
}
?>
</body>
</html>
|