Your IP : 216.73.216.240
<?php
/**
* @copyright
* @package Easybook Reloaded - EBR for Joomla! 3.x
* @author Viktor Vogel <admin@kubik-rubik.de>
* @version 3.4.1.1-FREE - 2021-08-29
* @link https://kubik-rubik.de/ebr-easybook-reloaded
*
* @license GNU/GPL
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
defined('_JEXEC') || die('Restricted access');
use EasybookReloaded\Helper;
use EasybookReloaded\Smilie;
use Joomla\CMS\{Router\Route, Language\Text, HTML\HTMLHelper, Factory};
$hashRequest = Factory::getApplication()->input->getString('hash');
?>
<div id="easybook">
<?php if ((bool)Helper::getParams('showPageTitle', true)) : ?>
<h2 class="componentheading"><?php echo $this->heading ?></h2>
<?php endif; ?>
<div class="easy_entrylink">
<div class="view">
<strong>
<a class="view" href="<?php echo Route::_('index.php?option=com_easybookreloaded&view=easybookreloaded'); ?>" style="text-decoration: none !important;">
<button class="btn btn-success">
<span class="icon-new icon-white"></span>
<?php echo Text::_('COM_EASYBOOKRELOADED_READ_GUESTBOOK'); ?>
</button>
</a>
</strong>
</div>
<form class="form-horizontal" name="gbookForm" action="<?php Route::_('index.php'); ?>" target="_top" method="post">
<?php if (Helper::getParams('supportBbCode', true)) : ?>
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<div class="btn-group">
<?php if (Helper::getParams('supportLink', true)) : ?>
<a href="javascript:x()" onclick="DoPrompt('url');">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/world_link.png" hspace="3" border="0" alt="" title="<?php echo Text::_('COM_EASYBOOKRELOADED_WEB_ADDRESS'); ?>" height="16" width="16"/>
</a>
<?php endif; ?>
<?php if (Helper::getParams('supportMail', true)) : ?>
<a href="javascript:x()" onclick="DoPrompt('email');">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/email_link.png" hspace="3" border="0" alt="" title="<?php echo Text::_('COM_EASYBOOKRELOADED_EMAIL_ADDRESS'); ?>" height="16" width="16"/>
</a>
<?php endif; ?>
<?php if (Helper::getParams('supportPictures', true)): ?>
<a href="javascript:x()" onclick="DoPrompt('image_link');">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/picture_link.png" hspace="3" border="0" alt="" title="<?php echo Text::_('COM_EASYBOOKRELOADED_SHOW_IMAGE_WITH_A_LINK'); ?>" height="16" width="16"/>
</a>
<?php endif; ?>
<?php if (Helper::getParams('supportPictures', true)) : ?>
<a href="javascript:x()" onclick="DoPrompt('image');">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/picture.png" hspace="3" border="0" alt="" title="<?php echo Text::_('COM_EASYBOOKRELOADED_SHOWS_IMAGE_FROM_AN_URL'); ?>" height="16" width="16"/>
</a>
<?php endif; ?>
<?php if (Helper::getParams('supportCode', true)) : ?>
<a href="javascript:x()" onclick="DoPrompt('code');">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/code.png" hspace="3" border="0" alt="" title="<?php echo Text::_('COM_EASYBOOKRELOADED_ENTER_CODE'); ?>" height="16" width="16"/>
</a>
<?php endif; ?>
<?php if (Helper::getParams('supportYoutube', true)) : ?>
<a href="javascript:x()" onclick="DoPrompt('youtube');">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/youtube.png" hspace="3" border="0" alt="" title="<?php echo Text::_('COM_EASYBOOKRELOADED_YOUTUBE'); ?>" height="16" width="16"/>
</a>
<?php endif; ?>
<a href="javascript:x()" onclick="insert('[B]', '[/B]')">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/text_bold.png" hspace="3" border="0" alt="Bold" title="<?php echo Text::_('COM_EASYBOOKRELOADED_BOLD'); ?>" height="16" width="16"/>
</a>
<a href="javascript:x()" onclick="insert('[I]', '[/I]')">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/text_italic.png" hspace="3" border="0" alt="Italic" title="<?php echo Text::_('COM_EASYBOOKRELOADED_ITALIC'); ?>" height="16" width="16"/>
</a>
<a href="javascript:x()" onclick="insert('[U]', '[/U]')">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/text_underline.png" hspace="3" border="0" alt="Underline" title="<?php echo Text::_('COM_EASYBOOKRELOADED_UNDERLINE'); ?>" height="16" width="16"/>
</a>
<a href="javascript:x()" onclick="insert('[CENTER]', '[/CENTER]')">
<img src="<?php echo $this->baseurl ?>/components/com_easybookreloaded/images/text_align_center.png" hspace="3" border="0" alt="Center" title="<?php echo Text::_('COM_EASYBOOKRELOADED_CENTER'); ?>" height="16" width="16"/>
</a>
</div>
</div>
</div>
<?php endif; ?>
<?php if (Helper::getParams('supportSmilie', true)) : ?>
<div class="control-group">
<label class="control-label"></label>
<div class="controls smilies">
<div class="btn-group">
<?php $count = 1; ?>
<?php $smiley = Smilie::getSmilies(); ?>
<?php foreach ($smiley as $i => $sm) : ?>
<?php if ((int)Helper::getParams('smilieSet') === 0) : ?>
<a href="javascript:insertsmilie('<?php echo $i; ?>')" title="<?php echo $i; ?>">
<?php echo HTMLHelper::_('image', 'components/com_easybookreloaded/images/smilies/' . $sm, $sm, 'border="0"'); ?>
</a>
<?php else : ?>
<a href="javascript:insertsmilie('<?php echo $i; ?>')" title="<?php echo $i; ?>">
<?php echo HTMLHelper::_('image', 'components/com_easybookreloaded/images/smilies2/' . $sm, $sm, 'border="0"'); ?>
</a>
<?php endif; ?>
<?php $count++; ?>
<?php if ($count % 10 === 1) : ?>
<br/>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="control-group">
<label class="control-label"
for="gbcomment"><?php echo Text::_('COM_EASYBOOKRELOADED_ADMIN_COMMENT'); ?></label>
<div class="controls">
<textarea name="gbcomment" id="gbcomment" rows="10" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_ADMIN_COMMENT'); ?>"><?php echo $this->entry->gbcomment; ?></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inform"><?php echo Text::_('COM_EASYBOOKRELOADED_INFORM'); ?></label>
<div class="controls">
<input type="checkbox" name="inform" id="inform" value="1"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="toggle_state"><?php echo Text::_('COM_EASYBOOKRELOADED_TOGGLESTATE'); ?></label>
<div class="controls">
<input type="checkbox" name="toggle_state" id="toggle_state" value="1"/>
</div>
</div>
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<p id="easysubmit">
<input type="submit" name="send" value="<?php echo Text::_('COM_EASYBOOKRELOADED_SUBMIT_ENTRY'); ?>" class="btn btn-success"/>
</p>
</div>
</div>
<input type="hidden" name="option" value="com_easybookreloaded"/>
<input type="hidden" name="task" value="savecommentMail"/>
<input type="hidden" name="id" value="<?php echo $this->entry->id; ?>"/>
<input type="hidden" name="gbid" value="<?php echo $this->gbId; ?>"/>
<input type="hidden" name="hash" value="<?php echo $hashRequest; ?>"/>
<?php echo HTMLHelper::_('form.token'); ?>
</form>
</div>
</div>