View/Edit #310:who_form

Switch to edit mode.

Name(s): who_form
1:  "Returns an HTML form which selects whom to audit."
2:  {?who = player.user} = args
3:  max_list = 20
4:  if (who == $no_one)
5:    who = ""
6:  else
7:    who = who.name
8:  endif
9:  text = "<FORM ACTION='/audit'>"
10: if (length(players()) <= max_list)
11:   players = {}
12:   for dude in (players())
13:     players = {@players, dude.name}
14:   endfor
15:   players = $list_utils:sort(players)
16:   text = text + $html_utils:input_select("isindex", players, who)
17: else
18:   text = text + $html_utils:input_text("isindex", who)
19: endif
20: text = text + " <INPUT TYPE='submit' VALUE='Audit!'>"
21: text = text + "</FORM>"
22: return text
23: "Last modified by Dax (#789) on Thu Sep 26 07:15:20 2002 MDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Hacker (#60)

You are not logged in.

[home | help | who | search | setup | code]