Hi,
I'm actually make a website under XOOPS and I've got a prob with Catads module and more more particulary with the form of this module.
I want to modify this form to add checkbox like this :
I've declared all the vars and create this in MySQL tab like this :
CREATE TABLE `xoops_catads_ads` (
`ads_id` int(11) NOT NULL auto_increment,
`cat_id` int(11) NOT NULL default '0',
`ads_title` varchar(100) NOT NULL default '',
`ads_type` varchar(40) NOT NULL default '',
`ads_desc` text NOT NULL,
`price` int(11) NOT NULL default '0',
`price2` int(11) NOT NULL default '0',
`annee` int(11) NOT NULL default '0',
`monnaie` varchar(20) NOT NULL default '',
`price_option` varchar(40) NOT NULL default '',
`email` varchar(100) NOT NULL default '',
`uid` int(6) NOT NULL default '0',
`phone` varchar(20) NOT NULL default '',
`town` varchar(200) NOT NULL default '',
`codpost` varchar(25) NOT NULL default '',
`created` int(10) NOT NULL default '0',
`published` int(10) NOT NULL default '0',
`expired` int(10) NOT NULL default '0',
`view` tinyint(2) NOT NULL default '0',
`notify_pub` tinyint(1) NOT NULL default '0',
`poster_ip` varchar(20) NOT NULL default '',
`contact_mode` tinyint(1) NOT NULL default '0',
`countpub` tinyint(1) NOT NULL default '0',
`suspend` tinyint(1) NOT NULL default '0',
`waiting` tinyint(1) NOT NULL default '0',
`photo0` varchar(255) NOT NULL default '',
`photo1` varchar(255) NOT NULL default '',
`photo2` varchar(255) NOT NULL default '',
`photo3` varchar(255) NOT NULL default '',
`photo4` varchar(255) NOT NULL default '',
`photo5` varchar(255) NOT NULL default '',
`gps` int(1) NOT NULL default '0',
`clim` int(2) NOT NULL default '0',
`abs` int(1) NOT NULL default '0',
`esp` int(1) NOT NULL default '0',
`vitreselec` int(1) NOT NULL default '0',
`verrcentral` int(1) NOT NULL default '0',
`teleco` int(1) NOT NULL default '0',
`mainlibre` int(1) NOT NULL default '0',
`odb` int(1) NOT NULL default '0',
`peintmetal` int(1) NOT NULL default '0',
`radiocd` int(1) NOT NULL default '0',
`radiocass` int(1) NOT NULL default '0',
`toit` int(1) NOT NULL default '0',
`regvit` int(1) NOT NULL default '0',
`cuir` int(1) NOT NULL default '0',
`jantalu` int(1) NOT NULL default '0',
`boitoto` int(1) NOT NULL default '0',
PRIMARY KEY (`ads_id`),
KEY `price2` (`price2`)
) TYPE=MyISAM AUTO_INCREMENT=30 ;
The prob is that only the first checkbox (GPS) work. All others checkbox don't (no entry in database).
I think that my code in form is wrong but I don't find how to do.
Checkbox Form code :
$equip_tray = new XoopsFormCheckBox(_MD_CATADS_EQUIP, "gps", $gps);
$equip_tray->addOption(1, 'GPS');
$equip_tray->addOption(2, 'Climatisation');
$equip_tray->addOption(3, 'ABS');
$equip_tray->addOption(4, 'ESP');
$equip_tray->addOption(5, 'Vitr.Elec');
$equip_tray->addOption(6, 'Teleco');
$equip_tray->addOption(7, 'Clé Main Libre');
$equip_tray->addOption(8, 'Ord. de bord');
$equip_tray->addOption(9, 'Peint. Metal');
$equip_tray->addOption(10, 'Radio CD');
$equip_tray->addOption(11, 'Radio Cass');
$equip_tray->addOption(12, 'TO');
$equip_tray->addOption(13, 'Reg. Vites');
$equip_tray->addOption(14, 'Cuir');
$equip_tray->addOption(15, 'Jantes Alu');
$equip_tray->addOption(16, 'Boite Auto');
$adsform->addElement($equip_tray);
Somebody can help me please ?
Thank you.