View file includes/wap/finance/index.php

File size: 1.66Kb
<?php
include($wappath.'finance/tranzactions.php');

$q1=@mysql(DBName,"SELECT * FROM `users` WHERE `domain` = '$sitedomain' AND `login` = '$user' LIMIT 0, 1");
$data1=mysql_fetch_array($q1);
$id_user=$data1['num'];

error_reporting(7);
if ($query1=='service') include($wappath.'finance/service.php');
if ($query1=='schet')   include($wappath.'finance/schet.php');
if ($query1=='history') include($wappath.'finance/history.php');
if ($query1=='dogovor') include($wappath.'finance/dogovor.php');

$q2=@mysql(DBName,"SELECT * FROM `finance_billing` WHERE `id_user` = '$id_user' ORDER BY `time` DESC LIMIT 0, 1");
$data2=mysql_fetch_array($q2);

print $head.cyr2utf('<card id="main" title="Платные услуги">');
print '<do name="x" type="options" label="xPanel"><go href="?'.$id.'"/></do>';
print '<p>';
print cyr2utf('<b>Ваши данные</b>:<br/>');
print cyr2utf('<u>Фамилия</u>: '.obrab($data1['familia']).'<br/>');
print cyr2utf('<u>Имя</u>: '.obrab($data1['name']).'<br/>');
print cyr2utf('<u>E-mail</u>: '.obrab($data1['email']).'<br/><br/>');

if ($data1['num']<1)
	{
	print cyr2utf('<b>Договор не заключен</b>.<br/>');
	print cyr2utf('<a href="?'.$id.'/finance/dogovor">О договоре</a><br/><br/>');
	}
else
	{
	print cyr2utf('<u><a href="?'.$id.'/finance/dogovor">Договор</a></u>: KMX-'.$id_user.'<br/>');
	print cyr2utf('<u>Ваш баланс</u>: '.sprintf ("%01.2f",$data2['sum']).' у.е.<br/><br/>');
	print cyr2utf('<a href="?'.$id.'/finance/service">Управление услугами</a><br/>');
	print cyr2utf('<a href="?'.$id.'/finance/schet">Счета</a><br/>');
	print cyr2utf('<a href="?'.$id.'/finance/history">История операций</a><br/>');
	}

print '</p></card></wml>';
exit;
?>