Файл: _gladiators2_/gladiators2/gladiators/gladiators/buttons.php
Строк: 99
<?session_start();
if(!$_SESSION[id])exit();
include("connect.php");
?>
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<link rel=stylesheet href=/css/index.css>
<script language=javascript>
function open_p(href,width,height,name)
{
window.open(''+href, ''+name, 'width='+width+', height='+height);
}
function showSmiles()
{
var x = event.screenX - 100;
var y = event.screenY - 350;
var sFeatures = 'dialogLeft:'+x+'px;dialogTop:'+y+'px;dialogHeight:300px;dialogWidth:400px;help:no;status:no;unadorned:yes';
window.showModelessDialog("smiles.php", window, sFeatures);
}
function sbm()
{
if(top.translit==true)
top.Translit();
}
</script>
</head>
<body>
<form action=chat/re.php onsubmit='sbm();' target=re method=get name=chat>
<table border=0 width=100% height=29 cellspacing=0 cellpadding=0 bgcolor=#e5e5c4>
<tr><td style='background-image: url("img/chat.gif")'>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td width=20 align=center><b>»</b></td>
<td><input type=text name=text style='width:100%' maxlength=255></td>
<td width=25 align=center><img src=img/send.gif width=20 height=20 onclick='document.all("chat").submit();' alt='Добавить в чат!' style='cursor:pointer;cursor:hand'></td></form>
<td width=25 align=center><img src=img/clear_ch.gif width=20 height=20 onclick="top.clear_ch();" alt='Очистить чат' style='cursor:pointer;cursor:hand'></td>
<td width=25 align=center><img src=img/smile.gif width=20 height=20 onClick="showSmiles();" alt='Смайлы' style='cursor:pointer;cursor:hand'></td>
<?
$result_user = mysql_query("select klan,align from users where id=".$_SESSION[id]);
$row_user = mysql_fetch_array($result_user);
if($row_user["align"]=="4" || $row_user["klan"]=="Administration")
echo"<td width=25 align=center><img src=img/sb.gif onClick='top.frames["main"].window.location="senate.php"' style='cursor:hand' alt='Сенат' width=20 height=20></td>";
if($row_user["klan"])
echo"<td width=25 align=center><img src=img/clan_b.gif onClick='top.frames["main"].window.location="clan.php"' style='cursor:hand' alt='Клан' width=20 height=20></td>";
?>
<td width=25 align=center><input type=button value='TR' onclick='top.TurnTranslit();' style='font-weight:bold' class=button></td>
<td width=20 align=center></td>
</tr>
</table>
</td></tr></table>
</body></html>