Файл: InstantSocial/uploud/templates/mail/template.php
Строк: 264
<?php
if(!defined('VALID_CMS')) { die('ACCESS DENIED'); }
$inUser = cmsUser::getInstance();
$inCore = cmsCore::getInstance();
$mod_count['top'] = cmsCountModules('top');
$mod_count['new_users'] = cmsCountModules('new_users');
$mod_count['find_user'] = cmsCountModules('find_user');
$mod_count['left'] = cmsCountModules('left');
$mod_count['right'] = cmsCountModules('right');
$mod_count['tab_1'] = cmsCountModules('tab_1');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- HEAD !-->
<?php cmsPrintHead(); ?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<?php if($inUser->is_admin){ ?>
<script src="/admin/js/modconfig.js" type="text/javascript"></script>
<script src="/templates/mail/js/nyromodal.js" type="text/javascript"></script>
<link href="/templates/mail/css/modconfig.css" rel="stylesheet" type="text/css" />
<link href="/templates/mail/css/nyromodal.css" rel="stylesheet" type="text/css" />
<?php } ?>
<link href="/templates/mail/css/reset.css" rel="stylesheet" type="text/css" />
<link href="/templates/mail/css/text.css" rel="stylesheet" type="text/css" />
<link href="/templates/mail/css/styles.css" rel="stylesheet" type="text/css" />
<link href="/templates/mail/css/template.css" rel="stylesheet" type="text/css">
<link href="/templates/mail/css/module_style.css" rel="stylesheet" type="text/css">
<link href="/templates/mail/css/skin.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/templates/mail/js/tabs.js"></script>
<script type="text/javascript" src="/templates/mail/js/jquery.jcarousel.min.js"></script>
<script type="text/javascript">
function mycarousel_initCallback(carousel)
{
// Disable autoscrolling if the user clicks the prev or next button.
carousel.buttonNext.bind('click', function() {
carousel.startAuto(0);
});
carousel.buttonPrev.bind('click', function() {
carousel.startAuto(0);
});
// Pause autoscrolling if the user moves with the cursor over the clip.
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
auto: 2,
wrap: 'last',
initCallback: mycarousel_initCallback
});
});
</script>
</head>
<body>
<div id="wrapper">
<div id="main_top">
<div class="logo">
<div class="d1">
<div class="d2">
<div class="d3">
<div class="d4">
<img src="/templates/mail/images/logo.png" width="176" height="48" alt="InstantSocial" title="InstantSocial"/>
</div>
</div>
</div>
</div>
<div style="color: #666; font-size: 11px; font-weight: bold;text-align:center">
<div id="privet">
<?php if (!$inUser->id){ ?>
<?php } else { ?><span class="priw">Добро пожаловать на @Mail.Ru</span>
<?php } ?>
</div>
<a name="Начало страницы"></a>
<?php
$min=date(i);
$chas=date(H);
if($chas>=04){$hello = "Доброе утро,";}
if($chas>=10){$hello = "Добрый день,";}
if($chas>=16){$hello = "Добрый вечер,";}
if($chas>=22){$hello = "Доброй ночи,";}
echo "$hello ";
if (!$inUser->id){
echo "<span>Гость!</span></p>";
} else {
echo "$inUser->nickname!";
}
function russian_date() {
$translation = array(
"Monday" => "Пн",
"Tuesday" => "Вт",
"Wednesday" => "Ср",
"Thursday" => "Чт",
"Friday" => "Пт",
"Saturday" => "Сб",
"Sunday" => "Вс",
"January" => "Янв",
"February" => "Фев",
"March" => "Мар",
"April" => "Апр",
"May" => "Мая",
"June" => "Июн",
"July" => "Июл",
"August" => "Авг",
"September" => "Сен",
"October" => "Окт",
"November" => "Ноя",
"December" => "Дек",
);
if (func_num_args() > 1) {
$timestamp = func_get_arg(1);
return strtr(date(func_get_arg(0), $timestamp), $translation);
} else {
return strtr(date(func_get_arg(0)), $translation);
};
}
echo russian_date( " Сегодня: l, j F Y г.");
echo " $chas:$min"; ?>
</div>
</div>
<div class="left_divider" style="width:2%;"><div class="mw"> </div></div>
<div class="search_block">
<div id="menuWrap">
<div class="bookmarksBrand">
<div class="bookmarksCell">
<div class="bookmarksList">
<div class="current">
<div class="tlc">
<div>
<div class="ahold">
<p>Поиск в Интернете</p>
</div>
</div>
</div>
</div>
<?php if (!$inUser->id){ ?>
<div class="mod_user_menu"></div>
<?php } else { ?>
<?php cmsModule('header'); ?>
<?php } ?>
</div>
</div>
<div class="brandCell">
<div id="GOBrand">
<div class="c1">
<div class="c2"> </div>
</div>
</div>
</div>
</div>
<div class="brand_back">
<div class="c2">
<div class="c3">
<div class="c4">
<div class="inputpad">
<div id="ja-search">
<form action="/index.php" method="GET" class="search">
<label for="mod_search_searchword"> Search </label>
<table width="100%" border="0">
<tr>
<td rowspan="2" valign="middle" class="inhold">
<input name="query" id="mod_search_searchword" class="inputbox" type="text" size="20" value=""/>
</td>
<td rowspan="2" width="1%" class="btnplace" valign="middle">
<input type="submit" value="" class="button"/>
</td>
</tr>
</table>
<input type="hidden" name="view" value="search"/>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tnorm" width="100%" style="margin-top:4px; vertical-align: top;">
<div style="padding-left:10px; white-space: nowrap; vertical-align: top;">
<div id="meteoprog_1312552240">
<div id="meteoprogc_1312552240_Moscow" class="meteoprogc_1312552240 last" style="display:none">
<div class="w-block">
<table cellspacing="0" cellpadding="0" class="tb" width="100%"><tbody>
<tr>
<td class="w-city">
<a target="_blank" title='Погода в Москве' href="http://www.meteoprog.ua/ru/weather/Moscow/" class="lbl">Погода в <br />Москве</a>
</td>
<td class="w-ajax" colspan="3">
<a target="_blank" title='Погода в Москве' href="http://www.meteoprog.ua/ru/weather/Moscow/">
<span class="w-ajax-body" id="w-ajax-body"><div class="w-temp"><span><span id="meteoprogc_1312552240_Moscow_temp"></span>°C</span></div><div class="w-icon"><div class="w-icon-wp"><img id="meteoprogc_1312552240_Moscow_icon" border="0" src="" /></div></div>
<span class="w-param">
<p>Давление<span><span id="meteoprogc_1312552240_Moscow_press"></span> мм рт.ст.</span></p>
<p>Влажность<span><span id="meteoprogc_1312552240_Moscow_hum"></span>%</span></p>
<p>Ветер<span><span id="meteoprogc_1312552240_Moscow_wshort"></span>, <span id="meteoprogc_1312552240_Moscow_wspeed"></span> м/с</span></p>
</span><span class="cl"></span></span>
</a>
</td>
<td class="w-other">
<a class="go" target="_blank" title='в Москве' href="http://www.meteoprog.ua/ru/weather/Moscow/"><span>Погода на:</span></a>
<a target="_blank" href="http://www.meteoprog.ua/ru/weather/Moscow/">Завтра</a>
<a target="_blank" href="http://www.meteoprog.ua/ru/weather/Moscow/6_10/">7 дней</a>
<a target="_blank" href="http://www.meteoprog.ua/ru/review/Moscow/11_15/">15 дней</a>
</td>
<td class="w-logo">
<a target="_blank" title='Погода в Москве' href="http://www.meteoprog.ua/"><img border="0" src="http://www.meteoprog.ua/images/text_informers/42/meteo_logo.png" alt=""></a>
</td>
</tr>
</tbody></table>
</div>
</div>
</div>
<script type='text/javascript'>
//<![CDATA[
var meteoprog_widget = {
name: '/ru/informerget/?type=42&city[]=Moscow&color=1998D4&txtcolor=000000&day=tommorow&weather=1&wid=1312552240',
type:42 }
//]]>
</script>
<script src='http://www.meteoprog.ua/informers/?id=1312552240' type='text/javascript'></script>
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="left_block">
<div id="left"><?php cmsModule('auth'); ?></div>
<div class="clear"></div>
<div class="top_menu2" style="border:1px solid #fff">
<li class="l_big_my"><a href="/video">Видео</a></li>
<li class="l_big_agent"><a href="/agent.html">Агент</a></li>
<li class="l_big_games"><a href="/apps.html">Игры</a></li>
<li class="l_big_love last"><a href="/users">Люди</a></li>
</div>
<div class="clear"></div>
<div id="menu">
<span class="home"><a href="/">Главная</a></span>
<span class="news"><a href="/photoblog">Фотоблоги</a></span>
<span class="stati"><a href="/stati">Статьи</a></span>
<span class="blogs"><a href="/blogs">Блоги</a></span>
<span class="clubs"><a href="/clubs">Клубы</a></span>
<span class="qa"><a href="/faq">FAQ</a></span>
<span class="catalog"><a href="/catalog">Каталог</a></span>
<span class="board"><a href="/board">Объявления</a></span>
<span class="people"><a href="/users">Люди</a></span>
<span class="forum"><a href="/forum">Форум</a></span>
<span class="maps"><a href="/">Карты</a></span>
</div>
<?php if ($mod_count['new_users']) { ?>
<div id="new_users"><?php cmsModule('new_users'); ?></div>
<?php } ?>
<?php if ($mod_count['find_user']) { ?>
<div id="find_user"><?php cmsModule('find_user'); ?></div>
<?php } ?>
<?php if ($mod_count['left']) { ?>
<div id="left"><?php cmsModule('left'); ?></div>
<?php } ?>
</div>
<div class="left_divider2"><div class="mw"> </div></div>
<?php if ($mod_count['tab_1']) { ?>
<div class="center_block">
<div class="section">
<ul class="tabs">
<li class="current"><span>Новости</span></li>
<li><span>Лучшие клубы</span></li>
<li><span>Объявления</span></li>
</ul>
<div class="box visible">
<div id="tab_mod"><?php cmsModule('tab_1'); ?></div>
</div>
<div class="box">
<div id="tab_mod"><?php cmsModule('tab_2'); ?></div>
</div>
<div class="box">
<div id="tab_mod"><?php cmsModule('tab_3'); ?></div>
</div>
</div><!-- .section -->
<div class="clear"></div>
<div id="main">
<?php cmsModule('maintop'); ?>
<?php cmsModule('mainbottom'); ?>
</div>
<div class="section">
<ul class="tabs">
<li class="current"><span>Лента активности</span></li>
<li><span>Пригласить друга</span></li>
<li><span>Новые Клубы</span></li>
</ul>
<div class="box visible">
<div id="tab_mod"><?php cmsModule('tab_5'); ?></div>
</div>
<div class="box">
<div id="tab_mod"><?php cmsModule('tab_6'); ?></div>
</div>
<div class="box">
<div id="tab_mod"><?php cmsModule('tab_7'); ?></div>
</div>
</div><!-- .section -->
</div>
<?php } ?>
<?php if ($mod_count['right']) { ?>
<div class="right_divider"><div class="mw"> </div></div>
<div class="right_block">
<div class="banner">
<center>
<a href="#"><img src="/templates/mail/images/banner_300x300.png" border="0" width="300" height="300"></a>
</center>
</div>
<div class="clear"></div>
<div id="right"><?php cmsModule('right'); ?></div>
<div id="sample"><?php cmsModule('sample'); ?></div>
</div>
<?php } ?>
<div class="center_com">
<?php $messages = cmsCore::getSessionMessages(); ?>
<?php if ($messages) { ?>
<div class="sess_messages">
<?php foreach($messages as $message){ ?>
<?php echo $message; ?>
<?php } ?>
</div>
<?php } ?>
<?php cmsBody(); ?>
</div>
<div class="right_divider"><div class="mw"> </div></div>
<div class="foot_mod">
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>