[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_content/views/articles/tmpl/ -> modal.php (source)

   1  <?php
   2  /**
   3   * @package        Joomla.Administrator
   4   * @subpackage    com_content
   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  
   9  // no direct access
  10  defined('_JEXEC') or die;
  11  
  12  if (JFactory::getApplication()->isSite()) {
  13      JSession::checkToken('get') or die(JText::_('JINVALID_TOKEN'));
  14  }
  15  
  16  require_once  JPATH_ROOT . '/components/com_content/helpers/route.php';
  17  
  18  JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  19  JHtml::_('behavior.tooltip');
  20  
  21  $function    = JRequest::getCmd('function', 'jSelectArticle');
  22  $listOrder    = $this->escape($this->state->get('list.ordering'));
  23  $listDirn    = $this->escape($this->state->get('list.direction'));
  24  ?>
  25  <form action="<?php echo JRoute::_('index.php?option=com_content&view=articles&layout=modal&tmpl=component&function='.$function.'&'.JSession::getFormToken().'=1');?>" method="post" name="adminForm" id="adminForm">
  26      <fieldset class="filter clearfix">
  27          <div class="left">
  28              <label for="filter_search">
  29                  <?php echo JText::_('JSEARCH_FILTER_LABEL'); ?>
  30              </label>
  31              <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" size="30" title="<?php echo JText::_('COM_CONTENT_FILTER_SEARCH_DESC'); ?>" />
  32  
  33              <button type="submit">
  34                  <?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
  35              <button type="button" onclick="document.id('filter_search').value='';this.form.submit();">
  36                  <?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button>
  37          </div>
  38  
  39          <div class="right">
  40              <select name="filter_access" class="inputbox" onchange="this.form.submit()">
  41                  <option value=""><?php echo JText::_('JOPTION_SELECT_ACCESS');?></option>
  42                  <?php echo JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'));?>
  43              </select>
  44  
  45              <select name="filter_published" class="inputbox" onchange="this.form.submit()">
  46                  <option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option>
  47                  <?php echo JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true);?>
  48              </select>
  49  
  50              <select name="filter_category_id" class="inputbox" onchange="this.form.submit()">
  51                  <option value=""><?php echo JText::_('JOPTION_SELECT_CATEGORY');?></option>
  52                  <?php echo JHtml::_('select.options', JHtml::_('category.options', 'com_content'), 'value', 'text', $this->state->get('filter.category_id'));?>
  53              </select>
  54  
  55              <select name="filter_language" class="inputbox" onchange="this.form.submit()">
  56                  <option value=""><?php echo JText::_('JOPTION_SELECT_LANGUAGE');?></option>
  57                  <?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'));?>
  58              </select>
  59          </div>
  60      </fieldset>
  61  
  62      <table class="adminlist">
  63          <thead>
  64              <tr>
  65                  <th class="title">
  66                      <?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
  67                  </th>
  68                  <th width="15%">
  69                      <?php echo JHtml::_('grid.sort',  'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder); ?>
  70                  </th>
  71                  <th width="15%">
  72                      <?php echo JHtml::_('grid.sort', 'JCATEGORY', 'a.catid', $listDirn, $listOrder); ?>
  73                  </th>
  74                  <th width="5%">
  75                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'language', $listDirn, $listOrder); ?>
  76                  </th>
  77                  <th width="5%">
  78                      <?php echo JHtml::_('grid.sort',  'JDATE', 'a.created', $listDirn, $listOrder); ?>
  79                  </th>
  80                  <th width="1%" class="nowrap">
  81                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
  82                  </th>
  83              </tr>
  84          </thead>
  85          <tfoot>
  86              <tr>
  87                  <td colspan="15">
  88                      <?php echo $this->pagination->getListFooter(); ?>
  89                  </td>
  90              </tr>
  91          </tfoot>
  92          <tbody>
  93          <?php foreach ($this->items as $i => $item) : ?>
  94              <?php if ($item->language && JLanguageMultilang::isEnabled()) {
  95                  $tag = strlen($item->language);
  96                  if ($tag == 5) {
  97                      $lang = substr($item->language, 0, 2);
  98                  }
  99                  elseif ($tag == 6) {
 100                      $lang = substr($item->language, 0, 3);
 101                  }
 102                  else {
 103                      $lang = "";
 104                  }
 105              }
 106              elseif (!JLanguageMultilang::isEnabled()) {
 107                  $lang = "";
 108              }
 109              ?>
 110              <tr class="row<?php echo $i % 2; ?>">
 111                  <td>
 112                      <a class="pointer" onclick="if (window.parent) window.parent.<?php echo $this->escape($function);?>('<?php echo $item->id; ?>', '<?php echo $this->escape(addslashes($item->title)); ?>', '<?php echo $this->escape($item->catid); ?>', null, '<?php echo $this->escape(ContentHelperRoute::getArticleRoute($item->id, $item->catid, $item->language)); ?>', '<?php echo $this->escape($lang); ?>', null);">
 113                          <?php echo $this->escape($item->title); ?></a>
 114                  </td>
 115                  <td class="center">
 116                      <?php echo $this->escape($item->access_level); ?>
 117                  </td>
 118                  <td class="center">
 119                      <?php echo $this->escape($item->category_title); ?>
 120                  </td>
 121                  <td class="center">
 122                      <?php if ($item->language=='*'):?>
 123                          <?php echo JText::alt('JALL', 'language'); ?>
 124                      <?php else:?>
 125                          <?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
 126                      <?php endif;?>
 127                  </td>
 128                  <td class="center nowrap">
 129                      <?php echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC4')); ?>
 130                  </td>
 131                  <td class="center">
 132                      <?php echo (int) $item->id; ?>
 133                  </td>
 134              </tr>
 135              <?php endforeach; ?>
 136          </tbody>
 137      </table>
 138  
 139      <div>
 140          <input type="hidden" name="task" value="" />
 141          <input type="hidden" name="boxchecked" value="0" />
 142          <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
 143          <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
 144          <?php echo JHtml::_('form.token'); ?>
 145      </div>
 146  </form>


Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1