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

Diff for phpMyEdit/extensions/phpMyEdit-mce-cal.class.php between version 1.1 and 1.2

version 1.1, 2005/04/20 21:13:15 version 1.2, 2005/07/18 21:25:56
Line 232 
Line 232 
            '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
              'button'      => true,       // Display button (rather then clickable area)
                    'label'       => '...',      // button label (used by phpMyEdit)                     'label'       => '...',      // button label (used by phpMyEdit)
            'date'        => '2003-12-19 10:00' // Initial date/time for popup             'date'        => '2003-12-19 10:00' // Initial date/time for popup
                                                // (see notes below)                                                 // (see notes below)
Line 249 
Line 250 
   
     2. Only the options listed above may be set by the user, any other      2. Only the options listed above may be set by the user, any other
        options will be ignored.         options will be ignored.
   
           3. The 'label' option can contain HTML markup which will be displayed as
              the button/clickable area to pull up the calendar
   
     SEARCH KEYWORD      SEARCH KEYWORD
     --------------      --------------
Line 303  class phpMyEdit_mce_cal extends phpMyEdi
Line 307  class phpMyEdit_mce_cal extends phpMyEdi
                         }                          }
                         $cal_ar['button'] = $this->dhtml['prefix'].'calbutton_'.$this->fds[$k];                          $cal_ar['button'] = $this->dhtml['prefix'].'calbutton_'.$this->fds[$k];
                         $this->calendars[$this->fds[$k]] = $cal_ar;                          $this->calendars[$this->fds[$k]] = $cal_ar;
   
                         $label = @$this->fdd[$k]['calendar']['label'];                          $label = @$this->fdd[$k]['calendar']['label'];
                         strlen($label) || $label = '...';                          strlen($label) || $label = '...';
                         echo '<button id="',$cal_ar['button'],'">',$label,'</button>';  
                           $do_button = true;
                           if (isset($this->fdd[$k]['calendar']['button'])) {
                                   $do_button = $this->fdd[$k]['calendar']['button'];
                           };
   
                           if ($do_button) {
                   echo '<button id="',$cal_ar['button'],'">',$label,'</button>';
                           } else {
                                   echo '<span style="cursor: pointer" id="',$cal_ar['button'],'">',$label,'</span>';
                           }
                 }                  }
         } /* }}} */          } /* }}} */
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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