Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [calliope] Global for ENUM-field (checkboxes)

Quote Reply
Re: [calliope] Global for ENUM-field (checkboxes) In reply to
Aki, for select pull down menus I use this code in a global:

Code:
sub {
my ($select_db, $select_field, $select_default) = @_;
my $html = $DB->html ( [$select_db], $IN );
return $html->select ( { name => $select_field, value => $select_default });
}



I call the global with Database I want to use, Field, and default values. something like:
<%global(a,b,$c)%>
$c is the default value for the select (form)

The select it's a method of the html class or object or DB class/object (not sure of object oriented terminology sorry) So I guess the checkbox method should be implemented if not already there right? the point is: if It is SO EASY to display a select based on values entered in the admin, why can not be the above global used for displaying radio and checkboxes as well?
Subject Author Views Date
Thread Global for ENUM-field (checkboxes) calliope 9055 May 6, 2003, 6:59 AM
Thread Re: [calliope] Global for ENUM-field (checkboxes)
webmaster33 8846 May 7, 2003, 6:30 AM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Paul 8811 May 7, 2003, 7:06 AM
Thread Re: [Paul] Global for ENUM-field (checkboxes)
webmaster33 8785 May 7, 2003, 7:13 AM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Paul 8790 May 7, 2003, 7:57 AM
Thread Re: [Paul] Global for ENUM-field (checkboxes)
webmaster33 8822 May 7, 2003, 8:05 AM
Post Post deleted by calliope
calliope 8735 May 7, 2003, 8:28 AM
Post Re: [webmaster33] Global for ENUM-field (checkboxes)
calliope 8793 May 7, 2003, 8:34 AM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Paul 8810 May 7, 2003, 8:36 AM
Thread Re: [Paul] Global for ENUM-field (checkboxes)
calliope 8799 May 7, 2003, 9:59 AM
Thread Re: [calliope] Global for ENUM-field (checkboxes)
webmaster33 8740 May 7, 2003, 2:07 PM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
Aki 8778 May 8, 2003, 11:21 AM
Thread Re: [Aki] Global for ENUM-field (checkboxes)
webmaster33 8774 May 8, 2003, 3:02 PM
Thread Re: [webmaster33] Global for ENUM-field (checkboxes)
calliope 8699 May 8, 2003, 11:39 PM
Thread Re: [calliope] Global for ENUM-field (checkboxes)
jaltuve 8738 May 9, 2003, 10:38 AM
Thread Re: [jaltuve] Global for ENUM-field (checkboxes)
cwschroeder 8426 Jan 7, 2008, 5:30 AM
Post Re: [cwschroeder] Global for ENUM-field (checkboxes)
Andy 8445 Jan 7, 2008, 6:44 AM
Post Re: [Aki] Global for ENUM-field (checkboxes)
jaltuve 8676 May 9, 2003, 10:46 AM
Post Re: [calliope] Global for ENUM-field (checkboxes)
Paul 8718 May 7, 2003, 3:02 PM