[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_messages 6 * 7 * @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Text; 16 use Joomla\CMS\Layout\LayoutHelper; 17 use Joomla\CMS\Router\Route; 18 19 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 20 $wa = $this->document->getWebAssetManager(); 21 $wa->useScript('multiselect'); 22 23 $user = Factory::getUser(); 24 $listOrder = $this->escape($this->state->get('list.ordering')); 25 $listDirn = $this->escape($this->state->get('list.direction')); 26 ?> 27 <form action="<?php echo Route::_('index.php?option=com_messages&view=messages'); ?>" method="post" name="adminForm" id="adminForm"> 28 <div id="j-main-container" class="j-main-container"> 29 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 30 <?php if (empty($this->items)) : ?> 31 <div class="alert alert-info"> 32 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 33 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 34 </div> 35 <?php else : ?> 36 <table class="table"> 37 <caption class="visually-hidden"> 38 <?php echo Text::_('COM_MESSAGES_TABLE_CAPTION'); ?>, 39 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 40 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 41 </caption> 42 <thead> 43 <tr> 44 <td class="w-1 text-center"> 45 <?php echo HTMLHelper::_('grid.checkall'); ?> 46 </td> 47 <th scope="col" class="title"> 48 <?php echo HTMLHelper::_('searchtools.sort', 'COM_MESSAGES_HEADING_SUBJECT', 'a.subject', $listDirn, $listOrder); ?> 49 </th> 50 <th scope="col" class="w-1 text-center"> 51 <?php echo HTMLHelper::_('searchtools.sort', 'COM_MESSAGES_HEADING_READ', 'a.state', $listDirn, $listOrder); ?> 52 </th> 53 <th scope="col" class="w-15"> 54 <?php echo HTMLHelper::_('searchtools.sort', 'COM_MESSAGES_HEADING_FROM', 'a.user_id_from', $listDirn, $listOrder); ?> 55 </th> 56 <th scope="col" class="w-20 d-none d-md-table-cell"> 57 <?php echo HTMLHelper::_('searchtools.sort', 'JDATE', 'a.date_time', $listDirn, $listOrder); ?> 58 </th> 59 </tr> 60 </thead> 61 <tbody> 62 <?php foreach ($this->items as $i => $item) : 63 $canChange = $user->authorise('core.edit.state', 'com_messages'); 64 ?> 65 <tr class="row<?php echo $i % 2; ?>"> 66 <td class="text-center"> 67 <?php echo HTMLHelper::_('grid.id', $i, $item->message_id, false, 'cid', 'cb', $item->subject); ?> 68 </td> 69 <th scope="row"> 70 <a href="<?php echo Route::_('index.php?option=com_messages&view=message&message_id=' . (int) $item->message_id); ?>"> 71 <?php echo $this->escape($item->subject); ?></a> 72 </th> 73 <td class="text-center"> 74 <?php echo HTMLHelper::_('messages.status', $i, $item->state, $canChange); ?> 75 </td> 76 <td> 77 <?php echo $item->user_from; ?> 78 </td> 79 <td class="d-none d-md-table-cell"> 80 <?php echo HTMLHelper::_('date', $item->date_time, Text::_('DATE_FORMAT_LC2')); ?> 81 </td> 82 </tr> 83 <?php endforeach; ?> 84 </tbody> 85 </table> 86 87 <?php // load the pagination. ?> 88 <?php echo $this->pagination->getListFooter(); ?> 89 90 <?php endif; ?> 91 <div> 92 <input type="hidden" name="task" value=""> 93 <input type="hidden" name="boxchecked" value="0"> 94 <?php echo HTMLHelper::_('form.token'); ?> 95 </div> 96 </div> 97 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |