game/modules_data/_alh.php
2022-06-07 00:30:34 +03:00

176 lines
6.1 KiB
PHP

<?
if(!defined('GAME')) {
die();
}
?>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
var nlevel = 0;
var from = Array('+', ' ', '#');
var to = Array('%2B', '+', '%23');
function w(login,id,align,klan,level,online,city,battle){
var s='';
if(online != "") {
if (city!="") {
s+='<img src=https://img.new-combats.com/1x1.gif width="20" height="15" alt="Â äðóãîì ãîðîäå" />';
} else {
s+='<a href="javascript:top.chat.addto(\''+login+'\',\'private\');"><img src=https://img.new-combats.com/i/lock.gif width="20" height="15" alt="Ïðèâàòíî" /></a>';
}
if (city!="") {
s+='<img title="'+city+'" src="https://img.new-combats.com/i/city_ico/'+city+'.gif" width="17" height="15" />';
}
s+=' <img src="https://img.new-combats.com/i/align/align'+align+'.gif" width="12" height="15" />';
if (klan!='') {s+='<a href="/encicl/klan/'+klan+'.html" target="_blank"><img src="https://img.new-combats.com/i/clan/'+klan+'.gif" width="24" height="15" /></a>'}
s+='<a href="javascript:top.chat.addto(\''+login+'\',\'to\');">'+login+'</a>['+level+']<a href="https://new-combats.com/info/'+id+'" target="_blank"><img src="https://img.new-combats.com/i/inf_capitalcity.gif" width="12" height="11" alt="Èíôîðìàöèÿ î ïåðñîíàæå" /></a>';
if (city!="") {
s+=" - íåò â ýòîì ãîðîäå";
} else {
s+=' - '+online;
}
} else {
s+='<img src="https://img.new-combats.com/i/offline.gif" width="20" height="15" border="0" alt="Íåò â êëóáå" />';
if (city!="") {
s+='<img title="'+city+'" src="https://img.new-combats.com/i/city_ico/'+city+'.gif" width="17" height="15" />';
}
if (align == "") align="0";
s+=' <img src="https://img.new-combats.com/i/align/align'+align+'.gif" width="12" height="15" />';
if (klan!='') {s+='<a href="https://<? echo $c['host']; ?>/encicl/clan/'+klan+'.html" target="_blank"><img src="https://img.new-combats.com/i/klan/'+klan+'.gif" width="24" height="15" /></a>'}
if (level) {
if (nlevel==0) {
nlevel=1; s="<br />"+s;
}
s+='<font color=gray><b>'+login+'</b>['+level+']<a href="https://new-combats.com/info/'+id+'" target="_blank"><img src="https://img.new-combats.com/i/inf.gif" width="12" height="11" alt="Èíôîðìàöèÿ î ïåðñîíàæå" /></a> - Íåò â êëóáå';
} else {
if (nlevel==1) {
nlevel=2; s="<br />"+s;
}
mlogin = login;
for(var i=0;i<from.length;++i) while(mlogin.indexOf(from[i])>=0) mlogin= mlogin.replace(from[i],to[i]);
s+='<font color=gray><i>'+login+'</i> <a href="https://new-combats.com/info/'+mlogin+'" target="_blank"><img src="https://img.new-combats.com/i/inf_.gif" width="12" height="11" alt="Èíôîðìàöèÿ î ïåðñîíàæå" /></a> - íåò â ýòîì ãîðîäå';
}
s+='</font>';
}
document.write(s+'<br />');
}
</script>
<div id=hint4 class=ahint></div>
<TABLE cellspacing=0 cellpadding=2 width=100%>
<TR>
<TD style="width: 40%; vertical-align: top; "><br />
<TABLE cellspacing=0 cellpadding=2 style="width: 100%; ">
<TR>
<TD align=center><h4>Àëõèìèêè</h4></TD>
</TR>
<TR>
<TD bgcolor=efeded nowrap><SCRIPT>
<?
$data = mysql_query("SELECT `id`, `login`, `align`, `level`, `battle`, `online`, `city`, (select `name` from `room` WHERE `id` = users.`room`) as `room` FROM `users` WHERE `align` = '50' order by online DESC, login asc;");
$i = 0;
while($a = mysql_fetch_array($data))
{
if ($a['online']>(time()-120))
{
$online = $a['room'];
$id = $a['id'];
$level = $a['level'];
$battle = $a['battle'];
}elseif($a['online']<(time()-120))
{
$online = '';
$id = '';
$level = '';
$battle = '';
}
//w( login, id, align, klan, level, online, city, battle){
$citya = $a['city'];
if($a['city']==$u->info['city'])
{
$citya = '';
}
echo 'w("'.$a['login'].'","'.$id.'","'.$a['align'].'","","'.$level.'","'.$online.'","'.$citya.'","'.$battle.'");';
$i++;
}
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `bank_table` ORDER BY `time` DESC LIMIT 1'));
?>
</SCRIPT>
<?
if( $i == 0 ) {
echo '<center>Íåò íè îäíîãî íàçíà÷åííîãî Àëõèìèêà</cetner>';
}
?>
<TR>
<TD style="text-align: left; "><small>Êóðñ ïîêóïêè ÅâðîÊðåäèòîâ: <b>1</b> eêð. = <b><?=round($pl['cur'],2)?> </b>ðóá.<br>
Êóðñ îáìåíà ÅâðîÊðåäèòîâ: <b>1</b> åêð = <b><?=$c['ecrtocr']?></b> êð.<br>
<?
if($c['crtoecr']>0) {
?>
Êóðñ îáìåíà Êðåäèòîâ: <?=$c['crtoecr']?> êð = 1 åêð.<br>
<?
}
?>Ïðîäàþò åâðîêðåäèòû è ïðî÷èå ïëàòíûå óñëóãè ñåðâèñà<BR>Âû ìîæåòå îòïðàâèòü èì ëè÷íîå ñîîáùåíèå, äàæå åñëè Âû è Àëõèìèê íàõîäèòåñü â ðàçíûõ ãîðîäàõ</small></div></TD>
</TR>
<TR>
<TD style="text-align: left; ">&nbsp;</TD>
</TR>
</TABLE>
<br />
<table>
<tr>
<td valign="top"><fieldset>
<legend><b>Êóðñ åâðîêðåäèòà ê ìèðîâîé âàëþòå</b> </legend>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<?
if(isset($pl['id'])) {
?>
<tr>
<td><small>Äàííûå íà <b><?=date('d.m.y H:i',$pl['time'])?></b> áåç ó÷åòà êîìèññèé</small></td>
</tr>
<?
$pl['RUB'] = 40;
$i = 0;
$true = array(
array('USD', 'äîëëàðîâ ÑØÀ'),
array('EUR', 'ÅÂÐÎ'),
array('RUB','ðîññèéñêèõ ðóáëåé'),
array('UAH','óêð. ãðèâåí'),
array('BYR','áåëîðóññêèõ ðóáëåé'),
array('AZN','àçåðáàéäæàíñêèõ ìàíàò'),
array('GBP','àíãë. ôóíòîâ ñòåðëèíãîâ')
);
while($i < count($true)) {
?>
<tr>
<td><span>1 åêð. = </span><span style="display:inline-block;width:100px"><b><?=round( ($pl['cur']/$pl[$true[$i][0]]) , 4 )?></b></span><span><?=$true[$i][1]?></span></td>
</tr>
<?
$i++;
}
}else{
?>
<tr>
<td><small><center><font color=grey>Íå óäàëîñü ïîëó÷èòü èíôîðìàöèþ</font></center></small></td>
</tr>
<? } ?>
</table>
</fieldset></td>
</tr>
</table>
</TD>
<TD style="width: 5%; vertical-align: top; ">&nbsp;</TD>
<TD style="width: 25%; vertical-align: top; text-align: right; "><INPUT class="btn" type='button' value='Îáíîâèòü' style='width: 100px' onclick='location="/main.php?alh&rnd=<?=$code?>"';'>
&nbsp;<INPUT TYPE=button value="Âåðíóòüñÿ" class="btn" style="width: 100px" onclick='location="/main.php"'></TD>
</TR>
</TABLE>
<DIV>
<? echo $c['counters']; ?>
</DIV>