forked from tin-cat/emailqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml.class.php
More file actions
executable file
·82 lines (70 loc) · 2.48 KB
/
Copy pathhtml.class.php
File metadata and controls
executable file
·82 lines (70 loc) · 2.48 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
<?php
namespace Emailqueue;
class html {
var $title;
var $menu_options;
function head_simple() {
return
"
<html>
<header>
<title>EMailqueue</title>
<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"gfx/css/main.css\">
<link rel=\"shortcut icon\" href=\"favicon.ico\" type=\"image/x-icon\">
<link rel=\"icon\" href=\"favicon.ico\" type=\"image/x-icon\">
<script>
function confirmation(message, urlifok) {
var result=confirm(message);
if(result)
document.location = urlifok;
}
</script>
<!-- <script src=\"https://code.jquery.com/jquery-3.4.1.slim.min.js\" integrity=\"sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=\" crossorigin=\"anonymous\"></script> -->
</header>
<body>
";
}
function head() {
return
$this->head_simple().
"
<div id=\"head\">
<img src=\"gfx/img/logo_small.png\" class=\"logo\" title=\"Emailqueue\" />
<div class=\"title\">
<div>Emailqueue v".VERSION." by <a href=\"https://tin.cat\" target=\"_newwindow\">Tin.cat</a> / <a href=\"".OFFICIAL_PAGE_URL."\" target=\"_newwindow\">Github</a></div>
<div>Server time <span id=\"serverTime\"></span></div>
<div><span id=\"serverRemainingSeconds\"></span> seconds until delivery</div>
</div>
</div>
<script>
var serverTimestamp = ".time().";
var startTimestamp = Math.round((new Date()).getTime() / 1000);
function updateClock() {
var nowTimestamp = Math.round((new Date()).getTime() / 1000);
var elapsedSeconds = nowTimestamp - startTimestamp;
var serverNowTimestamp = serverTimestamp + elapsedSeconds;
var serverDateNow = new Date(serverNowTimestamp * 1000);
var serverSeconds = ('0' + serverDateNow.getSeconds()).substr(-2);
var serverRemainingSeconds = 60 - serverSeconds;
document.getElementById('serverRemainingSeconds').innerHTML = serverRemainingSeconds;
var formattedTime = serverDateNow.getHours() + ':' + ('0' + serverDateNow.getMinutes()).substr(-2) + ':' + ('0' + serverDateNow.getSeconds()).substr(-2);
document.getElementById('serverTime').innerHTML = formattedTime;
setTimeout(updateClock, 1000);
}
updateClock();
</script>
";
}
function foot_simple() {
return
"
</body>
</html>
";
}
function foot() {
return $this->foot_simple();
}
}
?>