View file NewYear/head.php

File size: 2.65Kb
<?
$set['web'] = false;
//header("Content-type: application/vnd.wap.xhtml+xml");
//header("Content-type: application/xhtml+xml");
header("Content-type: text/html");
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!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="ru">
<head>

<title>
<?=$set['title']?>
</title>

<link rel="shortcut icon" href="/style/themes/<?=$set['set_them']?>/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/style.css" type="text/css" />
<?
echo '<script type="text/javascript"> 
imageDir = "http://'.$_SERVER['SERVER_NAME'].'/style/themes/NewYear/img/snow/"; 
sflakesMax = 20; 
sflakesMaxActive = 20; 
svMaxX = 2; 
svMaxY = 6; 
ssnowStick = 1; 
ssnowCollect = 1; 
sfollowMouse = 1; 
sflakeBottom = 950; 
susePNG = 1; 
sflakeTypes = 5; 
sflakeWidth = 15; 
sflakeHeight = 15; 
</script> 
<script type="text/javascript" src="http://'.$_SERVER['SERVER_NAME'].'/style/themes/NewYear/snow.js"></script>';
?>
</head>

<script type="text/javascript">
timeend= new Date();
// IE и FF по разному отрабатывают getYear()
timeend= new Date(timeend.getYear()>1900?(timeend.getYear()+1):(timeend.getYear()+1901),0,1);
// для задания обратного отсчета до определенной даты укажите дату в формате:
// timeend= new Date(ГОД, МЕСЯЦ-1, ДЕНЬ);
// Для задания даты с точностью до времени укажите дату в формате:
// timeend= new Date(ГОД, МЕСЯЦ-1, ДЕНЬ, ЧАСЫ-1, МИНУТЫ);
function time() {
    today = new Date();
    today = Math.floor((timeend-today)/1000);
    tsec=today%60; today=Math.floor(today/60); if(tsec<10)tsec='0'+tsec;
    tmin=today%60; today=Math.floor(today/60); if(tmin<10)tmin='0'+tmin;
    thour=today%24; today=Math.floor(today/24);
    timestr=today +" дней "+ thour+" часов "+tmin+" минут "+tsec+" секунд";
    document.getElementById('t').innerHTML=timestr;
    window.setTimeout("time()",1000);
}
</script>

<body>

<?
if (isset($_SESSION['message']))
{
	echo '<div class="msg">' . $_SESSION['message'] . '</div>';
	$_SESSION['message'] = NULL;
}


	?>
	<center>
	<div class="logo">
	<img src="/style/themes/<?=$set['set_them']?>/logo.png" alt="logo" /><br />
	<body onload="time()"><b><span style="font-size:15px;">До нового 2015 года осталось</span><br/><span id="t"></span></b>
	
	  <br/>
	</div>
	</center>
	<?

echo '<div class="body">';

?>