Subversion Repositories SmartDukaan

Rev

Rev 11346 | Rev 11494 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11346 lgm 1
<?php $saholicUrl = $this->session->userdata('errorurl');
2
//echo 'hello'.$saholicUrl;
3
if(isset($saholicUrl) && !empty($saholicUrl)){
4
	$this->session->unset_userdata('errorurl');
11356 lgm 5
}elseif(isset($errorurl) && !empty($errorurl)){
6
	$saholicUrl = $errorurl;
11346 lgm 7
}?>
10737 lgm 8
<!DOCTYPE html>
9
<html lang="en">
10
<head>
11346 lgm 11
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10737 lgm 12
<title>404 Page Not Found</title>
13
<style type="text/css">
14
 
15
::selection{ background-color: #E13300; color: white; }
16
::moz-selection{ background-color: #E13300; color: white; }
17
::webkit-selection{ background-color: #E13300; color: white; }
18
 
19
body {
20
	background-color: #fff;
21
	margin: 0px;
22
	padding:0px;
23
	font: 13px/20px normal Helvetica, Arial, sans-serif;
24
	color: #4F5155;
25
}
26
 
27
a {
28
	color: #003399;
29
	background-color: transparent;
30
	font-weight: normal;
31
}
32
 
33
h1 {
34
	color: #444;
35
	background-color: transparent;
36
	border-bottom: 1px solid #D0D0D0;
37
	font-size: 19px;
38
	font-weight: normal;
39
	margin: 0 0 14px 0;
40
	padding: 14px 15px 10px 15px;
41
}
42
 
43
code {
44
	font-family: Consolas, Monaco, Courier New, Courier, monospace;
45
	font-size: 12px;
46
	background-color: #f9f9f9;
47
	border: 1px solid #D0D0D0;
48
	color: #002166;
49
	display: block;
50
	margin: 14px 0 14px 0;
51
	padding: 12px 10px 12px 10px;
52
}
53
 
54
#container {
55
	/*margin: 10px;
56
	border: 1px solid #D0D0D0;
57
	-webkit-box-shadow: 0 0 8px #D0D0D0;*/
58
}
59
 
60
#error-msg{
61
	float:left;
62
	width:100%;
63
	display:block;
11346 lgm 64
	background:url("<?php echo base_url();?>assets/images/error_page.jpg")no-repeat center center;background-size:100% 100%;
10737 lgm 65
	text-decoration:none;
11346 lgm 66
	text-align:center;
10737 lgm 67
}
68
 
69
p {
70
	margin: 12px 15px 12px 15px;
71
}
72
.errorblock{
11346 lgm 73
  margin: 4% auto 0;
74
  text-align: center;
75
  width: 100%;
76
  color: rgb(9, 8, 8);
77
  background: #efefef;
78
  font-weight: bold;
79
  padding: 5px 0;
10737 lgm 80
}
81
.errorblock h1{
11346 lgm 82
  margin:0;
10737 lgm 83
}
11346 lgm 84
#error-msg a{
85
  display:inline-block;
86
  font-size:18px;
87
  margin-bottom:10px;
88
  color:#000000; 
89
}
90
#error-msg a:nth-of-type(1){
91
  //margin-top:255px;
92
}
93
 
10737 lgm 94
</style>
95
 
96
</head>
97
<body>
98
	<div id="container">
11346 lgm 99
		<div  id="error-msg">
100
			<a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
101
			<?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
102
        <a href="<?php echo $saholicUrl;?>">Try finding the page on our desktop site</a>
103
      <?php } ?>
104
		</div>
10737 lgm 105
 
106
	</div>
107
	<script>
11346 lgm 108
 
109
	var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
110
   	document.getElementById('error-msg').style.minHeight = pheight+'px';  
111
   	document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';
112
 
10737 lgm 113
</script>
114
</body>
115
</html>