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:
|
<?php
session_start();
$jahreszeit = "Sommer";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Unbenanntes Dokument</title>
<script src="../ajax/scriptaculous-js-1.7.0/lib/prototype.js" type="text/javascript"></script>
<script src="../ajax/scriptaculous-js-1.7.0/src/scriptaculous.js" type="text/javascript"></script>
<style type="text/css">
ul {border: 1px dashed #cccccc;}
</style>
</head>
<body>
<div style="position:absolute; left:500px; top:14px; width:172px; height:541px; z-index:3;">Aktuelle Jahreszeit: <b><?php echo $jahreszeit; ?></b>
<br>
<b>Oberteile</b> <a href="#" onClick="Effect.BlindDown('oberteile');">anzeigen</a> | <a href="#" onClick="Effect.BlindUp('oberteile');">verstecken</a>
<ul id="oberteile">
<li id="oberteile_blusehgrau.png"> hellgraue Bluse<br>
<li id="oberteile_bluserot.png"> rote Bluse<br>
<li id="oberteile_bluseweiss.png"> weiße Bluse<br>
<li id="oberteile_pulligrau.png"> grauer Pullover<br>
<li id="oberteile_pullirot.png"> roter Pullover<br>
</ul><br>
<b>Unterteile</b> <a href="#" onClick="Effect.BlindDown('unterteile');">anzeigen</a> | <a href="#" onClick="Effect.BlindUp('unterteile');">verstecken</a>
<ul id="unterteile">
<li id="unterteile_faltendunkel.png"> dunkelgrauerFaltenrock<br>
<li id="unterteile_faltenhell.png"> hellgrauer Faltenrock<br>
<li id="unterteile_hosekurzdunkel.png"> dunkelgraue <sup>3</sup>/<sub>4</sub> Hose<br>
<li id="unterteile_hosekurzhell.png"> hellgraue <sup>3</sup>/<sub>4</sub> Hose<br>
</ul><br>
<b>Schuhe</b> <a href="#" onClick="Effect.BlindDown('schuhe');">anzeigen</a> | <a href="#" onClick="Effect.BlindUp('schuhe');">verstecken</a>
<ul id="schuhe">
<li id="schuhe_ballerinashell.png"> hellgraue Ballerinas<br>
<li id="schuhe_ballerinasdunkel.png"> dunkelgraue Ballerinas<br>
</ul><br>
<ul id="kleidung">
</ul>
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
Sortable.create('oberteile',{containment:['oberteile', 'kleidung'], dropOnEmpty:true});
Sortable.create('unterteile',{containment:['unterteile', 'kleidung'], dropOnEmpty:true});
Sortable.create('schuhe',{containment:['schuhe', 'kleidung'], dropOnEmpty:true});
Sortable.create ('kleidung',{containment:['oberteile', 'unterteile', 'schuhe', 'kleidung'], dropOnEmpty:true});
// ]]>
</script>
<a href="#" onClick="sendeHTTPRequest('POST', 'kleidung.php', 'kleidung='+Sortable.serialize('kleidung'));">Echo Kleidung</a>
</div>
<?php
if (!isset($_SESSION[haut]) || !isset($_SESSION[haare]) || !isset($_GET[look])) {
echo "<a href=aussehen.php>Aussehen</a>";
}
echo "<div style=position:absolute; left:30px; top:14px; width:251px; height:541px;><img src=aussehen/" . $_GET[look] . "/" . $_SESSION[haut] . "></div>";
$_SESSION[kleidung] = $_POST[kleidung];
echo "POST:" . $_POST[kleidung] . "<br>";
echo "SESSION:" . $_SESSION[kleidung] . "<br>";
$str = $_SESSION[kleidung];
echo "str:" . $str . "<br>";
parse_str($str);
echo "Array.1:" . $kleidung[0] . "<br>";
$anzahl = count($kleidung);
echo "Anzahl:" . $anzahl . "<br>";
$highest = $anzahl -1;
echo "Highest:" . $_highest . "<br>";
for ($i = $highest; $i >= 0; $i = $i - 1) {
echo $i; //das hier ist nur zum Testen, ob das überhaupt funktioniert
}
echo "<div style=position:absolute; left:14px; top:14px; width:251px; height:541px;><img src=aussehen/" . $_GET[look] . "/" . $_SESSION[haare] . "></div>";
echo "<div style=position:absolute; left:30px; top:14px; width:251px; height:541px;><img src=aussehen/" . $_GET[look] . "/copyright.png></div>";
?>
</body>
</html>
|