Файл: _gladiators2_/gladiators2/gladiators/gladiators/menu.php
Строк: 137
<?
include("includes/std.h.php");
include("system/config/values.php");
echo"
<html>
<head>
<meta content="text/html; charset=windows-1251" http-equiv=Content-type>
<link rel=stylesheet style=text/css href=/css/index.css>
<style type='text/css'>
.buttons_tbl { cursor: hand; }
</style>
<script language=javascript>
function window_p(href) {
window.open(href);
}
function MainFrameRedir(href) {
top.frames['main'].window.location.href = href;
}
function GameExit() {
var valid = confirm('Вы действительно хотите выйти?');
if( valid==true )
top.window.location = '/index.php';
}
var hours = ".Date("H").";
var minutes = ".Date("i").";
var seconds = ".Date("s").";
function NewTime() {
seconds++;
if( seconds >= 60 ) {
seconds = 0;
minutes++;
}
if( minutes >= 60 ) {
minutes = 0;
hours++;
}
if( hours >= 24 )
hours = 0;
document.all('clock').innerHTML = '';
if( hours/10 < 1 )
document.all('clock').innerHTML += '0'+hours;
else
document.all('clock').innerHTML += hours;
document.all('clock').innerHTML += ':';
if( minutes/10 < 1 )
document.all('clock').innerHTML += '0'+minutes;
else
document.all('clock').innerHTML += ''+minutes;
document.all('clock').innerHTML += ':';
if( seconds/10 < 1 )
document.all('clock').innerHTML += '0'+seconds;
else
document.all('clock').innerHTML += ''+seconds;
setTimeout('NewTime();',1000);
}
function showTimer() {
var x = event.screenX - 100;
var y = event.screenY - 350;
var sFeatures = 'dialogLeft:'+x+'px;dialogTop:'+y+'px;dialogHeight:50px;dialogWidth:200px;help:no;status:no;unadorned:yes';
window.showModelessDialog('/timer.html', window, sFeatures);
}
</script>
</head>
<body>
<table border=0 width=100% height=35 cellspacing=0 cellpadding=0 bgcolor=#cbcbb0 background="/img/bg_topinface.gif">
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td><img src=".$config["img_server"]."/greece.gif width=163 height=35></b></td>
<td width=100% align=center>Время: <b><span id=clock></span> <a href=# onclick='showTimer();'><small>секундомер</small></a></b></td>
<td align=center><img class=buttons_tbl src=".$config["img_server"]."/b_pers.gif width=102 height=35 onclick="MainFrameRedir('/home.php')" alt='Персонаж'></td>
<td align=center><img class=buttons_tbl src=".$config["img_server"]."/b_forum.gif width=102 height=35 onclick="window_p('/forum/')" alt='Форум'></td>
<td align=center><img class=buttons_tbl src=".$config["img_server"]."/b_stat.gif width=102 height=35 onclick="window_p('/statistics/')" alt='Статистика'></td>
<td align=center><img class=buttons_tbl src=".$config["img_server"]."/b_lib.gif width=102 height=35 onclick="window_p('/lib/')" alt='Библиотека'></td>
<td align=center><img class=buttons_tbl src=".$config["img_server"]."/b_faq.gif width=102 height=35 onclick="window_p('/lib/1.html')" alt='FAQ'></td>
<td align=center><img class=buttons_tbl src=".$config["img_server"]."/b_exit.gif width=35 height=35 onclick="GameExit()" alt='Выход'></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<script language=JavaScript>setTimeout('NewTime();',1);</script>
";
?>