Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/administrator/components/com_poll/views/questions/tmpl/default.php
Назад
<?php // No direct access defined( '_JEXEC' ) or die; JHtml::_('bootstrap.framework'); JHtml::_('bootstrap.tooltip'); JHtml::_( 'behavior.multiselect' ); JHtml::_( 'dropdown.init' ); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('jquery.framework'); JHtml::_('jquery.ui'); $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_poll&task=questions.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_poll&view=questions' ); ?>" 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 width="10%"><?php echo JHtml::_('grid.sort', 'JSTATUS', 'state', $listDirn, $listOrder); ?></th> <th class="hidden-phone"><?php echo JHtml::_('grid.sort', 'Тип', 'type', $listDirn, $listOrder); ?></th> <th class="hidden-phone"><?php echo JHtml::_('grid.sort', 'Вопрос', 'question', $listDirn, $listOrder); ?></th> <th class="hidden-phone"><?php echo JText::_('Ответы'); ?></th> <th class="hidden-phone"><?php echo JText::_('Параметры'); ?></th> <th width="10%"> <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ORDERING', 'ordering', $listDirn, $listOrder); ?> <?php if ($listOrder == 'ordering') : ?> <?php echo JHtml::_('grid.order', $this->items, 'filesave.png', 'helloworlds.saveorder'); ?> <?php endif; ?> </th> </tr> </thead> <tbody> <?php foreach ( $this->items as $i => $item ) : $item->max_ordering = 0; $ordering = ( $listOrder == 'a.ordering' ); $canEdit = $user->authorise( 'core.edit', '#__pollquestions.' . $item->id ); $canCheckin = $user->authorise( 'core.manage', 'com_poll' ) || $item->checked_out == $userId || $item->checked_out == 0; $canEditOwn = $user->authorise( 'core.edit.own', '#__pollquestions.' . $item->id ); $canChange = $user->authorise( 'core.edit.state', '#__pollquestions.' . $item->id ) && $canCheckin; ?> <tr class="row<?php echo $i % 2; ?>"> <td class="center hidden-phone"> <?php echo (int)$item->id; ?> </td> <td class="center hidden-phone"> <?php echo JHtml::_( 'grid.id', $i, $item->id ); ?> </td> <td> <div class="btn-group"> <?php echo JHtml::_( 'jgrid.published', $item->state, $i, 'questions.', $canChange, 'cb' ); ?> </div> </td> <td class="center hidden-phone"> <?php if ($item->type=='text') echo "Текст"; if ($item->type=='textarea') echo "Текстовое поле"; if ($item->type=='list') echo "Список"; if ($item->type=='slider') echo "Ползунок"; ?> </td> <td class="center hidden-phone"> <a href="<?php echo JRoute::_('index.php?option=com_poll&task=question.edit&id='.$item->id);?>" title=""> <?php echo $item->question;?></a> </td> <td><?php echo str_replace("\r\n", "<hr>",$item->answers); ?></td> <td><?php echo str_replace("\r\n", "<br>",$item->param); ?></td> <td> <?php if ($saveOrder) : ?> <?php if ($listDirn == 'asc') : ?> <span><?php echo $this->pagination->orderUpIcon($i, true, 'questions.orderup', 'JLIB_HTML_MOVE_UP', $saveOrder); ?></span> <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, true, 'questions.orderdown', 'JLIB_HTML_MOVE_DOWN', $saveOrder); ?></span> <?php elseif ($listDirn == 'desc') : ?> <span><?php echo $this->pagination->orderUpIcon($i, true, 'questions.orderdown', 'JLIB_HTML_MOVE_UP', $saveOrder); ?></span> <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, true, 'questions.orderup', 'JLIB_HTML_MOVE_DOWN', $saveOrder); ?></span> <?php endif; ?> <?php endif; ?> <?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?> <input type="text" name="order[]" size="5" value="<?php echo $item->ordering; ?>" <?php echo $disabled; ?> /> </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
|
Настройка