This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.php
169 lines (133 loc) · 5.33 KB
/
error.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
require("lib/bootstrap.php");
if ($utilities->isGet()) {
if (!empty($_GET["code"])){
$error = $_GET["code"];
$notice = "ERROR CODE: ".$error;
$details = "ERROR CODE: ".$error."<br>ERROR DETAILS: ".$errors[$error];
} else {
$notice = "PAGE NOT FOUND";
}
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><?php echo APPLICATION_TITLE ?> - Error</title>
<!-- styles -->
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/fonts.css" />
<link rel="stylesheet" href="css/jquery.ui.custom.css" />
<link rel="stylesheet" href="css/jquery.ui.achtung.css" />
<link rel="stylesheet" href="css/jquery.tiptip.css" />
<link rel="stylesheet" href="css/style.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/ie8.css" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="css/ie7.css" />
<![endif]-->
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<!-- scripts -->
<script src="js/jquery.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="js/jquery.ui.custom.js"></script>
<script src="js/jquery.ui.achtung.js"></script>
<script src="js/jquery.stickypanel.js"></script>
<script src="js/jquery.tiptip.js"></script>
<script src="js/script.js"></script>
<!-- remove for production -->
<script src="js/cssrefresh.js"></script>
<!-- javascript -->
<script>
$(document).ready(function() {
<?php
$utilities->notify($notice, 7);
?>
$("#search-field").autocomplete({
source: "lib/api/get-my-tasks.php",
minLength: 3,
select: function(event, ui) {
window.location.href = ui.item.id;
}
});
})
</script>
<?php if (defined("CHAT") && CHAT) { ?>
<script type="text/javascript">
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
$.src='//cdn.zopim.com/?<?php if (defined("ZOPIM_ID")){ echo ZOPIM_ID;} ?>';z.t=+new Date;$.
type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
</script>
<?php } ?>
</head>
<body>
<!-- wrap -->
<div id="wrap">
<!-- header -->
<header>
<!-- search -->
<div id="search-bar">
<form id="search-form" action="search-tasks.php" method="get">
<fieldset>
<input name="s" type="text" id="search-field" class="text-input rounded" placeholder="Search tasks" required></input>
<a class="blue-button default-button tip" id="search-button" role="button" href="#" title="Search open tasks"></a>
<a class="blue-button default-button tip" id="close-button" role="button" href="#" title="Close search panel"></a>
</fieldset>
</form>
</div>
<!-- /search -->
<!-- breadcrumbs -->
<div class="breadcrumbs">
<a class="tip" href="home.php" title="Home: Select project"><img src="images/home.png"></a>
<a class="separator"><img src="images/separator.png"></a>
<a class="tip" href="#" id="search-trigger" title="Search"><img src="images/search.png"></a>
</div>
<!-- /breadcrumbs -->
<!-- welcome message -->
<div id="welcome-message">
<p>Welcome to <?php echo APPLICATION_TITLE ?></span></p>
</div>
<!-- /welcome message -->
<div id="header-title">
<h1>ERROR</h1>
</div>
</header>
<!-- /header -->
<!-- main wrapper -->
<section id="main-wrapper">
<!-- main content -->
<div id="main-content" class="project-tasks clearer">
<article id="project-tasks">
<div class="check-table-row note-col" style="width: 100%; margin-top: 70px;">
<div class="check-table-col-full">
<p><?php echo $details; ?></p>
</div>
</div>
<div class="check-table-col-full" style="margin-top: 20px; padding-left: 0px;">
<a class="orange-button default-button tip" role="button" href="home.php" onClick="history.back();return false;" title="Back">BACK</a>
<a class="orange-button default-button tip" role="button" href="home.php" title="Back" style="margin-left: 15px;">HOME</a>
</div>
</article>
</div>
<!-- /main content -->
</section>
<!-- /main wrapper -->
<!-- footer -->
<footer>
<!-- logo -->
<div id="logo">
<img class="ng-logo" src="images/logo.png" alt="<?php echo APPLICATION_TITLE ?> logo" />
</div>
<!-- /logo -->
</footer>
<!-- /footer -->
</div>
<!-- /wrap -->
</body>
</html>