Файл: Arhmobi_esdcms/sys/themes/default_light/tpl/document.tpl.php
Строк: 84
<?php
/**
* @var $this document
*/
?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $lang->xml_lang ?>">
<head>
<title><?=$title?></title>
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="stylesheet" href="/sys/themes/.common/system.css" type="text/css"/>
<link rel="stylesheet" href="/sys/themes/.common/theme_light.css" type="text/css"/>
<link rel="stylesheet" href="<?= $path ?>/style.css" type="text/css"/>
<meta http-equiv="content-Type" content="application/xhtml+xml; charset=utf-8"/>
<meta name="generator" content="DCMS <?= $dcms->version ?>"/>
<? if ($description) { ?>
<meta name="description" content="<?= $description ?>" /><? } ?>
<? if ($keywords) { ?>
<meta name="keywords" content="<?= $keywords ?>" /><? } ?>
<style>
.hide {
display: none !important;
}
</style>
</head>
<body class="theme_light theme_light_light">
<div>
<? if (IS_MAIN) { ?>
<? $this->display('inc.logo.tpl') ?>
<? } ?>
</div>
<? if (!IS_MAIN) { ?>
<? $this->display('inc.title.tpl') ?>
<? } ?>
</div>
<? $this->display('inc.user.tpl') ?>
</div>
<? $this->displaySection('after_title')?>
<div id="tabs">
<?= $this->section($tabs, '<a class="tab sel{selected}" href="{url}">{name}</a>', true); ?>
</div>
<? $this->displaySection('before_content')?>
<div id="content">
<div id="messages">
<?= $this->section($err, '<div class="err">{text}</div>'); ?>
<?= $this->section($msg, '<div class="msg">{text}</div>'); ?>
</div>
<? if (IS_MAIN) { ?>
<? $this->display('ava.user.tpl') ?>
<? } ?>
</div>
<? $this->display('inc.drug.tpl') ?>
</div>
<?php
if($user->id){
$db = DB::me();
if ( $user->date_bonus != date ( 'z' , TIME ) ) {
$listing = new listing();
$post = $listing->post();
$date = date ( 'z' , TIME ) - $user->date_bonus;
if ( $user->day_bonus == 0 || $date > 1 ) $day = 1;
elseif ( $user->day_bonus == 4 ) $day = 5;
else $day = $user->day_bonus + 1;
$post->post= 'Заходите <b>5</b> дней подрят и получите бонус <b>100</b> баллов.<br />';
$post->post .= "<font color='red'>1 день</font> -> ";
if ( $day > 1 ) $post->post .= "<font color='red'>2 день</font> -> "; else $post->post .= "2 день -> ";
if ( $day > 2 ) $post->post .= "<font color='red'>3 день</font> -> "; else $post->post .= "3 день -> ";
if ( $day > 3 ) $post->post .= "<font color='red'>4 день</font> -> "; else $post->post .= "4 день -> ";
if ( $day > 4 ) $post->post .= "<font color='red'>5 день</font>"; else $post->post .= "5 день";
if ( $day > 4 ) {
$day = 0;
$post->post .= "<br/>Ваш бонус за посещения пять дней подрят: <b>100 бонусов</b><br/>n";
$user->balls+=100;
}
else
{
$post->post .= "<br/>Ваш бонус за сегодня: <b>10</b>";
$user->balls+=10;
}
$db->query( "UPDATE `users` SET `date_bonus` = '".date ('z', TIME)."', `day_bonus` = '$day' WHERE `id` = '$user->id' LIMIT 1");
$listing->display();
}}
$this->displaySection('content') ?>
</div>
<? $this->displaySection('after_content')?>
<? $this->display('inc.foot.tpl') ?>
<? if (!IS_MAIN) { ?>
<? $this->displaySection('rekla'); ?>
<?} ?>
<div id="foot">
<?= __(" %s сек", $document_generation_time) ?><br/>
<?= $copyright ?>
</div>
</div>
</body>
</html>