add report klan books
This commit is contained in:
@@ -13,6 +13,7 @@ require 'routes/books.php';
|
||||
require 'routes/order.php';
|
||||
require 'routes/anpay.php';
|
||||
require 'routes/sendmail.php';
|
||||
require 'routes/report.php';
|
||||
#lib
|
||||
require 'libs/logsave.php';
|
||||
#api
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');
|
||||
|
||||
</style>
|
||||
|
||||
<h1>Книги в подписке</h1>
|
||||
<table>
|
||||
<?foreach ($books as $book):?>
|
||||
<tr>
|
||||
<td><?=$book['price_id']?></td>
|
||||
<td><?=$book['pricename']?></td>
|
||||
|
||||
<?if ($book['author_id'] > 0 ):?>
|
||||
<td><?=$book['author']?></td>
|
||||
<?elseif ($book['priceauthor'] !== ''):?>
|
||||
<td><?=$book['priceauthor']?></td>
|
||||
<?endif?>
|
||||
|
||||
</tr>
|
||||
<?endforeach?>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user