Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Filter fields after choice in dropbox just before

phpMyEdit General     Filter fields after choice in dropbox just before
Post new topic   Reply to topic    
 
xleduff     Joined: 27 Jul 2005   Posts: 4  
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy