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:
|
<?php
include("head.php");
?>
<html>
<head>
<title>equinestars</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="transparent">
<?php
include("datenbank.php");
$pid = "$_GET[pid]";
$Ergebnis = mysql_query( "SELECT * FROM pferd where pid = '$pid' AND besitzer = '$nickname'" );
if (@mysql_num_rows($Ergebnis) == 0) {
include("fehler.php");
}
else {
$Data = mysql_fetch_array($Ergebnis);
$hufe = $Data[hufevl]+$Data[hufevr]+$Data[hufehl]+$Data[hufehr];
$vh = $_POST[vh];
$lr = $_POST[lr];
$hufe2["hufe$vh$lr"];
echo '<h1>Hufpflege (<a href="pflege.php?pid=' . $Data[pid] . '" target="content">BACK</a>)</h1>
<div align="justify">
<table border="1" cellpadding="5" width="100%">
<tr>
<td width="100%" colspan="2" id="head"><b>Hufpflege</b></td>
</tr>
</table>
</div>
<br>
<center><img src="img/pferde/' . $Data[foto] . '"><br>
<b>Foto:</b> ' . $Data[copy] . '<br><br>
<img src="img/balken_' . $hufe . '.png"> ' . $hufe . ' %</center><br><br>
<form method="POST" action="hufe2.php?pid=' . $Data[pid] . '">
<div align="justify">
<table border="0" cellpadding="5" width="100%">
<tr>
<td width="100%" colspan="3" id="head"><b>Hufe auskratzen</b></td>
</tr>
<tr>
<td width="33%" id="hell">
<select size="1" name="vh">
<option>vorne</option>
<option>hinten</option>
</select></td>
<td width="34%" id="hell">
<select size="1" name="lr">
<option>links</option>
<option>rechts</option>
</select></td>
<td width="33%" id="dunkel"><input type="submit" value="»" id="button"></td>
</tr>
</table>
</div>
</form>';
mysql_query("UPDATE pferd SET $hufe2 = ($hufe2 + 1) WHERE ($hufe2 + 1) <= '25' AND besitzer = '$nickname' AND pid = '$pid'");
}
?>
</body>
</html> |