forked from verdnatura/hedera-web
41 lines
831 B
PHP
Executable File
41 lines
831 B
PHP
Executable File
<div id="new">
|
|
<h1><?php i('AddNew') ?></h1>
|
|
<vn-param id="new-param">
|
|
<vn-hash-link key="new"/>
|
|
</vn-param>
|
|
<db-form id="new-form">
|
|
<db-param column="text" id="new-body"/>
|
|
<db-model>
|
|
SELECT id, user_id, title, text
|
|
FROM news WHERE id = #new
|
|
<sql-batch property="batch">
|
|
<item name="new" param="new-param"/>
|
|
</sql-batch>
|
|
</db-model>
|
|
</db-form>
|
|
<table class="form">
|
|
<tbody>
|
|
<tr>
|
|
<td class="label">
|
|
<?php i('Title:') ?>
|
|
</td>
|
|
<td>
|
|
<htk-entry column="title" form="new-form"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">
|
|
<?php i('NewBody:') ?>
|
|
</td>
|
|
<td>
|
|
<textarea id="html-editor"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="foot">
|
|
<button id="new-cancel"><?php i('Cancel') ?></button>
|
|
<button id="new-accept"><?php i('Accept') ?></button>
|
|
</div>
|
|
</div>
|