Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/tracks.tar
Назад
default.php 0000604 00000013417 15245630175 0006713 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage Template.hathor * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('behavior.multiselect'); JHtml::_('behavior.modal', 'a.modal'); $user = JFactory::getUser(); $userId = $user->get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?> <form id="adminForm" name="adminForm" action="<?php echo JRoute::_('index.php?option=com_banners&view=tracks'); ?>" method="post"> <?php if (!empty( $this->sidebar)) : ?> <div class="span2" id="j-sidebar-container"> <?php echo $this->sidebar; ?> </div> <div class="span10" id="j-main-container"> <?php else : ?> <div id="j-main-container"> <?php endif;?> <fieldset id="filter-bar"> <legend class="element-invisible"><?php echo JText::_('COM_BANNERS_BEGIN_LABEL'); ?></legend> <div class="filter-search"> <label class="filter-hide-lbl" for="filter_begin"><?php echo JText::_('COM_BANNERS_BEGIN_LABEL'); ?></label> <?php echo JHtml::_('calendar', $this->state->get('filter.begin'), 'filter_begin', 'filter_begin', '%Y-%m-%d', array('size' => 10));?> <label class="filter-hide-lbl" for="filter_end"><?php echo JText::_('COM_BANNERS_END_LABEL'); ?></label> <?php echo JHtml::_('calendar', $this->state->get('filter.end'), 'filter_end', 'filter_end', '%Y-%m-%d', array('size' => 10));?> </div> <div class="filter-select"> <label class="selectlabel" for="filter_client_id"> <?php echo JText::_('COM_BANNERS_SELECT_CLIENT'); ?> </label> <select id="filter_client_id" name="filter_client_id"> <option value=""><?php echo JText::_('COM_BANNERS_SELECT_CLIENT');?></option> <?php echo JHtml::_('select.options', BannersHelper::getClientOptions(), 'value', 'text', $this->state->get('filter.client_id'));?> </select> <label class="selectlabel" for="filter_category_id"> <?php echo JText::_('JOPTION_SELECT_CATEGORY'); ?> </label> <?php $category = $this->state->get('filter.category_id');?> <select id="filter_category_id" name="filter_category_id"> <option value=""><?php echo JText::_('JOPTION_SELECT_CATEGORY');?></option> <?php echo JHtml::_('select.options', JHtml::_('category.options', 'com_banners'), 'value', 'text', $category);?> </select> <label class="selectlabel" for="filter_type"> <?php echo JText::_('COM_BANNERS_SELECT_TYPE'); ?> </label> <select id="filter_type" name="filter_type"> <?php echo JHtml::_('select.options', array(JHtml::_('select.option', '0', JText::_('COM_BANNERS_SELECT_TYPE')), JHtml::_('select.option', 1, JText::_('COM_BANNERS_IMPRESSION')), JHtml::_('select.option', 2, JText::_('COM_BANNERS_CLICK'))), 'value', 'text', $this->state->get('filter.type'));?> </select> <button id="filter-go" type="submit"><?php echo JText::_('JSUBMIT'); ?></button> </div> </fieldset> <div class="clr"> </div> <table class="adminlist"> <thead> <tr> <th class="title"> <?php echo JHtml::_('grid.sort', 'COM_BANNERS_HEADING_NAME', 'name', $listDirn, $listOrder); ?> </th> <th class="nowrap width-20"> <?php echo JHtml::_('grid.sort', 'COM_BANNERS_HEADING_CLIENT', 'client_name', $listDirn, $listOrder); ?> </th> <th class="width-20"> <?php echo JHtml::_('grid.sort', 'JCATEGORY', 'category_title', $listDirn, $listOrder); ?> </th> <th class="nowrap width-10"> <?php echo JHtml::_('grid.sort', 'COM_BANNERS_HEADING_TYPE', 'track_type', $listDirn, $listOrder); ?> </th> <th class="nowrap width-10"> <?php echo JHtml::_('grid.sort', 'COM_BANNERS_HEADING_COUNT', 'count', $listDirn, $listOrder); ?> </th> <th class="nowrap width-10"> <?php echo JHtml::_('grid.sort', 'JDATE', 'track_date', $listDirn, $listOrder); ?> </th> </tr> </thead> <tbody> <?php foreach ($this->items as $i => $item) :?> <tr class="row<?php echo $i % 2; ?>"> <td> <?php echo $item->banner_name;?> </td> <td> <?php echo $item->client_name;?> </td> <td> <?php echo $item->category_title;?> </td> <td> <?php echo $item->track_type == 1 ? JText::_('COM_BANNERS_IMPRESSION'): JText::_('COM_BANNERS_CLICK');?> </td> <td> <?php echo $item->count;?> </td> <td> <?php echo JHtml::_('date', $item->track_date, JText::_('DATE_FORMAT_LC5'));?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php // Load the export form ?> <?php echo JHtml::_( 'bootstrap.renderModal', 'downloadModal', array( 'title' => JText::_('COM_BANNERS_TRACKS_DOWNLOAD'), 'url' => JRoute::_('index.php?option=com_banners&view=download&tmpl=component'), 'width' => '100%', 'height' => '300px', 'footer' => '<button type="button" class="btn" data-dismiss="modal"' . ' onclick="jQuery(\'#downloadModal iframe\').contents().find(\'#closeBtn\').click();">' . JText::_('COM_BANNERS_CANCEL') . '</button>' . '<button type="button" class="btn btn-success"' . ' onclick="jQuery(\'#downloadModal iframe\').contents().find(\'#exportBtn\').click();">' . JText::_('COM_BANNERS_TRACKS_EXPORT') . '</button>', ) ); ?> <?php echo $this->pagination->getListFooter(); ?> <input name="task" type="hidden" value="" /> <input name="boxchecked" type="hidden" value="0" /> <input name="filter_order" type="hidden" value="<?php echo $listOrder; ?>" /> <input name="filter_order_Dir" type="hidden" value="<?php echo $listDirn; ?>" /> <?php echo JHtml::_('form.token'); ?> </div> </form> view.html.php 0000604 00000006224 15245632332 0007177 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_banners * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::register('BannersHelper', JPATH_ADMINISTRATOR . '/components/com_banners/helpers/banners.php'); /** * View class for a list of tracks. * * @since 1.6 */ class BannersViewTracks extends JViewLegacy { /** * An array of items * * @var array */ protected $items; /** * The pagination object * * @var JPagination */ protected $pagination; /** * The model state * * @var object */ protected $state; /** * Display the view * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise an Error object. */ public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } BannersHelper::addSubmenu('tracks'); $this->addToolbar(); $this->sidebar = JHtmlSidebar::render(); return parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_banners', 'category', $this->state->get('filter.category_id')); JToolbarHelper::title(JText::_('COM_BANNERS_MANAGER_TRACKS'), 'bookmark banners-tracks'); $bar = JToolbar::getInstance('toolbar'); // Instantiate a new JLayoutFile instance and render the export button $layout = new JLayoutFile('joomla.toolbar.modal'); $dhtml = $layout->render( array( 'selector' => 'downloadModal', 'icon' => 'download', 'text' => JText::_('JTOOLBAR_EXPORT'), ) ); $bar->appendButton('Custom', $dhtml, 'download'); if ($canDo->get('core.delete')) { $bar->appendButton('Confirm', 'COM_BANNERS_DELETE_MSG', 'delete', 'COM_BANNERS_TRACKS_DELETE', 'tracks.delete', false); JToolbarHelper::divider(); } if ($canDo->get('core.admin') || $canDo->get('core.options')) { JToolbarHelper::preferences('com_banners'); JToolbarHelper::divider(); } JToolbarHelper::help('JHELP_COMPONENTS_BANNERS_TRACKS'); JHtmlSidebar::setAction('index.php?option=com_banners&view=tracks'); } /** * Returns an array of fields the table can be sorted by * * @return array Array containing the field name to sort by as the key and display text as value * * @since 3.0 */ protected function getSortFields() { return array( 'b.name' => JText::_('COM_BANNERS_HEADING_NAME'), 'cl.name' => JText::_('COM_BANNERS_HEADING_CLIENT'), 'track_type' => JText::_('COM_BANNERS_HEADING_TYPE'), 'count' => JText::_('COM_BANNERS_HEADING_COUNT'), 'track_date' => JText::_('JDATE') ); } } view.raw.php 0000604 00000002237 15245632332 0007024 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_banners * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * View class for a list of tracks. * * @since 1.6 */ class BannersViewTracks extends JViewLegacy { /** * Display the view * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return void */ public function display($tpl = null) { $basename = $this->get('BaseName'); $filetype = $this->get('FileType'); $mimetype = $this->get('MimeType'); $content = $this->get('Content'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } $document = JFactory::getDocument(); $document->setMimeEncoding($mimetype); JFactory::getApplication() ->setHeader( 'Content-disposition', 'attachment; filename="' . $basename . '.' . $filetype . '"; creation-date="' . JFactory::getDate()->toRFC822() . '"', true ); echo $content; } } tmpl/default.php 0000604 00000007603 15245632332 0007664 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_banners * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('formbehavior.chosen', 'select'); JHtml::_('bootstrap.tooltip'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?> <form action="<?php echo JRoute::_('index.php?option=com_banners&view=tracks'); ?>" method="post" name="adminForm" id="adminForm"> <?php if (!empty( $this->sidebar)) : ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <?php else : ?> <div id="j-main-container"> <?php endif; ?> <?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> <?php if (empty($this->items)) : ?> <div class="alert alert-no-items"> <?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> </div> <?php else : ?> <table class="table table-striped"> <thead> <tr> <th class="title"> <?php echo JHtml::_('searchtools.sort', 'COM_BANNERS_HEADING_NAME', 'b.name', $listDirn, $listOrder); ?> </th> <th width="20%" class="nowrap"> <?php echo JHtml::_('searchtools.sort', 'COM_BANNERS_HEADING_CLIENT', 'cl.name', $listDirn, $listOrder); ?> </th> <th width="10%" class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_BANNERS_HEADING_TYPE', 'a.track_type', $listDirn, $listOrder); ?> </th> <th width="10%" class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'COM_BANNERS_HEADING_COUNT', 'a.count', $listDirn, $listOrder); ?> </th> <th width="10%" class="nowrap hidden-phone"> <?php echo JHtml::_('searchtools.sort', 'JDATE', 'a.track_date', $listDirn, $listOrder); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="5"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php foreach ($this->items as $i => $item) : ?> <tr class="row<?php echo $i % 2; ?>"> <td> <?php echo $item->banner_name; ?> <div class="small"> <?php echo JText::_('JCATEGORY') . ': ' . $this->escape($item->category_title); ?> </div> </td> <td> <?php echo $item->client_name; ?> </td> <td class="small hidden-phone"> <?php echo $item->track_type == 1 ? JText::_('COM_BANNERS_IMPRESSION') : JText::_('COM_BANNERS_CLICK'); ?> </td> <td class="hidden-phone"> <?php echo $item->count; ?> </td> <td class="hidden-phone"> <?php echo JHtml::_('date', $item->track_date, JText::_('DATE_FORMAT_LC5')); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?> <?php // Load the export form ?> <?php echo JHtml::_( 'bootstrap.renderModal', 'downloadModal', array( 'title' => JText::_('COM_BANNERS_TRACKS_DOWNLOAD'), 'url' => JRoute::_('index.php?option=com_banners&view=download&tmpl=component'), 'height' => '370px', 'width' => '300px', 'modalWidth' => '40', 'footer' => '<button type="button" class="btn" data-dismiss="modal"' . ' onclick="jQuery(\'#downloadModal iframe\').contents().find(\'#closeBtn\').click();">' . JText::_('COM_BANNERS_CANCEL') . '</button>' . '<button type="button" class="btn btn-success"' . ' onclick="jQuery(\'#downloadModal iframe\').contents().find(\'#exportBtn\').click();">' . JText::_('COM_BANNERS_TRACKS_EXPORT') . '</button>', ) ); ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <?php echo JHtml::_('form.token'); ?> </div> </form>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка