Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/administrator/components/com_pay/views/discounts/tmpl/default.php
Назад
<?php // No direct access defined( '_JEXEC' ) or die; $db = JFactory::getDbo(); JHtml::_('bootstrap.tooltip'); JHtml::_( 'behavior.multiselect' ); JHtml::_( 'dropdown.init' ); JHtml::_('formbehavior.chosen', 'select'); $user = JFactory::getUser(); $userId = $user->get( 'id' ); $listOrder = $this->state->get( 'list.ordering' ); $listDirn = $this->state->get( 'list.direction' ); $saveOrder = $listOrder == 'ordering'; if ( $saveOrder ) { $saveOrderingUrl = 'index.php?option=com_pay&task=discounts.saveOrderAjax&tmpl=component'; JHtml::_( 'sortablelist.sortable', 'articleList', 'adminForm', strtolower( $listDirn ), $saveOrderingUrl ); } $sortFields = $this->getSortFields(); ?> <script type="text/javascript"> Joomla.orderTable = function () { var table = document.getElementById("sortTable"); var direction = document.getElementById("directionTable"); var order = table.options[table.selectedIndex].value; if (order != '<?php echo $listOrder; ?>') { dirn = 'asc'; } else { dirn = direction.options[direction.selectedIndex].value; } Joomla.tableOrdering(order, dirn, ''); } </script> <form action="<?php echo JRoute::_( 'index.php?option=com_pay&view=discounts' ); ?>" 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; ?> <div id="filter-bar" class="btn-toolbar"> <div class="filter-search btn-group pull-left"> <label for="filter_search" class="element-invisible"><?php echo JText::_( 'JSEARCH_FILTER' );?></label> <input type="text" name="filter_search" placeholder="<?php echo JText::_( 'JSEARCH_FILTER' ); ?>" id="filter_search" value="<?php echo $this->escape( $this->state->get( 'filter.search' ) ); ?>" title="<?php echo JText::_( 'COM_CONTENT_FILTER_SEARCH_DESC' ); ?>" /> </div> <div class="btn-group pull-left hidden-phone"> <button class="btn tip" type="submit" rel="tooltip" title="<?php echo JText::_( 'JSEARCH_FILTER_SUBMIT' ); ?>"> <i class="icon-search"></i></button> <button class="btn tip" type="button" onclick="document.id('filter_search').value='';this.form.submit();" rel="tooltip" title="<?php echo JText::_( 'JSEARCH_FILTER_CLEAR' ); ?>"> <i class="icon-remove"></i></button> </div> <div class="btn-group pull-right hidden-phone"> <label for="limit" class="element-invisible"><?php echo JText::_( 'JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC' );?></label> <?php echo $this->pagination->getLimitBox(); ?> </div> <div class="btn-group pull-right hidden-phone"> <label for="directionTable" class="element-invisible"><?php echo JText::_( 'JFIELD_ORDERING_DESC' );?></label> <select name="directionTable" id="directionTable" class="input-small" onchange="Joomla.orderTable()"> <option value=""><?php echo JText::_( 'JFIELD_ORDERING_DESC' );?></option> <option value="asc" <?php if ( $listDirn == 'asc' ) echo 'selected="selected"'; ?>><?php echo JText::_( 'JGLOBAL_ORDER_ASCENDING' );?></option> <option value="desc" <?php if ( $listDirn == 'desc' ) echo 'selected="selected"'; ?>><?php echo JText::_( 'JGLOBAL_ORDER_DESCENDING' );?></option> </select> </div> <div class="btn-group pull-right"> <label for="sortTable" class="element-invisible"><?php echo JText::_( 'JGLOBAL_SORT_BY' );?></label> <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> <option value=""><?php echo JText::_( 'JGLOBAL_SORT_BY' );?></option> <?php echo JHtml::_( 'select.options', $sortFields, 'value', 'text', $listOrder );?> </select> </div> </div> <div class="clearfix"></div> <table class="table table-striped" id="articleList"> <thead> <tr> <th width="1%" class="nowrap"> <?php echo JHtml::_('grid.sort', 'ID', 'id', $listDirn, $listOrder); ?> </th> <th width="1%" class="hidden-phone"> <input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_( 'JGLOBAL_CHECK_ALL' ); ?>" onclick="Joomla.checkAll(this)" /> </th> <th class="nowrap center hidden-phone"><?php echo JHtml::_('grid.sort', 'Промо-код', 'code', $listDirn, $listOrder); ?></th> <th class="nowrap center hidden-phone"><?php echo JText::_('Менеджер'); ?></th> <th class="nowrap center hidden-phone"><?php echo JText::_('Клиент 1'); ?></th> <th class="nowrap center hidden-phone"><?php echo JText::_('Клиент 2'); ?></th> <th class="nowrap center hidden-phone"><?php echo JText::_('Даты'); ?></th> <th class="nowrap center hidden-phone"><?php echo JHtml::_('grid.sort', 'Скидка', 'discount', $listDirn, $listOrder); ?></th> </tr> </thead> <tbody> <?php foreach ( $this->items as $i => $item ) : $item->max_ordering = 0; $ordering = ( $listOrder == 'a.ordering' ); $canEdit = $user->authorise( 'core.edit', '#__pay_discounts.' . $item->id ); $canCheckin = $user->authorise( 'core.manage', 'com_pay' ) || $item->checked_out == $userId || $item->checked_out == 0; $canEditOwn = $user->authorise( 'core.edit.own', '#__pay_discounts.' . $item->id ); $canChange = $user->authorise( 'core.edit.state', '#__pay_discounts.' . $item->id ) && $canCheckin; ?> <tr class="row<?php echo $i % 2; ?>"> <td class="center hidden-phone"> <?php echo (int)$item->id; ?> </td> <td><?php echo JHtml::_('grid.id', $i, $item->id); ?></td> <td> <a href="<?php echo JRoute::_('index.php?option=com_pay&task=discount.edit&id='.$item->id);?>" title=""> <?php echo $item->code; ?></a> </td> <td> <?php if ($item->manager<>'0') { $list = $db->setQuery( 'SELECT username un FROM #__users where id='.$item->manager )->loadAssoc(); echo $list["un"]; unset($list); } ?> </td> <td> <?php if ($item->id1) echo "<b>ID: </b>{$item->id1}<br>"; if ($item->fio1) echo "<b>ФИО: </b>{$item->fio1}<br>"; if ($item->mail1) echo "<b>Mail: </b>{$item->mail1}<br>"; if ($item->tel1) echo "<b>Тел.: </b>{$item->tel1}<br>"; ?> </td> <td> <?php if ($item->id2) echo "<b>ID: </b>{$item->id2}<br>"; if ($item->fio2) echo "<b>ФИО: </b>{$item->fio2}<br>"; if ($item->mail2) echo "<b>Mail: </b>{$item->mail2}<br>"; if ($item->tel2) echo "<b>Тел.: </b>{$item->tel2}<br>"; ?> </td> <td> <div title="В - Дата выдачи И - Дата использования О - Дата окончания"> <b>В</b> <?php echo $item->date_issue; ?><br> <b>И</b> <?php if($item->date_use<>"0000-00-00 00:00:00") echo $item->date_use; else echo "Не активирован"; ?><br> <b>О</b> <?php echo $item->date_finish; ?> </div> </td> <td><?php echo $item->discount; ?></td> </tr> <?php endforeach; ?> </tbody> </table> <?php echo $this->pagination->getListFooter(); ?> <div> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" /> <?php echo JHtml::_( 'form.token' ); ?> </div> </div> </form>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка