primo commit
This commit is contained in:
186
components/com_jem/views/attendees/tmpl/responsive/addusers.php
Normal file
186
components/com_jem/views/attendees/tmpl/responsive/addusers.php
Normal file
@ -0,0 +1,186 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JEM
|
||||
* @copyright (C) 2013-2024 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$function = Factory::getApplication()->input->getCmd('function', 'jSelectUsers');
|
||||
$checked = 0;
|
||||
|
||||
HTMLHelper::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html');
|
||||
|
||||
// Get the form.
|
||||
Form::addFormPath(JPATH_COMPONENT . '/models/forms');
|
||||
$form = Form::getInstance('com_jem.addusers', 'addusers');
|
||||
|
||||
if (empty($form)) {
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
function tableOrdering( order, dir, view )
|
||||
{
|
||||
var form = document.getElementById("adminForm");
|
||||
|
||||
form.filter_order.value = order;
|
||||
form.filter_order_Dir.value = dir;
|
||||
form.submit( view );
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function checkList(form)
|
||||
{
|
||||
var r='', i, n, e;
|
||||
for (i=0, n=form.elements.length; i<n; i++)
|
||||
{
|
||||
e = form.elements[i];
|
||||
if (e.type == 'checkbox' && e.id.indexOf('cb') === 0 && e.checked)
|
||||
{
|
||||
if (r) { r += ','; }
|
||||
r += e.value;
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="jem" class="jem_select_users">
|
||||
<h1 class='componentheading'>
|
||||
<?php echo Text::_('COM_JEM_SELECT_USERS_AND_STATUS'); ?>
|
||||
</h1>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<form action="<?php echo Route::_('index.php?option=com_jem&view=attendees&layout=addusers&tmpl=component&function='.$this->escape($function).'&id='.$this->event->id.'&'.Session::getFormToken().'=1'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
|
||||
<?php if(1) : ?>
|
||||
<div class="jem-row valign-baseline">
|
||||
<div id="jem_filter" class="jem-form jem-row jem-justify-start">
|
||||
<div>
|
||||
<?php
|
||||
echo '<label for="filter_type">'.Text::_('COM_JEM_FILTER').'</label>';
|
||||
?>
|
||||
</div>
|
||||
<div class="jem-row jem-justify-start jem-nowrap">
|
||||
<?php echo $this->searchfilter; ?>
|
||||
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search']; ?>" class="inputbox" onChange="document.adminForm.submit();" />
|
||||
</div>
|
||||
<div class="jem-row jem-justify-start jem-nowrap">
|
||||
<button type="submit" class="pointer btn btn-primary"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button>
|
||||
<button type="button" class="pointer btn btn-secondary" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
||||
</div>
|
||||
<div class="jem-row jem-justify-start jem-nowrap">
|
||||
<div>
|
||||
<?php echo '<label for="limit">'.Text::_('COM_JEM_DISPLAY_NUM').'</label> '; ?>
|
||||
</div>
|
||||
<div> </div>
|
||||
<div>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<hr class="jem-hr"/>
|
||||
|
||||
<div class="jem-sort jem-sort-small">
|
||||
<div class="jem-list-row jem-small-list">
|
||||
<div class="sectiontableheader jem-users-number"><?php echo Text::_('COM_JEM_NUM'); ?></div>
|
||||
<div class="sectiontableheader jem-users-checkall"><input type="checkbox" name="checkall-toggle" value="" title="<?php echo Text::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /></div>
|
||||
<div class="sectiontableheader jem-users-name"><?php echo Text::_('COM_JEM_NAME'); ?></div>
|
||||
<div class="sectiontableheader jem-users-state"><?php echo Text::_('COM_JEM_STATUS'); ?></div>
|
||||
<div class="sectiontableheader jem-users-state"><?php echo Text::_('COM_JEM_PLACES'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="eventlist eventtable">
|
||||
<?php if (empty($this->rows)) : ?>
|
||||
<li class="jem-event jem-list-row jem-small-list"><?php echo Text::_('COM_JEM_NOUSERS'); ?></li>
|
||||
<?php else :?>
|
||||
<?php foreach ($this->rows as $i => $row) : ?>
|
||||
<li class="jem-event jem-list-row jem-small-list row<?php echo $i % 2; ?>">
|
||||
<div class="jem-event-info-small jem-users-number">
|
||||
<?php echo $this->pagination->getRowOffset( $i ); ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-event-info-small jem-users-checkall">
|
||||
<?php echo HTMLHelper::_('grid.id', $i, $row->id); ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-event-info-small jem-users-name">
|
||||
<?php echo $this->escape($row->name); ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-event-info-small jem-users-state">
|
||||
<?php echo jemhtml::toggleAttendanceStatus( 0, $row->status, false); ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-event-info-small jem-users-places">
|
||||
<?php echo $this->escape($row->places); ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<hr class="jem-hr"/>
|
||||
|
||||
<?php
|
||||
if($this->event->maxbookeduser!=0)
|
||||
{
|
||||
$placesavailableuser = $this->event->maxbookeduser;
|
||||
}else{
|
||||
$placesavailableuser= null;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="jem-row jem-justify-start valign-baseline">
|
||||
<div class="choose-status">
|
||||
<?php echo Text::_('COM_JEM_SELECT');?> <?php echo $form->getLabel('status'); ?> <?php echo $form->getInput('status'); ?>
|
||||
</div>
|
||||
<div class="choose-places">
|
||||
<?php echo Text::_('COM_JEM_SELECT');?> <?php echo Text::_('COM_JEM_PLACES'); ?> <input id="places" name="places" type="number" style="text-align: center; width:auto;" value="<?php echo $this->event->minbookeduser; ?>" max="<?php echo ($placesavailableuser > 0 ? $placesavailableuser : ($placesavailableuser ?? '')); ?>" min="<?php echo $this->event->minbookeduser; ?>">
|
||||
</div>
|
||||
<?php if ($this->event->recurrence_type && $this->event->seriesbooking): ?>
|
||||
<div class="choose-places">
|
||||
<?php echo Text::_('COM_JEM_SERIES_BOOKED').':'; ?>
|
||||
<input type="checkbox" id="seriesbooking" name="seriesbooking" />
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<input type="hidden" name="seriesbooking" value=-1 />
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="task" value="selectusers" />
|
||||
<input type="hidden" name="option" value="com_jem" />
|
||||
<input type="hidden" name="tmpl" value="component" />
|
||||
<input type="hidden" name="function" value="<?php echo $this->escape($function); ?>" />
|
||||
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
|
||||
<input type="hidden" name="boxchecked" value="<?php echo $checked; ?>" />
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-row jem-justify-end">
|
||||
<button type="button" class="pointer btn btn-primary" onclick="if (window.parent) window.parent.<?php echo $this->escape($function);?>_newusers(checkList(document.adminForm),document.adminForm.boxchecked.value,document.adminForm.status.value, document.adminForm.places.value, <?php echo $this->event->id; ?>, document.adminForm.seriesbooking.value, '<?php echo Session::getFormToken(); ?>');">
|
||||
<?php echo Text::_('COM_JEM_SAVE'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
216
components/com_jem/views/attendees/tmpl/responsive/default.php
Normal file
216
components/com_jem/views/attendees/tmpl/responsive/default.php
Normal file
@ -0,0 +1,216 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JEM
|
||||
* @copyright (C) 2013-2024 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Session\Session;
|
||||
|
||||
HTMLHelper::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html');
|
||||
|
||||
$colspan = ($this->event->waitinglist ? 10 : 9);
|
||||
|
||||
$detaillink = Route::_(JemHelperRoute::getEventRoute($this->event->id.':'.$this->event->alias));
|
||||
|
||||
$namefield = $this->settings->get('global_regname', '1') ? 'name' : 'username';
|
||||
$namelabel = $this->settings->get('global_regname', '1') ? 'COM_JEM_NAME' : 'COM_JEM_USERNAME';
|
||||
|
||||
?>
|
||||
<script>
|
||||
function tableOrdering(order, dir, view)
|
||||
{
|
||||
var form = document.getElementById("adminForm");
|
||||
|
||||
form.filter_order.value = order;
|
||||
form.filter_order_Dir.value = dir;
|
||||
form.submit(view);
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function jSelectUsers_newusers(ids, count, status, places, eventid, seriesbooking, token) {
|
||||
document.location.href = 'index.php?option=com_jem&task=attendees.attendeeadd&id='+eventid+'&status='+status+'&places='+places+'&uids='+ids+'&series='+seriesbooking+'&'+token+'=1';
|
||||
SqueezeBox.close();
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="jem" class="jem_attendees <?php echo $this->pageclass_sfx;?>">
|
||||
<div class="buttons">
|
||||
<?php
|
||||
$permissions = new stdClass();
|
||||
$permissions->canAddUsers = true;
|
||||
$btn_params = array('print_link' => $this->print_link, 'id' => $this->event->id);
|
||||
echo JemOutput::createButtonBar($this->getName(), $permissions, $btn_params);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<h1 class="componentheading">
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if ($this->params->get('showintrotext')) : ?>
|
||||
<div class="description no_space floattext">
|
||||
<?php echo $this->params->get('introtext'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h2><?php echo $this->escape($this->event->title); ?></h2>
|
||||
|
||||
<form action="<?php echo htmlspecialchars($this->action); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<dl class="jem-dl">
|
||||
<dt class="jem-title"><?php echo Text::_('COM_JEM_TITLE').':'; ?></dt>
|
||||
<a href="<?php echo $detaillink ; ?>"><?php echo $this->escape($this->event->title); ?></a> <?php echo $this->event->recurrence_type? '<i class="fa fa-fw fa-refresh jem-recurrenceicon"></i>':'' ?>
|
||||
<dt class="jem-date"><?php echo Text::_('COM_JEM_DATE').':'; ?></dt>
|
||||
<dd class="jem-date">
|
||||
<?php echo JemOutput::formatLongDateTime($this->event->dates, $this->event->times, $this->event->enddates, $this->event->endtimes, $this->settings->get('global_show_timedetails', 1)); ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<div id="jem_filter" class="jem-dl">
|
||||
<div class="row jem-row">
|
||||
<div class="col-md-2">
|
||||
<div class="row">
|
||||
<div class="wauto-minwmax">
|
||||
<div class="input-group">
|
||||
<?php echo '<label for="filter_search">'.Text::_('COM_JEM_SEARCH').'</label>'; ?>
|
||||
<?php echo $this->lists['filter']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="row mb-12">
|
||||
<div class="col-md-8">
|
||||
<div class="input-group">
|
||||
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search']; ?>" class="inputbox" onChange="document.adminForm.submit();" />
|
||||
<button class="btn btn-primary" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button>
|
||||
<button class="btn btn-secondary" type="button" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="input-group" style="margin-top:6px;">
|
||||
<?php echo '<label for="filter_status">'.Text::_('COM_JEM_STATUS').'</label>'; ?>
|
||||
<?php echo $this->lists['status']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<div class="row ">
|
||||
<div class="wauto-minwmax">
|
||||
<div class=" float-end">
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (empty($this->rows)) : ?>
|
||||
<div style="padding-bottom: 8px;">
|
||||
<strong><i><?php echo Text::_('COM_JEM_ATTENDEES_EMPTY_YET'); ?></i></strong>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
<div class="jem-sort jem-sort-small" id="articleList">
|
||||
<div class="jem-list-row jem-small-list">
|
||||
<div class="sectiontableheader jem-attendee-number"><?php echo Text::_('COM_JEM_NUM'); ?></div>
|
||||
<div class="sectiontableheader jem-attendee-name"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_USERNAME', 'u.'.$namefield, $this->lists['order_Dir'], $this->lists['order'] ); ?></div>
|
||||
<?php if ($this->enableemailaddress == 1) :?>
|
||||
<div class="sectiontableheader jem-attendee-email"><?php echo Text::_('COM_JEM_EMAIL'); ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="sectiontableheader jem-attendee-regdate"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_REGDATE', 'r.uregdate', $this->lists['order_Dir'], $this->lists['order'] ); ?></div>
|
||||
<div class="sectiontableheader jem-attendee-status"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_STATUS', 'r.status', $this->lists['order_Dir'], $this->lists['order'] ); ?></div>
|
||||
<div class="sectiontableheader jem-attendee-places"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_PLACES', 'r.places', $this->lists['order_Dir'], $this->lists['order'] ); ?></div>
|
||||
<?php if (!empty($this->jemsettings->regallowcomments)) : ?>
|
||||
<div class="sectiontableheader jem-attendee-comment"><?php echo Text::_('COM_JEM_COMMENT'); ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="sectiontableheader jem-attendee-remove"><?php echo Text::_('COM_JEM_REMOVE_USER'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="eventlist eventtable">
|
||||
<?php $del_link = 'index.php?option=com_jem&view=attendees&task=attendees.attendeeremove&id='.$this->event->id.(!empty($this->item->id)?'&Itemid='.$this->item->id:'').'&'.Session::getFormToken().'=1';
|
||||
?>
|
||||
<?php foreach ($this->rows as $i => $row) : ?>
|
||||
<li class="jem-event jem-list-row jem-small-list row<?php echo $i % 2; ?>">
|
||||
<div class="jem-event-info-small jem-attendee-number">
|
||||
<?php echo $this->pagination->getRowOffset($i); ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-event-info-small jem-attendee-name">
|
||||
<?php echo $row->$namefield; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($this->enableemailaddress == 1) :?>
|
||||
<div class="jem-event-info-small jem-attendee-email">
|
||||
<a href="mailto:<?php echo $row->email; ?>"><?php echo $row->email; ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="jem-event-info-small jem-attendee-regdate">
|
||||
<?php if (!empty($row->uregdate)) { echo HTMLHelper::_('date', $row->uregdate, Text::_('DATE_FORMAT_LC5')); } ?>
|
||||
</div>
|
||||
|
||||
<div class="jem-event-info-small jem-attendee-status">
|
||||
<?php
|
||||
$status = (int)$row->status;
|
||||
if($this->event->waitinglist) {
|
||||
if ($status === 1 && $row->waiting == 1) { $status = 2; }
|
||||
echo jemhtml::toggleAttendanceStatus($row->id, $status, true);
|
||||
}else{
|
||||
echo jemhtml::toggleAttendanceStatus($row->id, $status, false);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="jem-event-info-small jem-attendee-places">
|
||||
<?php echo $row->places; ?>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($this->jemsettings->regallowcomments)) : ?>
|
||||
<?php $cmnt = (\Joomla\String\StringHelper::strlen($row->comment) > 16) ? (\Joomla\String\StringHelper::substr($row->comment, 0, 14).'…') : $row->comment; ?>
|
||||
<div class="jem-event-info-small jem-attendee-comment">
|
||||
<?php if (!empty($cmnt)) { echo HTMLHelper::_('tooltip', $row->comment, null, null, $cmnt, null, null); } ?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
<div class="jem-event-info-small jem-attendee-remove">
|
||||
<div class="center">
|
||||
<a href="<?php echo Route::_($del_link.'&cid[]='.$row->id); ?>">
|
||||
<?php echo JemOutput::removebutton(Text::_('COM_JEM_ATTENDEES_DELETE'), array('title' => Text::_('COM_JEM_ATTENDEES_DELETE'), 'class' => 'hasTooltip')); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
<input type="hidden" name="option" value="com_jem" />
|
||||
<input type="hidden" name="boxchecked" value="0" />
|
||||
<input type="hidden" name="task" value="" />
|
||||
<input type="hidden" name="view" value="attendees" />
|
||||
<input type="hidden" name="id" value="<?php echo $this->event->id; ?>" />
|
||||
<input type="hidden" name="Itemid" value="<?php echo $this->item->id;?>" />
|
||||
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
|
||||
<input type="hidden" name="enableemailaddress" value="<?php echo $this->enableemailaddress; ?>" />
|
||||
</form>
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
|
||||
<div class="copyright">
|
||||
<?php echo JemOutput::footer(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
98
components/com_jem/views/attendees/tmpl/responsive/print.php
Normal file
98
components/com_jem/views/attendees/tmpl/responsive/print.php
Normal file
@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JEM
|
||||
* @copyright (C) 2013-2024 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
?>
|
||||
|
||||
<table class="table" style="width: 100%">
|
||||
<tr>
|
||||
<td class="sectionname" width="100%"><span
|
||||
style="color: #C24733; font-size: 18px; font-weight: bold;"><?php echo Text::_( 'COM_JEM_REGISTERED_USER' ); ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><div class="button2-left">
|
||||
<div class="blank">
|
||||
<a href="#" onclick="window.print();return false;"><span class="icon icon-print"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="adminlist">
|
||||
<tr>
|
||||
<td align="left"><b><?php echo Text::_( 'COM_JEM_TITLE' ).':'; ?> </b> <?php echo $this->escape($this->event->title); ?><br />
|
||||
<b><?php echo Text::_( 'COM_JEM_DATE' ).':'; ?> </b> <?php echo JEMOutput::formatLongDateTime($this->event->dates, $this->event->times,
|
||||
$this->event->enddates, $this->event->endtimes, $this->settings->get('global_show_timedetails', 1)); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<?php $regname = $this->settings->get('global_regname', '1'); ?>
|
||||
<table class="table table-striped" id="articleList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="title"><?php echo Text::_( 'COM_JEM_NUM' ); ?></th>
|
||||
<th class="title"><?php echo Text::_( $regname ? 'COM_JEM_NAME' : 'COM_JEM_USERNAME' ); ?></th>
|
||||
<?php if ($this->enableemailaddress == 1) : ?>
|
||||
<th class="title"><?php echo Text::_( 'COM_JEM_EMAIL' ); ?></th>
|
||||
<?php endif; ?>
|
||||
<th class="title"><?php echo Text::_( 'COM_JEM_REGDATE' ); ?></th>
|
||||
<th class="title"><?php echo Text::_('COM_JEM_STATUS' ); ?></th>
|
||||
<th class="title"><?php echo Text::_('COM_JEM_PLACES' ); ?></th>
|
||||
<?php if (!empty($this->jemsettings->regallowcomments)) : ?>
|
||||
<th class="title"><?php echo Text::_('COM_JEM_COMMENT'); ?></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
$regname = $this->settings->get('global_regname', '1');
|
||||
$k = 0;
|
||||
$i = 0;
|
||||
foreach ($this->rows as $row) :
|
||||
?>
|
||||
<tr class="<?php echo "row$k"; ?>">
|
||||
<td><?php echo ++$i; ?></td>
|
||||
<td><?php echo $regname ? $row->name : $row->username; ?></td>
|
||||
<?php if ($this->enableemailaddress == 1) : ?>
|
||||
<td><?php echo $row->email; ?></td>
|
||||
<?php endif; ?>
|
||||
<td><?php if (!empty($row->uregdate)) { echo HTMLHelper::_('date', $row->uregdate, Text::_('DATE_FORMAT_LC5')); } ?></td>
|
||||
<?php
|
||||
switch ($row->status) :
|
||||
case -1: // explicitely unregistered
|
||||
$text = 'COM_JEM_ATTENDEES_NOT_ATTENDING';
|
||||
break;
|
||||
case 0: // invited, not answered yet
|
||||
$text = 'COM_JEM_ATTENDEES_INVITED';
|
||||
break;
|
||||
case 1: // registered
|
||||
$text = $row->waiting ? 'COM_JEM_ATTENDEES_ON_WAITINGLIST' : 'COM_JEM_ATTENDEES_ATTENDING';
|
||||
break;
|
||||
default: // oops...
|
||||
$text = 'COM_JEM_ATTENDEES_STATUS_UNKNOWN';
|
||||
break;
|
||||
endswitch; ?>
|
||||
<td><?php echo Text::_($text); ?></td>
|
||||
<td><?php echo $row->places; ?></td>
|
||||
<?php if (!empty($this->jemsettings->regallowcomments)) : ?>
|
||||
<td><?php echo (strlen($row->comment) > 256) ? (substr($row->comment, 0, 254).'…') : $row->comment; ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php $k = 1 - $k;
|
||||
endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="copyright">
|
||||
<?php echo JemOutput::footer(); ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user