Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Scoop Box Exchange - Show Box: sections_select 1.00

Author: bittondb [Info]

Description:

Creates a select box of all sections. It will also select the proper option for which section the user is in.

Box Code:

my $content;

$content = "<SELECT name=\"section\">\n";

foreach ( keys %{$S->{SECTION_DATA}} ) {

my $section = $S->{CGI}->param('section');

$content .= "<option value=\"${$S->{SECTION_DATA}}{$_}->{section}\"";
if(${$S->{SECTION_DATA}}{$_}->{section} eq $section) { $content .= " selected" };
$content .= ">";
$content .= ${$S->{SECTION_DATA}}{$_}->{title};
$content .= "<\/option>\n";
}

$content .= "<\/SELECT>\n";


return $content;
Display: Sort:
Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
Smokedot
It's 4:19... do you know where your bong is?

Login
Make a new account
Username:
Password:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search