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:
|
<html>
<head>
<title>Die Pferdchenfarm</title>
<link rel="stylesheet" href="style.css">
</head>
<body style="overflow-x: hidden;">
<?php
include("Datenbank.php");
$id = "$_GET[ID]";
$Ergebnis = mysql_query( "SELECT * FROM pferd WHERE ID='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "<font color="red"><b>Dieses Pferd existiert nicht!</b></font><br><br>";
}
else {
$result = mysql_query( "SELECT * FROM Konf_Satteln WHERE Pferd_ID='$id' ORDER BY ID DESC LIMIT 1" );
if (@mysql_num_rows($result) == 0) {
$result = mysql_query( "SELECT * FROM Konf_Satteln WHERE ID='3'" );
}
$Konf = mysql_fetch_array( $result );
$Data = mysql_fetch_array( $Ergebnis );
if ($Data[Putzen] != 'Ja') {
echo "<bR><font color="red"><b>Dein Pferd lässt sich nicht putzen, rufe den Pferdetherapeuten, um das Problem zu beheben!</b></font><br><br>";
include("PferdetherapeutRufen.php");
}
else {
$sattel = mysql_query( "SELECT * FROM Konf_Satteln WHERE Pferd_ID='$id' ORDER BY ID DESC LIMIT 1" );
if (@mysql_num_rows($sattel) == 0) {
$sattel = mysql_query( "SELECT * FROM Konf_Satteln WHERE ID='3'" );
}
$Sat = mysql_fetch_array($sattel);
if ($Sat[Decke] != 'keine.png' OR $Sat[VS_Sattel] != 'keine.png' OR $Sat[DR_Sattel] != 'keine.png' OR $Sat[SPR_Sattel] != 'keine.png' OR $Sat[Schabracke] != 'keine.png') {
echo "<bR><font color="red"><b>Dein Pferd ist noch gesattelt, so kannst du es nicht putzen!</b></font><br><br>
<a href='#' onClick='history.back()'>Gehe zurück</a><br><br>";
}
else {
if ($Data[Ort] == 'Koppel') {
echo "<bR><font color="red"><b>Dein Pferd steht noch auf der Koppel, hole es zuerst herein!</b></font><br><br>
<a href='#' onClick='history.back()'>Gehe zurück</a><br><br>";
}
else {
if($Data[SFell] <= 100) {$Fell = (100 - $Data[SFell]) / 100;} else {$Fell = 0;}
if($Data[SMaehne] <= 100) {$Maehne = (100 - $Data[SMaehne]) / 100;} else {$Maehne = 0;}
if($Data[SSchweif] <= 100) {$Schweif = (100 - $Data[SSchweif]) / 100;} else {$Schweif = 0;}
if($Data[SHufe] <= 100) {$Hufe = (100 - $Data[SHufe]) / 100;} else {$Hufe = 0;}
?>
<br>
<h1>Putzen</h1>
Dein Pferd freut sich, dass du es nun putzen willst. Klicke dazu einfach auf das Putzwerkzeug.<br><br>
<table border="0" align="center" width="100%">
<tr>
<th colspan="3" height="25" id="dunkel">Putzen</th>
</tr>
<tr>
<td align="center" id="dunkel" width="25%" height="27">Name</td>
<td align="center" id="hell"><?php echo "$Data[Name]" ?></td>
<td rowspan="7" height="200" width="273">
<?php echo"
<div style="position: relative; background-image:url(--.png); background-repeat:no-repeat; width: 273px; height: 200px;">
<div style="background-image: url(Pferde/Pferd$Data[ID].png); width: 273px; height: 200px;">
<div style="position: absolute; left: 0px; top: 0px; width: 250px;"><img src="$Data[Rasse]/DreckFell.png" style="opacity: $Fell;"></div>
<div style="position: absolute; left: 0px; top: 0px; width: 250px;"><img src="$Data[Rasse]/DreckSchweif.png" style="opacity: $Schweif;"></div>
<div style="position: absolute; left: 0px; top: 0px; width: 250px;"><img src="$Data[Rasse]/DreckMaehne.png" style="opacity: $Maehne;"></div>
<div style="position: absolute; left: 0px; top: 0px; width: 250px;"><img src="$Data[Rasse]/DreckHufe.png" style="opacity: $Hufe;"></div>";
include ("Zubehoer_$Data[Rasse].php");
echo"</div></div>"; ?>
</td>
</tr>
<tr>
<td align="center" id="dunkel" height="27">Fell</td>
<td align="center" id="hell"><div style="position: relative; left: 7px; border: 1px solid #9C9C9C; padding: 1px; width: 100px; height: 8px;">
<div style="background-image: url(Balken.png); background-repeat: no-repeat; width: <?php echo "$Data[SFell]" ?>%; height: 8px;"></div></div></td>
</tr>
<tr>
<td align="center" id="dunkel" height="27">Mähne</td>
<td align="center" id="hell"><div style="position: relative; left: 7px; border: 1px solid #9C9C9C; padding: 1px; width: 100px; height: 8px;">
<div style="background-image: url(Balken.png); background-repeat: no-repeat; width: <?php echo "$Data[SMaehne]" ?>%; height: 8px;"></div></div></td>
</tr>
<tr>
<td align="center" id="dunkel" height="27">Schweif</td>
<td align="center" id="hell"><div style="position: relative; left: 7px; border: 1px solid #9C9C9C; padding: 1px; width: 100px; height: 8px;">
<div style="background-image: url(Balken.png); background-repeat: no-repeat; width: <?php echo "$Data[SSchweif]" ?>%; height: 8px;"></div></div></td>
</tr>
<tr>
<td align="center" id="dunkel" height="27">Hufe</td>
<td align="center" id="hell"><div style="position: relative; left: 7px; border: 1px solid #9C9C9C; padding: 1px; width: 100px; height: 8px;">
<div style="background-image: url(Balken.png); background-repeat: no-repeat; width: <?php echo "$Data[SHufe]" ?>%; height: 8px;"></div></div></td>
</tr>
<tr>
<td align="center" id="dunkel" height="27">Zufriedenheit</td>
<td align="center" id="hell"><div style="position: relative; left: 7px; border: 1px solid #9C9C9C; padding: 1px; width: 100px; height: 8px;">
<div style="background-image: url(Balken.png); background-repeat: no-repeat; width: <?php echo"$Data[Zufriedenheit]"?>%; height: 8px;"></div></div></td>
</tr>
<tr>
<td align="center" id="dunkel" height="27">Vertrauen</td>
<td align="center" id="hell"><div style="position: relative; left: 7px; border: 1px solid #9C9C9C; padding: 1px; width: 100px; height: 8px;">
<div style="background-image: url(Balken.png); background-repeat: no-repeat; width: <?php echo"$Data[Vertrauen]"?>%; height: 8px;"></div></div></td>
</tr>
</table>
<table width="98%">
<tr>
<td id="null"><a href="GeputztFell.php<?php echo"?ID=$Data[ID]"?>" target=_self><img src="Gummistriegel.png"></a></td>
<td id="null"><a href="GeputztFell.php<?php echo"?ID=$Data[ID]"?>" target=_self><img src="Kardaetsche.png"></a></td>
<td id="null"><a href="GeputztMaehne.php<?php echo"?ID=$Data[ID]"?>" target=_self><img src="Wurzelbuerste.png"></a></td>
<td id="null"><a href="GeputztSchweif.php<?php echo"?ID=$Data[ID]"?>" target=_self><img src="Maehnenkamm.png"></a></td>
<td id="null"><a href="GeputztHufe.php<?php echo"?ID=$Data[ID]"?>" target=_self><img src="Hufkratzer.png"></a></td>
</tr>
<tr>
<td id="null" colspan="5"><a href="PferdP.php<?php echo"?ID=$Data[ID]"?>" target=_self><img src="Putzbox.png"></a></td>
</tr>
</table>
<?php
}
}
}
}
?>
</body>
</html>
|