File size: 4Kb
<?php
if ($query2=='descr') include($rootpath.'wap/finance/service_descr.php');
if ($query2=='history') include($rootpath.'wap/finance/service_history.php');
if ($query2=='on') include($rootpath.'wap/finance/service_on.php');
if ($query2=='off') include($rootpath.'wap/finance/service_off.php');
print $head.cyr2utf('<card id="main" title="Управление услугами">');
print '<do name="x" type="options" label="xPanel"><go href="?'.$id.'"/></do>';
print cyr2utf('<do name="f" type="options" label="Платные услуги"><go href="?'.$id.'/finance"/></do>');
print '<p>';
#= CHAT10 ======================================================================
$qs=@mysql(DBName,"SELECT * FROM `finance_service` WHERE `id_user` = '$id_user' AND `service` = 'chat10' ORDER BY `nextpay` DESC");
$s=@mysql_num_rows($qs);
$datas=@mysql_fetch_array($qs);
print cyr2utf('<b><a href="?'.$id.'/finance/service/descr/chat10">Чат (chat1.0)</a></b> ');
if (($s<1)||($datas['stop']!=0))
{
print cyr2utf('<small><a href="?'.$id.'/finance/service/history/chat10">(отключена)</a></small><br/>');
print cyr2utf('Стоимость: <b>0.05 у.е./сутки</b>.<br/>');
print cyr2utf('<a href="?'.$id.'/finance/service/on/chat10">Подключить</a>');
}
else
{
print cyr2utf('<small><a href="?'.$id.'/finance/service/history/chat10">(подключена)</a></small><br/>');
print cyr2utf('Стоимость: <b>'.sprintf ("%01.2f",$datas['price']).' у.е./сутки</b>.<br/>');
print cyr2utf('Списание в <b>'.date("H:i",$datas['start']).'</b>.<br/>');
print cyr2utf('<a href="?'.$id.'/finance/service/off/chat10">Отключить</a>');
}
print '<br/><br/>';
#===============================================================================
#= FORUM10 =====================================================================
$qs=@mysql(DBName,"SELECT * FROM `finance_service` WHERE `id_user` = '$id_user' AND `service` = 'forum10' ORDER BY `nextpay` DESC");
$s=@mysql_num_rows($qs);
$datas=@mysql_fetch_array($qs);
print cyr2utf('<b><a href="?'.$id.'/finance/service/descr/forum10">Форум (forum1.0)</a></b> ');
if (($s<1)||($datas['stop']!=0))
{
print cyr2utf('<small><a href="?'.$id.'/finance/service/history/forum10">(отключена)</a></small><br/>');
print cyr2utf('Стоимость: <b>0.10 у.е./сутки</b>.<br/>');
print cyr2utf('<a href="?'.$id.'/finance/service/on/forum10">Подключить</a>');
}
else
{
print cyr2utf('<small><a href="?'.$id.'/finance/service/history/forum10">(подключена)</a></small><br/>');
print cyr2utf('Стоимость: <b>'.sprintf ("%01.2f",$datas['price']).' у.е./сутки</b>.<br/>');
print cyr2utf('Списание в <b>'.date("H:i",$datas['start']).'</b>.<br/>');
print cyr2utf('<a href="?'.$id.'/finance/service/off/forum10">Отключить</a>');
}
print '<br/><br/>';
#===============================================================================
/*
#= GUESTBOOK10 =================================================================
$qs=@mysql(DBName,"SELECT * FROM `finance_service` WHERE `id_user` = '$id_user' AND `service` = 'gb10' ORDER BY `nextpay` DESC");
$s=@mysql_num_rows($qs);
$datas=@mysql_fetch_array($qs);
print cyr2utf('<b><a href="?'.$id.'/finance/service/descr/gb10">Гостевая книга (gb1.0)</a></b> ');
if (($s<1)||($datas['stop']!=0))
{
print cyr2utf('<small><a href="?'.$id.'/finance/service/history/gb10">(отключена)</a></small><br/>');
print cyr2utf('Стоимость: <b>0.1 У.Е./сутки</b>.<br/>');
print cyr2utf('<a href="?'.$id.'/finance/service/on/gb10">Подключить</a>');
}
else
{
print cyr2utf('<small><a href="?'.$id.'/finance/service/history/gb10">(подключена)</a></small><br/>');
print cyr2utf('Стоимость: <b>'.sprintf ("%01.2f",$datas['price']).' У.Е./сутки</b>.<br/>');
print cyr2utf('Списание в <b>'.date("H:i",$datas['start']).'</b>.<br/>');
print cyr2utf('<a href="?'.$id.'/finance/service/off/gb10">Отключить</a>');
}
print '<br/><br/>';
#===============================================================================
*/
print cyr2utf('<a href="?'.$id.'/finance">Платные услуги</a>');
print '</p></card>'.$addcard.'</wml>';
exit;
?>