View/Edit #331!description

File name: description
<%
if (prepstr == "/sidebar")
  return this:tell_www_sidebar();
endif
%>
<!DOCTYPE HTML PUBLIC "<%=this.www_doctype_fpi%>" "<%=this.www_doctype_uri%>">
<HTML><HEAD>
<%this:tell_www_head(@args);%>
<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"))
  {  window.sidebar.addPanel("Search moo.ca", "<%=$www.url%>search/sidebar", ""); }
  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>

<BODY <%=this.www_body_args%>>
<CENTER>
<%=$html_utils:tabbar(1, "Search", "/search", "Grep", "/grep", "Tree", "/tree", "Audit", "/audit", "Names", "/names")%>
</CENTER>
<IMG SRC="<%=$www.fileURL%>/pics/mc_search.jpg" ALIGN="right" WIDTH=210 HEIGHT=127 ALT="[Search icon]">
<H2>Search by Name</H2>

Search for a player, room or other object by its name.<P>
<%
caller == this || raise(E_PERM);
set_task_perms(player.user);
data = $su:trim($www:parse_GET("data") || "");
mode = $www:parse_GET("mode");
if (data && mode)
  if (mode == "players")
    this:search_players(data);
  elseif (mode == "rooms")
    this:search_rooms(data);
  elseif (mode == "objects")
    this:search_objects(data);
  else
    raise(E_INVARG, mode);
  endif
else
  data = "";
  mode || (mode = "players");
endif
%>

<FORM><CENTER>Search for:<BR>
<%=$html_utils:input_text("data", data, 16)%><BR>
<INPUT NAME="mode" TYPE="radio" VALUE="players"<%=mode == "players" ? " CHECKED>" | ">"%>players
<INPUT NAME="mode" TYPE="radio" VALUE="rooms"<%=mode == "rooms" ? " CHECKED>" | ">"%>rooms
<INPUT NAME="mode" TYPE="radio" VALUE="objects"<%=mode == "objects" ? " CHECKED>" | ">"%>all objects
<P><INPUT TYPE="submit" VALUE="Search!"></CENTER>
</FORM>
<% if (index(player.user_agent, "Mozilla"))
     player:tell("<P>Add <A HREF=\"javascript:addNetscapePanel();\">this search function</A> to your Mozilla/Netscape 6 sidebar.");
   endif %>
<% this:tell_www_tail(@args); %>
</BODY></HTML>
<!-- Last modified by Dax (#789) on Sun Jul 10 11:53:31 2005 MDT. -->

http://files.moo.ca:8081/3/3/1/description
Size: 2,315 bytes.
File perms: Readable


You are not logged in.

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