<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Error_page {
	public function __construct(){

	}

	public function show_error_msg($header='Error',$msg='Something not right happen'){
		#$this->load->view('error_page/error');
		echo '
		<div class="centering" style="width:400px;">
	<div style="background:white;padding:5px;">
		<div class="detil" style="font-size:14px;margin-top:25px;width: 100%;margin: 0 auto;border-color: #FFFFFF;">
			<table id="tableDetilPerkara" style="font-size:14px;">
				<tbody>
				<tr>
					<td rowspan="2" style="background:white;text-align: center;width:50px;" ><img height="42" width="42" src="'.base_url().'resources/img/warning.png" <td>
					<td style="background:#e74c3c">'.$header.'</td>
				</tr>
				<tr >
					<td style="background:white">'.$msg.'. <br>Please refresh <a href="'.base_url().'">click here</a></td>
				</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
		';
		exit();
	}

}
