Revision 296 (by ahitrov, 2013/03/26 17:59:01) Promosite (anthill) project source
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><% $profile->name %></title>
% if ( ref $favicon && exists $favicon->{filename} ) {
<link rel="SHORTCUT ICON" href="<% $favicon->{filename} %>">
% }
<script language="JavaScript">
<!--
function openWin(popup_name,popup_url,popup_with,popup_height)
{
if(!popup_with) {popup_with = 500;}
if(!popup_height) {popup_height = 500;}
	var popup_left = (window.screen.width/2)  - (popup_with/2 + 10);
	var popup_top  = (window.screen.height/2) - (popup_height/2 + 40);
	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);
	fenster.focus();
}
-->
</script>
% if ($state->development) {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
% }
</head>

<link href="/<% $prj %>/css/styles.css" rel="stylesheet" type="text/css">

<body  style="background: #FFFFFF; margin:0px; padding:0px;">
<div style="position:absolute; 	width:100%; 	height:100%; 	z-index:1;">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100%">
	<tr>
		<td  height="100%" valign="top">
% if ( $profile->top100 ) {
<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>
% }
%
% ### Верстка головы
% #########################################################
% if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) {
<& "/comps/$prj/block_header.msn" &>
% } else {
<& /comps/block_header.msn &>
% }
% ### /Верстка головы

% ### Главное меню
% ###################################################################
%#<pre><% Dumper($menus) %></pre>
% if ( ref $menus eq 'ARRAY' && scalar @$menus ) {
%	my $i = 0;
<div style="clear:both;">
%       foreach my $menu ( @$menus ) {
%               my $href = $menu->{url};
%               my $target;
%               if ( $href && $href =~ /^http:/ ) {
%                       $href = 'http://www.rambler.ru/click?from=market_'.$prj.'&_URL='.$href;
%                       $target = ' target="_blank"';
%               }
%               my ($a1, $a2) = $href ? ('<a href="'.$href.'"'.$target.' class="topmenu">','</a>') : ('','');
%               if ( $i++ ) {
%               }
<div class="m-top-<% $alias && $menu->{alias} eq $alias ? '2' : '1' %>"><% $a1.$menu->{name}.$a2 %></div>
%       }

</div>
% }
% ### /Главное меню
<%args>

	$alias	=> undef

</%args>
<%init>

  my $prj = $request->{project};
  my $profile = $request->{project_profile};
  my $menus = $profile->get_image('menus');
  my $favicon = $profile->get_image('favicon');

</%init>