Files
luos/framework/src/templates/error.phtml

83 lines
2.1 KiB
PHTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="robots" content="noindex,nofollow"/>
<title>Runtime Exception</title>
<style>
body {
font-family: Verdana, Arial, sans-serif;
font-size: 14px;
color: #333;
background: #eee;
padding: 10px;
margin: 0;
display: flex;
justify-content: center; /* Center horizontally */
align-items: flex-start; /* Center vertically */
height: 100vh; /* Full viewport height */
}
#content {
max-width: 800px; /* Set a max width for the content */
width: 100%; /* Allow it to be responsive */
}
h1 {
font-size: 19px;
background-color: #fff;
padding: 15px 28px;
border: 1px solid #ccc;
border-radius: 12px;
margin: 20px 0 20px 0;
}
h2 {
margin: 0px 0 0px 0;
font-size: 18px;
}
.block {
background-color: #fff;
padding: 15px 28px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 0px 0px 12px 12px;
}
.block_exception {
background-color: #ddd;
color: #333;
padding: 15px 28px;
border: 1px solid #ccc;
border-radius: 12px 12px 0px 0px;
}
pre {
font-family: inherit;
font-size: inherit;
color: #333;
margin: 0;
}
abbr {
border-bottom: 1px dotted #000;
cursor: help;
}
a {
color: #6c6159;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div id="content">
<h1>System Error</h1>
<div class="block_exception">
<h2>
<span><?php echo htmlspecialchars($title) ?></span>
</h2>
</div>
<div class="block">
<pre><?php echo htmlspecialchars($message); ?></pre>
</div>
</div>
</body>
</html>