add payments.phtml

This commit is contained in:
Andrey Kuvshinov
2020-05-16 02:30:13 +03:00
parent 5da486bbad
commit 0d3e319f1d
2 changed files with 65 additions and 0 deletions

View File

@@ -131,3 +131,41 @@ function mybooks_kuri($page = 1){
//все покупки
function payments_kuri(){
$login = check_login_kuri();
if (!isset($login['client_id'])){
header('Location: '.SITE.'login');
exit;
}
$paysql = "
SELECT
date, anbuy.price AS price, buy_status, pricename, category_id, pricehash
FROM
anbuy
LEFT JOIN price ON
anbuy.number_id = price.price_id
WHERE
client_id = {$login['client_id']}
ORDER BY
buy_id DESC
";
$payments = db_get($paysql);
$title = 'Мои покупки';
$tempcontent = VIEWPATH.'payments.phtml';
include VIEWPATH.'layout.phtml';
}