<script language="JavaScript">
function NewWin( theURL, Name, w, h, scroll, resizeable, status )
{ldelim}
var left_pos = ( screen.width - w ) / 2;
var up_pos = ( screen.height - h ) / 2;
properties = 'width = ' + w + ', height = ' + h + ', left = ' + left_pos + ', top = ' + up_pos + ', scrollbars = ' + scroll + ', resizable = ' + resizeable + ', status = ' + status
windows = window.open( theURL, Name, properties )
if ( parseInt( navigator.appVersion ) >= 4 )
windows.window.focus();
{rdelim}
</script>
<form method="get">
<input type="Hidden" name="action" value="BulkAction" />
<input type="Hidden" name="section" value="Content" />
<input type="Hidden" name="u" value="{$smarty.server.QUERY_STRING}" />
<table width="100%">
<tr><td><strong>Navelo Content Management System</strong></td></tr>
<tr><td><a href="?action=" title="CMS">CMS</a> » {$category.category_name}</td></tr>
<tr><td> </td></tr>
<tr>
<td>
[ <a href="?action=FormAddContent&url=action|ViewTitle,cid|{$category.oid}" title="Create new content">Create New Content</a> ]
</td>
</tr>
<tr><td> </td></tr>
</table>
<table>
<tr>
<td>Category Name</td>
<td width="10" align="center">:</td>
<td>
{$category.category_name}
( <a href="?action=FormUpdateCategory&cid={$category.oid}&url=action|ViewTitle,cid|{$category.oid}" title="Edit category">Edit</a> - <a href="?action=FormDeleteCategory&cid={$category.oid}&url=action|ViewTitle,cid|{$category.oid}" title="Delete category">Delete</a> )
</td>
</tr>
<tr>
<td>Description</td>
<td width="10" align="center">:</td>
<td>{$category.description|default:"n/a"}</td>
</tr>
<tr>
<td>Create Time</td>
<td width="10" align="center">:</td>
<td>{$category.create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}</td>
</tr>
<tr>
<td>Last Update</td>
<td width="10" align="center">:</td>
<td>{if $category.last_update eq ""}not yet{else}{$category.last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if}</td>
</tr>
<tr>
<td>Status</td>
<td width="10" align="center">:</td>
<td>
{if $category.status eq "1"}Show{elseif $category.status eq "2"}Hide{/if}
( <a href="?action=FormApproveCategory&cid={$category.oid}&url=action|ViewTitle,cid|{$category.oid}&s={if $category.status eq "2"}1{elseif $category.status eq "1"}2{/if}" title="Change category visibility">{if $category.status eq "2"}Show{elseif $category.status eq "1"}Hide{/if}</a> )
</td>
</tr>
<tr><td> </td></tr>
</table>
{if count($metadata) > 1}
{include file="admin.view.list-bar.tpl"}
{/if}
<table width="100%" border="1">
<tr bgcolor="#C0C0C0">
<td align="center"> </td>
<td align="center"><strong>Main Title</strong></td>
<td align="center"><strong>Create Time</strong></td>
<td align="center"><strong>Last Update</strong></td>
<td align="center"><strong>Rating</strong></td>
<td align="center"><strong>Hits</strong></td>
<td align="center"><strong>Review</strong></td>
<td align="center"><strong>Status</strong></td>
<td align="center" colspan="4"><strong>Actions</strong></td>
</tr>
{section name=title loop=$metadata}
<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
<td align="center">{if count($metadata) > 1}<input type="Checkbox" name="item[]" value="{$metadata[title].oid}" />{else}<input type="Checkbox" name="item" value="{$metadata[title].oid}" disabled="disabled" />{/if}</td>
<td title="{$metadata[title].summary|default:"n/a"|strip_tags:false}">
<a href="?action=ViewContent&tid={$metadata[title].oid}">{$metadata[title].main_title|truncate:32:"..."}</a>
<small><em><br>{$metadata[title].sub_title|default:"<em>- subtitle n/a -</em>"|truncate:32:"..."}</em></small>
</td>
<td title="{$metadata[title].create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}">{$metadata[title].create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}</td>
<td title="{if $metadata[title].last_update eq ""}not yet{else}{$metadata[title].last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if}">{if $metadata[title].last_update eq ""}not yet{else}{$metadata[title].last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if}</td>
<td title="{if $metadata[title].rating_times eq "0"}not yet{else}{$metadata[title].rating_total/$metadata[title].rating_times|string_format:"%.2f"}{/if}">{if $metadata[title].rating_times eq "0"}not yet{else}{$metadata[title].rating_total/$metadata[title].rating_times|string_format:"%.2f"}{/if}</td>
<td title="{if $metadata[title].hits eq "0"}n/a{else}{$metadata[title].hits}{/if}">{if $metadata[title].hits eq "0"}n/a{else}{$metadata[title].hits}{/if}</td>
<td title="{if $review_content_num[title] eq "0"}not yet{else}{$review_content_num[title]}{/if}">{if $review_content_num[title] eq "0"}not yet{else}{$review_content_num[title]}{/if}</td>
<td title="{if $metadata[title].status eq "1"}Show{elseif $metadata[title].status eq "2"}Hide{/if}">{if $metadata[title].status eq "1"}Show{elseif $metadata[title].status eq "2"}Hide{/if}</td>
<td title="Edit content" align="center" width="40"><a href="?action=FormUpdateContent&tid={$metadata[title].oid}&url=action|ViewTitle,cid|{$category.oid}">Edit</a></td>
<td title="Delete content" align="center" width="40"><a href="?action=FormDeleteContent&tid={$metadata[title].oid}&url=action|ViewTitle,cid|{$category.oid}">Delete</a></td>
<td title="Change content visibility" align="center" width="40"><a href="?action=FormApproveContent&tid={$metadata[title].oid}&url=action|ViewTitle,cid|{$category.oid}&s={if $metadata[title].status eq "2"}1{elseif $metadata[title].status eq "1"}2{/if}">{if $metadata[title].status eq "2"}Show{elseif $metadata[title].status eq "1"}Hide{/if}</a></td>
<td title="Manage content review" align="center" width="40"><a href="?action=ViewReviewContent&tid={$metadata[title].oid}" onclick="NewWin( this.href, 'ContentReview', 550, 500, 1, false, 1 ); return false;">Review</a></td>
</tr>
{sectionelse}
<tr><td align="center" colspan="12">no record</td></tr>
{/section}
</table>
{if count($metadata) > 1}
{include file="admin.view.list-bar.tpl"}
{/if}
<table>
<tr><td colspan="3"> </td></tr>
<tr>
<td>Total</td>
<td width="10" align="center">:</td>
<td>{$record.total} title(s)</td>
</tr>
<tr>
<td>Show</td>
<td width="10" align="center">:</td>
<td>{if $record.show eq "0"}no{else}{$record.show}{/if} title(s)</td>
</tr>
<tr>
<td>Hidden</td>
<td width="10" align="center">:</td>
<td>{if $record.hide eq "0"}no{else}{$record.hide}{/if} title(s)</td>
</tr>
</table>
</form> |