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

Diff for phpMyEdit/extensions/Attic/phpMyEdit-calpopup.class.php between version 1.6 and 1.7

version 1.6, 2004/01/16 19:46:33 version 1.7, 2004/03/20 12:15:40
Line 17 
Line 17 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/extensions/phpMyEdit-calpopup.class.php,v 1.5 2004/01/03 02:04:21 nepto Exp $ */  /* $Platon: phpMyEdit/extensions/phpMyEdit-calpopup.class.php,v 1.6 2004/01/16 19:46:33 nepto Exp $ */
   
 /*  /*
     OVERVIEW      OVERVIEW
Line 103 
Line 103 
          'required' => true,           'required' => true,
          'calendar' => array(           'calendar' => array(
            'ifFormat'    => '%Y/%m/%d', // defaults to the ['strftimemask']             'ifFormat'    => '%Y/%m/%d', // defaults to the ['strftimemask']
              'firstDay'    => 1,          // 0 = Sunday, 1 = Monday
            'singleClick' => true,       // single or double click to close             'singleClick' => true,       // single or double click to close
            'mondayFirst' => true,       // Sunday or Monday first  
            'weekNumbers' => true,       // Show week numbers             'weekNumbers' => true,       // Show week numbers
            'showsTime'   => false,      // Show time as well as date             'showsTime'   => false,      // Show time as well as date
            'timeFormat'  => '24',       // 12 or 24 hour clock             'timeFormat'  => '24',       // 12 or 24 hour clock
Line 144  class phpMyEdit_calpopup extends phpMyEd
Line 144  class phpMyEdit_calpopup extends phpMyEd
   
         /* Array of valid options for passing to Calendar.setup */          /* Array of valid options for passing to Calendar.setup */
         var $valid_opts = array(          var $valid_opts = array(
                         'button','ifFormat','singleClick','mondayFirst',                          'button','ifFormat','singleClick','firstDay',
                         'weekNumbers','showsTime','timeFormat','date'                          'weekNumbers','showsTime','timeFormat','date'
                         );                          );
   
Line 239  class phpMyEdit_calpopup extends phpMyEd
Line 239  class phpMyEdit_calpopup extends phpMyEd
                                 // Simple edit box required                                  // Simple edit box required
                                 $size_ml_props = '';                                  $size_ml_props = '';
                                 $maxlen = intval($this->fdd[$k]['maxlen']);                                  $maxlen = intval($this->fdd[$k]['maxlen']);
                                 //$maxlen > 0 || $maxlen = 300;                                  $size   = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60);
                                 $size   = min($maxlen, 60);  
                                 $size   && $size_ml_props .= ' size="'.$size.'"';                                  $size   && $size_ml_props .= ' size="'.$size.'"';
                                 $maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"';                                  $maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"';
   
Line 302  class phpMyEdit_calpopup extends phpMyEd
Line 301  class phpMyEdit_calpopup extends phpMyEd
                 } else {                  } else {
                         $size_ml_props = '';                          $size_ml_props = '';
                         $maxlen = intval($this->fdd[$k]['maxlen']);                          $maxlen = intval($this->fdd[$k]['maxlen']);
                         //$maxlen > 0 || $maxlen = 300;                          $size   = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60);
                         $size   = min($maxlen, 60);  
                         $size   && $size_ml_props .= ' size="'.$size.'"';                          $size   && $size_ml_props .= ' size="'.$size.'"';
                         $maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"';                          $maxlen && $size_ml_props .= ' maxlength="'.$maxlen.'"';
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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