Revision 296 (by ahitrov, 2013/03/26 17:59:01) Promosite (anthill) project source
% if ( $m->comp_exists ("/comps/$prj/header.msn") ) {
<& "/comps/$prj/header.msn", alias => 'main' &>
% } else {
<& "/comps/header.msn", alias => 'main' &>
% }
<div style="background:url(/i/<% $prj %>/f_menu.gif) no-repeat right top; height:61px;"><spacer type="block"></div>
<div style="background:url(/i/<% $prj %>/fon_03.gif) repeat-x left top;">
<div style="height:330px; background:url(/i/<% $prj %>/fon_02.gif) no-repeat right top;" >
<div style="height:330px; background:url(/i/<% $prj %>/fon_01.gif) no-repeat left top;" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr valign="top">
		<td width="545">
<div style="width: 545px;">
%
% ### Аннотация проекта
% ############################################################
%       if ( $m->comp_exists ("/comps/$prj/block_project_anno.msn") ) {
<& "/comps/$prj/block_project_anno.msn" &>
%       } else {
<& "/comps/block_project_anno.msn" &>
%       }
% ### /Аннотация проекта
%
</div>
</td>
		<td width="100%">
<div style="width: 90%">
<div style="padding-left:70px;"><a href="http://www.eaward.ru/register.php" target="_blank"><img border="0" src="/i/<% $prj %>/25000.gif" alt="Первая премия 25 000$" title="Первая премия 25 000$" width="217" height="105"></a></div>
		<div style="padding-left:70px;"><a href="http://www.eaward.ru/register.php" target="_blank"><img src="/i/<% $prj %>/reg.gif" alt="Регистрация" title="Регистрация" width="200" height="27" border="0"></a></div>

%
% ### Блок новостей
% ################################
% if ( $profile->news ) {
%       if ( $m->comp_exists ("/comps/$prj/block_news.msn") ) {
<& "/comps/$prj/block_news.msn" &>
%       } else {
<& /comps/block_news.msn &>
%       }
% }
% ### /Блок новостей
%
</div>
</td>
</tr>
</table></div></div>
<div class="txt" ><a href="http://top100.rambler.ru/top100/" target="_blank"><img border="0" src="/i/<% $prj %>/rrt100.gif" alt="Рейтинг Rambler's Top100" width="359" height="44" align="absmiddle" style="margin-right:10px;"></a><a href="http://top100.rambler.ru/top100/top_add.shtml.ru" target="_blank">Добавь свой сайт</a></div>
</div>
<div style="padding: 20px 0px 20px 70px;">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="25%" class="txt-s">
<a href="http://top100.rambler.ru/top100/Automotive/">Авто/Мото</a><br>
<a href="http://top100.rambler.ru/top100/Government/">Администрации</a><br>
<a href="http://top100.rambler.ru/top100/Analytics/">Аналитика</a><br>
<a href="http://top100.rambler.ru/top100/Banks/">Банки</a><br>
<a href="http://top100.rambler.ru/top100/Security/">Безопасность</a><br>
<a href="http://top100.rambler.ru/top100/Business/">Бизнес и финансы</a><br>

<a href="http://top100.rambler.ru/top100/Towns/">Города и регионы</a><br>
<a href="http://top100.rambler.ru/top100/Kids/">Дети</a><br>
<a href="http://top100.rambler.ru/top100/Design/">Дизайн</a><br>
<a href="http://top100.rambler.ru/top100/Hardware/">Железо</a><br>
<a href="http://top100.rambler.ru/top100/FemaleClub/">Женский клуб</a><br>
<a href="http://top100.rambler.ru/top100/Law/">Законы</a><br>
<a href="http://top100.rambler.ru/top100/Contacts/">Знакомство и общение</a><br>
<a href="http://top100.rambler.ru/top100/Games/">Игры</a><br></td>
<td width="25%" class="txt-s"><a href="http://top100.rambler.ru/top100/Art/">Искусство</a><br>
	<a href="http://top100.rambler.ru/top100/History/">История</a><br>
	<a href="http://top100.rambler.ru/top100/Cinema/">Кино</a><br>
	<a href="http://top100.rambler.ru/top100/Classificators/">Классификаторы</a><br>
	<a href="http://top100.rambler.ru/top100/Companies/">Компании</a><br>
<a href="http://top100.rambler.ru/top100/Computers/">Компьютеры</a><br>
<a href="http://top100.rambler.ru/top100/Literature/">Литература</a><br>
<a href="http://top100.rambler.ru/top100/Health/">Медицина</a><br>
<a href="http://top100.rambler.ru/top100/MP3/">MP3</a><br>

<a href="http://top100.rambler.ru/top100/Music/">Музыка</a><br>
<a href="http://top100.rambler.ru/top100/Science/">Наука</a><br>
<a href="http://top100.rambler.ru/top100/Real-Estate/">Недвижимость</a><br>
<a href="http://top100.rambler.ru/top100/Education/">Образование</a><br>
<a href="http://top100.rambler.ru/top100/Recreation/">Отдых</a><br>
</td>
<td width="25%" class="txt-s">
<a href="http://top100.rambler.ru/top100/Weather/">Погода</a><br>
<a href="http://top100.rambler.ru/top100/Politics/">Политика</a><br>
	<a href="http://top100.rambler.ru/top100/Nature/">Природа</a><br>
	<a href="http://top100.rambler.ru/top100/ISPs/">Провайдеры</a><br>
	<a href="http://top100.rambler.ru/top100/Software/">Программы</a><br>
	<a href="http://top100.rambler.ru/top100/Food/">Продукты питания</a><br>
	<a href="http://top100.rambler.ru/top100/Industry/">Промышленность</a><br>
	<a href="http://top100.rambler.ru/top100/Other/">Прочее</a><br>
	<a href="http://top100.rambler.ru/top100/Travel/">Путешествия</a><br>
	<a href="http://top100.rambler.ru/top100/Job/">Работа</a><a href="http://top100.rambler.ru/top100/Radio/">Радио</a><br>
<a href="http://top100.rambler.ru/top100/Entertainment/">Развлечения</a><br>

<a href="http://top100.rambler.ru/top100/Advertising/">Реклама</a><br>
<a href="http://top100.rambler.ru/top100/Religion/">Религия</a><br>
<a href="http://top100.rambler.ru/top100/Media/">СМИ и периодика</a><br>
</td>
<td width="25%" class="txt-s">
<a href="http://top100.rambler.ru/top100/Communications/">Связь</a><br>
<a href="http://top100.rambler.ru/top100/Services/">Сервисы</a><br>
<a href="http://top100.rambler.ru/top100/Sport/">Спорт</a><br>
<a href="http://top100.rambler.ru/top100/Insurance/">Страхование</a><br>
<a href="http://top100.rambler.ru/top100/Construction/">Строительство</a><br>
<a href="http://top100.rambler.ru/top100/TV/">Телевидение</a><br>

<a href="http://top100.rambler.ru/top100/Technics/">Техника</a><br>
<a href="http://top100.rambler.ru/top100/Technologies/">Технологии</a><br>
<a href="http://top100.rambler.ru/top100/Consum/">Товары и услуги</a><br>
<a href="http://top100.rambler.ru/top100/Transport/">Транспорт</a><br>
<a href="http://top100.rambler.ru/top100/Hobbies/">Увлечения и хобби</a><br>
<a href="http://top100.rambler.ru/top100/Photo/">Фото</a><br>
<a href="http://top100.rambler.ru/top100/Electronics/">Электроника</a><br>
<a href="http://top100.rambler.ru/top100/Humour/">Юмор</a></td>
</tr>
</table>
</div>


% ### Футер
% ##############################################
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) {
<& "/comps/$prj/footer.msn" &>
% } else {
<& "/comps/footer.msn" &>
% }
% ### /Футер
<%args>

        $p      => 1
        $id     => undef

</%args>
<%init>

  my $prj = $request->{project};
  my $profile = $request->{project_profile};
  my $root = $request->{project_section};
  &abort404     if $id && $id !~ /^\d+$/;

  my $document;
  my ($section) = $keeper->get_sections (
		s	=> $root->id,
		class	=> 'promosuite::AnnoSection',
		limit	=> 1,
		status	=> 1,
	);
  if ( $id && ref $section ) {
	$document = $keeper->get_document_by_id ($id,
		s	=> $section->id,
		class	=> 'promosuite::Anons',
		status	=> 1,
        );
  }
</%init>