venster-script
Code (php)
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
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
---- index.php ----//laat deze naam zo
<form action=verwerk.php method=get>
<input type=hidden value=1 name=hopmaak>
<fieldset>
<legend>
text
</legend>
text: <textarea name="text" cols="100" rows="2"></textarea></fieldset>
<fieldset><legend>knoppen</legend>
<br>b1:<input type="text" name="b1" size="7">
<br>b2:<input type="text" name="b2" size="7">
<br>
</fieldset>
<div style="position: absolute; width: 100px; height: 100px; z-index: 1" id="layer1">
</div>
<fieldset>
<legend>target</legend>
waar:<input type="text" name="tw">bijv.: onclick=window.close();<br>
nietwaar:<input type="text" name="to"><br>
</fieldset><fieldset><legend>opmaak</legend>
links: <input type="radio" value="left" checked name="opmaak1">
<div style="position: absolute; width: 88px; height: 20px; z-index: 1; left:459px; top:275px" id="layer1">
centreren: <input type="radio" name="opmaak1" value="center"> </div>
<div style="position: absolute; width: 65px; height: 20px; z-index: 2; left:978px; top:275px" id="layer2">
rechts: <input type="radio" name="opmaak1" value="right"></div>
<br>
rgb: <input type="text" name="rgb" value="#FFFFFF" size="7" maxlength=6><br>
aantal enters na de text: <input type="text" name="hbr" value="1" size="3" maxlength=2><br>
<title><input type=text name=title></title>
</fieldset>
<input type=submit value=verzenden>
</form>
---- verwerk.php ----
<?php
//variabelen
$text=$_GET["text"];
$venster=$_GET["venster"];
$b1=$_GET["b1"];
$b2=$_GET["b2"];
$b3=$_GET["b3"];
$tw=$_GET["tw"];
$to=$_GET["to"];
$hopmaak=$_GET["hopmaak"];
$opmaak1=$_GET["opmaak1"];
$hbr=$_GET["hbr"];
$rgb=$_GET["rgb"];
$title=$_GET["title"];
//forlus afronden
if($hbr==1 || $hbr==0)
{}
else{
$hbr++;
}
if($hopmaak==1)
{}
else{
$hopmaak++;
}
//venster
echo "<html><head><title>" . $title . "</title></head><body bgcolor=" . $rgb . ">";
for($i=0; $i<$hopmaak; $i++)
{
echo "<" . $opmaak1 . ">";
}
echo $text;
for($b=0; $b<$hbr; $b++){
echo "<br>";
}
echo "<br><input type=button value=" . $b1 . " ";
echo $tw;
echo ">";
echo "<input type=button value=" . $b2 . " ";
echo $to;
echo ">";
echo "<br><br>url=" . $_SERVER["PHP_SELF"] . "";
for($i=0; $i<$hopmaak; $i++)
{
echo "</" . $opmaak1 . "></body></html>";
}
?>
<form action=verwerk.php method=get>
<input type=hidden value=1 name=hopmaak>
<fieldset>
<legend>
text
</legend>
text: <textarea name="text" cols="100" rows="2"></textarea></fieldset>
<fieldset><legend>knoppen</legend>
<br>b1:<input type="text" name="b1" size="7">
<br>b2:<input type="text" name="b2" size="7">
<br>
</fieldset>
<div style="position: absolute; width: 100px; height: 100px; z-index: 1" id="layer1">
</div>
<fieldset>
<legend>target</legend>
waar:<input type="text" name="tw">bijv.: onclick=window.close();<br>
nietwaar:<input type="text" name="to"><br>
</fieldset><fieldset><legend>opmaak</legend>
links: <input type="radio" value="left" checked name="opmaak1">
<div style="position: absolute; width: 88px; height: 20px; z-index: 1; left:459px; top:275px" id="layer1">
centreren: <input type="radio" name="opmaak1" value="center"> </div>
<div style="position: absolute; width: 65px; height: 20px; z-index: 2; left:978px; top:275px" id="layer2">
rechts: <input type="radio" name="opmaak1" value="right"></div>
<br>
rgb: <input type="text" name="rgb" value="#FFFFFF" size="7" maxlength=6><br>
aantal enters na de text: <input type="text" name="hbr" value="1" size="3" maxlength=2><br>
<title><input type=text name=title></title>
</fieldset>
<input type=submit value=verzenden>
</form>
---- verwerk.php ----
<?php
//variabelen
$text=$_GET["text"];
$venster=$_GET["venster"];
$b1=$_GET["b1"];
$b2=$_GET["b2"];
$b3=$_GET["b3"];
$tw=$_GET["tw"];
$to=$_GET["to"];
$hopmaak=$_GET["hopmaak"];
$opmaak1=$_GET["opmaak1"];
$hbr=$_GET["hbr"];
$rgb=$_GET["rgb"];
$title=$_GET["title"];
//forlus afronden
if($hbr==1 || $hbr==0)
{}
else{
$hbr++;
}
if($hopmaak==1)
{}
else{
$hopmaak++;
}
//venster
echo "<html><head><title>" . $title . "</title></head><body bgcolor=" . $rgb . ">";
for($i=0; $i<$hopmaak; $i++)
{
echo "<" . $opmaak1 . ">";
}
echo $text;
for($b=0; $b<$hbr; $b++){
echo "<br>";
}
echo "<br><input type=button value=" . $b1 . " ";
echo $tw;
echo ">";
echo "<input type=button value=" . $b2 . " ";
echo $to;
echo ">";
echo "<br><br>url=" . $_SERVER["PHP_SELF"] . "";
for($i=0; $i<$hopmaak; $i++)
{
echo "</" . $opmaak1 . "></body></html>";
}
?>