Your IP : 216.73.216.240


Current Path : /home/j/u/v/juvelize/martine/components/com_easybookreloaded/views/entry/tmpl/
Upload File :
Current File : /home/j/u/v/juvelize/martine/components/com_easybookreloaded/views/entry/tmpl/form_mail.php

<?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\Content;
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 (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&gbid=' . $this->gbId); ?>" 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('enableLog', true)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbip">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_IP_ADDRESS'); ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbip" id="gbip" value="<?php echo $this->entry->ip; ?>" disabled="disabled" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_IP_ADDRESS'); ?>"/>
                    </div>
                </div>
            <?php endif; ?>
            <div class="control-group">
                <label class="control-label" for="gbname">
                    <?php echo Text::_('COM_EASYBOOKRELOADED_NAME'); ?>
                    <span class="small">*</span>
                </label>
                <div class="controls">
                    <input type="text" name="gbname" id="gbname" value="<?php echo $this->entry->gbname; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_NAME'); ?>"/>
                </div>
            </div>
            <?php if (Helper::getParams('showMail', true) || Helper::getParams('requireMail', true)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbmail">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_EMAIL'); ?>
                        <?php if (Helper::getParams('requireMail', true)) : ?>
                            <span class="small">*</span>
                        <?php endif; ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbmail" id="gbmail" value="<?php echo $this->entry->gbmail; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_EMAIL'); ?>"/>
                    </div>
                </div>
                <?php if (!$this->entry->id) : ?>
                    <div class="control-group">
                        <label class="control-label" for="gbmailshow">
                            <?php echo Text::_('COM_EASYBOOKRELOADED_SHOW_EMAIL_IN_PUBLIC'); ?>
                        </label>
                        <div class="controls">
                            <input type="checkbox" name="gbmailshow" id="gbmailshow" value="1"/>
                        </div>
                    </div>
                <?php endif; ?>
            <?php endif; ?>
            <?php if (Helper::getParams('showLocation', true)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbloca">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_LOCATION'); ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbloca" id="gbloca" value="<?php echo $this->entry->gbloca; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_LOCATION'); ?>"/>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (Helper::getParams('showHome', true)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbpage">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_HOMEPAGE'); ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbpage" id="gbpage" value="<?php echo $this->entry->gbpage; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_HOMEPAGE'); ?>"/>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (Helper::getParams('showIcq', false)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbicq">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_ICQ_NUMBER'); ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbicq" id="gbicq" value="<?php echo $this->entry->gbicq; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_ICQ_NUMBER'); ?>"/>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (Helper::getParams('showSkype', false)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbskype">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_SKYPE_NICKNAME'); ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbskype" id="gbskype" value="<?php echo $this->entry->gbskype; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_SKYPE_NICKNAME'); ?>"/>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (Helper::getParams('showRating', true)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbvote">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_WEBSITE_RATING'); ?>
                    </label>
                    <div class="controls">
                        <input type="hidden" name="gbvote" value="0"/>
                        <?php $vote = (int)$this->entry->gbvote; ?>
                        <?php $ratingMax = (int)Helper::getParams('ratingMax', 5); ?>
                        <?php for ($i = 1; $i <= $ratingMax; $i++) : ?>
                            <?php if ((isset($vote)) && ($i === $vote)) : ?>
                                <input type="radio" name="gbvote" value="<?php echo $i; ?>" checked="checked"/>
                            <?php else : ?>
                                <?php if ($i === $ratingMax && empty($vote)) : ?>
                                    <input type="radio" name="gbvote" value="<?php echo $i; ?>" checked="checked"/>
                                <?php else : ?>
                                    <input type="radio" name="gbvote" value="<?php echo $i; ?>"/>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endfor; ?>
                    </div>
                </div>
            <?php else : ?>
                <input type="hidden" name="gbvote" value="0"/>
            <?php endif; ?>
            <?php if (Helper::getParams('showTitle', true)) : ?>
                <div class="control-group">
                    <label class="control-label" for="gbtitle">
                        <?php echo Text::_('COM_EASYBOOKRELOADED_TITLE'); ?>
                        <?php if (Helper::getParams('requireTitle', true)) : ?>
                            <span class="small">*</span>
                        <?php endif; ?>
                    </label>
                    <div class="controls">
                        <input type="text" name="gbtitle" id="gbtitle" value="<?php echo $this->entry->gbtitle; ?>" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_TITLE'); ?>"/>
                    </div>
                </div>
            <?php endif; ?>
            <?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>&nbsp;
                                <?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>&nbsp;
                                <?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="gbtext">
                    <?php echo Text::_('COM_EASYBOOKRELOADED_GUESTBOOK_ENTRY'); ?>
                    <span class="small">*</span>
                </label>
                <div class="controls">
                    <textarea name="gbtext" id="gbtext" rows="10" placeholder="<?php echo Text::_('COM_EASYBOOKRELOADED_GUESTBOOK_ENTRY'); ?>"><?php echo $this->entry->gbtext; ?></textarea>
                </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="saveMail"/>
            <input type="hidden" name="gbid" value="<?php echo $this->gbId; ?>"/>
            <?php echo HTMLHelper::_('form.token'); ?>
            <?php if ($this->entry->id) : ?>
                <input type="hidden" name="id" value="<?php echo $this->entry->id; ?>"/>
            <?php endif; ?>
            <input type="hidden" name="hash" value="<?php echo $hashRequest; ?>"/>
            <?php if (Helper::getParams('enableSpamCheck', true)) : ?>
                <input type="hidden" name="<?php echo $this->session->get('spamCheckFieldName', null, 'easybookreloaded'); ?>" value="<?php echo $this->session->get('spamCheckResult', null, 'easybookreloaded'); ?>"/>
            <?php endif; ?>
            <?php if (Helper::getParams('spamCheckQuestion', true)) : ?>
                <input type="hidden" name="<?php echo $this->session->get('spamCheckQuestionFieldName', null, 'easybookreloaded'); ?>" value="<?php echo Helper::getParams('spamCheckQuestionAnswer'); ?>"/>
            <?php endif; ?>
            <?php if (Helper::getParams('eugdpr', true)) : ?>
                <input type="hidden" name="eugdpr" value="true"/>
            <?php endif; ?>
        </form>
        <div class="easy_small_notice">
            <p><span>* <?php echo Text::_('COM_EASYBOOKRELOADED_REQUIRED_FIELD'); ?></span></p>
        </div>
    </div>
</div>