| Index
» Projects
» phpMyEdit
» Forum
» Filter fields after choice in dropbox just before |
 |
xleduff
Joined: 27 Jul 2005
Posts: 4
Posted: 2005-07-27 11:26
Back to top
Reply with quote
|
Hi,
i try to filter a fields after a choice in
select box just before.
I have a table named 'pret' with fields :
CREATE TABLE `pret` (
`pret_id` bigint(20) NOT NULL auto_increment,
`pret_date` varchar(12) NOT NULL default '',
`pret_mat` varchar(10) NOT NULL default '',
`pret_sect_o` varchar(6) NOT NULL default '',
`pret_sect_d` varchar(6) NOT NULL default '',
`pret_temps` varchar(8) NOT NULL default '',
`pret_mvt` varchar(6) NOT NULL default '',
PRIMARY KEY (`pret_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
after i have this config in PHPMYEDIT 5.4 :
$opts['fdd']['pret_mat'] = array(
'name' => 'Employé',
'select' => 'T',
'maxlen' => 10,
'required' => true,
'sort' => true
);
// Complement pret_mat
$opts['fdd']['pret_mat']['values']['table'] = 'employe';
$opts['fdd']['pret_mat']['values']['column'] = 'employe_mat';
$opts['fdd']['pret_mat']['values']['description']['columns'][0] = 'employe_nom';
$opts['fdd']['pret_mat']['values']['description']['divs'][0] = ', ';
$opts['fdd']['pret_mat']['values']['description']['columns'][1] = 'employe_prenom';
$opts['fdd']['pret_mat']['values']['description']['divs'][1] = ' ( ';
$opts['fdd']['pret_mat']['values']['description']['columns'][2] = 'employe_mat';
$opts['fdd']['pret_mat']['values']['description']['divs'][2] = ' ) ';
$opts['fdd']['pret_mat']['values']['description']['columns'][3] = 'employe_section_o';
$opts['fdd']['pret_sect_o'] = array(
'name' => 'Section d origine',
'select' => 'T',
'maxlen' => 6,
'required' => false,
'sort' => true,
);
I would like to filter the display of 'pret_sect_o' depending on the choice in 'pret_mat' just before.
Thank for your help. I trying to find the solution in forum, but i don't success.
|
|
Post new topic
Reply to topic
|
|
|
|