includes/template.php
changeset 184 d74ff822acc9
parent 174 4c5c2b66a34d
child 187 9dbbec5e6096
child 189 fd0e9c7a7b28
equal deleted inserted replaced
183:91127e62f38f 184:d74ff822acc9
  1409    */
  1409    */
  1410    
  1410    
  1411   function username_field($name, $value = false)
  1411   function username_field($name, $value = false)
  1412   {
  1412   {
  1413     $randomid = md5( time() . microtime() . mt_rand() );
  1413     $randomid = md5( time() . microtime() . mt_rand() );
  1414     $text = '<input name="'.$name.'" onkeyup="ajaxUserNameComplete(this)" autocomplete="off" type="text" size="30" id="userfield_'.$randomid.'"';
  1414     $text = '<input name="'.$name.'" onkeyup="new AutofillUsername(this);" autocomplete="off" type="text" size="30" id="userfield_'.$randomid.'"';
  1415     if($value) $text .= ' value="'.$value.'"';
  1415     if($value) $text .= ' value="'.$value.'"';
  1416     $text .= ' />';
  1416     $text .= ' />';
  1417     return $text;
  1417     return $text;
  1418   }
  1418   }
  1419   
  1419