includes/template.php
changeset 174 d74ff822acc9
parent 170 4c5c2b66a34d
child 178 fd0e9c7a7b28
equal deleted inserted replaced
173:91127e62f38f 174: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