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.4 and 1.5

version 1.4, 2002/12/06 23:13:21 version 1.5, 2002/12/11 23:36:52
Line 1 
Line 1 
 <!-- $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:
   
Line 42  $opts['fdd']['topic'] = array(
Line 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
Line 58  $opts['fdd']['col_name']['options'] = 'R
Line 61  $opts['fdd']['col_name']['options'] = 'R
 </example>  </example>
   
 </para>  </para>
   -->
 </sect1>  </sect1>
   
 <sect1 id="configuration.basic-options">  <sect1 id="configuration.basic-options">
Line 148  change, delete, list) are:
Line 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
Line 231  $opts['fdd']['col_name']['strip_tags'] =
Line 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>
   
Line 258  $opts['fdd']['col_name']['values'] = ran
Line 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>
Line 271  Variables <varname>$opts['fdd']['col_nam
Line 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.
   
Line 288  $opts['fdd']['col_name']['values']['desc
Line 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[
Line 323  $opts['fdd']['col_name']['values']['orde
Line 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>
Line 452  statement:
Line 456  statement:
 <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 &lt;td nowrap&gt;.  The 'nowrap' option is essentially equivalent to the HTML markup &lt;td nowrap&gt;.
   
 <example><title>Wrapping</title>  <example><title>Wrapping</title>
 <programlisting><![CDATA[  <programlisting><![CDATA[
Line 468  $opts['fdd']['col_name']['nowrap'] = fal
Line 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>
   
Line 570  To open a link in a new web browser wind
Line 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>
   
Line 581  To display alternative link text use:
Line 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>
   
Line 592  Old 3.5 behaviour is also supported via
Line 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>
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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