Commit 226acff4a350c4550b4b5696df7853b58e2bdd09

Authored by Jonathan Byrne
1 parent 1390ab7a

KTS-3221

"Custom Error Page text needs rework"
Fixed. Changed layout of custom error page.

Committed By: Jonathan Byrne
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8372 c91229c3-7414-0410-bfa2-8a42b809f60b
config/config.ini
@@ -399,7 +399,7 @@ urgentThreshold=5 @@ -399,7 +399,7 @@ urgentThreshold=5
399 399
400 [CustomErrorMessages] 400 [CustomErrorMessages]
401 ;Turn custom error messages on or off here. 401 ;Turn custom error messages on or off here.
402 -customerrormessages=off 402 +customerrormessages=on
403 ;name or url of custom error page. 403 ;name or url of custom error page.
404 customerrorpagepath=customerrorpage.php 404 customerrorpagepath=customerrorpage.php
405 ;Turn custom error handler on or off. 405 ;Turn custom error handler on or off.
customerrorpage.php
@@ -45,7 +45,7 @@ function Click() @@ -45,7 +45,7 @@ function Click()
45 var open = document.getElementById('exp'); 45 var open = document.getElementById('exp');
46 open.style.display = 'block'; 46 open.style.display = 'block';
47 var border = document.getElementById('error-container'); 47 var border = document.getElementById('error-container');
48 - border.style.height = '250px'; 48 + border.style.height = '220px';
49 } 49 }
50 50
51 </script> 51 </script>
@@ -58,9 +58,10 @@ function Click() @@ -58,9 +58,10 @@ function Click()
58 <div id="acc-error"> 58 <div id="acc-error">
59 59
60 60
61 - <h1>Error!! - You have encountered a problem starting your document management system.</h1>  
62 - <p><h2>Please contact your systems administrator</h2></p>  
63 - <p>For more details, click here <img src="<?php echo $sRootUrl ?>/resources/graphics/info.gif" style="cursor: pointer;" onclick="Click()" /><div id ="exp" style="display: none; "> <?php if(isset($sErrorMessage)){ echo $sErrorMessage; }else if(isset($posted)){ echo $posted; } else if($phperror){ echo $phperror; } ?></div></p> 61 + <h1>An Has Error Occurred</h1>
  62 + <p>You have encountered a problem with your document management system.</p>
  63 + <p>Please contact your systems administrator.</p>
  64 + <p>For more information on the error click here: <img src="<?php echo $sRootUrl ?>/resources/graphics/info.gif" style="cursor: pointer;" onclick="Click()" /><div id ="exp" style="display: none; "> <?php if(isset($sErrorMessage)){ echo $sErrorMessage; }else if(isset($posted)){ echo $posted; } else if($phperror){ echo $phperror; } ?></div></p>
64 65
65 </div> 66 </div>
66 </div> 67 </div>
resources/css/errors.css
@@ -5,17 +5,18 @@ div#error-container { @@ -5,17 +5,18 @@ div#error-container {
5 font-family: Verdana, Arial, sans-serif; 5 font-family: Verdana, Arial, sans-serif;
6 margin:2em auto; 6 margin:2em auto;
7 padding:10px; 7 padding:10px;
8 - width:470px; 8 + width:600px;
9 } 9 }
10 div#error-container div { 10 div#error-container div {
11 height: 150px; 11 height: 150px;
12 } 12 }
13 div#error-container h1 { 13 div#error-container h1 {
14 - font-weight: lighter;  
15 - font-size: 22px; 14 +
  15 + font-size: 18px;
16 margin-left: 100px; 16 margin-left: 100px;
17 } 17 }
18 div#error-container p { 18 div#error-container p {
  19 + font-size: 12px;
19 margin-left: 100px; 20 margin-left: 100px;
20 } 21 }
21 22