default scale = 1
This commit is contained in:
@@ -15,10 +15,12 @@ function api_client_kuri($hash){
|
||||
|
||||
function clientbooks_kuri($client_id){
|
||||
|
||||
$buysql = "SELECT * FROM anbuy WHERE client_id = '$client_id'";
|
||||
$buysql = "SELECT * FROM anbuy WHERE client_id = '$client_id' AND `buy_status` = '1'";
|
||||
echo $buysql;
|
||||
$buys = db_get($buysql);
|
||||
|
||||
|
||||
|
||||
return $buys;
|
||||
|
||||
|
||||
@@ -26,7 +28,7 @@ function clientbooks_kuri($client_id){
|
||||
|
||||
|
||||
//весь активный архив
|
||||
function api_arch_kuri($clienthash, $page = 1){
|
||||
function api_arch($page = 1){
|
||||
|
||||
$limit = 25;
|
||||
|
||||
|
||||
@@ -14,7 +14,10 @@ function renderPage() {
|
||||
|
||||
var canvas = document.getElementById('the-canvas');
|
||||
var context = canvas.getContext('2d');
|
||||
var viewport = page.getViewport({scale: scale});
|
||||
//var viewport = page.getViewport({scale: scale});
|
||||
var viewport = page.getViewport({scale: 1});
|
||||
|
||||
|
||||
canvas.height = viewport.height;
|
||||
canvas.width = viewport.width;
|
||||
|
||||
|
||||
@@ -89,9 +89,14 @@ function mybooks_kuri($clienthash, $page = 1){
|
||||
return;
|
||||
}
|
||||
|
||||
$books = clientbooks_kuri($client['client_id']);
|
||||
$result = api_arch($page);
|
||||
print_r($result);
|
||||
|
||||
print_r($books);
|
||||
//$books = clientbooks_kuri($client['client_id']);
|
||||
|
||||
// print_r($books);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<head>
|
||||
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
||||
<script src="/pub/scripts/pdf.min.js"></script>
|
||||
<script src="/pub/scripts/anviewer.js?ver=13"></script>
|
||||
<script src="/pub/scripts/anviewer.js?ver=14"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=27">
|
||||
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
Reference in New Issue
Block a user