add test_epub
This commit is contained in:
@@ -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";
|
||||
|
||||
7
app/views/epub.phtml
Normal file
7
app/views/epub.phtml
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
<?include ('blocks/pgtextnav.phtml')?>
|
||||
|
||||
<?=$pagehtml?>
|
||||
|
||||
<?include ('blocks/pgtextnav.phtml')?>
|
||||
|
||||
Reference in New Issue
Block a user