aurweb/web/template/pkg_comment_form.php
Lukas Fleischer 6102759b7c Use echo shortcut syntax
Replace all occurrences of "<?php echo" and "<?php print" by "<?=" to
reduce noise in templates.

Note that as of PHP 5.4.0, "<?=" is always available and no longer
requires "short_open_tag" to be set.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-09-24 12:23:04 +02:00

25 lines
750 B
PHP

<div id="generic-form" class="box">
<h2><?= __("Add Comment"); ?></h2>
<form call="general-form" action="<?= $_SERVER['REQUEST_URI'] ?>" method="post">
<fieldset>
<?php
if (isset($_REQUEST['comment']) && check_token()) {
echo '<p>' . __('Comment has been added.') . '</p>';
}
?>
<div>
<input type="hidden" name="ID" value="<?= intval($row['ID']) ?>" />
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
</div>
<p>
<label for="id_comment"><?= __("Comment") . ':' ?></label>
<textarea id="id_comment" name="comment" cols="80" rows="10"></textarea>
</p>
<p>
<label></label>
<input type="submit" value="<?= __("Add Comment") ?>" />
</p>
</fieldset>
</form>
</div>