Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Use of value2 array

phpMyEdit Configuration     Use of value2 array
Odoslať novú tému   Odpovedať na tému    
 
paul.mac     Založený: 26.08.2008   Príspevky: 5  
Príspevok Zaslal: 2008-08-27 16:24
Návrat hore  Odpovedať s citátom     

Hi,

I've used the value2 array to define a drop down selection for a field in a database as follows:

$opts['fdd']['raci1']['values2'] = array(
'' => 'Please select...',
'R' => 'Responsible',
'A' => 'Accountable',
'C' => 'Consult',
'I' => 'Inform');

However sometimes I want it to display the full word (view single record) and other times I want it to display just the single character (view full database) that gets stored in the database, also when the row of data gets displayed in View mode I want it to display the the full word except when it is 'Please select...' when I want it to display a blank cell.

How do I do this?

Thanks

Paul

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov