1 |
296 |
ahitrov |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 |
|
|
<html> |
3 |
|
|
<head> |
4 |
|
|
<title><% $profile->name %></title> |
5 |
|
|
<script language="JavaScript"> |
6 |
|
|
<!-- |
7 |
|
|
function openWin(popup_name,popup_url,popup_with,popup_height) |
8 |
|
|
{ |
9 |
|
|
if(!popup_with) {popup_with = 500;} |
10 |
|
|
if(!popup_height) {popup_height = 500;} |
11 |
|
|
var popup_left = (window.screen.width/2) - (popup_with/2 + 10); |
12 |
|
|
var popup_top = (window.screen.height/2) - (popup_height/2 + 40); |
13 |
|
|
var fenster = window.open(popup_url,popup_name,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + popup_with + ",height=" + popup_height + ",left=" + popup_left + ",top=" + popup_top + ",screenX=" + popup_left + ",screenY=" + popup_top); |
14 |
|
|
fenster.focus(); |
15 |
|
|
} |
16 |
|
|
--> |
17 |
|
|
</script> |
18 |
|
|
% if ($state->development) { |
19 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
20 |
|
|
% } |
21 |
|
|
</head> |
22 |
|
|
|
23 |
|
|
<link href="/<% $prj %>/css/styles.css" rel="stylesheet" type="text/css"> |
24 |
|
|
|
25 |
|
|
<body bgcolor="#ffffff" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"> |
26 |
|
|
|
27 |
|
|
<div class=topback> |
28 |
|
|
<div class=topbackr> |
29 |
|
|
% if ( $profile->top100 ) { |
30 |
|
|
<a href="http://top100.rambler.ru/top100/"><img src="http://counter.rambler.ru/top100.cnt?<% $profile->top100 %>" alt="Rambler's Top100" width=1 height=1 border=0></a><br> |
31 |
|
|
% } |
32 |
|
|
% |
33 |
|
|
% ### Верстка головы |
34 |
|
|
% ######################################################### |
35 |
|
|
% if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) { |
36 |
|
|
<& "/comps/$prj/block_header.msn" &> |
37 |
|
|
% } else { |
38 |
|
|
<& /comps/block_header.msn &> |
39 |
|
|
% } |
40 |
|
|
% ### /Верстка головы |
41 |
|
|
|
42 |
|
|
% ### Главное меню |
43 |
|
|
% ################################################################### |
44 |
|
|
%#<pre><% Dumper($menus) %></pre> |
45 |
|
|
% if ( ref $menus eq 'ARRAY' && scalar @$menus ) { |
46 |
|
|
% my $i = 0; |
47 |
|
|
<div style="margin-left:10px;"> |
48 |
|
|
<table border="0" cellspacing="0" cellpadding="5" class="infoblock menu"> |
49 |
|
|
<tr> |
50 |
|
|
% foreach my $menu ( @$menus ) { |
51 |
|
|
% my $href = $menu->{url}; |
52 |
|
|
% my $target; |
53 |
|
|
% if ( $href && $href =~ /^http:/ ) { |
54 |
|
|
% $href = 'http://www.rambler.ru/click?from=market_'.$prj.'&_URL='.$href; |
55 |
|
|
% $target = ' target="_blank"'; |
56 |
|
|
% } |
57 |
|
|
% my ($a1, $a2) = $href ? ('<a href="'.$href.'"'.$target.' class="topmenu">','</a>') : ('',''); |
58 |
|
|
<td ><% $a1.$menu->{name}.$a2 %></td> |
59 |
|
|
% } |
60 |
|
|
</tr> |
61 |
|
|
</table></div> |
62 |
|
|
% } |
63 |
|
|
% ### /Главное меню |
64 |
|
|
|
65 |
|
|
|
66 |
|
|
</div> |
67 |
|
|
<%init> |
68 |
|
|
|
69 |
|
|
my $prj = $request->{project}; |
70 |
|
|
my $profile = $request->{project_profile}; |
71 |
|
|
my $menus = $profile->get_image('menus'); |
72 |
|
|
|
73 |
|
|
</%init> |