[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_user/views/user/tmpl/ -> form.php (source)

   1  <?php // no direct access
   2  defined('_JEXEC') or die('Restricted access'); ?>
   3  
   4  <script type="text/javascript">
   5  <!--
   6      Window.onDomReady(function(){
   7          document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); }    );
   8      });
   9  // -->
  10  </script>
  11  
  12  <form action="<?php echo JRoute::_( 'index.php' ); ?>" method="post" name="userform" autocomplete="off" class="form-validate">
  13  <?php if ( $this->params->def( 'show_page_title', 1 ) ) : ?>
  14      <div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  15          <?php echo $this->escape($this->params->get('page_title')); ?>
  16      </div>
  17  <?php endif; ?>
  18  <table cellpadding="5" cellspacing="0" border="0" width="100%">
  19  <tr>
  20      <td>
  21          <label for="username">
  22              <?php echo JText::_( 'User Name' ); ?>:
  23          </label>
  24      </td>
  25      <td>
  26          <span><?php echo $this->user->get('username');?></span>
  27      </td>
  28  </tr>
  29  <tr>
  30      <td width="120">
  31          <label for="name">
  32              <?php echo JText::_( 'Your Name' ); ?>:
  33          </label>
  34      </td>
  35      <td>
  36          <input class="inputbox required" type="text" id="name" name="name" value="<?php echo $this->escape($this->user->get('name'));?>" size="40" />
  37      </td>
  38  </tr>
  39  <tr>
  40      <td>
  41          <label for="email">
  42              <?php echo JText::_( 'email' ); ?>:
  43          </label>
  44      </td>
  45      <td>
  46          <input class="inputbox required validate-email" type="text" id="email" name="email" value="<?php echo $this->escape($this->user->get('email'));?>" size="40" />
  47      </td>
  48  </tr>
  49  <?php if($this->user->get('password')) : ?>
  50  <tr>
  51      <td>
  52          <label for="password">
  53              <?php echo JText::_( 'Password' ); ?>:
  54          </label>
  55      </td>
  56      <td>
  57          <input class="inputbox validate-password" type="password" id="password" name="password" value="" size="40" />
  58      </td>
  59  </tr>
  60  <tr>
  61      <td>
  62          <label for="password2">
  63              <?php echo JText::_( 'Verify Password' ); ?>:
  64          </label>
  65      </td>
  66      <td>
  67          <input class="inputbox validate-passverify" type="password" id="password2" name="password2" size="40" />
  68      </td>
  69  </tr>
  70  <?php endif; ?>
  71  </table>
  72  <?php if(isset($this->params)) :  echo $this->params->render( 'params' ); endif; ?>
  73      <button class="button validate" type="submit" onclick="submitbutton( this.form );return false;"><?php echo JText::_('Save'); ?></button>
  74  
  75      <input type="hidden" name="username" value="<?php echo $this->user->get('username');?>" />
  76      <input type="hidden" name="id" value="<?php echo $this->user->get('id');?>" />
  77      <input type="hidden" name="gid" value="<?php echo $this->user->get('gid');?>" />
  78      <input type="hidden" name="option" value="com_user" />
  79      <input type="hidden" name="task" value="save" />
  80      <?php echo JHTML::_( 'form.token' ); ?>
  81  </form>


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