if ($uri[5] == '') { ?>
滋賀の子育て情報誌 ピースマムvol.57
} else { ?>
滋賀の子育て情報誌 ピースマムvol.57 ページ
} ?>
if ((string)$book->info->logouser != '') { ?> } ?> 滋賀の子育て情報誌 ピースマムvol.57
if (count($book->info->toc)) { ?>
- 目次
foreach ($book->info->toc->children() as $node) {
if ((string)$node['url'] != '') {
$link = (string)$node['url'];
$title = (string)$node.' ('.$link.')';
}
elseif ((string)$node['book'] != '') {
$link = $baseurl."?".(string)$node['book']."##".(string)$node['page'];
$title = (string)$node.' ('.$lib->get_booktitle($book->id).')';
}
else {
$link = $baseurl."?".$book->bookid."#".$book->pageToLabel((int)$node['page']);
$title = $book->pageToLabel((int)$node['page']).'. '.(string)$node;
}
?>
} ?>
}
if ($uri[5] == '') {
for ($i = 1; $i <= (int)$book->info->config['pages']; $i++) {
$page = $book->info->xpath('/wisebook/page[@number = "'.$i.'"]');
if ($page === false || count($page) == 0) continue;
gen_page_contents($page[0]);
ob_flush();
$command = "{$php} -f ".SITE_ROOT."index.php -- /multi/contents/{$book->memberid}/{$book->id}/".(string)$page[0]['number'];
$result = @shell_exec($command);
file_put_contents($book->path.(string)$page[0]->files['path'].'/'.$book->monfig['file_contents'], $result);
}
} else {
gen_page_contents($page);
?>
if ((int)$page['number'] > 1) {
$node = $book->info->xpath('/wisebook/page[@number = "'.((int)$page['number'] - 1).'"]');
?>
- 前ページへ
}
if ((int)$page['number'] < (int)$book->info->config['pages']) {
$node = $book->info->xpath('/wisebook/page[@number = "'.((int)$page['number'] + 1).'"]');
?>
- 次ページへ
} ?>
- 一覧へ
}
?>