{literal} {/literal} {if $smarty.get.cat == 'edit'} {else} {/if} {if $result != ""} {/if}
{t}Manage News{/t}
{if $smarty.post.cat == "new"} {if $result == -1} {t}An error occurred while trying to add the news entry.{/t} {elseif $result == -2} {t}Please enter the title for this news entry.{/t} {elseif $result == -3} {t}Please enter the message for this news entry.{/t} {elseif $result == 1} {t}Thank you, the news entry was added successfully.{/t} {/if} {elseif $smarty.post.cat == "update"} {if $result == -1} {t}An error occurred while trying to update the news entry information.{/t} {elseif $result == -2} {t}Please enter the title for this news entry.{/t} {elseif $result == -3} {t}Please enter the message for this news entry.{/t} {elseif $result == 1} {t}Thank you, the news entry was updated successfully.{/t} {/if} {/if}
{t}Assigned Projects{/t}: {include file="error_icon.tpl.html" field="projects[]"}
{t}Status{/t}:
{t}Title{/t}: {include file="error_icon.tpl.html" field="title"}
{t}Message{/t}: {include file="error_icon.tpl.html" field="message"}
{if $smarty.get.cat == 'edit'} {else} {/if}
{t}Existing News Entries{/t}:
{literal} {/literal} {section name="i" loop=$list} {cycle values=$cycle assign="row_color"} {sectionelse} {/section}
 {t}Title{/t}  {t}Projects{/t}  {t}Status{/t}
 {$list[i].nws_title}  {$list[i].projects|escape:"html"}  {$list[i].nws_status|escape:"html"}
{t}No news entries could be found.{/t}