Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for phpMyEdit/doc/sgml/configuration.fields.sgml between version 1.14 and 1.15

version 1.14, 2003/01/26 12:37:21 version 1.15, 2003/02/07 12:36:25
Line 1 
Line 1 
 <!-- $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:
   
Line 105  $opts['fdd']['col_name']['options'] = 'R
Line 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
Line 124  $opts['fdd']['topic']['name'] = 'Subject
Line 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
Line 137  changed. Type 'int' is most common as th
Line 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
Line 156  $opts['fdd']['col_name']['select'] = 'M'
Line 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,
Line 199  $opts['fdd']['col_name']['options'] = 'R
Line 192  $opts['fdd']['col_name']['options'] = 'R
 </example>  </example>
   
 </para>  </para>
 </sect2>  
   
 </sect1>  </sect1>
   
Line 212  All variables in following section shoul
Line 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
Line 228  $opts['fdd']['col_name']['required'] = f
Line 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"
Line 245  $opts['fdd']['col_name']['sort'] = false
Line 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
Line 264  $opts['fdd']['col_name']['strip_tags'] =
Line 251  $opts['fdd']['col_name']['strip_tags'] =
 </example>  </example>
   
 </para>  </para>
 </sect2>  
   
 </sect1>  </sect1>
   
Line 277  several ways to do this. A variety of me
Line 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.
Line 304  If a column type is SET or ENUM, the spe
Line 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
Line 325  $opts['fdd']['col_name']['values']['desc
Line 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,
Line 370  values using <varname>['filters']</>, an
Line 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
Line 402  select box for user. Usage of <varname>[
Line 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.
Line 423  $opts['fdd']['col_name']['width'] = ($op
Line 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).
   
Line 444  $opts['fdd']['col_name']['maxlen'] = '15
Line 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
Line 465  $opts['fdd']['col_name']['textarea']['co
Line 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.
Line 506  if (strlen($value) > $trimlen) {
Line 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 &lt;td nowrap&gt;.  The 'nowrap' option is essentially equivalent to the HTML markup &lt;td nowrap&gt;.
Line 522  $opts['fdd']['col_name']['nowrap'] = fal
Line 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
Line 545  $opts['fdd']['col_name']['mask'] = '%.10
Line 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
Line 567  $opts['fdd']['col_name']['datemask'] = '
Line 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:
Line 586  $opts['fdd']['col_name']['daterange']['e
Line 542  $opts['fdd']['col_name']['daterange']['e
 </example>  </example>
   
 </para>  </para>
 </sect2>  
 -->  -->
   
 </sect1>  </sect1>
Line 672  $opts['fdd']['col_name']['URLprefix'] =
Line 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>
Line 708  All other options work as with other, no
Line 663  All other options work as with other, no
 always read-only.  always read-only.
   
 </para>  </para>
 </sect2>  
 -->  -->
   

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top