PageRenderTime 18ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/administrator/components/com_installer/views/languages/tmpl/default.php

https://bitbucket.org/eternaware/joomus
PHP | 84 lines | 74 code | 4 blank | 6 comment | 3 complexity | 39c2cff0ecea52a34194c73476ea24bb MD5 | raw file
Possible License(s): LGPL-2.1
 1<?php
 2/**
 3 * @package     Joomla.Administrator
 4 * @subpackage  com_installer
 5 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 6 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 7 */
 8
 9defined('_JEXEC') or die;
10
11JHtml::_('behavior.multiselect');
12
13$listOrder = $this->escape($this->state->get('list.ordering'));
14$listDirn  = $this->escape($this->state->get('list.direction'));
15?>
16<form action="<?php echo JRoute::_('index.php?option=com_installer&view=languages');?>" method="post" name="adminForm" id="adminForm">
17	<?php if (count($this->items) || $this->escape($this->state->get('filter.search'))) : ?>
18		<?php echo $this->loadTemplate('filter'); ?>
19		<table class="table table-striped">
20			<thead>
21				<tr>
22					<th width="20" class="nowrap hidden-phone">
23						<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
24					</th>
25					<th class="nowrap">
26						<?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirn, $listOrder); ?>
27					</th>
28					<th width="10%" class="center">
29						<?php echo JText::_('JVERSION'); ?>
30					</th>
31					<th class="center nowrap hidden-phone">
32						<?php echo JText::_('COM_INSTALLER_HEADING_TYPE'); ?>
33					</th>
34					<th width="35%" class="nowrap hidden-phone">
35						<?php echo JText::_('COM_INSTALLER_HEADING_DETAILS_URL'); ?>
36					</th>
37					<th width="30" class="nowrap hidden-phone">
38						<?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_ID', 'update_id', $listDirn, $listOrder); ?>
39					</th>
40				</tr>
41			</thead>
42			<tfoot>
43				<tr>
44					<td colspan="6">
45						<?php echo $this->pagination->getListFooter(); ?>
46					</td>
47				</tr>
48			</tfoot>
49			<tbody>
50				<?php foreach ($this->items as $i => $language) :
51				?>
52				<tr class="row<?php echo $i % 2; ?>">
53					<td class="hidden-phone">
54						<?php echo JHtml::_('grid.id', $i, $language->update_id, false, 'cid'); ?>
55					</td>
56					<td>
57						<?php echo $language->name; ?>
58					</td>
59					<td class="center small">
60						<?php echo $language->version; ?>
61					</td>
62					<td class="center small hidden-phone">
63						<?php echo $language->type; ?>
64					</td>
65					<td class="small hidden-phone">
66						<?php echo $language->detailsurl; ?>
67					</td>
68					<td class="small hidden-phone">
69						<?php echo $language->update_id; ?>
70					</td>
71				</tr>
72				<?php endforeach; ?>
73			</tbody>
74		</table>
75	<?php else : ?>
76		<div class="alert"><?php echo JText::_('COM_INSTALLER_MSG_LANGUAGES_NOLANGUAGES'); ?></div>
77	<?php endif; ?>
78
79	<input type="hidden" name="task" value="" />
80	<input type="hidden" name="boxchecked" value="0" />
81	<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
82	<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
83	<?php echo JHtml::_('form.token'); ?>
84</form>