[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_categories/views/category/tmpl/ -> edit.php (source)

   1  <?php
   2  /**
   3   * @package        Joomla.Administrator
   4   * @subpackage    com_categories
   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  // Include the component HTML helpers.
  13  JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  14  
  15  // Load the tooltip behavior.
  16  JHtml::_('behavior.tooltip');
  17  JHtml::_('behavior.formvalidation');
  18  JHtml::_('behavior.keepalive');
  19  ?>
  20  
  21  <script type="text/javascript">
  22      Joomla.submitbutton = function(task)
  23      {
  24          if (task == 'category.cancel' || document.formvalidator.isValid(document.id('item-form'))) {
  25              <?php echo $this->form->getField('description')->save(); ?>
  26              Joomla.submitform(task, document.getElementById('item-form'));
  27          } else {
  28              alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
  29          }
  30      }
  31  </script>
  32  
  33  <form action="<?php echo JRoute::_('index.php?option=com_categories&extension='.JRequest::getCmd('extension', 'com_content').'&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" class="form-validate">
  34      <div class="width-60 fltlft">
  35          <fieldset class="adminform">
  36              <legend><?php echo JText::_('COM_CATEGORIES_FIELDSET_DETAILS');?></legend>
  37              <ul class="adminformlist">
  38                  <li><?php echo $this->form->getLabel('title'); ?>
  39                  <?php echo $this->form->getInput('title'); ?></li>
  40  
  41                  <li><?php echo $this->form->getLabel('alias'); ?>
  42                  <?php echo $this->form->getInput('alias'); ?></li>
  43  
  44                  <li><?php echo $this->form->getLabel('extension'); ?>
  45                  <?php echo $this->form->getInput('extension'); ?></li>
  46  
  47                  <li><?php echo $this->form->getLabel('parent_id'); ?>
  48                  <?php echo $this->form->getInput('parent_id'); ?></li>
  49  
  50                  <li><?php echo $this->form->getLabel('published'); ?>
  51                  <?php echo $this->form->getInput('published'); ?></li>
  52  
  53                  <li><?php echo $this->form->getLabel('access'); ?>
  54                  <?php echo $this->form->getInput('access'); ?></li>
  55  
  56                  <?php if ($this->canDo->get('core.admin')): ?>
  57                      <li><span class="faux-label"><?php echo JText::_('JGLOBAL_ACTION_PERMISSIONS_LABEL'); ?></span>
  58                      <div class="button2-left"><div class="blank">
  59                            <button type="button" onclick="document.location.href='#access-rules';">
  60                            <?php echo JText::_('JGLOBAL_PERMISSIONS_ANCHOR'); ?></button>
  61                        </div></div>
  62                      </li>
  63                  <?php endif; ?>
  64  
  65                  <li><?php echo $this->form->getLabel('language'); ?>
  66                  <?php echo $this->form->getInput('language'); ?></li>
  67  
  68                  <li><?php echo $this->form->getLabel('id'); ?>
  69                  <?php echo $this->form->getInput('id'); ?></li>
  70              </ul>
  71              <div class="clr"></div>
  72              <?php echo $this->form->getLabel('description'); ?>
  73              <div class="clr"></div>
  74              <?php echo $this->form->getInput('description'); ?>
  75          </fieldset>
  76      </div>
  77  
  78      <div class="width-40 fltrt">
  79  
  80          <?php echo JHtml::_('sliders.start', 'categories-sliders-'.$this->item->id, array('useCookie'=>1)); ?>
  81              <?php echo $this->loadTemplate('options'); ?>
  82              <div class="clr"></div>
  83  
  84              <?php echo JHtml::_('sliders.panel', JText::_('JGLOBAL_FIELDSET_METADATA_OPTIONS'), 'meta-options'); ?>
  85              <fieldset class="panelform">
  86                  <?php echo $this->loadTemplate('metadata'); ?>
  87              </fieldset>
  88  
  89          <?php echo JHtml::_('sliders.end'); ?>
  90      </div>
  91      <div class="clr"></div>
  92  
  93      <?php if ($this->canDo->get('core.admin')): ?>
  94          <div  class="width-100 fltlft">
  95  
  96              <?php echo JHtml::_('sliders.start', 'permissions-sliders-'.$this->item->id, array('useCookie'=>1)); ?>
  97  
  98              <?php echo JHtml::_('sliders.panel', JText::_('COM_CATEGORIES_FIELDSET_RULES'), 'access-rules'); ?>
  99              <fieldset class="panelform">
 100                  <?php echo $this->form->getLabel('rules'); ?>
 101                  <?php echo $this->form->getInput('rules'); ?>
 102              </fieldset>
 103  
 104              <?php echo JHtml::_('sliders.end'); ?>
 105          </div>
 106      <?php endif; ?>
 107      <div>
 108          <input type="hidden" name="task" value="" />
 109          <?php echo JHtml::_('form.token'); ?>
 110      </div>
 111  </form>


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