Your IP : 216.73.216.240


Current Path : /home/juvelize/martine/administrator/components/com_easybookreloaded/views/entry/tmpl/
Upload File :
Current File : /home/juvelize/martine/administrator/components/com_easybookreloaded/views/entry/tmpl/form.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\Helper;
use Joomla\CMS\{Language\Text, Router\Route, HTML\HTMLHelper, Uri\Uri};

HTMLHelper::_('behavior.tooltip');
HTMLHelper::_('behavior.formvalidation');
HTMLHelper::_('formbehavior.chosen', 'select');
?>
<script type="text/javascript">
    Joomla.submitbutton = function(task) {
        if (task === 'cancel' || document.formvalidator.isValid(document.id('easybook-form'))) {
            Joomla.submitform(task, document.getElementById('easybook-form'));
        }
    }
</script>
<form action="<?php echo Route::_('index.php?option=com_easybookreloaded'); ?>" method="post" name="adminForm" id="easybook-form" class="form-validate form-horizontal" enctype="multipart/form-data">
    <div class="row-fluid">
        <div class="span10 form-horizontal">
            <fieldset>
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a href="#entry" data-toggle="tab">
                            <?php echo Text::_('COM_EASYBOOKRELOADED_DETAILS'); ?>
                        </a>
                    </li>
                    <li>
                        <a href="#details" data-toggle="tab">
                            <?php echo Text:: _('COM_EASYBOOKRELOADED_CONTACT_DETAILS'); ?>
                        </a>
                    </li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="entry">
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbid">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_GB'); ?>
                                    <span class="small">*</span>
                                </label>
                            </div>
                            <div class="controls">
                                <select name="gbid" class="inputbox">
                                    <?php echo HTMLHelper::_('select.options', $this->guestbooks, 'id', 'title', $this->entry->gbid); ?>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbname" class="required">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_AUTHOR'); ?>
                                    <span class="star">*</span>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area required" type="text" name="gbname" id="gbname" size="32" value="<?php echo $this->entry->gbname; ?>" aria-required="true"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbmail">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_EMAIL'); ?>
                                    <?php if (Helper::getParams('requireMail', true)) : ?>
                                        <span class="small">*</span>
                                    <?php endif; ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area <?php echo(Helper::getParams('requireMail', true) ? 'required' : ''); ?>" type="text" name="gbmail" id="gbmail" size="32" value="<?php echo $this->entry->gbmail; ?>" <?php echo(Helper::getParams('requireMail', true) ? 'aria-required="true"' : ''); ?>/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbmailshow">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_SHOW_EMAIL'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <fieldset id="gbmailshow" class="radio btn-group">
                                    <input type="radio" name="gbmailshow" id="gbmailshow_yes" value="1" <?php echo($this->entry->gbmailshow ? "checked='checked'" : ''); ?>/>
                                    <label class="btn" for="gbmailshow_yes">
                                        <?php echo Text::_('JYES'); ?>
                                    </label>
                                    <input type="radio" name="gbmailshow" id="gbmailshow_no" value="0" <?php echo(!$this->entry->gbmailshow ? "checked='checked'" : ''); ?>/>
                                    <label class="btn" for="gbmailshow_no">
                                        <?php echo Text::_('JNO'); ?>
                                    </label>
                                </fieldset>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbdate">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_DATE'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <?php echo HTMLHelper::_('calendar', $this->entry->gbdate, 'gbdate', 'gbdate', '%Y-%m-%d %H:%M:%S', ['class' => 'text_area', 'size' => '32', 'maxlength' => '19']); ?>
                            </div>
                        </div>
                        <?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 for ($i = 1; $i <= Helper::getParams('ratingMax', 5); $i++) : ?>
                                        <?php if ((isset($this->entry->gbvote)) && ($i === (int)$this->entry->gbvote)) : ?>
                                            <input type="radio" name="gbvote" value="<?php echo $i; ?>" checked="checked">
                                        <?php else : ?>
                                            <?php if (empty($this->entry->gbvote) && $i === (int)Helper::getParams('ratingMax')) : ?>
                                                <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; ?>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbtitle">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_TITLE'); ?>
                                    <?php if (Helper::getParams('requireTitle', true)) : ?>
                                        <span class="small">*</span>
                                    <?php endif; ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area <?php echo(Helper::getParams('requireTitle', true) ? 'required' : ''); ?>" type="text" name="gbtitle" id="gbtitle" size="32" value="<?php echo $this->entry->gbtitle; ?>" <?php echo(Helper::getParams('requireTitle', true) ? 'aria-required="true"' : ''); ?>/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbtext" class="required">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_ENTRY'); ?>
                                    <span class="star">*</span>
                                </label>
                            </div>
                            <div class="controls">
                                <textarea class="text_area required" rows="10" cols="60" id="gbtext" name="gbtext" aria-required="true"><?php echo $this->entry->gbtext; ?></textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                <?php echo Text::_('COM_EASYBOOKRELOADED_IMAGE_UPLOAD_ADD'); ?>
                            </label>
                            <div class="controls">
                                <?php echo Helper::isProFeature(); ?>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbcomment">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_COMMENT'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <textarea class="text_area" rows="6" cols="60" id="gbcomment" name="gbcomment"><?php echo $this->entry->gbcomment; ?></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="details">
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbpage">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_HOMEPAGE'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area" type="text" name="gbpage" id="gbpage" size="32" value="<?php echo $this->entry->gbpage; ?>"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbloca">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_LOCATION'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area" type="text" name="gbloca" id="gbloca" size="32" value="<?php echo $this->entry->gbloca; ?>"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbicq">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_ICQ'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area" type="text" name="gbicq" id="gbicq" size="32" value="<?php echo $this->entry->gbicq; ?>"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbskype">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_SKYPE'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area" type="text" name="gbskype" id="gbskype" size="32" value="<?php echo $this->entry->gbskype; ?>"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="control-label">
                                <label for="gbip">
                                    <?php echo Text::_('COM_EASYBOOKRELOADED_VISITOR_IP'); ?>
                                </label>
                            </div>
                            <div class="controls">
                                <input class="text_area" type="text" name="gbip" id="gbip" size="32" value="<?php echo $this->entry->gbip; ?>"/>
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
    <input type="hidden" name="option" value="com_easybookreloaded"/>
    <input type="hidden" name="id" value="<?php echo $this->entry->id; ?>"/>
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="controller" value="entry"/>
    <input type="hidden" name="url_current" value="<?php echo Uri::getInstance()->getQuery(); ?>"/>
    <?php echo HTMLHelper::_('form.token'); ?>
</form>
<div class="clr"></div>
<?php echo Helper::getFooter(); ?>
<?php echo Helper::getDonationCodeMessage(); ?>