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 var Browser;
21 var Width = 0;
22 var Height = 0;
23
24 function R(ths) { _i = new Image(); _i.src = ths; }
25
26 function CheckPhotoArc(Id, Width, Height, Threshold)
27 {
28 // window.status = "Width = " + Width + "; Height = " + Height;
29 if (!Threshold) {
30 Threshold = 600;
31 }
32 for (i=5; i<11; i++) {
33 var d='photo_' + Id + '_' +i;
34 if (document.all[d] && ((Threshold + i*124) < Width) ) {
35 document.all[d].style.display = 'inline';
36 }
37 else if (document.all[d] && ((Threshold + i*124) >= Width) ) {
38 document.all[d].style.display = 'none';
39 }
40 }
41
42 }
43
44 function getWindowSize()
45 {
46 Width = (window.innerWidth||document.body.clientWidth);
47 Height = (window.innerHeight||document.body.clientHeight);
48
49 // window.status = "Width = " + Width + "; Height = " + Height;
50 % if (exists $request->{photorep} && ref $request->{photorep} eq 'ARRAY' && scalar @{$request->{photorep}}) {
51 % foreach my $photorep ( @{$request->{photorep}} ) {
52 CheckPhotoArc(<% $photorep->id %>, Width, Height, 100);
53 % }
54 % }elsif ( exists $request->{photorep} && ref $request->{photorep} ne 'ARRAY' ) {
55 CheckPhotoArc(<% $request->{photorep}->id %>, Width, Height, 550);
56 % }
57 }
58
59 -->
60 </script>
61 % if ($state->development) {
62 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
63 % }
64 </head>
65
66 <link href="/<% $prj %>/css/styles.css" rel="stylesheet" type="text/css">
67
68 <body bgcolor="#000000" onLoad="getWindowSize();" onResize="getWindowSize();">
69
70 % if ( $profile->top100 ) {
71 <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>
72 % }
73 %
74 % ### Верстка головы
75 % #########################################################
76 % if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) {
77 <& "/comps/$prj/block_header.msn" &>
78 % } else {
79 <& /comps/block_header.msn &>
80 % }
81 % ### /Верстка головы
82
83 % ### Главное меню
84 % ###################################################################
85 %#<pre><% Dumper($menus) %></pre>
86 % if ( ref $menus eq 'ARRAY' && scalar @$menus ) {
87 % my $i = 0;
88 <table cellspacing="0" cellpadding="0" width="100%" border="0">
89 <tr>
90 <td width="4%"><div style="width: 10px; height: 1px"><spacer height="1" width="10" type="block"></spacer></div></td>
91 <td width="92%">
92 <table border="0" cellspacing="0" cellpadding="0" bgColor="#929292" width="100%" >
93 <tr>
94 <td style="background:url(/i/<% $prj %>/l_l.gif) no-repeat left" width="165"><img src="/i/<% $prj %>/z.gif" width="165" height="1"></td>
95 <td class="menu" ><div style="width:600px; padding-left:8px; white-space:nowrap;">
96 % foreach my $menu ( @$menus ) {
97 % my $href = $menu->{url};
98 % my $target;
99 % if ( $href && $href =~ /^http:/ ) {
100 % $href = 'http://www.rambler.ru/click?from=market_'.$prj.'&_URL='.$href;
101 % $target = ' target="_blank"';
102 % }
103 % my ($a1, $a2) = $href ? ('<a href="'.$href.'"'.$target.' class="topmenu">','</a>') : ('','');
104 % my $menuname = $menu->{alias} ? '<img src="/i/'.$prj.'/'.$menu->{alias}.'" alt="'.$menu->{name}.'" height="21" border="0" title="'.$menu->{name}.'">' : $menu->{name};
105 <% $a1.$menuname.$a2 %>\
106 % }
107 </div></td>
108 <td style="background:url(/i/<% $prj %>/l_r.gif) no-repeat right;" width="165"><img src="/i/<% $prj %>/z.gif" width="165" height="1"></td>
109 </tr>
110 </table></td>
111 <td width="4%"><div style="width: 10px; height: 1px"><spacer type="block"></div></td>
112 </tr>
113 </table>
114 % }
115 % ### /Главное меню
116
117 <%init>
118
119 my $prj = $request->{project};
120 my $profile = $request->{project_profile};
121 my $menus = $profile->get_image('menus');
122 my $favicon = $profile->get_image('favicon');
123
124 </%init>