| verzia 1.15, 2003/02/07 12:36:25 |
verzia 1.16, 2003/03/29 01:33:02 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.14 2003/01/26 12:37:21 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.15 2003/02/07 12:36:25 nepto Exp $ --> |
| |
|
| <!-- Categories: |
<!-- Categories: |
| |
|
| Riadok 30 the array for a column named 'topic': |
|
| Riadok 30 the array for a column named 'topic': |
|
| <example><title>Basic field definition</title> |
<example><title>Basic field definition</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['topic'] = array( |
$opts['fdd']['topic'] = array( |
| 'name'=>'Topic', |
'name' => 'Topic', |
| 'select'=>'T', |
'select' => 'T', |
| 'type'=>'string', |
'maxlen' => 100, |
| 'maxlen'=>100, |
'nowrap' => false, |
| 'nowrap'=>false, |
'required' => true, |
| 'required'=>true, |
'sort' => true |
| 'sort'=>true |
|
| ); |
); |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| Riadok 124 $opts['fdd']['topic']['name'] = 'Subject |
|
| Riadok 123 $opts['fdd']['topic']['name'] = 'Subject |
|
| |
|
| </para> |
</para> |
| |
|
| |
<!-- |
| <bridgehead id="configuration.type">Field type</bridgehead> |
<bridgehead id="configuration.type">Field type</bridgehead> |
| <para> |
<para> |
| |
|
| Riadok 134 changed. Type 'int' is most common as th |
|
| Riadok 134 changed. Type 'int' is most common as th |
|
| integer value. |
integer value. |
| |
|
| </para> |
</para> |
| |
--> |
| |
|
| <bridgehead id="configuration.fields.select">Selection boxes</bridgehead> |
<bridgehead id="configuration.fields.select">Selection boxes</bridgehead> |
| <para> |
<para> |
| |
|
| Specify field input type as text box, drop-down selection, or multiple |
Specify field input type as text box, numeric comparsion text box, drop-down |
| selection. The same input type will be used also for table filtering. |
selection, or multiple selection. The same input type will be used also for |
| If a column is of type SET, ['select'] is automatically 'M'. |
table filtering. |
| |
|
| <example><title>Filter selections</title> |
<example><title>Filter selections</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['col_name']['select'] = 'T'; // text |
$opts['fdd']['col_name']['select'] = 'T'; // text box |
| |
$opts['fdd']['col_name']['select'] = 'N'; // numeric |
| $opts['fdd']['col_name']['select'] = 'D'; // drop down |
$opts['fdd']['col_name']['select'] = 'D'; // drop down |
| $opts['fdd']['col_name']['select'] = 'M'; // multiple selection |
$opts['fdd']['col_name']['select'] = 'M'; // multiple selection |
| ]]></programlisting> |
]]></programlisting> |
| Riadok 282 $opts['fdd']['col_name']['values'] = ran |
|
| Riadok 284 $opts['fdd']['col_name']['values'] = ran |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
<!-- |
| <para> |
<para> |
| |
|
| If a column type is SET or ENUM, the specified values will be available in a |
If a column type is SET or ENUM, the specified values will be available in a |
| multiple selection box in certain display modes (add, change, etc.). |
multiple selection box in certain display modes (add, change, etc.). |
| |
|
| </para> |
</para> |
| |
--> |
| |
|
| <bridgehead>Table lookup</bridgehead> |
<bridgehead>Table lookup</bridgehead> |
| <para> |
<para> |