| verzia 1.4, 2002/12/06 23:13:21 |
verzia 1.5, 2002/12/11 23:36:52 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.3 2002/12/03 21:05:51 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.4 2002/12/06 23:13:21 nepto Exp $ --> |
| |
|
| <!-- Categories: |
<!-- Categories: |
| |
|
| Riadok 42 $opts['fdd']['topic'] = array( |
|
| Riadok 42 $opts['fdd']['topic'] = array( |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
|
| |
<!-- DEPRECATED |
| |
|
| <para> |
<para> |
| |
|
| If the column is an auto-incremented record id, add the following option below |
If the column is an auto-incremented record id, add the following option below |
| Riadok 58 $opts['fdd']['col_name']['options'] = 'R |
|
| Riadok 61 $opts['fdd']['col_name']['options'] = 'R |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
--> |
| </sect1> |
</sect1> |
| |
|
| <sect1 id="configuration.basic-options"> |
<sect1 id="configuration.basic-options"> |
| Riadok 148 change, delete, list) are: |
|
| Riadok 152 change, delete, list) are: |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| <example><title>Another display options</title> |
<example><title>Other display options</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['col_name']['options'] = 'H'; // hidden field |
$opts['fdd']['col_name']['options'] = 'H'; // hidden field |
| $opts['fdd']['col_name']['options'] = 'P'; // password field |
$opts['fdd']['col_name']['options'] = 'P'; // password field |
| Riadok 231 $opts['fdd']['col_name']['strip_tags'] = |
|
| Riadok 235 $opts['fdd']['col_name']['strip_tags'] = |
|
| <para> |
<para> |
| |
|
| You can restrict user input for selected fields to selected values. There are |
You can restrict user input for selected fields to selected values. There are |
| several ways how to do it. All from them will be written in following section. |
several ways to do this. A variety of methods and examples appear below. |
| |
|
| </para> |
</para> |
| |
|
| Riadok 258 $opts['fdd']['col_name']['values'] = ran |
|
| Riadok 262 $opts['fdd']['col_name']['values'] = ran |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| If a column is either SET or ENUM type, then the values are put in by |
If a column type is SET or ENUM, the specified values will be available in a |
| <filename>phpMyEditSetup.php</filename> script. |
multiple selection box in certain display modes (add, change, etc.). |
| |
|
| </para> |
</para> |
| </sect2> |
</sect2> |
| Riadok 271 Variables <varname>$opts['fdd']['col_nam |
|
| Riadok 275 Variables <varname>$opts['fdd']['col_nam |
|
| <varname>$opts['fdd']['col_name']['values']['column']</varname> restricts user |
<varname>$opts['fdd']['col_name']['values']['column']</varname> restricts user |
| input to the values found in the specified column of another table. The |
input to the values found in the specified column of another table. The |
| optional <varname>['values']['description']</varname> field allows the values |
optional <varname>['values']['description']</varname> field allows the values |
| displayed to the user to be different to those in the |
displayed to the user to be different from those in the |
| <varname>['values']['column']</varname> field. This is useful for giving more |
<varname>['values']['column']</varname> field. This is useful for giving more |
| meaning to column values. |
meaning to column values. |
| |
|
| Riadok 288 $opts['fdd']['col_name']['values']['desc |
|
| Riadok 292 $opts['fdd']['col_name']['values']['desc |
|
| <sect2><title>Column joining</title> |
<sect2><title>Column joining</title> |
| <para> |
<para> |
| |
|
| It is also possible to have multiple fields in your description. For example to |
It is also possible to have multiple fields in your description. For example, |
| have two ones: |
to concatenate two description labels found in a different table: |
| |
|
| <example><title>Advanced table lookup</title> |
<example><title>Advanced table lookup</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| Riadok 323 $opts['fdd']['col_name']['values']['orde |
|
| Riadok 327 $opts['fdd']['col_name']['values']['orde |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| Note that example above also contains another additional features, such as |
Note that the above example contains additional features, such as filtering |
| filtering values using <varname>['filters']</varname>, or ordering values using |
values using <varname>['filters']</>, and ordering values using |
| <varname>['orderby']</varname>. |
<varname>['orderby']</>. |
| |
|
| </para> |
</para> |
| </sect2> |
</sect2> |
|
|
| <title id="configuration.nowrap.title">Wrapping</title> |
<title id="configuration.nowrap.title">Wrapping</title> |
| <para> |
<para> |
| |
|
| The 'nowrap' option essentially equivalent to the HTML markup <td nowrap>. |
The 'nowrap' option is essentially equivalent to the HTML markup <td nowrap>. |
| |
|
| <example><title>Wrapping</title> |
<example><title>Wrapping</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| Riadok 468 $opts['fdd']['col_name']['nowrap'] = fal |
|
| Riadok 472 $opts['fdd']['col_name']['nowrap'] = fal |
|
| <title id="configuration.mask.title">Print mask</title> |
<title id="configuration.mask.title">Print mask</title> |
| <para> |
<para> |
| |
|
| A string that is used by sprintf() to format field output. |
A string that is used by <function>sprintf()</function> to format field output. |
| |
For more information about this function usage, please refer to particular |
| |
<ulink url="http://www.php.net/manual/">page</> of PHP documentation. |
| |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| <example><title>Print mask field definition</title> |
<example><title>Print mask field definition</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['col_name']['mask'] = ''; |
$opts['fdd']['col_name']['mask'] = '%%'; // a literal percent character |
| |
$opts['fdd']['col_name']['mask'] = '%01.2f'; // currency or floating-point number |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| |
|
| Riadok 570 To open a link in a new web browser wind |
|
| Riadok 577 To open a link in a new web browser wind |
|
| |
|
| <example><title>URL target example</title> |
<example><title>URL target example</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['col_name']['URLtarget'] ='_blank'; |
$opts['fdd']['col_name']['URLtarget'] = '_blank'; |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| |
|
| Riadok 581 To display alternative link text use: |
|
| Riadok 588 To display alternative link text use: |
|
| |
|
| <example><title>URL display example</title> |
<example><title>URL display example</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['col_name']['URL']['URLdisp'] = 'Launch Page'; |
$opts['fdd']['col_name']['URLdisp'] = 'Launch Page'; |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| |
|
| Riadok 592 Old 3.5 behaviour is also supported via |
|
| Riadok 599 Old 3.5 behaviour is also supported via |
|
| will prepend string before. Variable <varname>['URLpostfix']</varname> similary |
will prepend string before. Variable <varname>['URLpostfix']</varname> similary |
| to <varname>['URLprefix']</varname> will append string after. |
to <varname>['URLprefix']</varname> will append string after. |
| |
|
| |
<example><title>Old 3.5 URL behaviour</title> |
| |
<programlisting><![CDATA[ |
| |
$opts['fdd']['col_name']['URLprefix'] = 'http://'; |
| |
$opts['fdd']['col_name']['URLprefix'] = 'mailto:'; |
| |
]]></programlisting> |
| |
</example> |
| |
|
| </para> |
</para> |
| </sect1> |
</sect1> |
| |
|