Location: PHPKode > projects > FxFramework > fxFrm/fxErrors.php
<?php

class FxError
{
	public static function fxCritical($erroMsg = "")
	{
		$style = "
		<style>
		.ErTitle
		{
			background-color: FFFFD7;
			color: FF0000;
			font-weight: bold;
			font-family: Verdana, Arial;
			margin-bottom: 25px;
			height: 20px;
			line-height:20px;
			vertical-align: middle;
		}
		
		.ErFooter
		{
			background-color: FFFFD7;
			font-weight: bold;
			font-family: Verdana, Arial;
			font-size: 11px;
			margin-top: 25px;
			height: 20px;
			line-height:20px;
			vertical-align: middle;
		}
		
		.ErBody
		{
			font-weight: normal;
			font-family: Verdana, Arial;
			font-size: 12px;
		}
		</style>
		
		";
		$errHtml = "
		<DIV class='ErTitle'>Critical Error Was Encountered</DIV>
		";
		
		$errHtml .= "<DIV class='ErBody'><b>Script Name: </b>".$_SERVER["SCRIPT_NAME"]."</DIV>";
		$errHtml .= "<DIV class='ErBody' style='margin:5px'>".$erroMsg."</DIV>";
		$errHtml .= "<DIV class='ErFooter'><i>fxFramework version 0.1 for PHP 5</i></DIV>";
		
		die($style.$errHtml);
	}
}

?>
Return current item: FxFramework