summaryrefslogtreecommitdiff
path: root/httemplate/elements/error.html
blob: 5083799fae85fa94754925172c7cc6bff1d8475b (plain)
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
% if ( $cgi->param('error') ) { 
%   $m->notes('error', $cgi->param('error'));
  <FONT SIZE="+1" COLOR="#ff0000"><% mt("Error: [_1]", $cgi->param('error')) |h %></FONT>
  <BR>
% }

% if ( $cgi->param('error_link') ) {
%   $m->notes('error', $error_link);
  <FONT SIZE="+1" COLOR="#ff0000"><% $error_link %></FONT>
  <BR>
% }
<BR>

<%init>

my %type_error_links = (
  'service' => rooturl()."/view/svc_broadband.cgi?",
  'tower'   => rooturl()."/edit/tower.html?",
);

my $error_link;

if ( $cgi->param('error_link') ) {
  $error_link = encode_entities(decode_base64($cgi->param('error_link')));
  $error_link =~ s/!--(.*)\,(.*)\,(.*)--!/<a href=$type_error_links{$1}$2><font color=red><b>$3<\/b><\/font><\/a>/g;
}

</%init>