joomla_test/components/com_k2/views/comments/tmpl/report.php
2020-01-02 22:20:31 +07:00

47 lines
1.8 KiB
PHP

<?php
/**
* @version $Id: report.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
* @package K2
* @author JoomlaWorks http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die;
?>
<div class="k2ReportCommentFormContainer">
<h2 class="componentheading">
<?php echo JText::_('K2_REPORT_COMMENT'); ?>
</h2>
<blockquote class="commentPreview">
<span class="quoteIconLeft">&ldquo;</span>
<span class="theComment"><?php echo nl2br($this->row->commentText); ?></span>
<span class="quoteIconRight">&rdquo;</span>
</blockquote>
<form action="<?php echo JURI::root(true); ?>/index.php" name="k2ReportCommentForm" id="k2ReportCommentForm" method="post">
<label for="name"><?php echo JText::_('K2_YOUR_NAME'); ?></label>
<input type="text" id="name" name="name" value="" />
<label for="reportReason"><?php echo JText::_('K2_REPORT_REASON'); ?></label>
<textarea name="reportReason" id="reportReason" cols="60" rows="10"></textarea>
<?php if($this->params->get('recaptcha') && $this->user->guest): ?>
<label class="formRecaptcha"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
<div id="recaptcha"></div>
<?php endif; ?>
<button class="button"><?php echo JText::_('K2_SEND_REPORT'); ?></button>
<span id="formLog"></span>
<input type="hidden" name="option" value="com_k2" />
<input type="hidden" name="view" value="comments" />
<input type="hidden" name="task" value="sendReport" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="format" value="raw" />
<?php echo JHTML::_('form.token'); ?>
</form>
</div>