PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/administrator/components/com_easysocial/themes/default/events/form.php

https://gitlab.com/vnsoftdev/swc
PHP | 62 lines | 47 code | 5 blank | 10 comment | 12 complexity | 6dd4e9833f85b13ddc5723cb41a696e5 MD5 | raw file
 1<?php
 2/**
 3* @package      EasySocial
 4* @copyright    Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
 5* @license      GNU/GPL, see LICENSE.php
 6* EasySocial is free software. This version may have been modified pursuant
 7* to the GNU General Public License, and as distributed it includes or
 8* is derivative of works licensed under the GNU General Public License or
 9* other free or open source software licenses.
10* See COPYRIGHT.php for copyright notices and details.
11*/
12defined('_JEXEC') or die('Unauthorized Access');
13?>
14<form name="adminForm" id="adminForm" class="eventsForm" method="post" enctype="multipart/form-data" data-events-form data-table-grid>
15    <div class="es-user-form">
16        <div class="wrapper accordion">
17        <?php if (!$isNew) { ?>
18
19            <div class="tab-box tab-box-alt tab-box-sidenav">
20                <div class="tabbable">
21                    <ul id="userForm" class="nav nav-tabs nav-tabs-icons nav-tabs-side">
22                        <li class="tabItem <?php if(empty($activeTab) || $activeTab == 'event') { ?>active<?php } ?>" data-tabnav data-for="event">
23                            <a href="#event" data-bs-toggle="tab">
24                                <i class="ies-vcard ies-small mr-5"></i> <?php echo JText::_('COM_EASYSOCIAL_EVENTS_FORM_EVENT_DETAILS');?>
25                            </a>
26                        </li>
27                        <li class="tabItem <?php if($activeTab == 'guests') { ?>active<?php } ?>" data-tabnav data-for="guests">
28                            <a href="#guests" data-bs-toggle="tab">
29                                <i class="ies-users ies-small mr-5"></i> <?php echo JText::_('COM_EASYSOCIAL_EVENTS_FORM_EVENT_GUESTS');?>
30                            </a>
31                        </li>
32                    </ul>
33
34                    <div class="tab-content tab-content-side">
35                        <div id="event" class="tab-pane <?php if(empty($activeTab) || $activeTab == 'event') { ?>active<?php } ?>" data-tabcontent data-for="event">
36                            <?php echo $this->includeTemplate('admin/events/form.fields'); ?>
37                        </div>
38
39                        <div id="guests" class="tab-pane <?php if($activeTab == 'guests') { ?>active<?php } ?> inactive" data-tabcontent data-for="guests">
40                            <?php echo $this->includeTemplate('admin/events/form.users'); ?>
41                        </div>
42                    </div>
43                </div>
44            </div>
45
46        <?php } else { ?>
47            <?php echo $this->includeTemplate('admin/events/form.fields'); ?>
48        <?php } ?>
49        </div>
50    </div>
51
52    <input type="hidden" name="option" value="com_easysocial" />
53    <input type="hidden" name="controller" value="events" />
54    <input type="hidden" name="task" value="" data-table-grid-task />
55    <input type="hidden" name="ordering" value="<?php echo $ordering;?>" data-table-grid-ordering />
56    <input type="hidden" name="direction" value="<?php echo $direction;?>" data-table-grid-direction />
57    <input type="hidden" name="id" value="<?php echo $event->id ? $event->id : ''; ?>" />
58    <input type="hidden" name="boxchecked" value="0" data-table-grid-box-checked />
59    <input type="hidden" name="activeTab" data-active-tab value="<?php echo $activeTab; ?>" />
60    <input type="hidden" name="applyRecurring" value="0" />
61    <?php echo JHTML::_('form.token');?>
62</form>