includes/template.php
changeset 704 077887be639d
parent 701 dd80cde96a6c
child 708 162763d69256
equal deleted inserted replaced
703:e492511e31ea 704:077887be639d
  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.'" class="autofill username" type="text" size="30" id="userfield_'.$randomid.'" autocomplete="off"';
  1950     $text = '<input name="'.$name.'" class="autofill username" onkeyup="new AutofillUsername(this);" 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.'" class="autofill page" type="text" size="30" id="pagefield_'.$randomid.'" autocomplete="off"';
  1965     $text = '<input name="'.$name.'" class="autofill page" onkeyup="new AutofillPage(this);" 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