Code cleaning. Remove deprecated html.
This commit is contained in:
parent
3ab06a703b
commit
3d18e4055e
135
canalizaciya.php
135
canalizaciya.php
@ -53,33 +53,33 @@ print "<script>location.href='vxod.php'</script>"; exit();
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Content-Language" content="ru">
|
||||
<link rel=stylesheet type="text/css" href="css/main.css">
|
||||
<SCRIPT LANGUAGE="JavaScript" >
|
||||
<script>
|
||||
let Hint3Name = '';
|
||||
// Заголовок, название скрипта, имя поля с логином
|
||||
function findlogin(title, script, name){
|
||||
document.all("hint3").innerHTML = '<form action="'+script+'" method=GET style="margin:0;"><table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B style="font-size:11px">'+title+'</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>'+
|
||||
document.getElementById("hint3").innerHTML = '<form action="'+script+'" method=GET style="margin:0;"><table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B style="font-size:11px">'+title+'</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>'+
|
||||
'<table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="<? echo @$user['id']; ?>"><td colspan=2>'+
|
||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="'+name+'"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></FORM></TABLE></td></tr></table>';
|
||||
document.all("hint3").style.visibility = "visible";
|
||||
document.all("hint3").style.left = '100px';
|
||||
document.all("hint3").style.top = '100px';
|
||||
document.all(name).focus();
|
||||
document.getElementById("hint3").style.visibility = "visible";
|
||||
document.getElementById("hint3").style.left = '100px';
|
||||
document.getElementById("hint3").style.top = '100px';
|
||||
document.getElementById(name).focus();
|
||||
Hint3Name = name;
|
||||
}
|
||||
|
||||
|
||||
function returned2(s){
|
||||
if (top.oldlocation != '') { top.frames['main'].navigate(top.oldlocation+'?'+s+'tmp='+Math.random()); top.oldlocation=''; }
|
||||
if (top.oldlocation !== '') { top.frames['main'].navigate(top.oldlocation+'?'+s+'tmp='+Math.random()); top.oldlocation=''; }
|
||||
else { top.frames['main'].navigate('main.php?'+s+'tmp='+Math.random()) }
|
||||
}
|
||||
|
||||
function closehint3(){
|
||||
document.all("hint3").style.visibility="hidden";
|
||||
document.getElementById("hint3").style.visibility="hidden";
|
||||
Hint3Name='';
|
||||
}
|
||||
</script>
|
||||
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor="#d7d7d7" onLoad="top.setHP(<?=$user['hp']?>,<?=$user['maxhp']?>,<?if(!$user['battle']){echo"10";}else{echo"0";}?>);">
|
||||
<script LANGUAGE='JavaScript'>
|
||||
<body onLoad="top.setHP(<?=$user['hp']?>,<?=$user['maxhp']?>,<?if(!$user['battle']){echo"10";}else{echo"0";}?>);">
|
||||
<script>
|
||||
<!--document.ondragstart = test;-->
|
||||
//запрет на перетаскивание
|
||||
<!--document.onselectstart = test;-->
|
||||
@ -89,7 +89,7 @@ function closehint3(){
|
||||
function test() {
|
||||
return false
|
||||
}
|
||||
</SCRIPT>
|
||||
</script>
|
||||
<?
|
||||
$ros=mysql_query("SELECT * FROM `labirint` WHERE `user_id`='{$_SESSION['uid']}'");
|
||||
$mir=mysql_fetch_array($ros);
|
||||
@ -110,8 +110,8 @@ if($_GET['kill']!=$glava){
|
||||
mysql_query("DELETE FROM labirint WHERE login='".mysql_escape_string($_GET['kill'])."'");
|
||||
//mysql_query("DELETE FROM `inventory` WHERE name='Бутерброд' and owner='".$varsa['id']."' and podzem='1'");
|
||||
print "<script>location.href='canalizaciya.php'</script>"; exit();
|
||||
}else{print"<font style='font-size:12px; color:#cc0000'>Себя нельзя выгнать.</font>";}
|
||||
}else{print"<font style='font-size:12px; color:#cc0000'>Такого логина не существует или он не в вашей группе.</font>";}
|
||||
}else{print"<span class='error'>Себя нельзя выгнать.</span>";}
|
||||
}else{print"<span class='error'>Такого логина не существует или он не в вашей группе.</span>";}
|
||||
}}
|
||||
//smena lider
|
||||
if($_GET['change']){
|
||||
@ -123,8 +123,8 @@ if($_GET['change']!=$glava){
|
||||
mysql_query("UPDATE labirint SET glav_id='".$varsa['id']."',glava='".$_GET['change']."' WHERE glava='".$user['login']."'");
|
||||
mysql_query("UPDATE podzem3 SET glava='".$_GET['change']."' WHERE glava='".$user['login']."'");
|
||||
print "<script>location.href='canalizaciya.php'</script>"; exit();
|
||||
}else{print"<font style='font-size:12px; color:#cc0000'>Вы и так Лидер.</font>";}
|
||||
}else{print"<font style='font-size:12px; color:#cc0000'>Персонаж не существует или он не в вашей группе.</font>";}
|
||||
}else{print"<span class='error'>Вы и так Лидер.</span>";}
|
||||
}else{print"<span class='error'>Персонаж не существует или он не в вашей группе.</span>";}
|
||||
}}
|
||||
|
||||
$wait_sec=$mir["visit_time"];
|
||||
@ -173,7 +173,7 @@ $red = mysql_query("SELECT n".mysql_escape_string($_GET['n'])." FROM podzem3 WHE
|
||||
if($gef = mysql_fetch_array($red)){
|
||||
$dop = $gef["n".$_GET['n'].""];
|
||||
}
|
||||
if($mesto == $d or $mesto == $d1 or $mesto == $d2 or $mesto == $d3 or $mesto == $d4){
|
||||
if($mesto == $d || $mesto == $d2 || $mesto == $d3 || $mesto == $d4){
|
||||
if($dop!=''){
|
||||
include"podzem/atk.php";
|
||||
}
|
||||
@ -184,10 +184,10 @@ if($mir['el']!='1' and $mesto==$mir['el']){
|
||||
mysql_query("INSERT INTO `inventory` (`owner`,`name`,`type`,`massa`,`cost`,`img`,`maxdur`,`present`,`magic`,`otdel`,`isrep`)
|
||||
VALUES('".$user['id']."','Подземное зелье жизни','50','1','0','food_l9.gif','5','Подземка','8','6','0') ;");
|
||||
mysql_query("UPDATE `labirint` SET el='1' WHERE `glava`='".$glava."' and `login`='".$user['login']."'");
|
||||
print" <font style='font-size:12px; color:red;'>Вы получили 'Подземное зелье жизни'</font><br>";
|
||||
print" <span class='success'>Вы получили 'Подземное зелье жизни'</span>".PHP_EOL;
|
||||
}else{
|
||||
if($mir['el']=='1'){print" <font style='font-size:12px; color:red;'>Вы уже брали зелье!</font><br>";}
|
||||
else{print" <font style='font-size:12px; color:red;'>Невозможно! Вы далеко!</font><br>";}}
|
||||
if($mir['el']=='1'){print" <span class='error'>Вы уже брали зелье!</span>".PHP_EOL;}
|
||||
else{print" <span class='error'>Невозможно! Вы далеко!</span>".PHP_EOL;}}
|
||||
}
|
||||
///////////////Сбор чистых гаек/////////////
|
||||
if($_GET['sun']=='se_gaika_c'){
|
||||
@ -207,8 +207,8 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Чистая гайка";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Чистая гайка'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Чистая гайка'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
|
||||
///////////////Сбор гаек/////////////
|
||||
@ -229,8 +229,8 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Гайка";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Гайка'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Гайка'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
|
||||
/////////////////////////////////////
|
||||
@ -252,8 +252,8 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Вентиль";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Вентиль'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Вентиль'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
|
||||
///////////////Сбор Чистых вентилей/////////////
|
||||
@ -274,8 +274,8 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Чистый вентиль";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Чистый вентиль'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Чистый вентиль'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
/////////////////////////////////////
|
||||
///////////////Сбор Болтов/////////////
|
||||
@ -296,8 +296,8 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Болт";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Болт'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Болт'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
|
||||
///////////////Сбор Длинных Болтов/////////////
|
||||
@ -318,8 +318,8 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Длинный болт";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Длинный болт'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Длинный болт'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
/////////////////////////////////////
|
||||
///////////////Сбор ключиик/////////////
|
||||
@ -332,8 +332,8 @@ if($stloc=='510'){mysql_query("UPDATE `podzem3` SET n$mesto='' WHERE glava='$gla
|
||||
$fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isrep,present) VALUES('Ключиик','1','kluchik.gif','".$user['id']."','200','0.5','0','Лука')");
|
||||
$mis = "Ключиик";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Ключиик'</font>";
|
||||
}else{if($stloc==''){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
print" <span class='success'>Вы получили 'Ключиик'</span>";
|
||||
}else{if($stloc==''){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
/////////////////////////////////////
|
||||
///////////////Сбор сундуков/////////////
|
||||
@ -357,9 +357,9 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Гайка";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Гайка'</font>";
|
||||
print" <span class='success'>Вы получили 'Гайка'</span>";
|
||||
}
|
||||
}else{if($stloc=='13.0'){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
}else{if($stloc=='13.0'){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
/////////////////////////////////////
|
||||
///////////////Сбор сундуков (БОЛТ)/////////////
|
||||
@ -383,9 +383,9 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Болт";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Болт'</font>";
|
||||
print" <span class='success'>Вы получили 'Болт'</span>";
|
||||
}
|
||||
}else{if($stloc=='14.0'){print" <font style='font-size:12px; color:cc0000;'>Кто-то оказался быстрее!</font>";}}
|
||||
}else{if($stloc=='14.0'){print" <span class='error'>Кто-то оказался быстрее!</span>";}}
|
||||
}
|
||||
/////////////////////////////////////
|
||||
///////////////Сбор ключей/////////////
|
||||
@ -400,9 +400,9 @@ if($mesto==$_GET['n']){
|
||||
$fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isrep,present) VALUES('Ключик №".mysql_escape_string($_GET['b'])."','1','$stloc.gif','".$user['id']."','200','0.1','0','Подземка')");
|
||||
//Удаляем ключик с локи
|
||||
//mysql_query("UPDATE `podzem4` SET n".$_GET['n']." = '' WHERE glava='".$glava."' and name='".$mir['name']."'");
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Ключик №".$_GET['b']."'</font>";
|
||||
print" <span class='success'>Вы получили 'Ключик №".$_GET['b']."'</span>";
|
||||
}
|
||||
}else{if($g){print" <font style='font-size:12px; color:cc0000;'>У вас уже есть Ключик №".$_GET['b']."!</font>";}}
|
||||
}else{if($g){print" <span class='error'>У вас уже есть Ключик №".$_GET['b']."!</span>";}}
|
||||
|
||||
}
|
||||
/////////////////////////////////////
|
||||
@ -428,9 +428,9 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Гайка";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Гайка'</font>";
|
||||
print" <span class='success'>Вы получили 'Гайка'</span>";
|
||||
}
|
||||
}else{if($stloc=='11.0'){print" <font style='font-size:12px; color:cc0000;'>Попахивает...</font>";}}
|
||||
}else{if($stloc=='11.0'){print" <span class='error'>Попахивает...</span>";}}
|
||||
}
|
||||
///////////////Сбор гаек из стоков/////////////
|
||||
if($_GET['act']=='stok2'){
|
||||
@ -458,9 +458,9 @@ $fo = mysql_query("INSERT INTO `inventory`(name,maxdur,img,owner,type,massa,isre
|
||||
}
|
||||
$mis = "Гайка";
|
||||
include "podzem_brat.php";
|
||||
print" <font style='font-size:12px; color:cc0000;'>Вы получили 'Гайка'</font>";
|
||||
print" <span class='success'>Вы получили 'Гайка'</span>";
|
||||
}
|
||||
}else{if($stloc=='12.0'){print" <font style='font-size:12px; color:cc0000;'>Попахивает...</font>";}}
|
||||
}else{if($stloc=='12.0'){print" <span class='error'>Попахивает...</span>";}}
|
||||
}
|
||||
/////////////////////////////////////
|
||||
|
||||
@ -500,7 +500,7 @@ $rets = mysql_fetch_array($fers);
|
||||
$ins = mysql_query("SELECT id FROM `inventory` WHERE `owner`='".$user['id']."' and `type`='200' and `name`='Ключик №".$rets["n$loc2"]."'");
|
||||
$setr = mysql_fetch_array($ins);
|
||||
if($rets["n$loc2"]>=1 and $rets["n$loc2"]<=10 and !$setr){
|
||||
print" <font style='font-size:12px; color:cc0000;'>Нужен ключ №".$rets["n$loc2"]."".$rets["n$mesto"]."</font>";}else{
|
||||
print" <span class='error'>Нужен ключ №".$rets["n$loc2"]."".$rets["n$mesto"]."</span>";}else{
|
||||
$vrem=30*60+time();
|
||||
if($_GET['path']==0) {$nav='t=t-12';}
|
||||
if($_GET['path']==1) {$nav='l=l+12';}
|
||||
@ -525,15 +525,15 @@ die("<script>location.href='canalizaciya.php';</script>");
|
||||
<td valign="top" align="left">
|
||||
<?php
|
||||
//Вывести хп и ману
|
||||
print "<div style=\"font-size: 12px\">". echo nick($user)."</div>";
|
||||
print "<div style=\"font-size: 12px\">". nick($user)."</div>";
|
||||
?>
|
||||
<br><br>
|
||||
<center><table width="450" border="0" cellspacing="1" cellpadding="0">
|
||||
<div style="text-align: center;"><table width="450" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td background="i/labirint3/bg_scroll_01.gif" align="center">Персонаж</td>
|
||||
<td background="i/labirint3/bg_scroll_01.gif" align="center">Hp</td>
|
||||
<td background="i/labirint3/bg_scroll_01.gif" align="center">Звание</td>
|
||||
<td background="i/labirint3/bg_scroll_01.gif" align="center">Подземелье</td>
|
||||
<td align="center">Персонаж</td>
|
||||
<td align="center">Hp</td>
|
||||
<td align="center">Звание</td>
|
||||
<td align="center">Подземелье</td>
|
||||
</tr>
|
||||
<?
|
||||
$rog=mysql_query("SELECT login,name,glava FROM `labirint` WHERE `glava`='$glava'");
|
||||
@ -541,24 +541,24 @@ while($more=mysql_fetch_array($rog)){
|
||||
$big = mysql_fetch_array(mysql_query("SELECT hp,maxhp,id FROM `users` WHERE `login` = '".$more['login']."'"));
|
||||
?>
|
||||
<tr>
|
||||
<td background="i/labirint3/bg_scroll_05.gif" align="center">
|
||||
<td align="center">
|
||||
<a href=inf.php?<?=$big['id']?> target=_blank title="Информация о <?=$more['login']?>"><?=$more['login']?></a></td>
|
||||
<td background="i/labirint3/bg_scroll_05.gif" align="center"><?=$big['hp']?>/<?=$big['maxhp']?> </td>
|
||||
<td background="i/labirint3/bg_scroll_05.gif" align="center"><?if($more['login']==$more['glava']){print"Лидер";}else{print"Рядовой";}?></td>
|
||||
<td background="i/labirint3/bg_scroll_05.gif" align="center"><?=$more['name']?></td>
|
||||
<td align="center"><?=$big['hp']?>/<?=$big['maxhp']?> </td>
|
||||
<td align="center"><?if($more['login']==$more['glava']){print"Лидер";}else{print"Рядовой";}?></td>
|
||||
<td align="center"><?=$more['name']?></td>
|
||||
<? if($user['login']==$more['glava'] and $more['login']==$more['glava']){ ?>
|
||||
<td background="i/labirint3/bg_scroll_05.gif" align="center"><A href="#" onClick="findlogin( 'Выберите персонажа которого хотите выгнать','canalizaciya.php', 'kill')"><IMG alt="Выгнать из группы" src="i/labirint3/ico_kill_member1.gif" WIDTH="14" HEIGHT="17"></A> <A href="#" onClick="findlogin( 'Выберите персонажа которому хотите передать лидерство','canalizaciya.php', 'change')"><IMG alt="Передать лидерство" src="i/labirint3/ico_change_leader1.gif" WIDTH="14" HEIGHT="17"></A></td>
|
||||
<td align="center"><A href="#" onClick="findlogin( 'Выберите персонажа которого хотите выгнать','canalizaciya.php', 'kill')"><IMG alt="Выгнать из группы" src="i/labirint3/ico_kill_member1.gif"></A> <A href="#" onClick="findlogin( 'Выберите персонажа которому хотите передать лидерство','canalizaciya.php', 'change')"><IMG alt="Передать лидерство" src="i/labirint3/ico_change_leader1.gif"></A></td>
|
||||
<?
|
||||
}
|
||||
print"</tr>";
|
||||
}
|
||||
?>
|
||||
</table></center>
|
||||
</table></div>
|
||||
<?
|
||||
|
||||
print"<br>";
|
||||
|
||||
if($mir['dead']>'0'){print"<br><font style='font-size:15px; color:#600'> <b> Кол-во смертей:</font></b> <b style='font-size:14px; color:#000'>".$mir['dead']."</b><br><br>";}
|
||||
if($mir['dead']>'0'){print"<br><span class='error'> Кол-во смертей:</span> <b>".$mir['dead']."</b><br><br>";}
|
||||
|
||||
include "podzem_res.php";
|
||||
?>
|
||||
@ -566,7 +566,7 @@ include "podzem_res.php";
|
||||
<td align="right" width="530" height="285">
|
||||
<?
|
||||
include"navig.php";
|
||||
echo build_move_image($mesto, $vektor, 1, $glava);
|
||||
echo build_move_image($mesto, $vektor, 1);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -671,7 +671,7 @@ if (mtime>0) {
|
||||
BODY {
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
margin: 0px 0px 0px 0px;
|
||||
margin: 0;
|
||||
|
||||
scrollbar-face-color: #e3ac67;
|
||||
scrollbar-highlight-color: #e0c3a0;
|
||||
@ -686,17 +686,17 @@ BODY {
|
||||
background-color: #E4F2DF;
|
||||
border-style: solid; border-width: 2px; border-color: #77c3fc
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
cursor:hand;
|
||||
}
|
||||
a.menuItem {
|
||||
border: 0px solid #000000;
|
||||
border: 0 solid #000000;
|
||||
background-color: #484848;
|
||||
color: #000000;
|
||||
display: block;
|
||||
font-family: Verdana, Arial;
|
||||
font-family: Verdana, Arial,serif;
|
||||
font-size: 8pt;
|
||||
font-weight: bold;
|
||||
padding: 2px 12px 2px 8px;
|
||||
@ -713,7 +713,7 @@ margin: 0;
|
||||
padding: 0;
|
||||
width:100%;
|
||||
|
||||
font-family: Arial;
|
||||
font-family: Arial.serif;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
@ -730,17 +730,12 @@ img {
|
||||
border:0;
|
||||
}
|
||||
|
||||
#corners {
|
||||
background: url(images/4.jpg) center top no-repeat;
|
||||
}
|
||||
|
||||
A:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #fddd00; text-decoration:none;}
|
||||
A:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #fddd00; text-decoration:none;}
|
||||
A:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #fddd00; text-decoration:none;}
|
||||
|
||||
.form {
|
||||
background-color: #5B0200;
|
||||
color: #000000;
|
||||
border: 1px solid #6F4B3F;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
color: #DAA43A;
|
||||
@ -793,7 +788,7 @@ function dialog()
|
||||
}
|
||||
function OpenMenu(n,e){
|
||||
let el, x, y;
|
||||
el = document.all("oMenu");
|
||||
el = document.getElementById("oMenu");
|
||||
const event = (window.event) ? window.event : e;
|
||||
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
|
||||
y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
|
||||
|
@ -1,194 +1,250 @@
|
||||
<?
|
||||
if ($user['room'] == 403) {
|
||||
$nes = mysql_query("SELECT * FROM podzem2 WHERE name='".$mir['name']."'");
|
||||
$s = mysql_fetch_array($nes);
|
||||
$s = db::c()->query('SELECT * FROM podzem2 WHERE name= "?s"', $mir['name'])->fetch_assoc();
|
||||
|
||||
$rooms[0] = "";
|
||||
// характеристики комнат
|
||||
$rhar=array();
|
||||
$rhar = [];
|
||||
$vector = 0;
|
||||
$rhar['01']=array($s["v1"],$s["p1"],$s["n1"],$s["l1"]);
|
||||
$rhar['02']=array($s["v2"],$s["p2"],$s["n2"],$s["l2"]);
|
||||
$rhar['03']=array($s["v3"],$s["p3"],$s["n3"],$s["l3"]);
|
||||
$rhar['04']=array($s["v4"],$s["p4"],$s["n4"],$s["l4"]);
|
||||
$rhar['05']=array($s["v5"],$s["p5"],$s["n5"],$s["l5"]);
|
||||
$rhar['06']=array($s["v6"],$s["p6"],$s["n6"],$s["l6"]);
|
||||
$rhar['07']=array($s["v7"],$s["p7"],$s["n7"],$s["l7"]);
|
||||
$rhar['08']=array($s["v8"],$s["p8"],$s["n8"],$s["l8"]);
|
||||
$rhar['09']=array($s["v9"],$s["p9"],$s["n9"],$s["l9"]);
|
||||
$rhar['01'] = [$s["v1"], $s["p1"], $s["n1"], $s["l1"]];
|
||||
$rhar['02'] = [$s["v2"], $s["p2"], $s["n2"], $s["l2"]];
|
||||
$rhar['03'] = [$s["v3"], $s["p3"], $s["n3"], $s["l3"]];
|
||||
$rhar['04'] = [$s["v4"], $s["p4"], $s["n4"], $s["l4"]];
|
||||
$rhar['05'] = [$s["v5"], $s["p5"], $s["n5"], $s["l5"]];
|
||||
$rhar['06'] = [$s["v6"], $s["p6"], $s["n6"], $s["l6"]];
|
||||
$rhar['07'] = [$s["v7"], $s["p7"], $s["n7"], $s["l7"]];
|
||||
$rhar['08'] = [$s["v8"], $s["p8"], $s["n8"], $s["l8"]];
|
||||
$rhar['09'] = [$s["v9"], $s["p9"], $s["n9"], $s["l9"]];
|
||||
|
||||
|
||||
$rhar['11']=array($s["v11"],$s["p11"],$s["n11"],$s["l11"]);
|
||||
$rhar['12']=array($s["v12"],$s["p12"],$s["n12"],$s["l12"]);
|
||||
$rhar['13']=array($s["v13"],$s["p13"],$s["n13"],$s["l13"]);
|
||||
$rhar['14']=array($s["v14"],$s["p14"],$s["n14"],$s["l14"]);
|
||||
$rhar['15']=array($s["v15"],$s["p15"],$s["n15"],$s["l15"]);
|
||||
$rhar['16']=array($s["v16"],$s["p16"],$s["n16"],$s["l16"]);
|
||||
$rhar['17']=array($s["v17"],$s["p17"],$s["n17"],$s["l17"]);
|
||||
$rhar['18']=array($s["v18"],$s["p18"],$s["n18"],$s["l18"]);
|
||||
$rhar['19']=array($s["v19"],$s["p19"],$s["n19"],$s["l19"]);
|
||||
$rhar['11'] = [$s["v11"], $s["p11"], $s["n11"], $s["l11"]];
|
||||
$rhar['12'] = [$s["v12"], $s["p12"], $s["n12"], $s["l12"]];
|
||||
$rhar['13'] = [$s["v13"], $s["p13"], $s["n13"], $s["l13"]];
|
||||
$rhar['14'] = [$s["v14"], $s["p14"], $s["n14"], $s["l14"]];
|
||||
$rhar['15'] = [$s["v15"], $s["p15"], $s["n15"], $s["l15"]];
|
||||
$rhar['16'] = [$s["v16"], $s["p16"], $s["n16"], $s["l16"]];
|
||||
$rhar['17'] = [$s["v17"], $s["p17"], $s["n17"], $s["l17"]];
|
||||
$rhar['18'] = [$s["v18"], $s["p18"], $s["n18"], $s["l18"]];
|
||||
$rhar['19'] = [$s["v19"], $s["p19"], $s["n19"], $s["l19"]];
|
||||
|
||||
$rhar['21']=array($s["v21"],$s["p21"],$s["n21"],$s["l21"]);
|
||||
$rhar['22']=array($s["v22"],$s["p22"],$s["n22"],$s["l22"]);
|
||||
$rhar['23']=array($s["v23"],$s["p23"],$s["n23"],$s["l23"]);
|
||||
$rhar['24']=array($s["v24"],$s["p24"],$s["n24"],$s["l24"]);
|
||||
$rhar['25']=array($s["v25"],$s["p25"],$s["n25"],$s["l25"]);
|
||||
$rhar['26']=array($s["v26"],$s["p26"],$s["n26"],$s["l26"]);
|
||||
$rhar['27']=array($s["v27"],$s["p27"],$s["n27"],$s["l27"]);
|
||||
$rhar['28']=array($s["v28"],$s["p28"],$s["n28"],$s["l28"]);
|
||||
$rhar['29']=array($s["v29"],$s["p29"],$s["n29"],$s["l29"]);
|
||||
$rhar['21'] = [$s["v21"], $s["p21"], $s["n21"], $s["l21"]];
|
||||
$rhar['22'] = [$s["v22"], $s["p22"], $s["n22"], $s["l22"]];
|
||||
$rhar['23'] = [$s["v23"], $s["p23"], $s["n23"], $s["l23"]];
|
||||
$rhar['24'] = [$s["v24"], $s["p24"], $s["n24"], $s["l24"]];
|
||||
$rhar['25'] = [$s["v25"], $s["p25"], $s["n25"], $s["l25"]];
|
||||
$rhar['26'] = [$s["v26"], $s["p26"], $s["n26"], $s["l26"]];
|
||||
$rhar['27'] = [$s["v27"], $s["p27"], $s["n27"], $s["l27"]];
|
||||
$rhar['28'] = [$s["v28"], $s["p28"], $s["n28"], $s["l28"]];
|
||||
$rhar['29'] = [$s["v29"], $s["p29"], $s["n29"], $s["l29"]];
|
||||
|
||||
$rhar['31']=array($s["v31"],$s["p31"],$s["n31"],$s["l31"]);
|
||||
$rhar['32']=array($s["v32"],$s["p32"],$s["n32"],$s["l32"]);
|
||||
$rhar['33']=array($s["v33"],$s["p33"],$s["n33"],$s["l33"]);
|
||||
$rhar['34']=array($s["v34"],$s["p34"],$s["n34"],$s["l34"]);
|
||||
$rhar['35']=array($s["v35"],$s["p35"],$s["n35"],$s["l35"]);
|
||||
$rhar['36']=array($s["v36"],$s["p36"],$s["n36"],$s["l36"]);
|
||||
$rhar['37']=array($s["v37"],$s["p37"],$s["n37"],$s["l37"]);
|
||||
$rhar['38']=array($s["v38"],$s["p38"],$s["n38"],$s["l38"]);
|
||||
$rhar['39']=array($s["v39"],$s["p39"],$s["n39"],$s["l39"]);
|
||||
$rhar['31'] = [$s["v31"], $s["p31"], $s["n31"], $s["l31"]];
|
||||
$rhar['32'] = [$s["v32"], $s["p32"], $s["n32"], $s["l32"]];
|
||||
$rhar['33'] = [$s["v33"], $s["p33"], $s["n33"], $s["l33"]];
|
||||
$rhar['34'] = [$s["v34"], $s["p34"], $s["n34"], $s["l34"]];
|
||||
$rhar['35'] = [$s["v35"], $s["p35"], $s["n35"], $s["l35"]];
|
||||
$rhar['36'] = [$s["v36"], $s["p36"], $s["n36"], $s["l36"]];
|
||||
$rhar['37'] = [$s["v37"], $s["p37"], $s["n37"], $s["l37"]];
|
||||
$rhar['38'] = [$s["v38"], $s["p38"], $s["n38"], $s["l38"]];
|
||||
$rhar['39'] = [$s["v39"], $s["p39"], $s["n39"], $s["l39"]];
|
||||
|
||||
$rhar['41']=array($s["v41"],$s["p41"],$s["n41"],$s["l41"]);
|
||||
$rhar['42']=array($s["v42"],$s["p42"],$s["n42"],$s["l42"]);
|
||||
$rhar['43']=array($s["v43"],$s["p43"],$s["n43"],$s["l43"]);
|
||||
$rhar['44']=array($s["v44"],$s["p44"],$s["n44"],$s["l44"]);
|
||||
$rhar['45']=array($s["v45"],$s["p45"],$s["n45"],$s["l45"]);
|
||||
$rhar['46']=array($s["v46"],$s["p46"],$s["n46"],$s["l46"]);
|
||||
$rhar['47']=array($s["v47"],$s["p47"],$s["n47"],$s["l47"]);
|
||||
$rhar['48']=array($s["v48"],$s["p48"],$s["n48"],$s["l48"]);
|
||||
$rhar['49']=array($s["v49"],$s["p49"],$s["n49"],$s["l49"]);
|
||||
$rhar['41'] = [$s["v41"], $s["p41"], $s["n41"], $s["l41"]];
|
||||
$rhar['42'] = [$s["v42"], $s["p42"], $s["n42"], $s["l42"]];
|
||||
$rhar['43'] = [$s["v43"], $s["p43"], $s["n43"], $s["l43"]];
|
||||
$rhar['44'] = [$s["v44"], $s["p44"], $s["n44"], $s["l44"]];
|
||||
$rhar['45'] = [$s["v45"], $s["p45"], $s["n45"], $s["l45"]];
|
||||
$rhar['46'] = [$s["v46"], $s["p46"], $s["n46"], $s["l46"]];
|
||||
$rhar['47'] = [$s["v47"], $s["p47"], $s["n47"], $s["l47"]];
|
||||
$rhar['48'] = [$s["v48"], $s["p48"], $s["n48"], $s["l48"]];
|
||||
$rhar['49'] = [$s["v49"], $s["p49"], $s["n49"], $s["l49"]];
|
||||
|
||||
$rhar['51']=array($s["v51"],$s["p51"],$s["n51"],$s["l51"]);
|
||||
$rhar['52']=array($s["v52"],$s["p52"],$s["n52"],$s["l52"]);
|
||||
$rhar['53']=array($s["v53"],$s["p53"],$s["n53"],$s["l53"]);
|
||||
$rhar['54']=array($s["v54"],$s["p54"],$s["n54"],$s["l54"]);
|
||||
$rhar['55']=array($s["v55"],$s["p55"],$s["n55"],$s["l55"]);
|
||||
$rhar['56']=array($s["v56"],$s["p56"],$s["n56"],$s["l56"]);
|
||||
$rhar['57']=array($s["v57"],$s["p57"],$s["n57"],$s["l57"]);
|
||||
$rhar['58']=array($s["v58"],$s["p58"],$s["n58"],$s["l58"]);
|
||||
$rhar['59']=array($s["v59"],$s["p59"],$s["n59"],$s["l59"]);
|
||||
$rhar['51'] = [$s["v51"], $s["p51"], $s["n51"], $s["l51"]];
|
||||
$rhar['52'] = [$s["v52"], $s["p52"], $s["n52"], $s["l52"]];
|
||||
$rhar['53'] = [$s["v53"], $s["p53"], $s["n53"], $s["l53"]];
|
||||
$rhar['54'] = [$s["v54"], $s["p54"], $s["n54"], $s["l54"]];
|
||||
$rhar['55'] = [$s["v55"], $s["p55"], $s["n55"], $s["l55"]];
|
||||
$rhar['56'] = [$s["v56"], $s["p56"], $s["n56"], $s["l56"]];
|
||||
$rhar['57'] = [$s["v57"], $s["p57"], $s["n57"], $s["l57"]];
|
||||
$rhar['58'] = [$s["v58"], $s["p58"], $s["n58"], $s["l58"]];
|
||||
$rhar['59'] = [$s["v59"], $s["p59"], $s["n59"], $s["l59"]];
|
||||
|
||||
$rhar['61']=array($s["v61"],$s["p61"],$s["n61"],$s["l61"]);
|
||||
$rhar['62']=array($s["v62"],$s["p62"],$s["n62"],$s["l62"]);
|
||||
$rhar['63']=array($s["v63"],$s["p63"],$s["n63"],$s["l63"]);
|
||||
$rhar['64']=array($s["v64"],$s["p64"],$s["n64"],$s["l64"]);
|
||||
$rhar['65']=array($s["v65"],$s["p65"],$s["n65"],$s["l65"]);
|
||||
$rhar['66']=array($s["v66"],$s["p66"],$s["n66"],$s["l66"]);
|
||||
$rhar['67']=array($s["v67"],$s["p67"],$s["n67"],$s["l67"]);
|
||||
$rhar['68']=array($s["v68"],$s["p68"],$s["n68"],$s["l68"]);
|
||||
$rhar['69']=array($s["v69"],$s["p69"],$s["n69"],$s["l69"]);
|
||||
$rhar['61'] = [$s["v61"], $s["p61"], $s["n61"], $s["l61"]];
|
||||
$rhar['62'] = [$s["v62"], $s["p62"], $s["n62"], $s["l62"]];
|
||||
$rhar['63'] = [$s["v63"], $s["p63"], $s["n63"], $s["l63"]];
|
||||
$rhar['64'] = [$s["v64"], $s["p64"], $s["n64"], $s["l64"]];
|
||||
$rhar['65'] = [$s["v65"], $s["p65"], $s["n65"], $s["l65"]];
|
||||
$rhar['66'] = [$s["v66"], $s["p66"], $s["n66"], $s["l66"]];
|
||||
$rhar['67'] = [$s["v67"], $s["p67"], $s["n67"], $s["l67"]];
|
||||
$rhar['68'] = [$s["v68"], $s["p68"], $s["n68"], $s["l68"]];
|
||||
$rhar['69'] = [$s["v69"], $s["p69"], $s["n69"], $s["l69"]];
|
||||
|
||||
$rhar['71']=array($s["v71"],$s["p71"],$s["n71"],$s["l71"]);
|
||||
$rhar['72']=array($s["v72"],$s["p72"],$s["n72"],$s["l72"]);
|
||||
$rhar['73']=array($s["v73"],$s["p73"],$s["n73"],$s["l73"]);
|
||||
$rhar['74']=array($s["v74"],$s["p74"],$s["n74"],$s["l74"]);
|
||||
$rhar['75']=array($s["v75"],$s["p75"],$s["n75"],$s["l75"]);
|
||||
$rhar['76']=array($s["v76"],$s["p76"],$s["n76"],$s["l76"]);
|
||||
$rhar['77']=array($s["v77"],$s["p77"],$s["n77"],$s["l77"]);
|
||||
$rhar['78']=array($s["v78"],$s["p78"],$s["n78"],$s["l78"]);
|
||||
$rhar['79']=array($s["v79"],$s["p79"],$s["n79"],$s["l79"]);
|
||||
$rhar['71'] = [$s["v71"], $s["p71"], $s["n71"], $s["l71"]];
|
||||
$rhar['72'] = [$s["v72"], $s["p72"], $s["n72"], $s["l72"]];
|
||||
$rhar['73'] = [$s["v73"], $s["p73"], $s["n73"], $s["l73"]];
|
||||
$rhar['74'] = [$s["v74"], $s["p74"], $s["n74"], $s["l74"]];
|
||||
$rhar['75'] = [$s["v75"], $s["p75"], $s["n75"], $s["l75"]];
|
||||
$rhar['76'] = [$s["v76"], $s["p76"], $s["n76"], $s["l76"]];
|
||||
$rhar['77'] = [$s["v77"], $s["p77"], $s["n77"], $s["l77"]];
|
||||
$rhar['78'] = [$s["v78"], $s["p78"], $s["n78"], $s["l78"]];
|
||||
$rhar['79'] = [$s["v79"], $s["p79"], $s["n79"], $s["l79"]];
|
||||
|
||||
$rhar['81']=array($s["v81"],$s["p81"],$s["n81"],$s["l81"]);
|
||||
$rhar['82']=array($s["v82"],$s["p82"],$s["n82"],$s["l82"]);
|
||||
$rhar['83']=array($s["v83"],$s["p83"],$s["n83"],$s["l83"]);
|
||||
$rhar['84']=array($s["v84"],$s["p84"],$s["n84"],$s["l84"]);
|
||||
$rhar['85']=array($s["v85"],$s["p85"],$s["n85"],$s["l85"]);
|
||||
$rhar['86']=array($s["v86"],$s["p86"],$s["n86"],$s["l86"]);
|
||||
$rhar['87']=array($s["v87"],$s["p87"],$s["n87"],$s["l87"]);
|
||||
$rhar['88']=array($s["v88"],$s["p88"],$s["n88"],$s["l88"]);
|
||||
$rhar['89']=array($s["v89"],$s["p89"],$s["n89"],$s["l89"]);
|
||||
$rhar['81'] = [$s["v81"], $s["p81"], $s["n81"], $s["l81"]];
|
||||
$rhar['82'] = [$s["v82"], $s["p82"], $s["n82"], $s["l82"]];
|
||||
$rhar['83'] = [$s["v83"], $s["p83"], $s["n83"], $s["l83"]];
|
||||
$rhar['84'] = [$s["v84"], $s["p84"], $s["n84"], $s["l84"]];
|
||||
$rhar['85'] = [$s["v85"], $s["p85"], $s["n85"], $s["l85"]];
|
||||
$rhar['86'] = [$s["v86"], $s["p86"], $s["n86"], $s["l86"]];
|
||||
$rhar['87'] = [$s["v87"], $s["p87"], $s["n87"], $s["l87"]];
|
||||
$rhar['88'] = [$s["v88"], $s["p88"], $s["n88"], $s["l88"]];
|
||||
$rhar['89'] = [$s["v89"], $s["p89"], $s["n89"], $s["l89"]];
|
||||
|
||||
$rhar['91']=array($s["v91"],$s["p91"],$s["n91"],$s["l91"]);
|
||||
$rhar['92']=array($s["v92"],$s["p92"],$s["n92"],$s["l92"]);
|
||||
$rhar['93']=array($s["v93"],$s["p93"],$s["n93"],$s["l93"]);
|
||||
$rhar['94']=array($s["v94"],$s["p94"],$s["n94"],$s["l94"]);
|
||||
$rhar['95']=array($s["v95"],$s["p95"],$s["n95"],$s["l95"]);
|
||||
$rhar['96']=array($s["v96"],$s["p96"],$s["n96"],$s["l96"]);
|
||||
$rhar['97']=array($s["v97"],$s["p97"],$s["n97"],$s["l97"]);
|
||||
$rhar['98']=array($s["v98"],$s["p98"],$s["n98"],$s["l98"]);
|
||||
$rhar['99']=array($s["v99"],$s["p99"],$s["n99"],$s["l99"]);
|
||||
$rhar['91'] = [$s["v91"], $s["p91"], $s["n91"], $s["l91"]];
|
||||
$rhar['92'] = [$s["v92"], $s["p92"], $s["n92"], $s["l92"]];
|
||||
$rhar['93'] = [$s["v93"], $s["p93"], $s["n93"], $s["l93"]];
|
||||
$rhar['94'] = [$s["v94"], $s["p94"], $s["n94"], $s["l94"]];
|
||||
$rhar['95'] = [$s["v95"], $s["p95"], $s["n95"], $s["l95"]];
|
||||
$rhar['96'] = [$s["v96"], $s["p96"], $s["n96"], $s["l96"]];
|
||||
$rhar['97'] = [$s["v97"], $s["p97"], $s["n97"], $s["l97"]];
|
||||
$rhar['98'] = [$s["v98"], $s["p98"], $s["n98"], $s["l98"]];
|
||||
$rhar['99'] = [$s["v99"], $s["p99"], $s["n99"], $s["l99"]];
|
||||
|
||||
|
||||
|
||||
function build_move_image($location, $vector, $styles,$glava) {
|
||||
function build_move_image($location, $vector, $styles)
|
||||
{
|
||||
$step1 = next_step($location, $vector);
|
||||
if($step1['fwd']) {$step2=next_step($step1['fwd'], $vector);}
|
||||
if($step2['fwd']) {$step3=next_step($step2['fwd'], $vector);}
|
||||
if($step3['fwd']) {$step4=next_step($step3['fwd'], $vector);}
|
||||
else{$step4['fwd']=false;}
|
||||
if ($step1['fwd']) {
|
||||
$step2 = next_step($step1['fwd'], $vector);
|
||||
}
|
||||
if (!empty($step2['fwd'])) {
|
||||
$step3 = next_step($step2['fwd'], $vector);
|
||||
}
|
||||
if (!empty($step3['fwd'])) {
|
||||
$step4 = next_step($step3['fwd'], $vector);
|
||||
} else {
|
||||
$step4['fwd'] = false;
|
||||
}
|
||||
$s = '';
|
||||
|
||||
if (!$step4['left']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ln4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if ($step4['left']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ly4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if ($step4['right']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ry4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step4['right']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/rn4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
|
||||
if(!$step4['left']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ln4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if($step4['left']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ly4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if($step4['right']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ry4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if(!$step4['right']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/rn4.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if (!$step3['right']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/rn3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if ($step3['right']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ry3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if ($step3['left']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ly3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if (!$step3['left']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ln3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
|
||||
if(!$step3['right']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/rn3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if($step3['right']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ry3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if($step3['left']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ly3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if(!$step3['left']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ln3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step2['right']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/rn2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if ($step2['right']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ry2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if ($step2['left']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ly2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step2['left']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ln2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
|
||||
if(!$step2['right']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/rn2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if($step2['right']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ry2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if($step2['left']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ly2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if(!$step2['left']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ln2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
|
||||
if(!$step1['right']){$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/rn1.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if($step1['right']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ry1.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if($step1['left']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ly1.gif" width="352" height="240" alt="Этаж 1 - Канализация"></div>';}
|
||||
if(!$step1['left']) {$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/ln1.gif" width="352" height="240" alt="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step1['right']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/rn1.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if ($step1['right']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ry1.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if ($step1['left']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ly1.gif" width="352" height="240" alt="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
if (!$step1['left']) {
|
||||
$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/ln1.gif" width="352" height="240" alt="Этаж 1 - Канализация"></div>';
|
||||
}
|
||||
|
||||
///////stenq////////
|
||||
if(!$step4['fwd']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/cy3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if(!$step3['fwd']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/cn3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if(!$step2['fwd'])$s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/cn2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if(!$step1['fwd']) $s.='<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/'.$styles.'/cn1.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';
|
||||
if (!$step4['fwd']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/cy3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step3['fwd']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/cn3.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step2['fwd']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/cn2.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
if (!$step1['fwd']) {$s .= '<div style="position:absolute; left:11px; top:10px;"><img src="labirint3/' . $styles . '/cn1.gif" width="352" height="240" title="Этаж 1 - Канализация"></div>';}
|
||||
|
||||
include "podzem_mod.php";
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
function next_step($location, $vector) {
|
||||
function next_step($location, $vector)
|
||||
{
|
||||
global $rhar;
|
||||
$row = intval(substr($location, 0, 1));
|
||||
$col = intval(substr($location, 1));
|
||||
$cell=array();
|
||||
$cell = [];
|
||||
// fwd
|
||||
$c=$col;$r=$row;
|
||||
if($vector==90) {$c=$col+1;}
|
||||
elseif($vector==180) {$r=$row-1;}
|
||||
elseif($vector==270) {$c=$col-1;}
|
||||
else {$r=$row+1;}
|
||||
$c = $col;
|
||||
$r = $row;
|
||||
if ($vector == 90) {
|
||||
$c = $col + 1;
|
||||
} elseif ($vector == 180) {
|
||||
$r = $row - 1;
|
||||
} elseif ($vector == 270) {
|
||||
$c = $col - 1;
|
||||
} else {
|
||||
$r = $row + 1;
|
||||
}
|
||||
$cell['fwd'] = $r . $c;
|
||||
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['fwd'], $rhar[$location])) {$cell['fwd']=false;}
|
||||
if ($r > 9 || $r < 0 || $c > 9 || $c < 0 || !in_array($cell['fwd'], $rhar[$location])) {
|
||||
$cell['fwd'] = false;
|
||||
}
|
||||
|
||||
// left
|
||||
$c=$col;$r=$row;
|
||||
if($vector==90) {$r=$row+1;}
|
||||
elseif($vector==180) {$c=$col+1;}
|
||||
elseif($vector==270) {$r=$row-1;}
|
||||
else {$c=$col-1;}
|
||||
$c = $col;
|
||||
$r = $row;
|
||||
if ($vector == 90) {
|
||||
$r = $row + 1;
|
||||
} elseif ($vector == 180) {
|
||||
$c = $col + 1;
|
||||
} elseif ($vector == 270) {
|
||||
$r = $row - 1;
|
||||
} else {
|
||||
$c = $col - 1;
|
||||
}
|
||||
$cell['left'] = $r . $c;
|
||||
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['left'], $rhar[$location])) {$cell['left']=false;}
|
||||
if ($r > 9 || $r < 0 || $c > 9 || $c < 0 || !in_array($cell['left'], $rhar[$location])) {
|
||||
$cell['left'] = false;
|
||||
}
|
||||
// right
|
||||
$c=$col;$r=$row;
|
||||
if($vector==90) {$r=$row-1;}
|
||||
elseif($vector==180) {$c=$col-1;}
|
||||
elseif($vector==270) {$r=$row+1;}
|
||||
else {$c=$col+1;}
|
||||
$c = $col;
|
||||
$r = $row;
|
||||
if ($vector == 90) {
|
||||
$r = $row - 1;
|
||||
} elseif ($vector == 180) {
|
||||
$c = $col - 1;
|
||||
} elseif ($vector == 270) {
|
||||
$r = $row + 1;
|
||||
} else {
|
||||
$c = $col + 1;
|
||||
}
|
||||
$cell['right'] = $r . $c;
|
||||
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['right'], $rhar[$location])) {$cell['right']=false;}
|
||||
if ($r > 9 || $r < 0 || $c > 9 || $c < 0 || !in_array($cell['right'], $rhar[$location])) {
|
||||
$cell['right'] = false;
|
||||
}
|
||||
// back
|
||||
$c=$col;$r=$row;
|
||||
if($vector==90) {$c=$col-1;}
|
||||
elseif($vector==180) {$r=$row+1;}
|
||||
elseif($vector==270) {$c=$col+1;}
|
||||
else {$r=$row-1;}
|
||||
$c = $col;
|
||||
$r = $row;
|
||||
if ($vector == 90) {
|
||||
$c = $col - 1;
|
||||
} elseif ($vector == 180) {
|
||||
$r = $row + 1;
|
||||
} elseif ($vector == 270) {
|
||||
$c = $col + 1;
|
||||
} else {
|
||||
$r = $row - 1;
|
||||
}
|
||||
|
||||
$cell['back'] = $r . $c;
|
||||
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['back'], $rhar[$location])) {$cell['back']=false;}
|
||||
if ($r > 9 || $r < 0 || $c > 9 || $c < 0 || !in_array($cell['back'], $rhar[$location])) {
|
||||
$cell['back'] = false;
|
||||
}
|
||||
return $cell;
|
||||
}
|
||||
|
||||
//////////////
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user