Файл: inc/stat.inc.php
Строк: 371
<div id="s5_<?
if($status_storona=="YES"){echo"right";}
elseif($status_storona=="NO"){echo"left";}
?>" style="width:<?php echo $stats_width ?>px">
<div class="s5_round_wrap">
<div class="s5_tl"></div>
<div class="s5_tm" style="width:<?php echo $stats_width - 48 ?>px"></div>
<div class="s5_tr"></div>
<div class="s5_ml" style="width:<?php echo $stats_width - 24 ?>px">
<div class="s5_mr" style="width:<?php echo $stats_width -48 ?>px">
<div class="s5_mm" style="width:<?php echo $stats_width - 48 ?>px">
<div style="position:relative">
<?
if($user!==null){
?>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats23'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div class="s5_round_box_h3_inner">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th align="left">
<?=$lang['hader1'];?>, <span class="s5_h3_first"><?=$user;?></span>
</th>
</tr>
<tr>
<th align="left">
<?=$lang['hader2'];?>
</th>
</tr>
<?
if($skype_da>0){
echo"
<tr>
<th align='left'>
".$lang['reg13']." - <span class='s5_h3_first'>".$userdata['skype']."</span>
</th>
</tr>
";
}
if($icq_da>0){
echo"
<tr>
<th align='left'>
".$lang['reg12']." - <span class='s5_h3_first'>".$userdata['icq']."</span>
</th>
</tr>
";
}?>
<?if($sistem==multi){
echo "
<tr>
<th align='left'>
".$lang['hader11']." - <span class='s5_h3_first'>";
if($wmkosel!==''){
echo"$wmkosel";
}else{
echo"<font color='red'>".$lang['stats28']."</font>";
}
ECHO"</span>
</th>
</tr>
<tr>
<th align='left'>
".$lang['hader13']." - <span class='s5_h3_first'>
";
if($perfektmoney_multi!==''){
echo"$perfektmoney_multi";
}else{
echo"<font color='red'>".$lang['stats28']."</font>";
}
echo"
</span>
</th>
</tr>
<tr>
<th align='left'>
".$lang['hader12']." - <span class='s5_h3_first'>
";
if($alertpay_multi!==''){
echo"<small>$alertpay_multi</small>";
}else{
echo"<font color='red'>".$lang['stats28']."</font>";
}
echo"
</span>
</th>
</tr>
";
}
if($sistem==alertpay){
echo "
<tr>
<th align='left'>
".$lang['profiles19']." - <span class='s5_h3_first'>$wmkosel</span>
</th>
</tr>
";
}
if($sistem==webmoney){
echo "
<tr>
<th align='left'>
".$lang['hader3']." - <font color='gren'><b>+</b></FONT> <span class='s5_h3_first'>$wmkosel</span>
</th>
</tr>
";
}
if($sistem==liqpay){
echo "
<tr>
<th align='left'>
".$lang['hader9']." - <font color='gren'><b>+</b></FONT> <span class='s5_h3_first'>$wmkosel</span>
</th>
</tr>
";
}
if($sistem==liberty){
echo "
<tr>
<th align='left'>
".$lang['profiles18']." - <span class='s5_h3_first'><small>$wmkosel</small></span>
</th>
</tr>
";
}
if($sistem==perfekt){
echo "
<tr>
<th align='left'>
".$lang['profiles20']." - <span class='s5_h3_first'><small>$wmkosel</small></span>
</th>
</tr>
";
}
?>
</table>
</div>
</div>
</div>
</div>
<?}?>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div class="s5_round_box_h3_inner">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?
$sql=mysql_query("select*from ".$db_pref."users");
$num=mysql_num_rows($sql);
$sql1=mysql_query("select*from ".$db_pref."neworders");
$num_nord=mysql_num_rows($sql1);
$sql_old=mysql_query("select*from ".$db_pref."oldorders");
$old_nord=mysql_num_rows($sql_old);
$sql2 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='0'");
$ur0=mysql_num_rows($sql2);
$sql3 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='1'");
$ur1=mysql_num_rows($sql3);
$sql4 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='2'");
$ur2=mysql_num_rows($sql4);
$sql5 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='3'");
$ur3=mysql_num_rows($sql5);
$sql6 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='4'");
$ur4=mysql_num_rows($sql6);
$sql7 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='5'");
$ur5=mysql_num_rows($sql7);
$sql8 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='6'");
$ur6=mysql_num_rows($sql8);
$sql9 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='7'");
$ur7=mysql_num_rows($sql9);
$sql20 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='8'");
$ur8=mysql_num_rows($sql20);
$sql21 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='9'");
$ur9=mysql_num_rows($sql21);
$sql22 = mysql_query("SELECT * FROM `".$db_pref."users` where rang='10'");
$ur10=mysql_num_rows($sql22);
$sql11=mysql_query("select*from ".$db_pref."rest");
$rowopu=mysql_num_rows($sql11);
$sql12=mysql_query("SELECT * FROM `".$db_pref."users` WHERE FROM_UNIXTIME(`date_reg`, '%d.%m.%Y') = FROM_UNIXTIME(UNIX_TIMESTAMP(), '%d.%m.%Y')");
$row00=mysql_num_rows($sql12);
?>
<tr>
<th align="left" > <?=$lang['stats1'];?></th>
<th align="right"><?=$num;?> </th>
</tr>
<tr>
<th align="left"> <?=$lang['stats2'];?></th>
<th align="right"><?=$row00;?> </th>
</tr>
<tr>
<th align="left"> <?=$lang['stats3'];?></th>
<th align="right"><?=$rowopu;?> </th>
</tr>
<tr>
<th align="left"> <?=$lang['stats5'];?></th>
<th align="right"><?=$num_nord;?> </th>
</tr>
<tr>
<th align="left"> <?=$lang['stats24'];?></th>
<th align="right"><?=$old_nord;?> </th>
</tr>
<tr>
<th align="left"> <?=$lang['stats6'];?> 0</th>
<th align="right"><?=$ur0;?> </th>
</tr>
<tr>
<th align="left"> <?=$lang['stats6'];?> 1</th>
<th align="right"><?=$ur1;?> </th>
</tr>
<?if($ur>=2){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 2</th>
<th align="right"><?=$ur2;?> </th>
</tr>
<?}if($ur>=3){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 3</th>
<th align="right"><?=$ur3;?> </th>
</tr>
<?}if($ur>=4){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 4</th>
<th align="right"><?=$ur4;?> </th>
</tr>
<?}if($ur>=5){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 5</th>
<th align="right"><?=$ur5;?> </th>
</tr>
<?}if($ur>=6){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 6</th>
<th align="right"><?=$ur6;?> </th>
</tr>
<?}if($ur>=7){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 7</th>
<th align="right"><?=$ur7;?> </th>
</tr>
<?}if($ur>=8){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 8</th>
<th align="right"><?=$ur8;?> </th>
</tr>
<?}if($ur>=9){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 9</th>
<th align="right"><?=$ur9;?> </th>
</tr>
<?}if($ur>=10){?>
<tr>
<th align="left"> <?=$lang['stats6'];?> 10</th>
<th align="right"><?=$ur10;?> </th>
</tr>
<?}?>
<tr>
<tr>
<th colspan="2" align="center"><center><a href="stats.php?new_orders=0"><?=$lang['stats7'];?></a></center></th>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats8'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div class="s5_round_box_h3_inner">
<table align="center" width="96%" border="0" cellpadding="2" cellspacing="2">
<?
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row=mysql_fetch_array($sql);
$sql=mysql_query("select*from ".$db_pref."users where id='1'");
$row1=mysql_fetch_array($sql);
$admin_email=$row1['email'];
if($row['admin_icq']>0):
?>
<tr>
<th class="<?=$form;?>" align="left"> » <a href="http://www.icq.com/people/about_me.php?uin=<?=$row['admin_icq'];?>" target="_blank"><img src="http://status.icq.com/online.gif?icq=<?=$row['admin_icq'];?>&img=5" alt="" align="middle"/></a>
<font color="#ffffff"> ICQ</font> <a href=""> <?=$row['admin_icq'];?></a></th>
</tr>
<?endif;?>
<tr>
<th class="<?=$form;?>" align="left">» <img src="images/emailbutton.gif" alt="" align="middle"/> <a href="sendmail.php">
<?=$admin_email;?>
</a></th>
</tr>
<?
$sql1=mysql_query("select*from ".$db_pref."sysvals");
$row1=mysql_fetch_array($sql1);
$ulength=strlen($row1['admin_skype']);
if($ulength>0):
?>
<tr>
<th class="<?=$form;?>" align="left">» <img height="16" width="16" src="http://mystatus.skype.com/smallicon/<?=$row['admin_skype'];?>" alt="" align="middle"/></a> <font color="#ffffff">skype</font> <a href="skype:<?=$row['admin_skype'];?>?chat"><?=$row['admin_skype'];?></a></th>
</tr>
<?endif;?>
</table>
</div>
</div>
</div>
</div>
<?if($sistem==multi){?>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats29'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div align="center" class="s5_round_box_h3_inner">
<a href="https://www.alertpay.com" target="_blank"><img style="padding:3px;border: 1px solid #252525" src="images/alertpay.png" alt="alertpay" align="middle"/></a>
<a href="https://perfectmoney.com" target="_blank"><img style="padding:3px;border: 1px solid #252525" src="images/perfekt.jpg" alt="perfekt" align="middle"/></a>
<a href="http://www.libertyreserve.com/" target="_blank"><img style="padding:3px;border: 1px solid #252525" src="images/liberty-reserve-logo.jpg" alt="liberty-reserve" align="middle"/></a>
</div>
</div>
</div>
</div>
<?}?>
<?if($sistem==webmoney){?>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats29'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div align="center" class="s5_round_box_h3_inner">
<a href="http://w.qiwi.ru" target="_blank"><img style="padding:3px;border: 1px solid #252525" src="images/qiwi-logo.png" alt="qiwi" align="middle"/></a>
</div>
</div>
</div>
</div>
<?}?>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats9'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div align="center" class="s5_round_box_h3_inner">
<div align="center">
эдесь пишите своё
</div>
</div>
</div>
</div>
</div>
<div class="module_round_box">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><?=$lang['stats4'];?></h3>
</div>
</div>
</div>
<div>
<div>
<div class="s5_round_box_h3_inner"><?
$uo_query_user = "SELECT count(*) FROM ".$db_pref."usersonline WHERE user!=''";
$uo_query = "SELECT count(*) FROM ".$db_pref."usersonline WHERE user=''";
$uo_result_user = mysql_query($uo_query_user);
$uo_result = mysql_query($uo_query);
$uo_count_user = mysql_fetch_row($uo_result_user);
$uo_count = mysql_fetch_row($uo_result);
$gest=$uo_count[0];
$user_onlain=$uo_count_user[0];
$onlain=$lang['onlain'];
$onlain=str_replace("{user}",$user_onlain,$onlain);
$onlain=str_replace("{gest}",$gest,$onlain);
echo"$onlain";
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="s5_bl"></div>
<div class="s5_bm" style="width:<?php echo $stats_width - 48 ?>px"></div>
<div class="s5_br"></div>
<div style="clear:both"></div>
</div>
</div>