Файл: modules/billing/history.php
Строк: 25
<?php
$title = 'Биллинг | История операций';
include_once($_SERVER["DOCUMENT_ROOT"].'/style/head.php');
mode('user');
?>
<div class="title"><a href="/billing">Биллинг</a> | История операций</div>
<?
$nav=new navig("SELECT * FROM `billing_history` WHERE `id_us`='".$user['id']."'");
$q = $db->query('SELECT * FROM `billing_history` WHERE `id_us`='.$user['id'].' ORDER BY `id` DESC LIMIT '.$nav->start.','.$nav->nstr);
while($h=$q->fetch_assoc()){
if($h['type']=='+'){
$type = '<font color="green">+</font>';
}elseif($h['type']=='-'){
$type = '<font color="red">-</font>';
}
?>
<div class="section">
<?=$type?> (<?=times($h['time'])?>)<br/>
<?=output($h['text'])?>
</div>
<?
}
?>
<div class="nvgstr">
<?
$nav->panel();
?>
</div>
<?
if($db->query("SELECT `id` FROM `billing_history` WHERE `id_us`='".$user['id']."'")->num_rows==0){
error('Операций не проводилось.');
}
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>