Line # Revision Author
1 296 ahitrov <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html>
3 <head>
4 <title><% $profile->name %></title>
5 % if ( ref $favicon && exists $favicon->{filename} ) {
6 <link rel="SHORTCUT ICON" href="<% $favicon->{filename} %>">
7 % }
8 <script language="JavaScript">
9 <!--
10 function openWin(popup_name,popup_url,popup_with,popup_height)
11 {
12 if(!popup_with) {popup_with = 500;}
13 if(!popup_height) {popup_height = 500;}
14 var popup_left = (window.screen.width/2) - (popup_with/2 + 10);
15 var popup_top = (window.screen.height/2) - (popup_height/2 + 40);
16 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);
17 fenster.focus();
18 }
19 -->
20 </script>
21 % if ($state->development) {
22 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
23 % }
24 </head>
25
26 <link href="/<% $prj %>/css/styles.css" rel="stylesheet" type="text/css">
27
28 <body style="background: #FFFFFF; margin:0px; padding:0px;">
29 <div style="position:absolute; width:100%; height:100%; z-index:1;">
30 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100%">
31 <tr>
32 <td height="100%" valign="top">
33 % if ( $profile->top100 ) {
34 <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>
35 % }
36 %
37 % ### Верстка головы
38 % #########################################################
39 % if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) {
40 <& "/comps/$prj/block_header.msn" &>
41 % } else {
42 <& /comps/block_header.msn &>
43 % }
44 % ### /Верстка головы
45
46 % ### Главное меню
47 % ###################################################################
48 %#<pre><% Dumper($menus) %></pre>
49 % if ( ref $menus eq 'ARRAY' && scalar @$menus ) {
50 % my $i = 0;
51 <div style="clear:both;">
52 % foreach my $menu ( @$menus ) {
53 % my $href = $menu->{url};
54 % my $target;
55 % if ( $href && $href =~ /^http:/ ) {
56 % $href = 'http://www.rambler.ru/click?from=market_'.$prj.'&_URL='.$href;
57 % $target = ' target="_blank"';
58 % }
59 % my ($a1, $a2) = $href ? ('<a href="'.$href.'"'.$target.' class="topmenu">','</a>') : ('','');
60 % if ( $i++ ) {
61 % }
62 <div class="m-top-<% $alias && $menu->{alias} eq $alias ? '2' : '1' %>"><% $a1.$menu->{name}.$a2 %></div>
63 % }
64
65 </div>
66 % }
67 % ### /Главное меню
68 <%args>
69
70 $alias => undef
71
72 </%args>
73 <%init>
74
75 my $prj = $request->{project};
76 my $profile = $request->{project_profile};
77 my $menus = $profile->get_image('menus');
78 my $favicon = $profile->get_image('favicon');
79
80 </%init>