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 <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="10" topmargin="0" leftmargin="10">
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 <div style="padding-top:20px;padding-left:11px;padding-right:20px;width:auto" class=topbackgirls>
34 % ### Верстка головы
35 % #########################################################
36 % if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) {
37 <& "/comps/$prj/block_header.msn" &>
38 % } else {
39 <& /comps/block_header.msn &>
40 % }
41 % ### /Верстка головы
42
43 <div style="width:1px;height:30px"></div>
44
45 % ### Главное меню
46 % ###################################################################
47 %#<pre><% Dumper($menus) %></pre>
48 % if ( ref $menus eq 'ARRAY' && scalar @$menus ) {
49 % my $i = 0;
50 <table border="0" cellspacing="0" cellpadding="5" class=infoblock>
51 <tr>
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 <td class=topmenu>|</td>
62 % }
63 <td ><% $a1.$menu->{name}.$a2 %></td>
64 % }
65 </tr>
66 </table>
67 % }
68 % ### /Главное меню
69
70
71 </div>
72 <%init>
73
74 my $prj = $request->{project};
75 my $profile = $request->{project_profile};
76 my $menus = $profile->get_image('menus');
77
78 </%init>