includes/template.php
changeset 701 dd80cde96a6c
parent 699 c7d737202d59
child 704 077887be639d
equal deleted inserted replaced
700:491314c44d23 701:dd80cde96a6c
  1945    */
  1945    */
  1946    
  1946    
  1947   function username_field($name, $value = false)
  1947   function username_field($name, $value = false)
  1948   {
  1948   {
  1949     $randomid = md5( time() . microtime() . mt_rand() );
  1949     $randomid = md5( time() . microtime() . mt_rand() );
  1950     $text = '<input name="'.$name.'" onkeyup="new AutofillUsername(this);" type="text" size="30" id="userfield_'.$randomid.'" autocomplete="off"';
  1950     $text = '<input name="'.$name.'" class="autofill username" type="text" size="30" id="userfield_'.$randomid.'" autocomplete="off"';
  1951     if($value) $text .= ' value="'.$value.'"';
  1951     if($value) $text .= ' value="'.$value.'"';
  1952     $text .= ' />';
  1952     $text .= ' />';
  1953     return $text;
  1953     return $text;
  1954   }
  1954   }
  1955   
  1955   
  1960    */
  1960    */
  1961    
  1961    
  1962   function pagename_field($name, $value = false)
  1962   function pagename_field($name, $value = false)
  1963   {
  1963   {
  1964     $randomid = md5( time() . microtime() . mt_rand() );
  1964     $randomid = md5( time() . microtime() . mt_rand() );
  1965     $text = '<input name="'.$name.'" onkeyup="new AutofillPage(this);" type="text" size="30" id="pagefield_'.$randomid.'" autocomplete="off"';
  1965     $text = '<input name="'.$name.'" class="autofill page" type="text" size="30" id="pagefield_'.$randomid.'" autocomplete="off"';
  1966     if($value) $text .= ' value="'.$value.'"';
  1966     if($value) $text .= ' value="'.$value.'"';
  1967     $text .= ' />';
  1967     $text .= ' />';
  1968     return $text;
  1968     return $text;
  1969   }
  1969   }
  1970   
  1970