PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/administrator/components/com_redirect/views/link/tmpl/edit.php

https://github.com/joebushi/joomla
PHP | 64 lines | 43 code | 11 blank | 10 comment | 3 complexity | c541cab9552e6a84fd2b14d8ee6ca549 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Administrator
  5. * @subpackage com_redirect
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. // No direct access.
  10. defined('_JEXEC') or die;
  11. // Include the HTML helpers.
  12. JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  13. JHtml::_('behavior.tooltip');
  14. JHtml::_('behavior.formvalidation');
  15. JHtml::_('behavior.keepalive');
  16. ?>
  17. <script type="text/javascript">
  18. <!--
  19. function submitbutton(task)
  20. {
  21. if (task == 'link.cancel' || document.formvalidator.isValid(document.id('link-form'))) {
  22. submitform(task);
  23. }
  24. }
  25. // -->
  26. </script>
  27. <form action="<?php echo JRoute::_('index.php?option=com_redirect'); ?>" method="post" name="adminForm" id="link-form" class="form-validate">
  28. <div class="width-60 fltlft">
  29. <fieldset class="adminform">
  30. <legend><?php echo empty($this->item->id) ? JText::_('Redir_New_Link') : JText::sprintf('Redir_Edit_Link', $this->item->id); ?></legend>
  31. <?php echo $this->form->getLabel('old_url'); ?>
  32. <?php echo $this->form->getInput('old_url'); ?>
  33. <?php echo $this->form->getLabel('new_url'); ?>
  34. <?php echo $this->form->getInput('new_url'); ?>
  35. <?php echo $this->form->getLabel('comment'); ?>
  36. <?php echo $this->form->getInput('comment'); ?>
  37. </fieldset>
  38. </div>
  39. <div class="width-40 fltrt">
  40. <fieldset class="adminform">
  41. <legend><?php echo JText::_('Details'); ?></legend>
  42. <?php echo $this->form->getLabel('published'); ?>
  43. <?php echo $this->form->getInput('published'); ?>
  44. <?php echo $this->form->getLabel('created_date'); ?>
  45. <?php echo $this->form->getInput('created_date'); ?>
  46. <?php echo $this->form->getLabel('updated_date'); ?>
  47. <?php echo $this->form->getInput('updated_date'); ?>
  48. </fieldset>
  49. </div>
  50. <div class="clr"></div>
  51. <input type="hidden" name="task" value="" />
  52. <?php echo JHtml::_('form.token'); ?>
  53. </form>