PHP Classes

File: tmpl/admin.view.content.tpl

Recommend this page to a friend!
  Classes of invitro   Navelo CMS   tmpl/admin.view.content.tpl   Download  
File: tmpl/admin.view.content.tpl
Role: Auxiliary data
Content type: text/plain
Description: Admin view conten template
Class: Navelo CMS
A complete Content Management System
Author: By
Last change:
Date: 20 years ago
Size: 6,275 bytes
 

Contents

Class file image Download
<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="Page" /> <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> &raquo; <a href="?action=ViewTitle&cid={$category.oid}" title="{$category.category_name}">{$category.category_name}</a> &raquo; {$metadata.main_title} </td> </tr> <tr><td>&nbsp;</td></tr> <tr><td>[ <a href="?action=FormAddPage&tid={$metadata.oid}&url=action|ViewContent,tid|{$metadata.oid}" title="Create new page">Create New Page</a> ]</td></tr> <tr><td>&nbsp;</td></tr> </table> <table> <tr> <td><strong>Main Title</strong></td> <td width="10" align="center">:</td> <td> {$metadata.main_title} ( <a href="?action=FormUpdateContent&tid={$metadata.oid}&url=action|ViewContent,tid|{$metadata.oid}" title="Edit Content">Edit</a> - <a href="?action=FormDeleteContent&tid={$metadata.oid}&url=action|ViewContent,tid|{$metadata.oid}" title="Delete content">Delete</a> - <a href="?action=ViewReviewContent&tid={$metadata.oid}" onclick="NewWin( this.href, 'ContentReview', 550, 500, 1, false, 1 ); return false;" title="Manage content review">Review</a> ) </td> </tr> <tr> <td><strong>Sub Title</strong></td> <td width="10" align="center">:</td> <td>{$metadata.sub_title|default:"-"}</td> </tr> <tr> <td><strong>Summary</strong></td> <td width="10" align="center">:</td> <td>{$metadata.summary|default:"-"}</td> </tr> <tr> <td><strong>Create Time</strong></td> <td width="10" align="center">:</td> <td>{$metadata.create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"}</td> </tr> <tr> <td><strong>Last Update</strong></td> <td width="10" align="center">:</td> <td>{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><strong>Rating</strong></td> <td width="10" align="center">:</td> <td>{if $metadata.rating_times eq "0"}not yet{else}{$metadata.rating_total/$metadata.rating_times|string_format:"%.2f"}{/if}</td> </tr> <tr> <td><strong>Hits</strong></td> <td width="10" align="center">:</td> <td>{if $metadata.hits eq ""}not yet{else}{$metadata.hits}{/if} click(s)</td> </tr> <tr> <td><strong>Review</strong></td> <td width="10" align="center">:</td> <td>{$review_content_num} review(s)</td> </tr> <tr> <td><strong>Status</strong></td> <td width="10" align="center">:</td> <td> {if $metadata.status eq "1"}Show{elseif $metadata.status eq "2"}Hide{/if} ( <a href="?action=FormApproveContent&tid={$metadata.oid}&url=action|ViewContent,tid|{$metadata.oid}&s={if $metadata.status eq "2"}1{elseif $metadata.status eq "1"}2{/if}" title="Change content visibility">{if $metadata.status eq "2"}Show{elseif $metadata.status eq "1"}Hide{/if}</a> ) </td> </tr> <tr><td colspan="3">&nbsp;</td></tr> </table> {if count($page) > 1} {include file="admin.view.list-bar.tpl"} {/if} {section name="page" loop=$page} <table width="100%" bgcolor="#e0e0e0" cellpadding="3"> <tr> <td> [ <a href="?action=FormUpdatePage&pid={$page[page].oid}&url=action|ViewContent,tid|{$metadata.oid}" title="Edit page">Edit</a> ] [ <a href="?action=FormDeletePage&pid={$page[page].oid}&url=action|ViewContent,tid|{$metadata.oid}" title="Delete page">Delete</a> ] [ <a href="?action=FormApprovePage&pid={$page[page].oid}&url=action|ViewContent,tid|{$metadata.oid}&s={if $page[page].status eq "2"}1{elseif $page[page].status eq "1"}2{/if}" title="Change page visibility">{if $page[page].status eq "2"}Show{elseif $page[page].status eq "1"}Hide{/if}</a> ] [ <a href="?action=ViewReviewPage&pid={$page[page].oid}" onclick="NewWin( this.href, 'PageReview{$smarty.section.metadata.rownum}', 550, 500, 1, false, 1 ); return false;" title="Manage page review">Review</a> ] </td> </tr> <tr><td>{if count($page) > 1}<input type="Checkbox" name="item[]" value="{$page[page].oid}" />{else}<input type="Checkbox" name="item" value="{$metadata[title].oid}" disabled="disabled" />{/if}<strong>{$page[page].page_title}</strong></td></tr> <tr> <td> <small> Created : {$page[page].create_time|date_format:"%A, %B %d, %Y @ %H:%M:%S"} / Last Update : {if $page[page].last_update eq ""}not yet{else}{$page[page].last_update|date_format:"%A, %B %d, %Y @ %H:%M:%S"}{/if} </small> </td> </tr> <tr> <td> <small> Status : {if $page[page].status eq "1"}Show{elseif $page[page].status eq "2"}Hide{/if} / Rating : {if $page[page].rating_times eq "0"}not yet{else}{$page[page].rating_total/$page[page].rating_times|string_format:"%.2f"}{/if} / Hits : {if $page[page].hits eq ""}not yet{else}{$page[page].hits}{/if} click(s) / Review : {$review_page_num[page]} review(s) </small> </td> </tr> <tr><td>&nbsp;</td></tr> <tr><td>{$page[page].page_content}</td></tr> </table> {sectionelse} <table> <tr><td align="center">no page</td></tr> </table> {/section} {if count($page) > 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} page(s)</td> </tr> <tr> <td>Show</td> <td width="10" align="center">:</td> <td>{if $record.show eq "0"}no{else}{$record.show}{/if} page(s)</td> </tr> <tr> <td>Hidden</td> <td width="10" align="center">:</td> <td>{if $record.hide eq "0"}no{else}{$record.hide}{/if} page(s)</td> </tr> </table> </form>