/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

  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. defined('_JEXEC') or die;
  9. JHtml::_('behavior.multiselect');
  10. $listOrder = $this->escape($this->state->get('list.ordering'));
  11. $listDirn = $this->escape($this->state->get('list.direction'));
  12. ?>
  13. <form action="<?php echo JRoute::_('index.php?option=com_installer&view=languages');?>" method="post" name="adminForm" id="adminForm">
  14. <?php if (count($this->items) || $this->escape($this->state->get('filter.search'))) : ?>
  15. <?php echo $this->loadTemplate('filter'); ?>
  16. <table class="table table-striped">
  17. <thead>
  18. <tr>
  19. <th width="20" class="nowrap hidden-phone">
  20. <input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
  21. </th>
  22. <th class="nowrap">
  23. <?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirn, $listOrder); ?>
  24. </th>
  25. <th width="10%" class="center">
  26. <?php echo JText::_('JVERSION'); ?>
  27. </th>
  28. <th class="center nowrap hidden-phone">
  29. <?php echo JText::_('COM_INSTALLER_HEADING_TYPE'); ?>
  30. </th>
  31. <th width="35%" class="nowrap hidden-phone">
  32. <?php echo JText::_('COM_INSTALLER_HEADING_DETAILS_URL'); ?>
  33. </th>
  34. <th width="30" class="nowrap hidden-phone">
  35. <?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_ID', 'update_id', $listDirn, $listOrder); ?>
  36. </th>
  37. </tr>
  38. </thead>
  39. <tfoot>
  40. <tr>
  41. <td colspan="6">
  42. <?php echo $this->pagination->getListFooter(); ?>
  43. </td>
  44. </tr>
  45. </tfoot>
  46. <tbody>
  47. <?php foreach ($this->items as $i => $language) :
  48. ?>
  49. <tr class="row<?php echo $i % 2; ?>">
  50. <td class="hidden-phone">
  51. <?php echo JHtml::_('grid.id', $i, $language->update_id, false, 'cid'); ?>
  52. </td>
  53. <td>
  54. <?php echo $language->name; ?>
  55. </td>
  56. <td class="center small">
  57. <?php echo $language->version; ?>
  58. </td>
  59. <td class="center small hidden-phone">
  60. <?php echo $language->type; ?>
  61. </td>
  62. <td class="small hidden-phone">
  63. <?php echo $language->detailsurl; ?>
  64. </td>
  65. <td class="small hidden-phone">
  66. <?php echo $language->update_id; ?>
  67. </td>
  68. </tr>
  69. <?php endforeach; ?>
  70. </tbody>
  71. </table>
  72. <?php else : ?>
  73. <div class="alert"><?php echo JText::_('COM_INSTALLER_MSG_LANGUAGES_NOLANGUAGES'); ?></div>
  74. <?php endif; ?>
  75. <input type="hidden" name="task" value="" />
  76. <input type="hidden" name="boxchecked" value="0" />
  77. <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
  78. <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
  79. <?php echo JHtml::_('form.token'); ?>
  80. </form>