Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for phpMyEdit/phpMyEditSetup.php between version 1.20 and 1.21

version 1.20, 2003/03/26 18:41:18 version 1.21, 2003/03/29 01:41:28
Line 19 
Line 19 
  * http://www.platon.sk/projects/phpMyEdit/   * http://www.platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEditSetup.php,v 1.19 2003/03/25 21:48:10 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEditSetup.php,v 1.20 2003/03/26 18:41:18 nepto Exp $ */
   
 ?>  ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 98  if ((!$dbl) or empty($submit)) {
Line 98  if ((!$dbl) or empty($submit)) {
         if (!empty($submit)) {          if (!empty($submit)) {
                 echo '<h2>Sorry - login failed - please try again</h2>'."\n";                  echo '<h2>Sorry - login failed - please try again</h2>'."\n";
         }          }
           if (! isset($hn)) {
                   $hn = 'localhost';
           }
         echo '          echo '
                 <form action="'.htmlspecialchars($self).'" method="POST">                  <form action="'.htmlspecialchars($self).'" method="POST">
                 <table border="1" cellpadding="1" cellspacing="0" summary="Login form">                  <table border="1" cellpadding="1" cellspacing="0" summary="Login form">
Line 286  Fields will be displayed left to right o
Line 289  Fields will be displayed left to right o
 appear in generated list. Here are some most used field options documented.  appear in generated list. Here are some most used field options documented.
   
 ['name'] is the title used for column headings, etc.;  ['name'] is the title used for column headings, etc.;
 ['type'] is generated by setup script and indicates the mysql field type  
          best not edited  
 ['maxlen'] maximum length to display add/edit/search input boxes  ['maxlen'] maximum length to display add/edit/search input boxes
 ['trimlen'] maximum length of string content to display in row listing  ['trimlen'] maximum length of string content to display in row listing
 ['width'] is an optional display width specification for the column  ['width'] is an optional display width specification for the column
Line 297  appear in generated list. Here are some
Line 298  appear in generated list. Here are some
 ['strip_tags'] true or false; whether to strip tags from content  ['strip_tags'] true or false; whether to strip tags from content
 ['nowrap'] true or false; whether this field should get a NOWRAP  ['nowrap'] true or false; whether this field should get a NOWRAP
 ['required'] true or false; if generate javascript to prevent null entries  ['required'] true or false; if generate javascript to prevent null entries
 ['select'] T - text, D - drop-down, M - multiple selection for filters  ['select'] T - text, N - numeric, D - drop-down, M - multiple selection
            if a column is a SET type, then this is automatically 'M'  
 ['options'] optional parameter to control whether a field is displayed  ['options'] optional parameter to control whether a field is displayed
   L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view    L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view
             Another flags are:              Another flags are:
Line 337  appear in generated list. Here are some
Line 337  appear in generated list. Here are some
                 echo_buffer('$opts[\'fdd\'][\''.$fd.'\'] = array('); // )                  echo_buffer('$opts[\'fdd\'][\''.$fd.'\'] = array('); // )
                 echo_buffer("  'name'     => '".str_replace('\'','\\\'',$fn)."',");                  echo_buffer("  'name'     => '".str_replace('\'','\\\'',$fn)."',");
                 if (substr($row[1],0,3) == 'set') {                  if (substr($row[1],0,3) == 'set') {
                         echo_buffer("  'type'     => 'set',");  
                         echo_buffer("  'select'   => 'M',");                          echo_buffer("  'select'   => 'M',");
                 } else {                  } else {
                         echo_buffer("  'type'     => '".@mysql_field_type($fds,$k)."',");  
                         echo_buffer("  'select'   => 'T',");                          echo_buffer("  'select'   => 'T',");
                 }                  }
                 // timestamps are read-only                  // timestamps are read-only
Line 354  appear in generated list. Here are some
Line 352  appear in generated list. Here are some
                 echo_buffer("  'sort'     => true,");                  echo_buffer("  'sort'     => true,");
                 echo_buffer("  'nowrap'   => false,");                  echo_buffer("  'nowrap'   => false,");
                 // blobs -> textarea                  // blobs -> textarea
                 if (@mysql_field_type($fds,$k)=='blob') {                  if (@mysql_field_type($fds,$k) == 'blob') {
                         echo_buffer("  'textarea' => array(");                          echo_buffer("  'textarea' => array(");
                         echo_buffer("    'rows' => 5,");                          echo_buffer("    'rows' => 5,");
                         echo_buffer("    'cols' => 50),");                          echo_buffer("    'cols' => 50),");

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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