game gui
This commit is contained in:
+24
-186
@@ -6,7 +6,6 @@ if ($_SESSION['uid'] == null) {
|
||||
include_once "config.php";
|
||||
include_once "functions.php";
|
||||
|
||||
$user = db::c()->query('SELECT `klan`,`align`,`level`,`deal` FROM `users` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc();
|
||||
header("Cache-Control: no-cache");
|
||||
|
||||
if ($_GET['header']) {
|
||||
@@ -52,12 +51,12 @@ if ($_GET['header']) {
|
||||
}
|
||||
|
||||
.chheadpas {
|
||||
background: url(http://i.oldbk.com/i/chat/chat_passive.jpg) no-repeat;
|
||||
background: url(i/chat/chat_passive.jpg) no-repeat;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chheadact {
|
||||
background: url(http://i.oldbk.com/i/chat/chat_aaactive.jpg) no-repeat;
|
||||
background: url(i/chat/chat_aaactive.jpg) no-repeat;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -225,23 +224,12 @@ if ($_GET['header']) {
|
||||
<tr>
|
||||
<td height="26"> </a></td>
|
||||
<td nowrap width="26" height="26"></td>
|
||||
<td nowrap width=115 height="26" id="ctab1" class="chheadact" onclick="ctab(1); return false;"><a href="#"
|
||||
id="wtab1"
|
||||
class="chmtext">Общий
|
||||
чат</a></td>
|
||||
<? if ((int)$user['align'] == 1 || $user['align'] == 1.5 || $user['align'] == 1.7 || $user['align'] == 1.75 || $user['align'] == 1.91 || $user['align'] == 1.92 || $user['align'] == 1.97 || $user['align'] == 1.98 || $user['align'] == 1.99 || $user['align'] == 2.99) { ?>
|
||||
<td nowrap width=115 height="26" id="ctab4" class="chheadpas" onclick="ctab(4); return false;"><a
|
||||
href="#" id="wtab4" onclick="ctab(4); return false;" class="chmtext">Пал. чат</a></td>
|
||||
<? } ?>
|
||||
<td nowrap width=115 height="26" id="ctab8" class="chheadpas" onclick="ctab(8); return false;"><a href="#"
|
||||
id="wtab8"
|
||||
onclick="ctab(8); return false;"
|
||||
class="chmtext">Торговый</a>
|
||||
</td>
|
||||
<td nowrap width=115 height="26" id="ctab5" class="chheadpas" onclick="ctab(5); return false;"><a href="#"
|
||||
id="wtab5"
|
||||
onclick="ctab(5); return false;"
|
||||
class="chmtext">Системные</a>
|
||||
<td nowrap width=115 height="26" id="ctab1" class="chheadact" onclick="ctab(1); return false;">
|
||||
<a href="#" id="wtab1" class="chmtext">Общий чат</a></td>
|
||||
<td nowrap width=115 height="26" id="ctab8" class="chheadpas" onclick="ctab(8); return false;">
|
||||
<a href="#" id="wtab8" onclick="ctab(8); return false;" class="chmtext">Торговый</a></td>
|
||||
<td nowrap width=115 height="26" id="ctab5" class="chheadpas" onclick="ctab(5); return false;">
|
||||
<a href="#" id="wtab5" onclick="ctab(5); return false;" class="chmtext">Системные</a>
|
||||
</td>
|
||||
<td height="26" width="100%"> </a></td>
|
||||
</tr>
|
||||
@@ -260,18 +248,7 @@ if ($_GET['header']) {
|
||||
<div id="oMenu" style="position: absolute; border:1px solid #666; background-color:#CCC; display:none; "></div>
|
||||
<div id="ClearMenu" style="position: absolute; border:1px solid #666; background-color: #e2e0e0; display: none;"></div>
|
||||
|
||||
<? } else {
|
||||
|
||||
$now = "night";
|
||||
if (date("H") <= 5) {
|
||||
$tme = mktime(6, 1, 0);
|
||||
} elseif (date("H") < 22) {
|
||||
$tme = mktime(22, 1, 0);
|
||||
} else {
|
||||
$tme = mktime(6, 1, 0, date("n"), date("j") + 1, 0);
|
||||
}
|
||||
$left = $tme - time();
|
||||
?>
|
||||
<? } else { ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-type"/>
|
||||
@@ -344,17 +321,6 @@ $left = $tme - time();
|
||||
document.F1.text.value = strarr.join(' ');
|
||||
}
|
||||
|
||||
function sw_translit() {
|
||||
top.ChatTranslit = !top.ChatTranslit;
|
||||
if (top.ChatTranslit) {
|
||||
document.all('b___translit').src = b___translit_on.src;
|
||||
document.all('b___translit').alt = b___translit_on.alt;
|
||||
} else {
|
||||
document.all('b___translit').src = b___translit_off.src;
|
||||
document.all('b___translit').alt = b___translit_off.alt;
|
||||
}
|
||||
}
|
||||
|
||||
function sw_filter() {
|
||||
top.ChatOm = !top.ChatOm;
|
||||
if (top.ChatOm) {
|
||||
@@ -368,40 +334,6 @@ $left = $tme - time();
|
||||
}
|
||||
}
|
||||
|
||||
function sw_sys() {
|
||||
top.ChatSys = !top.ChatSys;
|
||||
if (top.ChatSys) {
|
||||
document.all('b___sys').src = b___sys_on.src;
|
||||
document.all('b___sys').alt = b___sys_on.alt;
|
||||
document.F1.sys.value = '1';
|
||||
} else {
|
||||
document.all('b___sys').src = b___sys_off.src;
|
||||
document.all('b___sys').alt = b___sys_off.alt;
|
||||
document.F1.sys.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
function sw_slow() {
|
||||
if (top.ChatSlow) {
|
||||
if (top.ChatTimerID >= 0) {
|
||||
top.StopRefreshChat();
|
||||
document.all('b___slow').src = b___chat_off.src;
|
||||
document.all('b___slow').alt = b___chat_off.alt;
|
||||
} else {
|
||||
top.ChatSlow = false;
|
||||
top.ChatDelay = top.ChatNormDelay;
|
||||
top.RefreshChat();
|
||||
document.all('b___slow').src = b___slow_off.src;
|
||||
document.all('b___slow').alt = b___slow_off.alt;
|
||||
}
|
||||
} else {
|
||||
top.ChatSlow = true;
|
||||
document.all('b___slow').src = b___slow_on.src;
|
||||
document.all('b___slow').alt = b___slow_on.alt;
|
||||
top.ChatDelay = top.ChatSlowDelay;
|
||||
top.RefreshChat();
|
||||
}
|
||||
}
|
||||
|
||||
function subm() {
|
||||
t = top.frames['chat'].currenttab;
|
||||
@@ -411,33 +343,12 @@ $left = $tme - time();
|
||||
}
|
||||
}
|
||||
|
||||
var b___translit_on = new Image;
|
||||
b___translit_on.src = "i/b___translit_on.gif";
|
||||
b___translit_on.alt = "(включено) Преобразовывать транслит в русский текст";
|
||||
var b___translit_off = new Image;
|
||||
b___translit_off.src = "i/b___translit_off.gif";
|
||||
b___translit_off.alt = "(выключено) Преобразовывать транслит в русский текст";
|
||||
var b___filter_on = new Image;
|
||||
b___filter_on.src = "i/b___filter_on.gif";
|
||||
b___filter_on.alt = "(включено) Показывать в чате только сообщения адресованные мне";
|
||||
var b___filter_off = new Image;
|
||||
b___filter_off.src = "i/b___filter_off.gif";
|
||||
b___filter_off.alt = "(выключено) Показывать в чате только сообщения адресованные мне";
|
||||
var b___sys_on = new Image;
|
||||
b___sys_on.src = "i/b___sys_on.gif";
|
||||
b___sys_on.alt = "(включено) Показывать в чате системные сообщения";
|
||||
var b___sys_off = new Image;
|
||||
b___sys_off.src = "i/b___sys_off.gif";
|
||||
b___sys_off.alt = "(выключено) Показывать в чате системные сообщения";
|
||||
var b___slow_on = new Image;
|
||||
b___slow_on.src = "i/b___slow_on.gif";
|
||||
b___slow_on.alt = "(включено) Медленное обновление чата (раз в минуту)";
|
||||
var b___slow_off = new Image;
|
||||
b___slow_off.src = "i/b___slow_off.gif";
|
||||
b___slow_off.alt = "(выключено) Медленное обновление чата (раз в минуту)";
|
||||
var b___chat_off = new Image;
|
||||
b___chat_off.src = "i/b___chat_off.gif";
|
||||
b___chat_off.alt = "Обновление чата выключено!";
|
||||
|
||||
function IsIE(elem) {
|
||||
ss = top.frames['chat'].document.getElementById('mes').offsetHeight;
|
||||
@@ -552,22 +463,6 @@ $left = $tme - time();
|
||||
|
||||
window.onresize = rslength;
|
||||
</script>
|
||||
|
||||
<script language="VBScript">
|
||||
sub flashsound_FSCommand(byval command, byval args)
|
||||
call flashsound_DoFSCommand(command, args)
|
||||
end sub
|
||||
|
||||
</script>
|
||||
|
||||
<script language=JavaScript>
|
||||
function SoundB() {
|
||||
if (top.SoundOff == true)
|
||||
top.frames['bottom'].document.getElementById('but_sound').src = 'i/zvuk.gif';
|
||||
else top.frames['bottom'].document.getElementById('but_sound').src = 'i/zvuk_off.gif';
|
||||
top.SoundOff = !top.SoundOff;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body marginheight=0 marginwidth=0 bgcolor=#E6E6E6 onload="top.strt();"> <!-- rslength(); -->
|
||||
@@ -588,79 +483,22 @@ end sub
|
||||
style="width: 100%;" autocomplete="off" placeholder="Введите текст сообщения"/>
|
||||
</TD>
|
||||
<td nowrap id="T3">
|
||||
<a href="javascript:void(0)" onclick="if(top.ChatTranslit) { trns(); } document.forms[0].submit()"
|
||||
title="Добавить текст в чат"><IMG SRC="i/buttons/b___ok.gif" WIDTH=30 HEIGHT=30 BORDER=0
|
||||
ALT="Добавить текст в чат"></a><IMG SRC="i/buttons/1x1.gif"
|
||||
WIDTH="8" HEIGHT="1" BORDER=0
|
||||
ALT="">
|
||||
<a href="javascript:void(0)" onclick="clearnew(event);" title="Очистить строку ввода"><IMG
|
||||
SRC="i/buttons/b___clear.gif" WIDTH=30 HEIGHT=30 BORDER=0 ALT="Очистить строку ввода"></a><a
|
||||
href="javascript:void(0)" onclick="sw_filter();"
|
||||
title="(выключено) Показывать в чате только сообщения адресованные мне"><IMG
|
||||
SRC="i/buttons/b___filter_off.gif" WIDTH=30 HEIGHT=30 BORDER=0 name="b___filter"
|
||||
ALT="(выключено) Показывать в чате только сообщения адресованные мне"></a><a
|
||||
href="javascript:void(0)" onclick="sw_sys();"
|
||||
title="(выключено) Показывать в чате системные сообщения"><IMG SRC="i/buttons/b___sys_off.gif"
|
||||
WIDTH=30 HEIGHT=30 BORDER=0
|
||||
name="b___sys"
|
||||
ALT="(выключено) Показывать в чате системные сообщения"></a><a
|
||||
href="javascript:void(0)" onclick="sw_slow();"
|
||||
title="(выключено) Медленное обновление чата (раз в минуту)"><IMG
|
||||
SRC="i/buttons/b___slow_off.gif" WIDTH=30 HEIGHT=30 BORDER=0 name="b___slow"
|
||||
ALT="(выключено) Медленное обновление чата (раз в минуту)"></a><img
|
||||
src="i/buttons/b___translit_off.gif"
|
||||
alt="(выключено) Преобразовывать транслит в русский текст (правила перевода см. в энциклопедии)"
|
||||
name="b___translit" width="30" height="30" id="b___translit" style="cursor: hand;"
|
||||
onclick="sw_translit();"><a href="javascript:void(0)" onclick="SoundB()" title="Звуки"><IMG
|
||||
SRC="i/buttons/zvuk_off.gif" id="but_sound" WIDTH=30 HEIGHT=30 BORDER=0></a><a
|
||||
href="javascript:void(0)" onclick="smiles()" title="Смайлики"><IMG SRC="i/buttons/1x1.gif"
|
||||
WIDTH="8" HEIGHT="1" BORDER=0
|
||||
ALT=""><IMG
|
||||
SRC="i/buttons/b___smile.gif" WIDTH=30 HEIGHT=30 BORDER=0 ALT="Смайлики"></a>
|
||||
</TD>
|
||||
<a href="javascript:void(0)" onclick="if(top.ChatTranslit) { trns(); } document.forms[0].submit()" title="Добавить текст в чат">
|
||||
<IMG SRC="i/buttons/b___ok.gif" ALT="Добавить текст в чат">
|
||||
</a>
|
||||
<IMG SRC="i/buttons/1x1.gif" WIDTH="8" HEIGHT="1" BORDER=0 ALT="">
|
||||
<a href="javascript:void(0)" onclick="clearnew(event);" title="Очистить строку ввода">
|
||||
<IMG SRC="i/buttons/b___clear.gif" ALT="Очистить строку ввода">
|
||||
</a>
|
||||
<a href="javascript:void(0)" onclick="sw_filter();" title="(выключено) Показывать в чате только сообщения адресованные мне">
|
||||
<IMG SRC="i/buttons/b___filter_off.gif" name="b___filter" ALT="(выключено) Показывать в чате только сообщения адресованные мне">
|
||||
</a>
|
||||
<a href="javascript:void(0)" onclick="smiles()" title="Смайлики">
|
||||
<IMG SRC="i/buttons/1x1.gif" WIDTH="8" HEIGHT="1" BORDER=0 ALT="">
|
||||
<IMG SRC="i/buttons/b___smile.gif" ALT="Смайлики">
|
||||
</a>
|
||||
</td>
|
||||
<td width="19" id="T4"><img src="i/buttons/b___1.gif" width="16" height="30" alt=""/></td>
|
||||
<td align="right" nowrap="nowrap" bgcolor="BAB7B3" id="T5">
|
||||
<?php
|
||||
echo "<a href=\"javascript:void(0)\" title=\"Настройки/Инвентарь\"><IMG SRC=\"/i/$now/a___inv.gif\" WIDTH=30 HEIGHT=30 BORDER=0 ALT=\"Настройки/Инвентарь\" onclick=\"top.cht('main.php?edit='+Math.random())\"></a>";
|
||||
echo "<a href=\"javascript:void(0)\" title=\"Реликты\"><IMG SRC=\"/design/i/buttons/otheralign.png\" WIDTH=30 HEIGHT=30 BORDER=0 ALT=\"Реликты\" onclick=\"top.cht('relikt.php?edit='+Math.random())\"></a>";
|
||||
|
||||
if ($user['level'] > 1) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" title=\"Друзья\"><img src=\"i/friend.gif\" width=30 height=30 border=0 onclick=\"top.cht('friend.php?edit='+Math.random())\" /></a>";
|
||||
}
|
||||
|
||||
if ($user['level'] > 3) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('give.php')\" title=\"Передачи\"><img src=\"i/b__give.gif\" width=30 height=30 border=0 /></a>";
|
||||
}
|
||||
|
||||
if ($user['klan']) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('klan.php?'+Math.random())\" title=\"Клан\"><img src=\"i/clan.gif\" width=30 height=30 border=0 /></a>";
|
||||
#echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('__modules/clan_panel.php?'+Math.random())\" title=\"Клан\"><img src=\"i/clan.gif\" width=30 height=30 border=0 /></a>";
|
||||
}
|
||||
|
||||
if ($user['deal'] == 1) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Дилерская панель\"><IMG SRC=\"i/chatalign_7.gif\" WIDTH=30 HEIGHT=30 BORDER=0 /></a>";
|
||||
} elseif ((($user['align'] > 1) && ($user['align'] < 2)) || (($user['align'] > 2) && ($user['align'] < 3))) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('moderators.php?'+Math.random())\" title=\"Клан\"><img src=\"i/clan.gif\" width=30 height=30 border=0 /></a>";
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/a___pal.gif\" width=30 height=30 border=0 /></a>";
|
||||
} elseif ($user['align'] == 2) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/chatalign_2.gif\" width=30 height=30 border=0 /></a>";
|
||||
} elseif ($user['align'] == 3) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/chatalign_3.gif\" width=30 height=30 border=0 /></a>";
|
||||
} elseif ($user['align'] == 6) {
|
||||
echo "<a class=\"buttons\" href=\"javascript:void(0)\" onclick=\"top.cht('orden.php')\" title=\"Склонность\"><img src=\"i/chatalign_6.gif\" width=30 height=30 border=0 /></a>";
|
||||
}
|
||||
|
||||
echo "<a class=\"buttons\" href=\"/forum.php\" target=\"_blank\" title=\"Форум\"><img src=\"i/a__forum.gif\" width=30 height=30 border=0 /></a>";
|
||||
|
||||
$CH = date("H");
|
||||
$CM = date("i");
|
||||
$CS = date("s");
|
||||
?>
|
||||
<a href="javascript:void(0)" title="Выход из игры"><IMG SRC="/i/<?= $now ?>/a___ext.gif" WIDTH=30
|
||||
HEIGHT=30 BORDER=0
|
||||
onclick="if (confirm('Выйти из игры?')) top.window.location='index.php?exit=0.560057875997465'"></a>
|
||||
</TD>
|
||||
<td width="9" valign="middle" bgcolor="BAB7B3"><img src="/i/<?= $now ?>/bkf_l_r1_06.gif" width="9" height="30"></td>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user