<?php
if(!isset($exception))$exception = new Exception("Unknown Error");

include("error.func.php");
header("HTTP/1.1 404 Not Found");

?><html> 
 
<head> 
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 
<title>SOY CMS</title> 
 
<link rel="stylesheet" href="<?php echo SOY2PageController::createRelativeLink("../admin/css/"); ?>style.css"/> 
<link rel="stylesheet" href="<?php echo SOY2PageController::createRelativeLink("../admin/css/"); ?>form.css"/> 
<link rel="stylesheet" href="<?php echo SOY2PageController::createRelativeLink("../admin/css/"); ?>table.css"/> 
<link type="text/css" rel="stylesheet" href="<?php echo SOY2PageController::createRelativeLink("../admin/css/"); ?>global_page/globalpage.css"/> 
<script type="text/JavaScript" charset="utf-8" src="<?php echo SOY2PageController::createRelativeLink("../admin/js/"); ?>common.js"></script> 
<script type="text/JavaScript" charset="utf-8" src="<?php echo SOY2PageController::createRelativeLink("../admin/js/"); ?>prototype.js"></script></head> 

<style type="text/css">

	#stack_trace .stacktrace {
		margin: 0pt;
		padding: 0pt;
		overflow: visible;
	}
	
	#stack_list {
		padding-left:20px;
	}
	
	#exception_message div {
		padding-left:20px;
	}
	
	#resolve_message div {
		padding-left:20px;
	}
	#resolve_message p {
		padding-left:20px;
	}
	#resolve_message div p{
		padding-left:0px;
	}
	
	
	h3{
		border-color:red;
		margin-top:10px;		
	}
	
	h4{
		margin-top:10px;		
		margin-bottom:5px;		
	}
	
	#content{
		margin-top:10px;
		
	}
	
	#stack_trace textarea{
		width:100%;
		height:240px;
		
	}

</style>

<body> 
 
<div id="wrapper"> 
	<div id="upperMenu"><img src="<?php echo SOY2PageController::createRelativeLink("../admin/css/"); ?>img/logo_big.gif" alt="logo" /> 
<div style="clear:both;"></div> 
 
</script>

</div> 
	<div id="content"> 
		
		<h2>致命的なエラーが発生しました</h2>
		
		<div id="exception_message">
			<h3>エラーメッセージ</h3>
			<div><?php echo $exception->getMessage(); ?></div>
		</div>
		
		<div id="resolve_message">
			<h3>詳細/解決策</h3>
			<div><?php echo get_resolve_message($exception); ?></div>
			<p style="margin-top:30px">
				解決策や内容がご不明な場合は<a href="http://www.soycms.org">フォーラム</a>をご利用ください。<br>
				その際、以下のレポートをご利用いただけると解決の役に立つ場合がございます。
			</p>
		</div>
		
		
		
		<div id="stack_trace">
		
  			<h3>レポート</h3>
  			<div id="stack_list">
			<textarea wrap="off" readonly="readonly"><?php echo get_report($exception); ?></textarea>
			</div>
		</div>
				
		
	</div> 
	<div><div id="footer"> 
	<div id="footer_left"></div> 
	<div id="footer_right"></div> 
	<div id="copyright">Copyright © 2007-2008, Nippon Institute of Agroinformatics Ltd.</div> 
</div></div> 
</div> 
</html>