Login   Register  
PHP Classes
elePHPant
Icontem

File: tmpl/client.view.content.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/client.view.content.tpl  >  Download  
File: tmpl/client.view.content.tpl
Role: Auxiliary data
Content type: text/plain
Description: user view content template
Class: Navelo CMS
A complete Content Management System
Author: By
Last change:
Date: 9 years ago
Size: 3,463 bytes
 

Contents

Class file image Download
<P>
<a href="?action=">Home</a>
&raquo;
<a href="?action=title&cid={$category.oid}">{$category.category_name}</a>
&raquo;
{$metadata.main_title}
</P>
<script language="JavaScript">
	function jump( what )
	{literal}
	{
	{/literal}
		var selectedopt = what.options[what.selectedIndex]
		if ( document.getElementById && selectedopt.getAttribute("target") == "newwin" )
			window.open( selectedopt.value )
		else
			window.location = '?action=content&&tid={$metadata.oid}&pid=' + selectedopt.value
	{literal}
	}
	{/literal}
</script>
<table>
	<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 : {if $metadata.rating_times eq "0"}not yet{else}{$metadata.rating_total/$metadata.rating_times|string_format:"%.2f"}{/if} / Hits : {$metadata.hits} clicked</td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td>{$rating_content_form}</td></tr>
	<tr><td><em>"{$metadata.summary}"</em></td></tr>
	<tr><td>&nbsp;</td></tr>
	
	{if $page.status eq "1"}
		<tr><td>{$page.page_title}</td></tr>
		<tr>
			<td>
			<small>
			Created : {$page.create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}
			/
			Last Update : {if $page.last_update eq ""}not yet{else}{$page.last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if}
			</small>
			</td>
		</tr>
		<tr>
			<td>
			<small>
			Rating : {if $page.rating_times eq "0"}not yet{else}{$page.rating_total/$page.rating_times|string_format:"%.2f"}{/if}
			/
			Hits : {$page.hits} clicked
			</small>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr><td>{$rating_page_form}</td></tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td>
				<table>
					<tr>
						{if count($page_link_id) > 1}
						<td valign="top">
						{section name="page" loop=$page_link_id}
							{if $page_link_id[page] eq $page.oid}
								<li>{$page_link_title[page]}</li>
							{else}
								<li><a href="?action=HitsPage&tid={$metadata.oid}&pid={$page_link_id[page]}">{$page_link_title[page]}</a></li>
							{/if}
						{sectionelse}
							no page
						{/section}
						</td>
						{/if}
						<td valign="top">{$page.page_content}</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
	{/if}
	
	{if count($page_link_id) > 1}
	<tr>
		<td align="right">
		<form name="page">
			<select name="loc" onchange="jump(this)">
				{html_options options=$page_list selected=""}
			</select>
			<input type="Button" value="Go" onClick="location.href='?action=content&tid={$metadata.oid}&pid=' + this.form.loc.options[this.form.loc.selectedIndex].value" />
		</form>
		</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
	{/if}
	
	<tr>
		<td>
		<a href="?action=print&tid={$metadata.oid}">Print</a>
		&nbsp;|&nbsp;
		<a href="?action=ReviewContent&tid={$metadata.oid}">View Review Content</a>
		&nbsp;|&nbsp;
		<a href="?action=FormReviewContent&tid={$metadata.oid}">Add Review Content</a>
		&nbsp;|&nbsp;
		<a href="?action=ReviewPage&pid={$page.oid}">View Review Page</a>
		&nbsp;|&nbsp;
		<a href="?action=FormReviewPage&pid={$page.oid}">Add Review Page</a>
		</td>
	</tr>
</table>