-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
100 lines (85 loc) · 2.46 KB
/
index.php
File metadata and controls
100 lines (85 loc) · 2.46 KB
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
<?php
use kije\FormiX\FormiX;
require_once 'inc/globals.inc.php';
?>
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<title>Test-Form</title>
<style>
:not(button):not(form):invalid {
background-color: orange;
border: 1px solid beige;
box-shadow: 0 0 5px red;
color: #000;
}
:not(button):not(form):valid {
background-color: greenyellow;
box-shadow: 0 0 5px greenyellow;
border: 1px solid green;
color: #000;
}
form:invalid {
border: 1px solid beige;
box-shadow: 0 0 5px red;
background-color: azure;
}
form:valid {
border: 1px solid green;
box-shadow: 0 0 5px greenyellow;
background-color: azure;
}
body,html {
background-color: #fff;
font-size: 14px;
font-family: sans-serif;
}
::-webkit-input-placeholder {
color: #333;
}
fieldset {
border: none;
box-shadow: 0 0 4px rgba(0,0,0,0.3);
border-radius: 20px;
}
.test_form {
width: 40%;
min-width: 300px;
float: left;
border-right: 1px dotted black;
padding: 4%;
}
.test_form:last-child {
border: none;
}
.test_form dl dt {
clear: left;
float: left;
min-width: 26%;
padding-right: 2%;
box-sizing: border-box;
}
.test_form dl dd {
float: left;
}
.test_form dl dt,
.test_form dl dd {
padding-bottom: 5px;
}
.clear {
clear: both;
}
</style>
</head>
<body>
<section class="test_form">
<h1>Test</h1>
<?php echo FormiX::run('test_form2', DOC_ROOT.'/TestFormView.phtml'); ?>
</section>
<section class="test_form">
<h1>Echtes Formular</h1>
<?php echo FormiX::run('real_form', DOC_ROOT.'/TestFormView.phtml'); ?>
</section>
</body>
</html>