1041 XOOPS模組開發
<{$toolbar}>
<{if $op=="show_all"}>
<{foreach from=$all_ebook item=ebook}>
<div class="row-fluid">
<div class="span2">
<a href="<{$xoops_url}>/modules/tad_ebook/index.php?ebook_sn=<{$ebook.ebook_sn}>"><img src="<{$ebook.ebook_pic}>" alt="<{$ebook.ebook_title}>" title="<{$ebook.ebook_title}>"></a>
</div>
<div class="span10">
<h3>
<span class="label label-info"><{$ebook.ebook_publish_date}></span>
<a href="index.php?ebook_sn=<{$ebook.ebook_sn}>"><{$ebook.ebook_title}></a>
</h3>
<div><{$ebook.ebook_content}></div>
</div>
</div>
<{/foreach}>
<{/if}>
<{if $op=="show_ebook"}>
<ul>
<{foreach from=$all_page item=page}>
<li>
<span class="label label-info"><{$page.page_tag}></span>
<a href="index.php?page_sn=<{$page.page_sn}>"><{$page.page_title}></a>
</li>
<{/foreach}>
</ul>
<{/if}>
<{if $op=="show_page"}>
<h1><{$page.page_title}></h1>
<{$page.page_content}>
<div style="text-align: center; padding: 3px; margin: 3px;">
<{$commentsnav}>
<{$lang_notice}>
</div>
<div style="margin: 3px; padding: 3px;">
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->
</div>
<{/if}>
<{include file='db:system_notification_select.html'}>