PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/redirect/code/trunk/administrator/components/com_redirect/views/link/tmpl/edit.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 76 lines | 57 code | 7 blank | 12 comment | 0 complexity | d11ca0b11dea9030c4012e28264d89e5 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: edit.php 390 2010-11-05 11:35:33Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_redirect
  6. * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  8. * @link http://www.theartofjoomla.com
  9. */
  10. defined('_JEXEC') or die('Invalid Request.');
  11. // Include the component HTML helpers.
  12. JHTML::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  13. // Load the behaviors.
  14. JHTML::_('behavior.formvalidation');
  15. JHTML::_('behavior.keepalive');
  16. JHTML::_('behavior.tooltip');
  17. // Load the default stylesheet.
  18. JHTML::stylesheet('default.css', 'administrator/components/com_redirect/media/css/');
  19. // Get the form fields.
  20. $fields = $this->form->getFields();
  21. ?>
  22. <form action="<?php echo JRoute::_('index.php?option=com_redirect&view=links');?>" method="post" name="adminForm" id="link-form">
  23. <div class="col width-60">
  24. <div>
  25. <?php echo $fields['old_url']->label; ?><br />
  26. <?php echo $fields['old_url']->input; ?>
  27. </div>
  28. <br />
  29. <div>
  30. <?php echo $fields['new_url']->label; ?><br />
  31. <?php echo $fields['new_url']->input; ?>
  32. </div>
  33. <br />
  34. <div>
  35. <?php echo $fields['comment']->label; ?><br />
  36. <?php echo $fields['comment']->input; ?>
  37. </div>
  38. </div>
  39. <div class="col width-40">
  40. <fieldset>
  41. <legend><?php echo JText::_('Details'); ?></legend>
  42. <table class="adminlist">
  43. <tbody>
  44. <tr>
  45. <td>
  46. <?php echo $fields['published']->label; ?><br />
  47. <?php echo $fields['published']->input; ?>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td>
  52. <?php echo $fields['created_date']->label; ?><br />
  53. <?php echo $fields['created_date']->input; ?>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>
  58. <?php echo $fields['updated_date']->label; ?><br />
  59. <?php echo $fields['updated_date']->input; ?>
  60. </td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </fieldset>
  65. </div>
  66. <div class="clr"></div>
  67. <input type="hidden" name="task" value="" />
  68. <?php echo JHTML::_('form.token'); ?>
  69. </form>