* 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
33 lines
1.0 KiB
Smarty
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"}
|