primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,77 @@
<?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;
?>
<form action="index.php?option=com_jem&amp;view=userelement&tmpl=component" method="post" id="adminForm" name="adminForm">
<table class="adminform">
<tr>
<td width="100%">
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search']; ?>" class="text_area" onChange="document.adminForm.submit();" />
<button class="buttonfilter" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button>
<button class="buttonfilter" type="button" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
</td>
</tr>
</table>
<table class="table table-striped" id="articleList">
<thead>
<tr>
<th class="center" width="5"><?php echo Text::_('COM_JEM_NUM'); ?></th>
<th class="title"><?php echo HTMLHelper::_('grid.sort', 'Name', 'u.name', $this->lists['order_Dir'], $this->lists['order'], 'selectuser' ); ?></th>
<th class="title"><?php echo HTMLHelper::_('grid.sort', 'Username', 'u.username', $this->lists['order_Dir'], $this->lists['order'], 'selectuser' ); ?></th>
<th class="title"><?php echo HTMLHelper::_('grid.sort', 'Email', 'u.email', $this->lists['order_Dir'], $this->lists['order'], 'selectuser' ); ?></th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">
<?php echo (method_exists($this->pagination, 'getPaginationLinks') ? $this->pagination->getPaginationLinks() : $this->pagination->getListFooter()); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
for ($i = 0, $n = is_array($this->rows) ? count($this->rows) : 0; $i < $n; $i++) {
$row = $this->rows[$i];
?>
<tr class="<?php echo "row$k"; ?>">
<td class="center"><?php echo $this->pagination->getRowOffset( $i ); ?></td>
<td>
<span <?php echo JemOutput::tooltip(Text::_('COM_JEM_SELECT'), $row->name, 'editlinktip'); ?>>
<a style="cursor:pointer" onclick="window.parent.modalSelectUser('<?php echo $row->id; ?>', '<?php echo str_replace( array("'", "\""), array("\\'", ""), $row->name ); ?>');">
<?php echo $this->escape($row->name); ?>
</a></span>
</td>
<td><?php echo $row->username; ?></td>
<td><?php echo $row->email; ?></td>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
</table>
<div class="copyright">
<?php echo JemAdmin::footer( ); ?>
</div>
<input type="hidden" name="task" value="selectuser" />
<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']; ?>" />
</form>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,70 @@
<?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\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\View\HtmlView;
/**
* View class for the JEM userelement screen
*
* @package JEM
*
*/
class JEMViewUserElement extends HtmlView {
public function display($tpl = null)
{
$app = Factory::getApplication();
// initialise variables
$app = Factory::getApplication();
$document = $app->getDocument();
$jemsettings = JEMAdmin::config();
$db = Factory::getContainer()->get('DatabaseDriver');
// get var
$filter_order = $app->getUserStateFromRequest('com_jem.userelement.filter_order', 'filter_order', 'u.name', 'cmd');
$filter_order_Dir = $app->getUserStateFromRequest('com_jem.userelement.filter_order_Dir', 'filter_order_Dir', '', 'word');
$search = $app->getUserStateFromRequest('com_jem.userelement.filter_search', 'filter_search', '', 'string');
$search = $db->escape(trim(\Joomla\String\StringHelper::strtolower($search)));
// prepare the document
$document->setTitle(Text::_('COM_JEM_SELECTATTENDEE'));
// Load css
// HTMLHelper::_('stylesheet', 'com_jem/backend.css', array(), true);
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->registerStyle('jem.backend', 'com_jem/backend.css')->useStyle('jem.backend');
// Get data from the model
$users = $this->get('Data');
$pagination = $this->get('Pagination');
// build selectlists
$lists = array();
// table ordering
$lists['order_Dir'] = $filter_order_Dir;
$lists['order'] = $filter_order;
// search filter
$lists['search']= $search;
// assign data to template
$this->lists = $lists;
$this->rows = $users;
$this->jemsettings = $jemsettings;
$this->pagination = $pagination;
parent::display($tpl);
}
}
?>