View/Edit #331:_render_page

Switch to edit mode.

Name(s): _render_page
1:  "*** DON'T TOUCH THIS CODE *** AUTOMATICALLY GENERATED ***"
2:  caller == this || raise(E_PERM)
3:  if (prepstr == "/sidebar")
4:    return this:tell_www_sidebar()
5:  endif
6:  player:tell("<!DOCTYPE HTML PUBLIC \"", this.www_doctype_fpi, "\" \"", this.www_doctype_uri, "\">")
7:  player:tell("<HTML><HEAD>")
8:  this:tell_www_head(@args)
9:  player:tell({"<link REL=\"icon\" HREF=\"/favicon.ico\" TYPE=\"image/x-ico\">", "<link REL=\"SHORTCUT ICON\" HREF=\"/favicon.ico\">", "<SCRIPT LANGUAGE=\"JavaScript\">", "<!--", "function addNetscapePanel() {", "  if ((typeof window.sidebar == \"object\") && (typeof window.sidebar.addPanel == \"function\"))"})
10: player:tell("  {  window.sidebar.addPanel(\"Search moo.ca\", \"", $www.url, "search/sidebar\", \"\"); }")
11: player:tell({"  else", "  { var rv = window.confirm(\"You must use Netscape 6 or Mozilla to use this function.\" + \"Would you like to visit http://www.mozilla.org/ ?\");", "    if (rv) { document.location.href = \"http://www.mozilla.org/\"; }", "  }", "}", "//-->", "</SCRIPT>", "</HEAD>", ""})
12: player:tell("<BODY ", this.www_body_args, ">")
13: player:tell("<CENTER>")
14: player:tell($html_utils:tabbar(1, "Search", "/search", "Grep", "/grep", "Tree", "/tree", "Audit", "/audit", "Names", "/names"))
15: player:tell("</CENTER>")
16: player:tell("<IMG SRC=\"", $www.fileURL, "/pics/mc_search.jpg\" ALIGN=\"right\" WIDTH=210 HEIGHT=127 ALT=\"[Search icon]\">")
17: player:tell({"<H2>Search by Name</H2>", "", "Search for a player, room or other object by its name.<P>"})
18: caller == this || raise(E_PERM)
19: set_task_perms(player.user)
20: data = $su:trim($www:parse_GET("data") || "")
21: mode = $www:parse_GET("mode")
22: if (data && mode)
23:   if (mode == "players")
24:     this:search_players(data)
25:   elseif (mode == "rooms")
26:     this:search_rooms(data)
27:   elseif (mode == "objects")
28:     this:search_objects(data)
29:   else
30:     raise(E_INVARG, mode)
31:   endif
32: else
33:   data = ""
34:   mode || (mode = "players")
35: endif
36: player:tell({"", "<FORM><CENTER>Search for:<BR>"})
37: player:tell($html_utils:input_text("data", data, 16), "<BR>")
38: player:tell("<INPUT NAME=\"mode\" TYPE=\"radio\" VALUE=\"players\"", mode == "players" ? " CHECKED>" | ">", "players")
39: player:tell("<INPUT NAME=\"mode\" TYPE=\"radio\" VALUE=\"rooms\"", mode == "rooms" ? " CHECKED>" | ">", "rooms")
40: player:tell("<INPUT NAME=\"mode\" TYPE=\"radio\" VALUE=\"objects\"", mode == "objects" ? " CHECKED>" | ">", "all objects")
41: player:tell({"<P><INPUT TYPE=\"submit\" VALUE=\"Search!\"></CENTER>", "</FORM>"})
42: if (index(player.user_agent, "Mozilla"))
43:   player:tell("<P>Add <A HREF=\"javascript:addNetscapePanel();\">this search function</A> to your Mozilla/Netscape 6 sidebar.")
44: endif
45: this:tell_www_tail(@args)
46: player:tell("</BODY></HTML>")
47: "Last modified by Dax (#789) on Sun Jul 10 11:53:31 2005 MDT."

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

You are not logged in.

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