/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. */
  12. defined('_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. <div class="tab-box tab-box-alt tab-box-sidenav">
  19. <div class="tabbable">
  20. <ul id="userForm" class="nav nav-tabs nav-tabs-icons nav-tabs-side">
  21. <li class="tabItem <?php if(empty($activeTab) || $activeTab == 'event') { ?>active<?php } ?>" data-tabnav data-for="event">
  22. <a href="#event" data-bs-toggle="tab">
  23. <i class="ies-vcard ies-small mr-5"></i> <?php echo JText::_('COM_EASYSOCIAL_EVENTS_FORM_EVENT_DETAILS');?>
  24. </a>
  25. </li>
  26. <li class="tabItem <?php if($activeTab == 'guests') { ?>active<?php } ?>" data-tabnav data-for="guests">
  27. <a href="#guests" data-bs-toggle="tab">
  28. <i class="ies-users ies-small mr-5"></i> <?php echo JText::_('COM_EASYSOCIAL_EVENTS_FORM_EVENT_GUESTS');?>
  29. </a>
  30. </li>
  31. </ul>
  32. <div class="tab-content tab-content-side">
  33. <div id="event" class="tab-pane <?php if(empty($activeTab) || $activeTab == 'event') { ?>active<?php } ?>" data-tabcontent data-for="event">
  34. <?php echo $this->includeTemplate('admin/events/form.fields'); ?>
  35. </div>
  36. <div id="guests" class="tab-pane <?php if($activeTab == 'guests') { ?>active<?php } ?> inactive" data-tabcontent data-for="guests">
  37. <?php echo $this->includeTemplate('admin/events/form.users'); ?>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <?php } else { ?>
  43. <?php echo $this->includeTemplate('admin/events/form.fields'); ?>
  44. <?php } ?>
  45. </div>
  46. </div>
  47. <input type="hidden" name="option" value="com_easysocial" />
  48. <input type="hidden" name="controller" value="events" />
  49. <input type="hidden" name="task" value="" data-table-grid-task />
  50. <input type="hidden" name="ordering" value="<?php echo $ordering;?>" data-table-grid-ordering />
  51. <input type="hidden" name="direction" value="<?php echo $direction;?>" data-table-grid-direction />
  52. <input type="hidden" name="id" value="<?php echo $event->id ? $event->id : ''; ?>" />
  53. <input type="hidden" name="boxchecked" value="0" data-table-grid-box-checked />
  54. <input type="hidden" name="activeTab" data-active-tab value="<?php echo $activeTab; ?>" />
  55. <input type="hidden" name="applyRecurring" value="0" />
  56. <?php echo JHTML::_('form.token');?>
  57. </form>