add report klan books

This commit is contained in:
Your Name
2022-12-04 17:43:20 +03:00
parent 62fa3ea592
commit 4668259ae8
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
function order_klanbooks_kuri(){
$books = db_get("
SELECT price_id, pricename, priceauthor, author, price.priceauthor_id as author_id
FROM `price`
LEFT JOIN `price_authors`
ON `price`.`priceauthor_id` = `price_authors`.`author_id`
WHERE `category_id` = 3 AND `sub` = 1
");
include VIEWPATH.'klanbooks.phtml';
}