PageRenderTime 10ms CodeModel.GetById 9ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 1ms

/administrator/templates/hathor/html/com_installer/discover/default.php

https://bitbucket.org/eternaware/joomus
PHP | 80 lines | 66 code | 7 blank | 7 comment | 8 complexity | 96276a8fe336397fee2ceb53fd351c8c MD5 | raw file
Possible License(s): LGPL-2.1
 1<?php
 2/**
 3 * @package     Joomla.Administrator
 4 * @subpackage  Template.hathor
 5 *
 6 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 7 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 8 */
 9
10defined('_JEXEC') or die;
11
12JHtml::_('behavior.multiselect');
13
14$listOrder	= $this->escape($this->state->get('list.ordering'));
15$listDirn	= $this->escape($this->state->get('list.direction'));
16?>
17<div id="installer-discover">
18<form action="<?php echo JRoute::_('index.php?option=com_installer&view=discover');?>" method="post" name="adminForm" id="adminForm">
19	<?php if ($this->showMessage) : ?>
20		<?php echo $this->loadTemplate('message'); ?>
21	<?php endif; ?>
22
23	<?php if ($this->ftp) : ?>
24		<?php echo $this->loadTemplate('ftp'); ?>
25	<?php endif; ?>
26
27	<?php if (count($this->items)) : ?>
28	<table class="adminlist">
29		<thead>
30			<tr>
31				<th class="checkmark-col"><input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /></th>
32				<th class="title nowrap"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirn, $listOrder); ?></th>
33				<th class="center"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_TYPE', 'type', $listDirn, $listOrder); ?></th>
34				<th class="width-10 center"><?php echo JText::_('JVERSION'); ?></th>
35				<th class="width-10 center"><?php echo JText::_('JDATE'); ?></th>
36				<th><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder', $listDirn, $listOrder); ?></th>
37				<th><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_CLIENT', 'client_id', $listDirn, $listOrder); ?></th>
38				<th class="width-15 center"><?php echo JText::_('JAUTHOR'); ?></th>
39				<th class="nowrap id-col"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_ID', 'extension_id', $listDirn, $listOrder); ?></th>
40			</tr>
41		</thead>
42
43		<tbody>
44		<?php foreach ($this->items as $i => $item): ?>
45			<tr class="row<?php echo $i % 2;?>">
46				<td><?php echo JHtml::_('grid.id', $i, $item->extension_id); ?></td>
47				<td><span class="bold hasTip" title="<?php echo htmlspecialchars($item->name.'::'.$item->description); ?>"><?php echo $item->name; ?></span></td>
48				<td class="center"><?php echo JText::_('COM_INSTALLER_TYPE_' . $item->type); ?></td>
49				<td class="center"><?php echo @$item->version != '' ? $item->version : '&#160;'; ?></td>
50				<td class="center"><?php echo @$item->creationDate != '' ? $item->creationDate : '&#160;'; ?></td>
51				<td class="center"><?php echo @$item->folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?></td>
52				<td class="center"><?php echo $item->client; ?></td>
53				<td class="center">
54					<span class="editlinktip hasTip" title="<?php echo addslashes(htmlspecialchars(JText::_('COM_INSTALLER_AUTHOR_INFORMATION').'::'.$item->author_info)); ?>">
55						<?php echo @$item->author != '' ? $item->author : '&#160;'; ?>
56					</span>
57				</td>
58				<td><?php echo $item->extension_id ?></td>
59			</tr>
60		<?php endforeach; ?>
61		</tbody>
62	</table>
63	<?php echo $this->pagination->getListFooter(); ?>
64	<?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'); ?>
65	<?php else : ?>
66		<p class="nowarning">
67			<?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'); ?>
68		</p>
69		<p class="nowarning">
70			<?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_NOEXTENSION'); ?>
71		</p>
72	<?php endif; ?>
73
74	<input type="hidden" name="task" value="" />
75	<input type="hidden" name="boxchecked" value="0" />
76	<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
77	<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
78	<?php echo JHtml::_('form.token'); ?>
79</form>
80</div>