<P>
<a href="?action=">Home</a>
»
<a href="?action=title&cid={$category.oid}">{$category.category_name}</a>
»
<a href="?action=content&tid={$metadata.oid}">{$metadata.main_title}</a>
»
Print Content
</P>
<table>
{if $metadata.rating_times eq "0"}
{assign var="rating_content" value="0"}
{else}
{math equation="ceil(total / times)" total=$metadata.rating_total times=$metadata.rating_times assign="rating_content"}
{/if}
<tr><td><strong>{$metadata.main_title}</strong></td></tr>
{if $metadata.sub_title eq ""}
<tr><td></td></tr>
{else}
<tr><td>{$metadata.sub_title}</td></tr>
{/if}
<tr>
<td>
Created : {$metadata.create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}
/
Last Update : {if $metadata.last_update eq ""}not yet{else}{$metadata.last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if}
</td>
</tr>
<tr><td>Rating : {$rating_content} / Hits : {$metadata.hits} clicked</td></tr>
<tr><td> </td></tr>
<tr><td>{$rating}</td></tr>
<tr><td><em>"{$metadata.summary}"</em></td></tr>
<tr><td> </td></tr>
{section name="page" loop=$page}
{if $page[page].status eq "1"}
{if $page[page].rating_times eq "0"}
{assign var="rating_page" value="0"}
{else}
{math equation="ceil(total / times)" total=$page[page].rating_total times=$page[page].rating_times assign="rating_page"}
{/if}
<tr><td>{$page[page].page_title}</td></tr>
<tr>
<td>
Created : {$page[page].create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}
/
Last Update : {$page[page].last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}
</td>
</tr>
<tr><td>Rating : {$rating_page} / Hits : {$page[page].hits} clicked</td></tr>
<tr><td> </td></tr>
<tr><td valign="top">{$page[page].page_content}</td></tr>
{/if}
{sectionelse}
no page
{/section}
</table> |