add title page
This commit is contained in:
@@ -136,6 +136,9 @@ function promo_kuri($hash, $page = 1, $scale = 2, $promo = false){
|
|||||||
$id = $price['price_id'];
|
$id = $price['price_id'];
|
||||||
$pdfile = "/file/$hash";
|
$pdfile = "/file/$hash";
|
||||||
$maxpage = 32;
|
$maxpage = 32;
|
||||||
|
if ($page > 1)
|
||||||
|
$title = $price['pricename']."- $page";
|
||||||
|
else
|
||||||
$title = $price['pricename'];
|
$title = $price['pricename'];
|
||||||
|
|
||||||
if (!$promo)
|
if (!$promo)
|
||||||
|
|||||||
@@ -89,8 +89,31 @@ function mybooks_kuri($clienthash, $page = 1){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = api_arch($page);
|
$items = api_arch($page);
|
||||||
print_r($result);
|
|
||||||
|
foreach ($items as $item){
|
||||||
|
if ($item['price_id'] = 486){ //ищем подписку = доступ на весь архив
|
||||||
|
$all = True;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($all){
|
||||||
|
$books = api_arch($page);
|
||||||
|
|
||||||
|
if ($page > 1)
|
||||||
|
$title = "Архив номеров - $page";
|
||||||
|
else
|
||||||
|
$title = "Архив номеров";
|
||||||
|
|
||||||
|
$tempcontent = VIEWPATH.'allbooks.phtml';
|
||||||
|
include VIEWPATH.'layout.phtml';
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$books = $items;
|
||||||
|
}
|
||||||
|
|
||||||
//$books = clientbooks_kuri($client['client_id']);
|
//$books = clientbooks_kuri($client['client_id']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user