Reference

Slash::Utility::Display(3pm)

Slash::Utility::Display - SHORT DESCRIPTION for Slash

        use Slash::Utility;
        # do not use this module directly

LONG DESCRIPTION.
createSelect(LABEL, DATA [, DEFAULT, RETURN, NSORT, ORDERED]) Creates a drop-down list in HTML. List is sorted by default alphabetically according to list values. The name for the HTML entity. A hashref containing key-value pairs for the list. Keys are list values, and values are list labels. If an arrayref is passed, it is converted to a hashref, where the keys and values are the same. Default value for the list. See "Return value" below. Sort numerically, not alphabetically. If an arrayref is passed, an already-sorted array reference of keys. If non-ref, then an arrayref of hash keys is created sorting the hash values, alphabetically and case-insensitively. If ORDERED is passed in either form, then the NSORT parameter is ignored. If RETURN is true, the text of the list is returned. Otherwise, list is just printed, and returns true/false if operation is successful.

If there are no elements in DATA, just returns/prints nothing. The 'select' template block.
selectTopic(LABEL [, DEFAULT, SECTION, RETURN]) Creates a drop-down list of topics in HTML. Calls "createSelect". The name for the HTML entity. Default topic for the list. Default section to take topics from. See "Return value" below. If RETURN is true, the text of the list is returned. Otherwise, list is just printed, and returns true/false if operation is successful.
selectSection(LABEL [, DEFAULT, SECT, RETURN, ALL]) Creates a drop-down list of sections in HTML. Calls "createSelect". The name for the HTML entity. Default topic for the list. Hashref for current section. If SECT->{isolate} is true, list is not created, but hidden value is returned instead. See "Return value" below. Boolean for including "All Topics" item. If RETURN is true, the text of the list is returned. Otherwise, list is just printed, and returns true/false if operation is successful. The 'sectionisolate' template block.
selectSortcode() Creates a drop-down list of sortcodes in HTML. Default is the user's preference. Calls "createSelect". The created list.
selectMode() Creates a drop-down list of modes in HTML. Default is the user's preference. Calls "createSelect". The created list.
selectThreshold(COUNTS) Creates a drop-down list of thresholds in HTML. Default is the user's preference. Calls "createSelect". An arrayref of thresholds -> counts for that threshold. The created list. The 'selectThreshLabel' template block.
linkStory(STORY) The generic "Link a Story" function, used wherever stories need linking. A hashref containing data about a story to be linked to. The complete <A HREF ...></A> text for linking to the story. The 'linkStory' template block.
pollbooth(QID [, NO_TABLE, CENTER]) Creates a voting pollbooth. The unique question ID for the poll. Boolean for whether to leave the poll out of a table. If false, then will be formatted inside a "fancybox". Whether or not to center the tabled pollbooth (only works with NO_TABLE). Returns the pollbooth data. The 'pollbooth' template block.
currentAdminUsers() Displays table of current admin users, with what they are adminning. The HTML to display. The 'currentAdminUsers' template block.
horizmenu() Silly little function to create a horizontal menu from the 'mainmenu' block. The horizontal menu. The 'mainmenu' template block.
titlebar(WIDTH, TITLE) Prints a titlebar widget. Deprecated; exactly equivalent to:

        slashDisplay('titlebar', {
                width   => $width,
                title   => $title
        });

Width of the titlebar. Title of the titlebar. None. The 'titlebar' template block.
fancybox(WIDTH, TITLE, CONTENTS [, CENTER, RETURN]) Creates a fancybox widget. Width of the fancybox. Title of the fancybox. Contents of the fancybox. (I see a pattern here.) Boolean for whether or not the fancybox should be centered. Boolean for whether to return or print the fancybox. The fancybox if RETURN is true, or true/false on success/failure. The 'fancybox' template block.
portalbox(WIDTH, TITLE, CONTENTS, BID [, URL]) Creates a portalbox widget. Calls "fancybox" to process the box itself. Width of the portalbox. Title of the portalbox. Contents of the portalbox. The block ID for the portal in question. URL to link the title of the portalbox to. The portalbox. The 'fancybox', 'portalboxtitle', and 'portalmap' template blocks.
linkCommentPages(SID, PID, CID, TOTAL) Print links to pages for additional comments. Story ID. Parent ID. Comment ID. Total number of comments. Links. The 'linkCommentPages' template block.
linkComment(COMMENT [, PRINTCOMMENT, DATE]) Print a link to a comment. A hashref containing data about the comment. Boolean for whether to create link directly to comment, instead of to the story for that comment. Boolean for whather to print date with link. Link for comment. The 'linkComment' template block.
createMenu(MENU) Creates a menu. The name of the menu to get. The menu. The template blocks 'admin', 'user' (in the 'menu' page), and any other template blocks for menus, along with all the data in the 'menus' table. Slash(3), Slash::Utility(3). $Id: Display.pm,v 1.1.2.33 2001/10/18 02:31:09 pudge Exp $

History