-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail.php
139 lines (124 loc) · 2.17 KB
/
mail.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<html>
<head>
<style type="text/css">
#choice {
position: relative;
top: 0px;
left:0px;
right: 0px;
width: 100%;
height: 60px;
}
#mailcontent {
position: relative;
top: 0px;
left:0px;
right: 0px;
width: 100%;
}
#maxwidth {
position: relative;
width: 100%;
height: 35px;
}
#r1 { /*already read mails*/
position: relative;
width: 100%;
height: 35px;
color: black;
}
#r0 { /*not read mails*/
position: relative;
width: 100%;
height: 35px;
color: red;
}
#choice button {
height: 100%;
width: 30%;
max-width: 30%;
max-height: 100%;
min-height: 100%;
}
#choice button:hover {
cursor: pointer;
}
#mailcontent button {
position: relative;
width: 100%;
max-width: 100%;
}
#mailcontent button:hover {
cursor: pointer;
}
#timesent {
position: relative;
width: 20%;
bottom: 5px;
text-align: left;
}
#sender {
position: relative;
width: 20%;
bottom: 5px;
text-align: left;
}
#topic {
position: relative;
width: 60%;
bottom: 5px;
text-align: left;
}
#sendmail {
position: relative;
width: 100%;
}
#label1 {
position: relative;
width: 20%;
text-align: left;
}
#label2 {
position: relative;
width: 80%;
text-align: left;
}
#sreceiver {
position: relative;
width: 80%;
text-align: left;
}
#stopic {
position: relative;
width: 80%;
text-align: left;
}
#mtext {
position: relative;
width: 100%;
height: 200px;
text-align: left;
}
/* Need to make the CSS a external file... */
</style>
</head>
<body>
<h1>Mail</h1>
<div id="choice">
<form action="?page=mail" method="post">
<button name='option' type='submit' value='receiver'>Inbox</button>
<button name='option' type='submit' value='sender'>Outbox</button>
<button name='option' type='submit' value='3'>Send</button>
</form>
</div>
<div id="mailcontent">
<center>
<?php
require_once("mailclass.php");
$mail = new mailclass();
?>
</center>
</div>
</body>
</html>
<!-- Remove mails automaticly after a given time? -->