| verzia 1.14, 2003/01/26 12:37:21 |
verzia 1.15, 2003/02/07 12:36:25 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.13 2003/01/04 09:56:04 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.14 2003/01/26 12:37:21 nepto Exp $ --> |
| |
|
| <!-- Categories: |
<!-- Categories: |
| |
|
| Riadok 105 $opts['fdd']['col_name']['options'] = 'R |
|
| Riadok 105 $opts['fdd']['col_name']['options'] = 'R |
|
| <sect1 id="configuration.basic-options"> |
<sect1 id="configuration.basic-options"> |
| <title id="configuration.basic-options.title">Basic options</title> |
<title id="configuration.basic-options.title">Basic options</title> |
| |
|
| <sect2 id="configuration.name"> |
<bridgehead id="configuration.name">Field name</bridgehead> |
| <title id="configuration.name.title">Field name</title> |
|
| <para> |
<para> |
| |
|
| When the MySQL column name is not appropriate for display as the title of the |
When the MySQL column name is not appropriate for display as the title of the |
| Riadok 124 $opts['fdd']['topic']['name'] = 'Subject |
|
| Riadok 123 $opts['fdd']['topic']['name'] = 'Subject |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.type"> |
<bridgehead id="configuration.type">Field type</bridgehead> |
| <title id="configuration.type.title">Field type</title> |
|
| <para> |
<para> |
| |
|
| This <varname>$opts['fdd']['col_name']['type']</varname> is generated by |
This <varname>$opts['fdd']['col_name']['type']</varname> is generated by |
| Riadok 137 changed. Type 'int' is most common as th |
|
| Riadok 134 changed. Type 'int' is most common as th |
|
| integer value. |
integer value. |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.fields.select"> |
<bridgehead id="configuration.fields.select">Selection boxes</bridgehead> |
| <title id="configuration.fields.select.title">Selection boxes</title> |
|
| <para> |
<para> |
| |
|
| Specify field input type as text box, drop-down selection, or multiple |
Specify field input type as text box, drop-down selection, or multiple |
| Riadok 156 $opts['fdd']['col_name']['select'] = 'M' |
|
| Riadok 151 $opts['fdd']['col_name']['select'] = 'M' |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.options"> |
<bridgehead id="configuration.options">Display options</bridgehead> |
| <title id="configuration.options.title">Display options</title> |
|
| <para> |
<para> |
| |
|
| An optional parameter to control whether a field is displayed in the add, |
An optional parameter to control whether a field is displayed in the add, |
| Riadok 199 $opts['fdd']['col_name']['options'] = 'R |
|
| Riadok 192 $opts['fdd']['col_name']['options'] = 'R |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| </sect1> |
</sect1> |
| |
|
| Riadok 212 All variables in following section shoul |
|
| Riadok 204 All variables in following section shoul |
|
| |
|
| </para> |
</para> |
| |
|
| <sect2 id="configuration.required"> |
<bridgehead id="configuration.required">Required fields</bridgehead> |
| <title id="configuration.required.title">Required fields</title> |
|
| <para> |
<para> |
| |
|
| By default, JavaScript will be generated to prevent null entries by the user. If |
By default, JavaScript will be generated to prevent null entries by the user. If |
| Riadok 228 $opts['fdd']['col_name']['required'] = f |
|
| Riadok 219 $opts['fdd']['col_name']['required'] = f |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.fields.sorting"> |
<bridgehead id="configuration.fields.sorting">Sorting</bridgehead> |
| <title id="configuration.fields.sorting.title">Sorting</title> |
|
| <para> |
<para> |
| |
|
| Allow users to sort the display on this column. Use "true" for enable, "false" |
Allow users to sort the display on this column. Use "true" for enable, "false" |
| Riadok 245 $opts['fdd']['col_name']['sort'] = false |
|
| Riadok 234 $opts['fdd']['col_name']['sort'] = false |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.fields.strip-tags"> |
<bridgehead id="configuration.fields.strip-tags">Striping tags</bridgehead> |
| <title id="configuration.fields.strip-tags.title">Striping tags</title> |
|
| <para> |
<para> |
| |
|
| If you are storing HTML and/or PHP content in you database columns, you may want |
If you are storing HTML and/or PHP content in you database columns, you may want |
| Riadok 264 $opts['fdd']['col_name']['strip_tags'] = |
|
| Riadok 251 $opts['fdd']['col_name']['strip_tags'] = |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| </sect1> |
</sect1> |
| |
|
| Riadok 277 several ways to do this. A variety of me |
|
| Riadok 263 several ways to do this. A variety of me |
|
| |
|
| </para> |
</para> |
| |
|
| <!-- Subsections: Simple restriction | Table lookup | Column joining | Additional values --> |
<bridgehead>Simple restriction</bridgehead> |
| |
|
| <sect2><title>Simple restriction</title> |
|
| <para> |
<para> |
| |
|
| Simple restriction means to restrict user input to the specified constants. |
Simple restriction means to restrict user input to the specified constants. |
| Riadok 304 If a column type is SET or ENUM, the spe |
|
| Riadok 288 If a column type is SET or ENUM, the spe |
|
| multiple selection box in certain display modes (add, change, etc.). |
multiple selection box in certain display modes (add, change, etc.). |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2><title>Table lookup</title> |
<bridgehead>Table lookup</bridgehead> |
| <para> |
<para> |
| |
|
| Variables <varname>$opts['fdd']['col_name']['values']['table']</varname> and |
Variables <varname>$opts['fdd']['col_name']['values']['table']</varname> and |
| Riadok 325 $opts['fdd']['col_name']['values']['desc |
|
| Riadok 308 $opts['fdd']['col_name']['values']['desc |
|
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2><title>Column joining</title> |
<bridgehead>Column joining</bridgehead> |
| <para> |
<para> |
| |
|
| It is also possible to have multiple fields in your description. For example, |
It is also possible to have multiple fields in your description. For example, |
| Riadok 370 values using <varname>['filters']</>, an |
|
| Riadok 352 values using <varname>['filters']</>, an |
|
| <varname>['orderby']</>. |
<varname>['orderby']</>. |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2><title>Additional values</title> |
<bridgehead>Additional values</bridgehead> |
| <para> |
<para> |
| |
|
| Additional values to table lookup could be stored in |
Additional values to table lookup could be stored in |
| Riadok 402 select box for user. Usage of <varname>[ |
|
| Riadok 383 select box for user. Usage of <varname>[ |
|
| <varname>['values']</> usage. |
<varname>['values']</> usage. |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| </sect1> |
</sect1> |
| |
|
| <sect1 id="configuration.output-control"> |
<sect1 id="configuration.output-control"> |
| <title id="configuration.output-control.title">Output control</title> |
<title id="configuration.output-control.title">Output control</title> |
| |
|
| <sect2 id="configuration.width"> |
<bridgehead id="configuration.width">Field width</bridgehead> |
| <title id="configuration.width.title">Field width</title> |
|
| <para> |
<para> |
| |
|
| An optional display width specification for a column. |
An optional display width specification for a column. |
| Riadok 423 $opts['fdd']['col_name']['width'] = ($op |
|
| Riadok 402 $opts['fdd']['col_name']['width'] = ($op |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.maxlen"> |
<bridgehead id="configuration.maxlen">Maximum field length</bridgehead> |
| <title id="configuration.maxlen.title">Maximum field length</title> |
|
| <para> |
<para> |
| |
|
| <!-- OLD |
|
| Maximum length of input boxes displayed for add/edit/search records. |
|
| --> |
|
| |
|
| Maximum length of input boxes displayed for Add / Change record mode may be set |
Maximum length of input boxes displayed for Add / Change record mode may be set |
| as pixels (px). |
as pixels (px). |
| |
|
| Riadok 444 $opts['fdd']['col_name']['maxlen'] = '15 |
|
| Riadok 417 $opts['fdd']['col_name']['maxlen'] = '15 |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.textarea"> |
<bridgehead id="configuration.textarea">Textarea sizes</bridgehead> |
| <title id="configuration.textarea.title">Textarea sizes</title> |
|
| <para> |
<para> |
| |
|
| If the above setting does not work for you, you are probably attempting to |
If the above setting does not work for you, you are probably attempting to |
| Riadok 465 $opts['fdd']['col_name']['textarea']['co |
|
| Riadok 436 $opts['fdd']['col_name']['textarea']['co |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.trimlen"> |
<bridgehead id="configuration.trimlen">Character length limit</bridgehead> |
| <title id="configuration.trimlen.title">Character length limit</title> |
|
| <para> |
<para> |
| |
|
| <!-- OLD |
|
| Limit the number of characters displayed. This is useful when a table scrolls |
|
| off the screen because many columns contain long strings. |
|
| --> |
|
| |
|
| If a table contains a number of text columns which each contain quite a bit of |
If a table contains a number of text columns which each contain quite a bit of |
| text, the table will likely scroll off the screen. This can be prevented by |
text, the table will likely scroll off the screen. This can be prevented by |
| displaying only a portion of the content from a particular column. |
displaying only a portion of the content from a particular column. |
| Riadok 506 if (strlen($value) > $trimlen) { |
|
| Riadok 470 if (strlen($value) > $trimlen) { |
|
| </screen> |
</screen> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.nowrap"> |
<bridgehead id="configuration.nowrap">Wrapping</bridgehead> |
| <title id="configuration.nowrap.title">Wrapping</title> |
|
| <para> |
<para> |
| |
|
| The 'nowrap' option is essentially equivalent to the HTML markup <td nowrap>. |
The 'nowrap' option is essentially equivalent to the HTML markup <td nowrap>. |
| Riadok 522 $opts['fdd']['col_name']['nowrap'] = fal |
|
| Riadok 484 $opts['fdd']['col_name']['nowrap'] = fal |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.mask"> |
<bridgehead id="configuration.mask">Print mask</bridgehead> |
| <title id="configuration.mask.title">Print mask</title> |
|
| <para> |
<para> |
| |
|
| A string that is used by <function>sprintf()</> to format field output. For more |
A string that is used by <function>sprintf()</> to format field output. For more |
| Riadok 545 $opts['fdd']['col_name']['mask'] = '%.10 |
|
| Riadok 505 $opts['fdd']['col_name']['mask'] = '%.10 |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <!-- |
<!-- |
| <sect2 id="configuration.datemask"> |
<bridgehead id="configuration.datemask">Date mask</bridgehead> |
| <title id="configuration.datemask.title">Date mask</title> |
|
| <para> |
<para> |
| |
|
| A string that is used by PHP's <function>date()</> command to format date |
A string that is used by PHP's <function>date()</> command to format date |
| Riadok 567 $opts['fdd']['col_name']['datemask'] = ' |
|
| Riadok 525 $opts['fdd']['col_name']['datemask'] = ' |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| |
|
| <sect2 id="configuration.daterange"> |
<bridgehead id="configuration.daterange">Date range</bridgehead> |
| <title id="configuration.daterange.title">Date range</title> |
|
| <para> |
<para> |
| |
|
| A range of numbers which represent years. Examples include: |
A range of numbers which represent years. Examples include: |
| Riadok 586 $opts['fdd']['col_name']['daterange']['e |
|
| Riadok 542 $opts['fdd']['col_name']['daterange']['e |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| </sect2> |
|
| --> |
--> |
| |
|
| </sect1> |
</sect1> |
| Riadok 672 $opts['fdd']['col_name']['URLprefix'] = |
|
| Riadok 627 $opts['fdd']['col_name']['URLprefix'] = |
|
| <!-- ----- --> |
<!-- ----- --> |
| |
|
| <!-- |
<!-- |
| <sect2 id="configuration.calculated-expressions"> |
<bridgehead id="configuration.calculated-expressions"> |
| <title id="configuration.calculated-expressions.title">Calculated expressions</title> |
Calculated expressions</bridgehead> |
| <para> |
<para> |
| |
|
| <example><title>Calculated expressions</title> |
<example><title>Calculated expressions</title> |
| Riadok 708 All other options work as with other, no |
|
| Riadok 663 All other options work as with other, no |
|
| always read-only. |
always read-only. |
| |
|
| </para> |
</para> |
| </sect2> |
|
| --> |
--> |
| |
|