php-mpos/public/templates/mmcFE/admin/news_edit/default.tpl
Sebastian Grewe e4e88e5226 Adding custom news posts via admin panel
* Adding dynamic news posts from DB
* Support Adding, Editing, Activating, Deactivating through admin panel
* Display all active posts on news page
* Implemented Markdown Library by Michelf

Fixes #61
2013-06-21 11:16:02 +02:00

33 lines
1.0 KiB
Smarty

{include file="global/block_header.tpl" BLOCK_HEADER="Edit news entry #{$NEWS.id}"}
<form method="POST" action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="page" value="{$smarty.request.page}">
<input type="hidden" name="action" value="{$smarty.request.action}">
<input type="hidden" name="id" value="{$NEWS.id}">
<input type="hidden" name="do" value="save">
<table width="80%">
<tr>
<th>
Active
</th>
<td>
<input type="checkbox" name="active" value="1" id="active" {if $NEWS.active}checked{/if} />
<label for="active"></label>
</td>
</tr>
<tr>
<th>
Header
</th>
<td><input name="header" type="text" size="30" value="{$NEWS.header}" required /></td>
</tr>
<tr>
<th>
Content
</th>
<td><textarea name="content" rows="500" type="text" required>{$NEWS.content}</textarea></td>
</tr>
</table>
<input type="submit" value="Save" class="submit small" />
</form>
{include file="global/block_footer.tpl"}