From 21b1e6db499b3a2d490864cbbd2f36192cdd5c6b Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Sat, 23 May 2020 23:19:05 +0300 Subject: [PATCH] add test_epub --- app/routes/anpdf.php | 32 ++++++++++++++++++++++++++++++++ app/views/epub.phtml | 7 +++++++ 2 files changed, 39 insertions(+) create mode 100644 app/views/epub.phtml diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index a193505..98feecd 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -389,6 +389,38 @@ function initpageurls($page, $count, $baseurl){ +function epub_kuri($page = 1){ + + require (APPPATH.'functions/xhtmltransform.php'); + $dir = APPPATH.'pub/ops/'; + + $limit = 4000; + $count = 20; + + + $html = convert2html($dir.'toc.xhtml'); + $html .= convert2html($dir.'chapter-1.xhtml'); + $pagehtml = pagehtml($html, $page, $limit); + + $baseurl = SITE.'/epub/'; + $endurl = $baseurl.$count; + + $nextpage = $page + 1; + $nexturl = $baseurl.$nextpage; + + $prevpage = $page - 1; + $prevurl = $baseurl.$prevpage; + + $title = 'Млечин - Тайна фюрера'; + + + $tempcontent = VIEWPATH.'epub.phtml'; //подшаблон + include VIEWPATH.'layout.phtml'; //центральный шаблон + +} + + + function pdfscan_kuri(){ $pdfsql = "SELECT price_id, pricehash FROM price WHERE category_id = 1"; diff --git a/app/views/epub.phtml b/app/views/epub.phtml new file mode 100644 index 0000000..44b917c --- /dev/null +++ b/app/views/epub.phtml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file