Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jchat/tmpl/recorder/default_list.php
Ðазад
<?php /** * @package JCHAT::RECORDER::administrator::components::com_jchat * @subpackage views * @subpackage recorder * @subpackage tmpl * @author Joomla! Extensions Store * @Copyright (C) 2015 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ defined ( '_JEXEC' ) or die ( 'Restricted access' ); use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Router\Route; use Joomla\CMS\HTML\HTMLHelper; ?> <form action="index.php" method="post" name="adminForm" id="adminForm"> <table class="headerlist"> <tr> <td class="left"> <div class="input-group"> <span class="input-group-text" aria-label="<?php echo Text::_('COM_JCHAT_FILTER');?>"><span class="icon-filter" aria-hidden="true"></span> <?php echo Text::_('COM_JCHAT_FILTER' ); ?>:</span> <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->searchword, ENT_COMPAT, 'UTF-8');?>" class="text_area"/> </div> <button class="btn btn-primary btn-sm" onclick="this.form.submit();"><?php echo Text::_('COM_JCHAT_GO' ); ?></button> <button class="btn btn-primary btn-sm" onclick="document.getElementById('search').value='';this.form.submit();"><?php echo Text::_('COM_JCHAT_RESET' ); ?></button> <div class="clr vspacer"></div> <div class="input-group input-group-date active"> <span class="input-group-text" aria-label="<?php echo Text::_('COM_JCHAT_FILTER_BY_DATE_FROM');?>"><span class="icon-calendar" aria-hidden="true"></span> <?php echo Text::_('COM_JCHAT_FILTER_BY_DATE_FROM' ); ?>:</span> <input type="text" name="fromperiod" id="fromPeriod" data-role="calendar" autocomplete="off" value="<?php echo $this->dates['start'];?>" class="text_area"/> </div> <div class="input-group input-group-date active"> <span class="input-group-text" aria-label="<?php echo Text::_('COM_JCHAT_FILTER_BY_DATE_TO');?>"><span class="icon-calendar" aria-hidden="true"></span> <?php echo Text::_('COM_JCHAT_FILTER_BY_DATE_TO' ); ?>:</span> <input type="text" name="toperiod" id="toPeriod" data-role="calendar" autocomplete="off" value="<?php echo $this->dates['to'];?>" class="text_area"/> </div> <button class="btn btn-primary btn-sm" onclick="document.adminForm.task.value='recorder.display';this.form.submit();"><?php echo Text::_('COM_JCHAT_GO' ); ?></button> <button class="btn btn-primary btn-sm" onclick="document.getElementById('fromPeriod').value='';document.getElementById('toPeriod').value='';this.form.submit();"><?php echo Text::_('COM_JCHAT_RESET' ); ?></button> </td> <td class="right d-flex justify-content-end"> <div class="input-group d-none d-md-inline-flex flex-end"> <span class="input-group-text" aria-label="<?php echo Text::_('COM_JCHAT_STATE');?>"><span class="icon-filter" aria-hidden="true"></span> <?php echo Text::_('COM_JCHAT_STATE' ); ?></span> <label class="visually-hidden" for="limit"><?php echo Text::_('JGLOBAL_LIST_LIMIT');?></label> <?php echo $this->pagination->getLimitBox(); ?> </div> </td> </tr> </table> <table class="adminlist table table-striped table-hover"> <thead> <tr> <th width="1%" class="title"> <?php echo Text::_('COM_JCHAT_NUM' ); ?> </th> <th width="1%" class="title"> <input type="checkbox" name="checkall-toggle" value="" onclick="Joomla.checkAll(this);" /> </th> <th width="15%" class="title"> <?php echo HTMLHelper::_('grid.sort', 'COM_JCHAT_RECORD_MEDIA_TITLE', 'a.title', @$this->orders['order_Dir'], @$this->orders['order'], 'recorder.display' ); ?> </th> <th width="5%" class="title d-none d-md-table-cell"> <?php echo HTMLHelper::_('grid.sort', 'COM_JCHAT_RECORD_MEDIA_SIZE', 'a.size', @$this->orders['order_Dir'], @$this->orders['order'], 'recorder.display' ); ?> </th> <th width="5%" class="title"> <?php echo HTMLHelper::_('grid.sort', 'COM_JCHAT_RECORD_MEDIA_TIMERECORD', 'a.timerecord', @$this->orders['order_Dir'], @$this->orders['order'], 'recorder.display' ); ?> </th> <th width="8%" class="title d-none d-md-table-cell"> <?php echo HTMLHelper::_('grid.sort', 'COM_JCHAT_RECORD_MEDIA_PEER1', 'a.peer1', @$this->orders['order_Dir'], @$this->orders['order'], 'recorder.display' ); ?> </th> <th width="8%" class="title d-none d-md-table-cell" > <?php echo HTMLHelper::_('grid.sort', 'COM_JCHAT_RECORD_MEDIA_PEER2', 'a.peer2', @$this->orders['order_Dir'], @$this->orders['order'], 'recorder.display' ); ?> </th> <th width="8%" class="title" > <?php echo Text::_('COM_JCHAT_RECORD_MEDIA_PLAY'); ?> </th> <th width="8%" class="title d-none d-md-table-cell" > <?php echo Text::_('COM_JCHAT_RECORD_MEDIA_DOWNLOAD'); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="100%"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; for ($i=0, $n=count( $this->items ); $i < $n; $i++) { $row = $this->items[$i]; $isLiveStreaming = $row->peer2 == 'livestreaming' ? true : false; ?> <tr class="<?php echo "row$k"; ?>"> <td align="center"> <?php echo $i+1+$this->pagination->limitstart;?> </td> <td align="center"> <?php echo HTMLHelper::_('grid.id', $i, $row->id ); ?> </td> <td class="word-break-all"> <?php if($isLiveStreaming):?> <?php echo $row->title; ?> <?php else:?> <a href="<?php echo Uri::root() . 'media/com_jchat/recordings/' . $row->title;?>" target="_blank"> <?php echo $row->title; ?> <span class="icon-out" aria-hidden="true"></span> </a> <?php endif;?> </td> <td class="d-none d-md-table-cell"> <?php echo $row->size; ?> </td> <td> <?php echo $row->timerecord; ?> </td> <td class="d-none d-md-table-cell"> <?php echo $row->peer1; ?> </td> <td class="d-none d-md-table-cell"> <?php echo $row->peer2; ?> </td> <td> <?php if($isLiveStreaming):?> <?php $titleChunks = explode('_', $row->title); $liveStreamingId = array_pop($titleChunks); $liveStreamingFrontendLink = Route::link('site', 'index.php?option=com_jchat&view=livestreaming&livestreamingid=' . $liveStreamingId, true, Route::TLS_IGNORE, true); ?> <a href="<?php echo $liveStreamingFrontendLink;?>" target="_blank"><span class="icon-play-2 jchatbtn"></span></a> <?php else:?> <a href="javascript:void(0);" onclick="window.open('<?php echo Uri::root() . 'media/com_jchat/recordings/' . $row->title;?>', 'video', 'width=640,height=480');return false;"> <span class="fas fa-play-circle jchatbtn" aria-hidden="true"></span> </a> <?php endif;?> </td> <td class="d-none d-md-table-cell"> <?php if($isLiveStreaming):?> - <?php else:?> <a href="javascript:void(0);" onclick="Joomla.listItemTask('cb<?php echo $i;?>','recorder.downloadEntity');document.querySelector('#task').value='recorder.display';"> <span class="icon-download jchatbtn" aria-hidden="true"></span> </a> <?php endif;?> </td> </tr> <?php $k = 1 - $k; } ?> </tbody> </table> <input type="hidden" name="option" value="<?php echo $this->option;?>" /> <input type="hidden" id="task" name="task" value="recorder.display" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="filter_order" value="<?php echo $this->orders['order']; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $this->orders['order_Dir']; ?>" /> </form>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка