Login   Register  
PHP Classes
elePHPant
Icontem

File: tmpl/admin.view.category.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of invitro  >  Navelo CMS  >  tmpl/admin.view.category.tpl  >  Download  
File: tmpl/admin.view.category.tpl
Role: Auxiliary data
Content type: text/plain
Description: Admin View category template
Class: Navelo CMS
A complete Content Management System
Author: By
Last change:
Date: 10 years ago
Size: 3,627 bytes
 

Contents

Class file image Download
<form method="get">
<input type="Hidden" name="action" value="BulkAction" />
<input type="Hidden" name="section" value="Category" />
<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>CMS</td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr>
		<td>
		[ <a href="?action=FormAddCategory&url=action|" title="Create new category">Create New Category</a> ]
		[ <a href="?action=FormAddContent&url=action|" title="Create new content">Create New Content</a> ]
		</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
</table>

{if count($category) > 1}
	{include file="admin.view.list-bar.tpl"}
{/if}

<table width="100%" border="1">
	<tr bgcolor="#C0C0C0">
		<td align="center">&nbsp;</td>
		<td align="center"><strong>Category Name</strong></td>
		<td align="center"><strong>Create Time</strong></td>
		<td align="center"><strong>Last Update</strong></td>
		<td align="center"><strong>Status</strong></td>
		<td align="center" colspan="3"><strong>Actions</strong></td>
	</tr>
	{section name=category loop=$category}
	<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
		<td align="center">{if count($category) > 1}<input type="Checkbox" name="item[]" value="{$category[category].oid}"/>{else}<input type="Checkbox" name="item" value="{$metadata[title].oid}" disabled="disabled" />{/if}</td>
		<td title="{$category[category].description|default:"n/a"|strip_tags:false|escape}"><a href="?action=ViewTitle&cid={$category[category].oid}" title="{$category[category].category_name}">{$category[category].category_name|truncate:32:"..."}</a></td>
		<td title="{$category[category].create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}">{$category[category].create_time|date_format:"%A, %B %d, %Y at %H:%M:%S"}</td>
		<td title="{if $category[category].last_update eq ""}not yet{else}{$category[category].last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if}">{if $category[category].last_update eq ""}not yet{else}{$category[category].last_update|date_format:"%A, %B %d, %Y at %H:%M:%S"}{/if}</td>
		<td title="{if $category[category].status eq "1"}Show{elseif $category[category].status eq "2"}Hide{/if}">{if $category[category].status eq "1"}Show{elseif $category[category].status eq "2"}Hide{/if}</td>
		<td align="center" width="40"><a href="?action=FormUpdateCategory&cid={$category[category].oid}&url=action|" title="Edit category">Edit</a></td>
		<td align="center" width="40"><a href="?action=FormDeleteCategory&cid={$category[category].oid}&url=action|" title="Delete category">Delete</a></td>
		<td align="center" width="40"><a href="?action=FormApproveCategory&cid={$category[category].oid}&url=action|&s={if $category[category].status eq "2"}1{elseif $category[category].status eq "1"}2{/if}" title="Change category visibility">{if $category[category].status eq "2"}Show{elseif $category[category].status eq "1"}Hide{/if}</a></td>
	</tr>
	{sectionelse}
	<tr><td align="center" colspan="8">no record</td></tr>
	{/section}
</table>

{if count($category) > 1}
	{include file="admin.view.list-bar.tpl"}
{/if}

<table>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr>
		<td>Total</td>
		<td width="10" align="center">:</td>
		<td>{$record.total} categor(ies)</td>
	</tr>
	<tr>
		<td>Show</td>
		<td width="10" align="center">:</td>
		<td>{if $record.show eq "0"}no{else}{$record.show}{/if} categor(ies)</td>
	</tr>
	<tr>
		<td>Hidden</td>
		<td width="10" align="center">:</td>
		<td>{if $record.hide eq "0"}no{else}{$record.hide}{/if} categor(ies)</td>
	</tr>
</table>
</form>