[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_menus/views/menus/tmpl/ -> edit.php (source)

   1  <?php defined('_JEXEC') or die('Restricted access'); ?>
   2  
   3  <script language="javascript" type="text/javascript">
   4  <!--
   5  	function submitbutton(pressbutton) {
   6          var form = document.adminForm;
   7  
   8          if (pressbutton == 'savemenu') {
   9              if ( form.menutype.value == '' ) {
  10                  alert( '<?php echo JText::_( 'Please enter a menu name', true ); ?>' );
  11                  form.menutype.focus();
  12                  return;
  13              }
  14              var r = new RegExp("[\']", "i");
  15              if ( r.exec(form.menutype.value) ) {
  16                  alert( '<?php echo JText::_( 'The menu name cannot contain a \'', true ); ?>' );
  17                  form.menutype.focus();
  18                  return;
  19              }
  20              <?php if ($this->isnew) : ?>
  21              if ( form.title.value == '' ) {
  22                  alert( '<?php echo JText::_( 'Please enter a module name for your menu', true ); ?>' );
  23                  form.title.focus();
  24                  return;
  25              }
  26              <?php endif; ?>
  27              submitform( 'savemenu' );
  28          } else {
  29              submitform( pressbutton );
  30          }
  31      }
  32  //-->
  33  </script>
  34  <form action="index.php" method="post" name="adminForm">
  35  
  36  <table class="adminform">
  37      <tr>
  38          <td width="100" >
  39              <label for="menutype">
  40                  <strong><?php echo JText::_( 'Menu Type' ); ?>:</strong>
  41              </label>
  42          </td>
  43          <td>
  44              <input class="inputbox" type="text" name="menutype" id="menutype" size="30" maxlength="25" value="<?php echo htmlspecialchars($this->row->menutype); ?>" />            <?php echo JHTML::_('tooltip', JText::_( 'TIPNAMEUSEDTOIDENTIFYMENU' )); ?>
  45          </td>
  46      </tr>
  47      <tr>
  48          <td width="100" >
  49              <label for="title">
  50                  <strong><?php echo JText::_( 'Title' ); ?>:</strong>
  51              </label>
  52          </td>
  53          <td>
  54              <input class="inputbox" type="text" name="title" id="title" size="30" maxlength="255" value="<?php echo $this->escape($this->row->title); ?>" />
  55              <?php echo JHTML::_('tooltip',  JText::_( 'A proper title for the Menu' ) ); ?>
  56          </td>
  57      </tr>
  58      <tr>
  59          <td width="100" >
  60              <label for="description">
  61                  <strong><?php echo JText::_( 'Description' ); ?>:</strong>
  62              </label>
  63          </td>
  64          <td>
  65              <input class="inputbox" type="text" name="description" id="description" size="30" maxlength="255" value="<?php echo $this->escape($this->row->description); ?>" />
  66              <?php echo JHTML::_('tooltip',  JText::_( 'A description for the Menu' ) ); ?>
  67          </td>
  68      </tr>
  69      <?php if ($this->isnew) : ?>
  70      <tr>
  71          <td width="100"  valign="top">
  72              <label for="module_title">
  73                  <strong><?php echo JText::_( 'Module Title' ); ?>:</strong>
  74              </label>
  75          </td>
  76          <td>
  77              <input class="inputbox" type="text" name="module_title" id="module_title" size="30" value="" />
  78              <?php echo JHTML::_('tooltip',  JText::_( 'TIPTITLEMAINMENUMODULEREQUIRED' ) ); ?>
  79          </td>
  80      </tr>
  81      <?php endif; ?>
  82  </table>
  83  
  84      <input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
  85      <input type="hidden" name="option" value="com_menus" />
  86      <input type="hidden" name="task" value="savemenu" />
  87      <?php echo JHTML::_( 'form.token' ); ?>
  88  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1