mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
* Move DB code and e-mail code from pkg_comment_form.php to new function in pkgfuncs.inc.php * Centralization of DB code important in a future transition to PDO interface Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
24 lines
680 B
PHP
24 lines
680 B
PHP
<div id="generic-form" class="box">
|
|
<h2><?php echo __("Add Comment"); ?></h2>
|
|
<form call="general-form" action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post">
|
|
<fieldset>
|
|
<?php
|
|
if (isset($_REQUEST['comment'])) {
|
|
echo '<p>' . __('Comment has been added.') . '</p>';
|
|
}
|
|
?>
|
|
<div>
|
|
<input type="hidden" name="ID" value="<?php echo intval($_REQUEST['ID']) ?>" />
|
|
</div>
|
|
<p>
|
|
<label for="id_comment"><?php echo __("Comment") . ':' ?></label>
|
|
<textarea id="id_comment" name="comment" cols="80" rows="10"></textarea>
|
|
</p>
|
|
<p>
|
|
<label></label>
|
|
<input type="submit" value="<?php echo __("Add Comment") ?>" />
|
|
</p>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
|