-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathError.class.php
More file actions
66 lines (61 loc) · 2.26 KB
/
Error.class.php
File metadata and controls
66 lines (61 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Клас 'page_Info' - Шаблон за прозорец със съобщение за грешка
*
* Файлът може да се подмени с друг
*
*
* @category ef
* @package page
* @author Milen Georgiev <milen@download.bg>
* @copyright 2006 - 2012 Experta OOD
* @license GPL 3
* @since v 0.1
* @link
*/
class page_Error extends core_ET {
/**
* Конструктор на шаблона
*/
function page_Error() {
if(Mode::is('screenMode', 'narrow')) {
$this->core_ET(
"\n<CENTER>" .
"\n<table style='max-width:600; border:1px solid red; background-color:#FFFF66'>" .
"\n <tr bgcolor='#FFCC33'>" .
"\n <td style='font-size:1.2em;padding:3px;'>" .
"\n " . tr('Грешка') .
"\n </td>" .
"\n</tr>" .
"\n<tr>" .
"\n <td style='font-size:0.9em;font-family:Arial;padding:5px;'>[#text#]</td>" .
"\n</tr>" .
"\n<!--ET_BEGIN TOOLBAR-->" .
"\n<tr>" .
"\n <td>[#TOOLBAR#]</td>" .
"\n</tr>" .
"\n<!--ET_END TOOLBAR-->" .
"\n</table>" .
"\n</CENTER>");
} else {
$this->core_ET(
"\n<CENTER>" .
"\n<table style='max-width:600;margin-top:50px; border:1px solid red;background-color:#FFFF66'>" .
"\n <tr bgcolor='#FFCC33'>" .
"\n <td style='font-size:36px;padding:5px;'>" .
"\n <img src=" . sbf('img/error.gif') . " align=absmiddle width=48 height=48> " . tr('Грешка') .
"\n </td>" .
"\n</tr>" .
"\n<tr>" .
"\n <td style='font-size:1.2em;font-family:Arial;padding:15px;'>[#text#]</td>" .
"\n</tr>" .
"\n<!--ET_BEGIN TOOLBAR-->" .
"\n<tr>" .
"\n <td><center>[#TOOLBAR#]</center></td>" .
"\n</tr>" .
"\n<!--ET_END TOOLBAR-->" .
"\n</table>" .
"\n</CENTER>");
}
}
}