primo commit
This commit is contained in:
		| @ -0,0 +1,281 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @version 2.3.6 | ||||
|  * @package JEM | ||||
|  * @copyright (C) 2013-2022 joomlaeventmanager.net | ||||
|  * @copyright (C) 2005-2009 Christoph Lukes | ||||
|  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| JHtml::_('behavior.tooltip'); | ||||
|  | ||||
| JHtml::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html'); | ||||
| ?> | ||||
|  | ||||
| <script type="text/javascript"> | ||||
| 	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 type="text/javascript"> | ||||
| 	function fullOrdering(id, view) | ||||
| 	{ | ||||
| 		var form = document.getElementById("adminForm"); | ||||
| 		var field = form.getElementById(id); | ||||
| 		var parts = field.value.split(' '); | ||||
|  | ||||
| 		if (parts.length > 1) { | ||||
| 			form.filter_order.value     = parts[0]; | ||||
| 			form.filter_order_Dir.value = parts[1]; | ||||
| 		} | ||||
| 		form.submit(view); | ||||
| 	} | ||||
| </script> | ||||
|  | ||||
| <?php | ||||
| 	$sort_by = array(); | ||||
|  | ||||
| 	$sort_by[] = JHtml::_('select.option', 'a.dates ASC', JText::_('COM_JEM_DATE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 	$sort_by[] = JHtml::_('select.option', 'a.dates DESC', JText::_('COM_JEM_DATE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
|  | ||||
| 	if ($this->jemsettings->showtitle == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'a.title ASC', JText::_('COM_JEM_TITLE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'a.title DESC', JText::_('COM_JEM_TITLE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showlocate == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.venue ASC', JText::_('COM_JEM_VENUE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.venue DESC', JText::_('COM_JEM_VENUE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showcity == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.city ASC', JText::_('COM_JEM_CITY') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.city DESC', JText::_('COM_JEM_CITY') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showstate == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.state ASC', JText::_('COM_JEM_STATE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.state DESC', JText::_('COM_JEM_STATE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showcat == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'c.catname ASC', JText::_('COM_JEM_CATEGORY') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'c.catname DESC', JText::_('COM_JEM_CATEGORY') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
|  | ||||
| 	$sort_by[] = JHtml::_('select.option', 'r.status ASC', JText::_('COM_JEM_STATUS') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 	$sort_by[] = JHtml::_('select.option', 'r.status DESC', JText::_('COM_JEM_STATUS') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
|  | ||||
| 	$this->lists['sort_by'] = JHtml::_('select.genericlist', $sort_by, 'sort_by', array('size'=>'1','class'=>'inputbox','onchange'=>'fullOrdering(\'sort_by\', \'\');'), 'value', 'text', $this->lists['order'] . ' ' . $this->lists['order_Dir']); | ||||
| ?> | ||||
|  | ||||
| <h2><?php echo JText::_('COM_JEM_REGISTERED_TO'); ?></h2> | ||||
|  | ||||
| <form action="<?php echo htmlspecialchars($this->action); ?>" method="post" id="adminForm" name="adminForm"> | ||||
|  | ||||
| 	<?php if ($this->settings->get('global_show_filter',1) || $this->settings->get('global_display',1)) : ?> | ||||
| 	<div id="jem_filter" class="floattext"> | ||||
| 		<?php if ($this->settings->get('global_show_filter',1)) : ?> | ||||
| 		<div class="jem_fleft"> | ||||
| 			<label for="filter"><?php echo JText::_('COM_JEM_FILTER'); ?></label> | ||||
| 			<?php echo $this->lists['filter'].' '; ?> | ||||
| 			<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox" onchange="document.adminForm.submit();" /> | ||||
| 			<button class="buttonfilter" type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
| 			<button class="buttonfilter" type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
| 		</div> | ||||
| 		<?php endif; ?> | ||||
|  | ||||
| 		<?php if ($this->settings->get('global_display',1)) : ?> | ||||
| 		<div class="jem_fright"> | ||||
| 		<label for="sort_by"><?php echo JText::_('COM_JEM_ORDERING'); ?></label> | ||||
| 		<?php echo $this->lists['sort_by'].' '; ?> | ||||
| 			<label for="limit"><?php echo JText::_('COM_JEM_DISPLAY_NUM'); ?></label> | ||||
| 			<?php echo $this->attending_pagination->getLimitBox(); ?> | ||||
| 		</div> | ||||
| 		<?php endif; ?> | ||||
| 	</div> | ||||
| 	<?php endif; ?> | ||||
|  | ||||
| 	<?php | ||||
| 	$hide = (array_key_exists('hide', $this->lists)) ? $this->lists['hide'] : array(); | ||||
| 	// calculate span of columns to show, summary must be 12 | ||||
| 	$default_span = array('date' => 2, 'title' => 2, 'venue' => 2, 'category' => 2, 'status' => 1, 'comment' => 2); | ||||
| 	$a_span = array('date' => $default_span['date'], 'status' => $default_span['status']); // always shown | ||||
| 	if ($this->jemsettings->showtitle == 1) { | ||||
| 		$a_span['title'] = $default_span['title']; | ||||
| 	} | ||||
| 	if (!array_key_exists('venue', $hide) && (($this->jemsettings->showlocate == 1) || ($this->jemsettings->showcity == 1) || ($this->jemsettings->showstate == 1))) { | ||||
| 		$a_span['venue'] = $default_span['venue']; | ||||
| 	} | ||||
| 	if (!array_key_exists('category', $hide) && ($this->jemsettings->showcat == 1)) { | ||||
| 		$a_span['category'] = $default_span['category']; | ||||
| 	} | ||||
| 	if (!array_key_exists('comment', $hide) && !empty($this->jemsettings->regallowcomments)) { | ||||
| 		$a_span['comment'] = $default_span['comment']; | ||||
| 	} | ||||
| 	$total = array_sum($a_span); | ||||
| 	if (!array_key_exists('title', $a_span) && !array_key_exists('venue', $a_span) && !array_key_exists('category', $a_span) && !array_key_exists('comment', $a_span)) { | ||||
| 		$a_span['date'] += 12 - $total; | ||||
| 	} else { | ||||
| 		while ($total < 12) { | ||||
| 			if (array_key_exists('title', $a_span)) { | ||||
| 				++$a_span['title']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if ($total < 12 && ($a_span['date'] <= $default_span['date'])) { | ||||
| 				++$a_span['date']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if (($total < 12) && array_key_exists('venue', $a_span)) { | ||||
| 				++$a_span['venue']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if (($total < 12) && array_key_exists('comment', $a_span)) { | ||||
| 				++$a_span['comment']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if (($total < 12) && array_key_exists('category', $a_span)) { | ||||
| 				++$a_span['category']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 		} // while | ||||
| 	} | ||||
| 	?> | ||||
|  | ||||
| 	<div class="eventtable"> | ||||
| 		<div class="row-fluid sectiontableheader"> | ||||
| 			<div class="span<?php echo $a_span['date']; ?>"><?php echo JText::_('COM_JEM_TABLE_DATE'); ?></div> | ||||
| 			<?php if (array_key_exists('title', $a_span)) : ?> | ||||
| 			<div class="span<?php echo $a_span['title']; ?>"><?php echo JText::_('COM_JEM_TABLE_TITLE'); ?></div> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if (array_key_exists('venue', $a_span)) : ?> | ||||
| 			<div class="span<?php echo $a_span['venue']; ?>"><?php echo JText::_('COM_JEM_TABLE_LOCATION'); ?></div> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if (array_key_exists('category', $a_span)) : ?> | ||||
| 			<div class="span<?php echo $a_span['category']; ?>"><?php echo JText::_('COM_JEM_TABLE_CATEGORY'); ?></div> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if (array_key_exists('status', $a_span)) : ?> | ||||
| 			<div class="span<?php echo $a_span['status']; ?>"><?php echo JText::_('COM_JEM_STATUS'); ?></div> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if (array_key_exists('comment', $a_span)) : ?> | ||||
| 			<div class="span<?php echo $a_span['comment']; ?>"><?php echo JText::_('COM_JEM_COMMENT'); ?></div> | ||||
| 			<?php endif; ?> | ||||
| 		</div> | ||||
|  | ||||
| 		<?php if (empty($this->attending)) : ?> | ||||
| 			<div class="row-fluid sectiontableentry<?php echo $this->params->get('pageclass_sfx'); ?>" > | ||||
| 				<div class="span12"> | ||||
| 					<strong><i><?php echo JText::_('COM_JEM_NO_EVENTS'); ?></i></strong> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		<?php else : ?> | ||||
| 			<?php foreach ($this->attending as $row) : ?> | ||||
| 				<?php if (!empty($row->featured)) : ?> | ||||
| 				<div class="row-fluid sectiontableentry featured featured<?php echo $row->id.$this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 				<?php else : ?> | ||||
| 				<div class="row-fluid sectiontableentry<?php echo $this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 				<?php endif; ?> | ||||
|  | ||||
| 					<div class="span<?php echo $a_span['date']; ?> date"> | ||||
| 						<?php | ||||
| 							echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
| 							echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes); | ||||
| 						?> | ||||
| 					</div> | ||||
|  | ||||
| 					<?php if (array_key_exists('title', $a_span)) : ?> | ||||
| 					<div class="span<?php echo $a_span['title']; ?>"> | ||||
| 						<?php if (($this->jemsettings->showeventimage == 1) && !empty($row->datimage)) : ?> | ||||
| 						<div class="image"> | ||||
| 							<?php echo JemOutput::flyer($row, JemImage::flyercreator($row->datimage, 'event'), 'event'); ?> | ||||
| 						</div> | ||||
| 						<?php endif; ?> | ||||
| 						<?php if ($this->jemsettings->showdetails == 1) : ?> | ||||
| 						<div class="event"> | ||||
| 							<a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url"> | ||||
| 								<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span> | ||||
| 							</a><?php echo JemOutput::publishstateicon($row); ?> | ||||
| 						</div> | ||||
| 						<?php else : ?> | ||||
| 						<div class="event" itemprop="name"> | ||||
| 							<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?> | ||||
| 						</div> | ||||
| 						<?php endif; ?> | ||||
| 					</div> | ||||
| 					<?php endif; ?> | ||||
|  | ||||
| 					<?php if (array_key_exists('venue', $a_span)) : ?> | ||||
| 					<div class="span<?php echo $a_span['venue']; ?> venue"> | ||||
| 						<?php | ||||
| 						$venue = array(); | ||||
| 						if ($this->jemsettings->showlocate == 1) { | ||||
| 							if (!empty($row->venue)) { | ||||
| 								if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) { | ||||
| 									$venue[] = "<a href='".JRoute::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; | ||||
| 								} else { | ||||
| 									$venue[] = $this->escape($row->venue); | ||||
| 								} | ||||
| 							} else { | ||||
| 								$venue[] = '-'; | ||||
| 							} | ||||
| 						} | ||||
| 						// if no city skip if also no state, else add hyphen | ||||
| 						if (($this->jemsettings->showcity == 1) && (!empty($row->city) || !empty($row->state))) { | ||||
| 							$venue[] = !empty($row->city) ? $this->escape($row->city) : '-'; | ||||
| 						} | ||||
| 						if (($this->jemsettings->showstate == 1) && !empty($row->state)) { | ||||
| 							$venue[] = $this->escape($row->state); | ||||
| 						} | ||||
| 						echo implode(', ', $venue); | ||||
| 						?> | ||||
| 					</div> | ||||
| 					<?php endif; ?> | ||||
|  | ||||
| 					<?php if (array_key_exists('category', $a_span)) : ?> | ||||
| 					<div class="span<?php echo $a_span['category']; ?> category"> | ||||
| 						<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
| 					</div> | ||||
| 					<?php endif; ?> | ||||
|  | ||||
| 					<?php if (array_key_exists('status', $a_span)) : ?> | ||||
| 					<div class="span<?php echo $a_span['status']; ?> status"> | ||||
| 						<?php | ||||
| 						$status = (int)$row->status; | ||||
| 						if ($status === 1 && $row->waiting == 1) { $status = 2; } | ||||
| 						echo JHtml::_('jemhtml.toggleAttendanceStatus', $row->id, $status, false, $this->print); | ||||
| 						?><span class="info-text"><?php | ||||
| 							echo JHtml::_('jemhtml.getAttendanceStatusText', $row->id, $status, false, true); | ||||
| 						?></span> | ||||
| 					</div> | ||||
| 					<?php endif; ?> | ||||
|  | ||||
| 					<?php if (array_key_exists('comment', $a_span)) : ?> | ||||
| 					<div class="span<?php echo $a_span['comment']; ?> comment"> | ||||
| 						<?php | ||||
| 						$len  = ($this->print) ? 256 : 16; | ||||
| 						$cmnt = (\Joomla\String\StringHelper::strlen($row->comment) > $len) ? (\Joomla\String\StringHelper::substr($row->comment, 0, $len - 2).'…') : $row->comment; | ||||
| 						if (!empty($cmnt)) : | ||||
| 							echo ($this->print) ? $cmnt : JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); | ||||
| 						endif; | ||||
| 						?> | ||||
| 					</div> | ||||
| 					<?php endif;?> | ||||
| 				</div> | ||||
| 			<?php endforeach; ?> | ||||
| 	<?php endif; /* noevents */ ?> | ||||
| 	</div> | ||||
|  | ||||
| 	<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="0" /> | ||||
| 	<input type="hidden" name="task" value="<?php echo $this->task; ?>" /> | ||||
| 	<input type="hidden" name="option" value="com_jem" /> | ||||
| </form> | ||||
|  | ||||
| <div class="pagination"> | ||||
| 	<?php echo $this->attending_pagination->getPagesLinks(); ?> | ||||
| </div> | ||||
							
								
								
									
										45
									
								
								components/com_jem/views/myattendances/tmpl/default.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								components/com_jem/views/myattendances/tmpl/default.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,45 @@ | ||||
| <?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\Uri\Uri; | ||||
| ?> | ||||
|  | ||||
| <div id="jem" class="jem_myattendances<?php echo $this->pageclass_sfx;?>"> | ||||
|     <?php if ($this->needLoginFirst) { | ||||
|         $uri = Uri::getInstance(); | ||||
|         $returnUrl = $uri->toString(); | ||||
|         $urlLogin = 'index.php?option=com_users&view=login&return=' . base64_encode($returnUrl); ?> | ||||
|         <button class="btn btn-warning" onclick="location.href='<?php echo $uri->root() . $urlLogin; ?>'" | ||||
|                 type="button"><?php echo Text::_('COM_JEM_LOGIN_TO_ACCESS'); ?></button> | ||||
|  | ||||
|     <?php } else { ?> | ||||
|         <div class="buttons"> | ||||
|             <?php | ||||
|             $btn_params = array('task' => $this->task, 'print_link' => $this->print_link, 'archive_link' => $this->archive_link); | ||||
|             echo JemOutput::createButtonBar($this->getName(), $this->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; ?> | ||||
|  | ||||
|         <!--table--> | ||||
|         <?php echo $this->loadTemplate('attendances');?> | ||||
|  | ||||
|         <!--footer--> | ||||
|         <div class="copyright"> | ||||
|             <?php echo JemOutput::footer( ); ?> | ||||
|         </div> | ||||
|     <?php } ?> | ||||
| </div> | ||||
							
								
								
									
										28
									
								
								components/com_jem/views/myattendances/tmpl/default.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								components/com_jem/views/myattendances/tmpl/default.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,28 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <metadata> | ||||
| 	<layout title="COM_JEM_MYATTENDANCES_VIEW_DEFAULT_TITLE"> | ||||
| 		<message> | ||||
| 			<![CDATA[COM_JEM_MYATTENDANCES_VIEW_DEFAULT_DESC]]> | ||||
| 		</message> | ||||
| 	</layout> | ||||
|  | ||||
| 	<fields name="params"> | ||||
| 		<fieldset name="basic"> | ||||
| 			<field name="filtermyregs" type="radio" | ||||
| 				default="1" | ||||
| 				label="COM_JEM_FILTER_MYREGISTRATIONS" | ||||
| 				description="COM_JEM_FILTER_MYREGISTRATIONS_DESC" | ||||
| 				class="btn-group btn-group-yesno" | ||||
| 			> | ||||
| 				<option value="1">JYES</option> | ||||
| 				<option value="0">JNO</option> | ||||
| 			</field> | ||||
| 			<field name="myregspast" type="text" | ||||
| 				size="4" | ||||
| 				default="1" | ||||
| 				label="COM_JEM_MYREGSPAST" | ||||
| 				description="COM_JEM_MYREGSPAST_DESC" | ||||
| 			/> | ||||
| 		</fieldset> | ||||
| 	</fields> | ||||
| </metadata> | ||||
| @ -0,0 +1,207 @@ | ||||
| <?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; | ||||
|  | ||||
| HTMLHelper::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html'); | ||||
| ?> | ||||
|  | ||||
| <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> | ||||
|  | ||||
| <h2><?php echo Text::_('COM_JEM_REGISTERED_TO'); ?></h2> | ||||
|  | ||||
| <form action="<?php echo htmlspecialchars($this->action); ?>" method="post" id="adminForm" name="adminForm"> | ||||
|  | ||||
| 	<?php if ($this->settings->get('global_show_filter',1) || $this->settings->get('global_display',1)) : ?> | ||||
| 	<div id="jem_filter" class="floattext"> | ||||
| 		<?php if ($this->settings->get('global_show_filter',1)) : ?> | ||||
| 		<div class="jem_fleft"> | ||||
| 			<label for="filter"><?php echo Text::_('COM_JEM_FILTER'); ?></label> | ||||
| 			<?php echo $this->lists['filter'].' '; ?> | ||||
| 			<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox form-control" 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> | ||||
| 		<?php endif; ?> | ||||
|  | ||||
| 		<?php if ($this->settings->get('global_display',1)) : ?> | ||||
| 		<div class="jem_fright"> | ||||
| 			<label for="limit"><?php echo Text::_('COM_JEM_DISPLAY_NUM'); ?></label> | ||||
| 			<?php echo $this->attending_pagination->getLimitBox(); ?> | ||||
| 		</div> | ||||
| 		<?php endif; ?> | ||||
| 	</div> | ||||
| 	<?php endif; ?> | ||||
|  | ||||
| 	<div class="table-responsive"> | ||||
| 		<table class="eventtable table jem-myattendees table-striped" style="width:<?php echo $this->jemsettings->tablewidth; ?>;" summary="Attending"> | ||||
| 			<colgroup> | ||||
| 				<col width="<?php echo $this->jemsettings->datewidth; ?>" class="jem_col_date" /> | ||||
| 				<?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
| 				<col width="<?php echo $this->jemsettings->titlewidth; ?>" class="jem_col_title" /> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
| 				<col width="<?php echo $this->jemsettings->locationwidth; ?>" class="jem_col_venue" /> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
| 				<col width="<?php echo $this->jemsettings->citywidth; ?>" class="jem_col_city" /> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
| 				<col width="<?php echo $this->jemsettings->statewidth; ?>" class="jem_col_state" /> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
| 				<col width="<?php echo $this->jemsettings->catfrowidth; ?>" class="jem_col_category" /> | ||||
| 				<?php endif; ?> | ||||
| 			</colgroup> | ||||
|  | ||||
| 			<thead> | ||||
| 				<tr> | ||||
| 					<th id="jem_date" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_DATE', 'a.dates', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
| 					<th id="jem_title" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_TITLE', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php endif; ?> | ||||
| 					<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
| 					<th id="jem_location" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_LOCATION', 'l.venue', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php endif; ?> | ||||
| 					<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
| 					<th id="jem_city" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CITY', 'l.city', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php endif; ?> | ||||
| 					<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
| 					<th id="jem_state" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_STATE', 'l.state', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php endif; ?> | ||||
| 					<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
| 					<th id="jem_category" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CATEGORY', 'c.catname', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php endif; ?> | ||||
|                     <th id="jem_category" class="sectiontableheader" align="left"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_PLACES', 'r.places', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
|                    	<th id="jem_status" class="sectiontableheader center" align="center"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_STATUS', 'r.status', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 					<?php if (!empty($this->jemsettings->regallowcomments)) : ?> | ||||
| 					<th id="jem_comment" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_COMMENT'); ?></th> | ||||
| 					<?php endif; ?> | ||||
| 				</tr> | ||||
| 			</thead> | ||||
|  | ||||
| 			<tbody> | ||||
| 			<?php if (empty($this->attending)) : ?> | ||||
| 				<tr class="no_events"><td colspan="20"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></td></tr> | ||||
| 			<?php else : ?> | ||||
| 				<?php $odd = 0; ?> | ||||
| 				<?php foreach ($this->attending as $row) : ?> | ||||
| 					<?php $odd = 1 - $odd; ?> | ||||
| 					<?php if (!empty($row->featured)) : ?> | ||||
| 					<tr class="featured featured<?php echo $row->id.$this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 					<?php else : ?> | ||||
| 					<tr class="sectiontableentry<?php echo ($odd + 1) . $this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 					<?php endif; ?> | ||||
|  | ||||
| 						<td headers="jem_date" align="left"> | ||||
| 							<?php | ||||
| 							echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
| 							?> | ||||
| 						</td> | ||||
|  | ||||
| 						<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?> | ||||
| 						<td headers="jem_title" align="left" valign="top"> | ||||
| 							<a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url"> | ||||
| 								<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span> | ||||
| 							</a><?php echo JemOutput::publishstateicon($row); ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : ?> | ||||
| 						<td headers="jem_title" align="left" valign="top" itemprop="name"> | ||||
| 							<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
| 						<td headers="jem_location" align="left" valign="top"> | ||||
| 							<?php | ||||
| 							if (!empty($row->venue)) : | ||||
| 								if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) : | ||||
| 									echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; | ||||
| 								else : | ||||
| 									echo $this->escape($row->venue); | ||||
| 								endif; | ||||
| 							else : | ||||
| 								echo '-'; | ||||
| 							endif; | ||||
| 							?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
| 						<td headers="jem_city" align="left" valign="top"> | ||||
| 							<?php echo !empty($row->city) ? $this->escape($row->city) : '-'; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
| 						<td headers="jem_state" align="left" valign="top"> | ||||
| 							<?php echo !empty($row->state) ? $this->escape($row->state) : '-'; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
| 						<td headers="jem_category" align="left" valign="top"> | ||||
| 							<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
|                         <td class="center" headers="jem_places" align="left" valign="top"> | ||||
|                             <?php echo !empty($row->places) ? $this->escape($row->places) : '-'; ?> | ||||
|                         </td> | ||||
|                          | ||||
| 						<td class="center"> | ||||
| 							<?php | ||||
| 							$status = (int)$row->status; | ||||
| 							if ($status === 1 && $row->waiting == 1) { $status = 2; } | ||||
| 							echo jemhtml::toggleAttendanceStatus($row->id, $status, false, $this->print); | ||||
| 							?> | ||||
| 						</td> | ||||
|  | ||||
| 						<?php if (!empty($this->jemsettings->regallowcomments)) : ?> | ||||
| 						<td> | ||||
| 							<?php | ||||
| 							$len  = ($this->print) ? 256 : 16; | ||||
| 							$cmnt = (\Joomla\String\StringHelper::strlen($row->comment) > $len) ? (\Joomla\String\StringHelper::substr($row->comment, 0, $len - 2).'…') : $row->comment; | ||||
| 							if (!empty($cmnt)) : | ||||
| 								echo ($this->print) ? $cmnt : HTMLHelper::_('tooltip', $row->comment, null, null, $cmnt, null, null); | ||||
| 							endif; | ||||
| 							?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
| 					</tr> | ||||
| 				<?php endforeach; ?> | ||||
| 			<?php endif; ?> | ||||
| 			</tbody> | ||||
| 		</table> | ||||
| 	</div> | ||||
|  | ||||
| 	<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="0" /> | ||||
| 	<input type="hidden" name="task" value="<?php echo $this->task; ?>" /> | ||||
| 	<input type="hidden" name="option" value="com_jem" /> | ||||
| </form> | ||||
|  | ||||
| <div class="pagination"> | ||||
| 	<?php echo $this->attending_pagination->getPagesLinks(); ?> | ||||
| </div> | ||||
							
								
								
									
										1
									
								
								components/com_jem/views/myattendances/tmpl/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								components/com_jem/views/myattendances/tmpl/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
| @ -0,0 +1,45 @@ | ||||
| <?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\Uri\Uri; | ||||
| ?> | ||||
| <div id="jem" class="jem_myattendances<?php echo $this->pageclass_sfx; ?>"> | ||||
|     <?php if ($this->needLoginFirst) { | ||||
|         $uri = Uri::getInstance(); | ||||
|         $returnUrl = $uri->toString(); | ||||
|         $urlLogin = 'index.php?option=com_users&view=login&return=' . base64_encode($returnUrl); ?> | ||||
|         <button class="btn btn-warning" onclick="location.href='<?php echo $uri->root() . $urlLogin; ?>'" | ||||
|                 type="button"><?php echo Text::_('COM_JEM_LOGIN_TO_ACCESS'); ?></button> | ||||
|  | ||||
|     <?php } else { ?> | ||||
|         <div class="buttons"> | ||||
|             <?php | ||||
|             $btn_params = array('task' => $this->task, 'print_link' => $this->print_link, 'archive_link' => $this->archive_link); | ||||
|             echo JemOutput::createButtonBar($this->getName(), $this->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; ?> | ||||
|  | ||||
|         <!--table--> | ||||
|         <?php echo $this->loadTemplate('attendances'); ?> | ||||
|  | ||||
|         <!--footer--> | ||||
|         <div class="copyright"> | ||||
|             <?php echo JemOutput::footer(); ?> | ||||
|         </div> | ||||
|  | ||||
|     <?php } ?> | ||||
| </div> | ||||
| @ -0,0 +1,309 @@ | ||||
| <?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; | ||||
|  | ||||
| HTMLHelper::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/html'); | ||||
| ?> | ||||
|  | ||||
| <style> | ||||
|   <?php if (!empty($this->jemsettings->tablewidth)) : ?> | ||||
|     #jem #adminForm { | ||||
|       width: <?php echo ($this->jemsettings->tablewidth); ?>; | ||||
|     } | ||||
|   <?php endif; ?> | ||||
|  | ||||
|   .jem-sort #jem_date, | ||||
|   #jem .jem-event .jem-event-date { | ||||
|     <?php if (!empty($this->jemsettings->datewidth)) : ?> | ||||
|       flex: 1 <?php echo intval(($this->jemsettings->datewidth))-5 . '%'; /*take a little off to fit comment*/?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-nodate')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_title, | ||||
|   #jem .jem-event .jem-event-title { | ||||
|     <?php if (($this->jemsettings->showtitle == 1) && (!empty($this->jemsettings->titlewidth))) : ?> | ||||
|       flex: 1 <?php echo intval(($this->jemsettings->titlewidth))-5 . '%'; /*take a little off to fit comment*/?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-notitle')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_location, | ||||
|   #jem .jem-event .jem-event-venue { | ||||
|     <?php if (($this->jemsettings->showlocate == 1) && (!empty($this->jemsettings->locationwidth))) : ?> | ||||
|       flex: 1 <?php echo intval(($this->jemsettings->locationwidth))-3 . '%'; /*take a little off to fit comment*/?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-novenue')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_city, | ||||
|   #jem .jem-event .jem-event-city { | ||||
|     <?php if (($this->jemsettings->showcity == 1) && (!empty($this->jemsettings->citywidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->citywidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-nocity')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_state, | ||||
|   #jem .jem-event .jem-event-state { | ||||
|     <?php if (($this->jemsettings->showstate == 1) && (!empty($this->jemsettings->statewidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->statewidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-nostate')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_category, | ||||
|   #jem .jem-event .jem-event-category { | ||||
|     <?php if (($this->jemsettings->showcat == 1) && (!empty($this->jemsettings->catfrowidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->catfrowidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-nocategory')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_atte, | ||||
|   #jem .jem-event .jem-event-attendees { | ||||
|     <?php if (($this->jemsettings->showatte == 1) && (!empty($this->jemsettings->attewidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->attewidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|     <?php if (JemHelper::jemStringContains($this->pageclass_sfx, 'jem-noattendees')) : ?> | ||||
|       display: none; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|     .jem-sort #jem_places, | ||||
|     #jem .jem-event .jem-myattendances-places { | ||||
|         flex: 0 5%; | ||||
| 	    text-align: center; | ||||
|     } | ||||
|  | ||||
|   .jem-sort #jem_status, | ||||
|   #jem .jem-event .jem-myattendances-status { | ||||
|         flex: 0 5%; | ||||
| 	    text-align: center; | ||||
|   } | ||||
|     .jem-sort #jem_comment, | ||||
|   #jem .jem-event .jem-myattendances-comments { | ||||
|     flex: 0 5%; | ||||
|   } | ||||
| </style> | ||||
|  | ||||
| <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> | ||||
|  | ||||
| <h2><?php echo Text::_('COM_JEM_REGISTERED_TO'); ?></h2> | ||||
|  | ||||
| <form action="<?php echo htmlspecialchars($this->action); ?>" method="post" id="adminForm" name="adminForm"> | ||||
|   <?php if ($this->settings->get('global_show_filter',1) || $this->settings->get('global_display',1)) : ?> | ||||
| 		<?php if ($this->settings->get('global_show_filter',1)) : ?> | ||||
|       <div id="jem_filter" class="floattext jem-form jem-row jem-justify-start"> | ||||
|         <div> | ||||
|           <?php echo '<label for="filter">'.Text::_('COM_JEM_FILTER').'</label>'; ?> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|           <?php echo $this->lists['filter']; ?> | ||||
|           <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox form-control" onchange="document.adminForm.submit();" /> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|           <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> | ||||
| 		<?php if ($this->settings->get('global_display',1)) : ?> | ||||
|   <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|     <label for="limit"><?php echo Text::_('COM_JEM_DISPLAY_NUM'); ?></label>  | ||||
|       <?php echo $this->attending_pagination->getLimitBox(); ?> | ||||
|   </div> | ||||
| <?php endif; ?> | ||||
| 			</div> | ||||
| 		<?php endif; ?> | ||||
|   <?php endif; ?> | ||||
|  | ||||
| 	<div class="jem-sort jem-sort-small"> | ||||
|     <div class="jem-list-row jem-small-list"> | ||||
|       <div id="jem_date" class="sectiontableheader"> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_DATE', 'a.dates', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
|         <div id="jem_title" class="sectiontableheader"> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_TITLE', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
|         <div id="jem_location" class="sectiontableheader"> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_LOCATION', 'l.venue', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showcity == 1) : ?> | ||||
|         <div id="jem_city" class="sectiontableheader"> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CITY', 'l.city', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showstate == 1) : ?> | ||||
|         <div id="jem_state" class="sectiontableheader"> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_STATE', 'l.state', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showcat == 1) : ?> | ||||
|         <div id="jem_category" class="sectiontableheader"> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CATEGORY', 'c.catname', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <div id="jem_places" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_PLACES', 'r.places', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <div id="jem_status" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_HEADER_WAITINGLIST_STATUS', 'r.status', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php if (!empty($this->jemsettings->regallowcomments)) : ?> | ||||
|         <div id="jem_comment" class="sectiontableheader"><?php echo Text::_('COM_JEM_COMMENT'); ?></div> | ||||
|       <?php endif; ?> | ||||
|     </div> | ||||
|   </div> | ||||
|  | ||||
| 	<ul class="eventlist jem-myattendees"> | ||||
| 		<?php if (count((array)$this->attending) == 0) : ?> | ||||
| 			<li class="jem-event"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></li> | ||||
| 		<?php else : ?> | ||||
| 			<?php foreach ($this->attending as $i => $row) : ?> | ||||
|         <?php if (!empty($row->featured)) :   ?> | ||||
|           <li class="jem-event jem-list-row jem-small-list jem-featured event-id<?php echo $row->id.$this->params->get('pageclass_sfx'). ' event_id' . $this->escape($row->id); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 				<?php else : ?> | ||||
|           <li class="jem-event jem-list-row jem-small-list jem-odd<?php echo ($i % 2) . $this->params->get('pageclass_sfx'). ' event_id' . $this->escape($row->id); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 				<?php endif; ?> | ||||
|  | ||||
| 					<div class="jem-event-info-small jem-event-date" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags(JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime)); ?>"> | ||||
|             <i class="far fa-clock" aria-hidden="true"></i> | ||||
|             <?php | ||||
|               echo JemOutput::formatShortDateTime($row->dates, $row->times, | ||||
|                 $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
|             ?> | ||||
|              <?php if ($this->jemsettings->showtitle == 0) : ?> | ||||
|               <?php if (!empty($row->featured)) :?> | ||||
|                 <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|               <?php endif; ?> | ||||
|              <?php endif; ?> | ||||
|           </div> | ||||
|  | ||||
| 					<?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
|             <div class="jem-event-info-small jem-event-title" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>"> | ||||
|               <a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"><?php echo $this->escape($row->title); ?></a> | ||||
|               <?php echo JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?> | ||||
|               <?php if (!empty($row->featured)) :?> | ||||
|                 <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|               <?php endif; ?> | ||||
|             </div> | ||||
|           <?php else : ?> | ||||
|           <?php endif; ?> | ||||
|  | ||||
| 					<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
|             <?php if (!empty($row->venue)) : ?> | ||||
|               <div class="jem-event-info-small jem-event-venue" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$this->escape($row->venue); ?>"> | ||||
|                 <i class="fa fa-map-marker" aria-hidden="true"></i> | ||||
|                 <?php if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) : ?> | ||||
|                   <?php echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; ?> | ||||
|                 <?php else : ?> | ||||
|                   <?php echo $this->escape($row->venue); ?> | ||||
|                 <?php endif; ?> | ||||
|               </div> | ||||
|             <?php else : ?> | ||||
|               <div class="jem-event-info-small jem-event-venue"> | ||||
|                 <i class="fa fa-map-marker" aria-hidden="true"></i> - | ||||
|               </div> | ||||
|             <?php endif; ?> | ||||
|           <?php endif; ?> | ||||
|  | ||||
| 					<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
|             <?php if (!empty($row->city)) : ?> | ||||
|               <div class="jem-event-info-small jem-event-city" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$this->escape($row->city); ?>"> | ||||
|                 <i class="fa fa-building" aria-hidden="true"></i> | ||||
|                 <?php echo $this->escape($row->city); ?> | ||||
|               </div> | ||||
|             <?php else : ?> | ||||
|               <div class="jem-event-info-small jem-event-city"><i class="fa fa-building" aria-hidden="true"></i> -</div> | ||||
|             <?php endif; ?> | ||||
|           <?php endif; ?> | ||||
|  | ||||
| 					<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
|             <?php if (!empty($row->state)) : ?> | ||||
|               <div class="jem-event-info-small jem-event-state" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$this->escape($row->state); ?>"> | ||||
|                 <i class="fa fa-map" aria-hidden="true"></i> | ||||
|                 <?php echo $this->escape($row->state); ?> | ||||
|               </div> | ||||
|             <?php else : ?> | ||||
|               <div class="jem-event-info-small jem-event-state"><i class="fa fa-map" aria-hidden="true"></i> -</div> | ||||
|             <?php endif; ?> | ||||
|           <?php endif; ?> | ||||
|  | ||||
| 					<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
|             <div class="jem-event-info-small jem-event-category" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist))); ?>"> | ||||
|               <i class="fa fa-tag" aria-hidden="true"></i> | ||||
|               <?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
|             </div> | ||||
|           <?php endif; ?> | ||||
|  | ||||
|             <div class="jem-event-info-small jem-myattendances-places" title="<?php echo Text::_('COM_JEM_TABLE_PLACES').': '.$this->escape($row->places); ?>"> | ||||
|                 <?php echo $this->escape($row->places); ?> | ||||
|             </div>             | ||||
|  | ||||
| 					<div class="jem-event-info-small jem-myattendances-status"> | ||||
| 						<?php | ||||
| 						$status = (int)$row->status; | ||||
| 						if ($status === 1 && $row->waiting == 1) { $status = 2; } | ||||
| 						echo jemhtml::toggleAttendanceStatus($row->id, $status, false, $this->print); | ||||
| 						?> | ||||
| 					</div> | ||||
|  | ||||
| 					<?php if (!empty($this->jemsettings->regallowcomments)) : ?> | ||||
|             <div class="jem-event-info-small jem-myattendances-comments"> | ||||
|               <?php | ||||
|               $len  = ($this->print) ? 256 : 16; | ||||
|               $cmnt = (\Joomla\String\StringHelper::strlen($row->comment) > $len) ? (\Joomla\String\StringHelper::substr($row->comment, 0, $len - 2).'…') : $row->comment; | ||||
|               if (!empty($cmnt)) : | ||||
|                 echo ($this->print) ? $cmnt : HTMLHelper::_('tooltip', $row->comment, null, null, $cmnt, null, null); | ||||
|               endif; | ||||
|               ?> | ||||
|             </div> | ||||
| 					<?php endif; ?> | ||||
| 				<?php $i = 1 - $i; ?> | ||||
| 			<?php endforeach; ?> | ||||
| 		<?php endif; ?> | ||||
| 	</ul> | ||||
|  | ||||
| 	<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="0" /> | ||||
| 	<input type="hidden" name="task" value="<?php echo $this->task; ?>" /> | ||||
| 	<input type="hidden" name="option" value="com_jem" /> | ||||
| </form> | ||||
|  | ||||
|  | ||||
| <div class="pagination"> | ||||
| 	<?php echo $this->attending_pagination->getPagesLinks(); ?> | ||||
| </div> | ||||
| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
		Reference in New Issue
	
	Block a user