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 % if ( $profile->head_html ) {
25 <% $profile->head_html %>
26 % }
27 </head>
28
29 <link href="/<% $prj %>/css/styles.css" rel="stylesheet" type="text/css">
30
31 <body>
32 <div align="center">
33 <div style="width:1000px; padding-bottom:30px;" align="left">
34
35 % if ( $profile->top100 ) {
36 <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>
37 % }
38 %
39 % ### Верстка головы
40 % #########################################################
41 % if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) {
42 <& "/comps/$prj/block_header.msn" &>
43 % } else {
44 <& /comps/block_header.msn &>
45 % }
46 % ### /Верстка головы
47
48 % ### Главное меню
49 % ###################################################################
50 %#<pre><% Dumper($menus) %></pre>
51 % if ( ref $menus eq 'ARRAY' && scalar @$menus ) {
52 % my $i = 0;
53
54 <div style="background:url(/i/<% $prj %>/bg_menu.jpg) no-repeat top left; height:40px;">
55 % foreach my $menu ( @$menus ) {
56 % my $href = $menu->{url};
57 % my $target;
58 % if ( $href && $href =~ /^http:/ ) {
59 % $href = 'http://www.rambler.ru/click?from=market_'.$prj.'&_URL='.$href;
60 % $target = ' target="_blank"';
61 % }
62 % my ($a1, $a2) = $href ? ('<a href="'.$href.'"'.$target.'>','</a>') : ('','');
63 % if ( $i++ ) {
64
65 % }
66 <div class="m-top-<% $alias && $menu->{alias} eq $alias ? '2' : '1' %>"><% $a1.$menu->{name}.$a2 %></div>
67 % }
68
69
70 % }
71 </div>
72 % ### /Главное меню
73 <%args>
74
75 $alias => undef
76
77 </%args>
78 <%init>
79
80 my $prj = $request->{project};
81 my $profile = $request->{project_profile};
82 my $menus = $profile->get_image('menus');
83 my $favicon = $profile->get_image('favicon');
84
85 </%init>