Roxen.git / server / modules / tags / configtablist.pike

version» Context lines:

Roxen.git/server/modules/tags/configtablist.pike:1:   /* -  * $Id: configtablist.pike,v 1.1 1997/08/22 23:16:03 grubba Exp $ +  * $Id: configtablist.pike,v 1.2 1997/08/26 19:37:01 grubba Exp $    *    * Makes a tab-list like the one in the config-interface.    *    * $Author: grubba $    */      #include <module.h>   inherit "module";   inherit "roxenlib";      /*    * Functions    */      array register_module()   {    return(({ MODULE_PARSER|MODULE_LOCATION, "Config tab-list",    "Adds some tags for making a config-interface " -  "look-alike tab-list.<br>\n", 0, 1 })); +  "look-alike tab-list.<br>\n" +  "Usage:<br>\n" +  "<ul><pre>&lt;config_tablist&gt;\n" +  "&lt;tab href=\"/tab1/\"&gt;Some text&lt;/tab&gt;\n" +  "&lt;tab href=\"/tab2/\"&gt;Some more text&lt;/tab&gt;\n" +  "&lt;tab href=\"a/strange/place/\"&gt;Tab 3&lt;/tab&gt;\n" +  "&lt;/config_tablist&gt;\n" +  "</pre></ul>Attributes for the &lt;tab&gt; tag:<br>\n" +  "<ul><table border=0>\n" +  "<tr><td><b>selected</b></td><td>Whether the tab is selected " +  "or not.</td></tr>\n" +  "<tr><td><b>alt</b></td><td>Alt-text for the image (default: " +  "\"_/\" + text + \"\\_\").</td></tr>\n" +  "<tr><td><b>border</b></td><td>Border for the image (default: " +  "0).</td></tr>\n" +  "</table></ul>\n", 0, 1 }));   }      void create()   {    defvar("location", "/configtabs/", "Mountpoint", TYPE_LOCATION|VAR_MORE,    "The URL-prefix for the buttons.");   }      string tag_config_tab(string t, mapping a, string contents)   {