add author
This commit is contained in:
@@ -5,9 +5,11 @@ function api_pricehash($hash){
|
|||||||
|
|
||||||
$pricesql = "
|
$pricesql = "
|
||||||
SELECT
|
SELECT
|
||||||
`price_id`, `pricename`, `BeginDate`, `category_id`, `pages`, `pdf`, `html`
|
`price_id`, `pricename`, `BeginDate`, `category_id`, `pages`, `pdf`, `html`, `author`
|
||||||
FROM
|
FROM
|
||||||
`price`
|
`price`
|
||||||
|
LEFT JOIN
|
||||||
|
price_authors ON price.priceauthor_id = price_authors.author_id
|
||||||
WHERE
|
WHERE
|
||||||
`pricehash` = '$hash'
|
`pricehash` = '$hash'
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
|
|||||||
@@ -419,13 +419,18 @@ function readbook_kuri($hash, $page = 1){
|
|||||||
$baseurl = SITE.'/readbook/'.$hash.'/';
|
$baseurl = SITE.'/readbook/'.$hash.'/';
|
||||||
$endurl = $baseurl.$count;
|
$endurl = $baseurl.$count;
|
||||||
|
|
||||||
|
if ($page < $count) {
|
||||||
$nextpage = $page + 1;
|
$nextpage = $page + 1;
|
||||||
$nexturl = $baseurl.$nextpage;
|
$nexturl = $baseurl.$nextpage;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($page > 1) {
|
||||||
$prevpage = $page - 1;
|
$prevpage = $page - 1;
|
||||||
$prevurl = $baseurl.$prevpage;
|
$prevurl = $baseurl.$prevpage;
|
||||||
|
}
|
||||||
|
|
||||||
$title = $price['pricename'];
|
$title = $price['pricename'];
|
||||||
|
$author = $price['author'];
|
||||||
|
|
||||||
$tempcontent = VIEWPATH.'epub.phtml'; //подшаблон
|
$tempcontent = VIEWPATH.'epub.phtml'; //подшаблон
|
||||||
include VIEWPATH.'layout.phtml'; //центральный шаблон
|
include VIEWPATH.'layout.phtml'; //центральный шаблон
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ _tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
|
|||||||
<li class="header-div<?if ($type == 'mybooks'):?> mob-hidden<?endif?>">
|
<li class="header-div<?if ($type == 'mybooks'):?> mob-hidden<?endif?>">
|
||||||
<a href="<?=SITE?>mybooks">Моя библиотека</a>
|
<a href="<?=SITE?>mybooks">Моя библиотека</a>
|
||||||
</li>
|
</li>
|
||||||
|
<?if ($author !== ''):?>
|
||||||
|
<li class="header-div">
|
||||||
|
<?=$author?>
|
||||||
|
</li>
|
||||||
|
<?endif?>
|
||||||
<?if ($title !== '' and $title !== 'Моя библиотека'):?>
|
<?if ($title !== '' and $title !== 'Моя библиотека'):?>
|
||||||
<li>
|
<li>
|
||||||
<i style="float:left" class="fas fa-arrow-right"></i>
|
<i style="float:left" class="fas fa-arrow-right"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user