Advertisement
ArcaniSGK507

Untitled

Mar 16th, 2025
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.66 KB | None | 0 0
  1. <?php
  2.  
  3. declare(strict_types=1);
  4.  
  5. /**
  6.  * @var array $errorArray
  7.  */
  8.  
  9. ?>
  10.  
  11. <!DOCTYPE html>
  12. <html lang="en">
  13.  
  14. <head>
  15.     <meta charset="utf-8">
  16.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17.     <title><?php
  18.         echo $errorArray['class']; ?> | Error Control Software</title>
  19.     <style>
  20.         body {
  21.             font-family: "Roboto", arial, sans-serif;
  22.         }
  23.  
  24.         #errorTable {
  25.             margin: 40px auto 0;
  26.             display: table;
  27.             width: 800px;
  28.             min-width: 800px;
  29.             min-height: 200px;
  30.             border-collapse: collapse;
  31.         }
  32.  
  33.         td, th {
  34.             padding: 0.4em;
  35.             border: #ddd 1px solid;
  36.         }
  37.  
  38.         .col1 {
  39.             font-weight: 700;
  40.             width: 16%;
  41.             text-align: right;
  42.             -webkit-font-smoothing: antialiased;
  43.             -webkit-tap-highlight-color: rgba(0, 0, 0, .1);
  44.         }
  45.  
  46.         .col2 {
  47.             width: 84%;
  48.             text-align: left;
  49.         }
  50.  
  51.         .head {
  52.             height: 40px;
  53.             font-size: 24px;
  54.             background-color: #d23d24;
  55.             color: white;
  56.         }
  57.  
  58.         .footer {
  59.             height: 40px;
  60.             font-size: 24px;
  61.             background-color: #365D95;
  62.             color: white;
  63.             margin: unset;
  64.         }
  65.  
  66.         a {
  67.             text-decoration: none;
  68.             color: white;
  69.         }
  70.  
  71.         .row-1 {
  72.             height: 60px;
  73.             font-size: 18px;
  74.         }
  75.  
  76.         code {
  77.             display: block;
  78.             height: 100%;
  79.             font-size: 12px;
  80.             overflow-x: auto;
  81.             overflow-y: auto;
  82.         }
  83.     </style>
  84. </head>
  85.  
  86. <body>
  87. <div style="display: flex; align-items: center; height: 100%">
  88.     <table id="errorTable">
  89.         <tr>
  90.             <th colspan="2" class="head"><?php
  91.                 echo $errorArray['class']; ?></th>
  92.         </tr>
  93.         <tr class="row-1">
  94.             <td class="col1">Description:</td>
  95.             <td class="col2">Errors have been detected, error code: <?php
  96.                 echo $errorArray['micro_time']; ?></td>
  97.         </tr>
  98.         <tr>
  99.             <th colspan="2" class="footer">Please try to <a href="#" id="return">Go Back</a></th>
  100.         </tr>
  101.     </table>
  102. </div>
  103.  
  104. <script type="text/javascript">
  105.     document.addEventListener("DOMContentLoaded", function () {
  106.         function refresh() {
  107.             document.location.href = "/";
  108.         }
  109.  
  110.         document.getElementById("return").addEventListener("click", function () {
  111.             refresh();
  112.         });
  113.     });
  114. </script>
  115. </body>
  116.  
  117. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement