library/core/class.form.php
public function Calendar($FieldName, $Attributes = FALSE) {
      // TODO: CREATE A CALENDAR HELPER CLASS AND LOAD/REFERENCE IT HERE.
      // THE CLASS SHOULD BE DECLARED WITH:
      //  if (!class_exists('Calendar') {
      // AT THE BEGINNING SO OTHERS CAN OVERRIDE THE DEFAULT CALENDAR WITH ONE
      // OF THEIR OWN.
      $Class = ArrayValueI(
         'class', $Attributes, FALSE);
      if ($Class === FALSE) $Attributes['class'] = 'DateBox';

      // IN THE MEANTIME...
      return $this->Input($FieldName, 'text', $Attributes);
   }
public function Calendar($FieldName, $Attributes = FALSE) {
      // TODO: CREATE A CALENDAR HELPER CLASS AND LOAD/REFERENCE IT HERE.
      // THE CLASS SHOULD BE DECLARED WITH:
      //  if (!class_exists('Calendar') {
      // AT THE BEGINNING SO OTHERS CAN OVERRIDE THE DEFAULT CALENDAR WITH ONE
      // OF THEIR OWN.
      $Class = ArrayValueI(
         'class', $Attributes, FALSE);
      if ($Class === FALSE) $Attributes['class'] = 'DateBox';

      // IN THE MEANTIME...
      return $this->Input($FieldName, 'text', $Attributes);
   }
public function Calendar ( $ FieldName , $ Attributes = FALSE ) { // TODO: CREATE A CALENDAR HELPER CLASS AND LOAD/REFERENCE IT HERE. // THE CLASS SHOULD BE DECLARED WITH: //  if (!class_exists('Calendar') { // AT THE BEGINNING SO OTHERS CAN OVERRIDE THE DEFAULT CALENDAR WITH ONE // OF THEIR OWN. $ Class = ArrayValueI ( 'class' , $ Attributes , FALSE ) ; if ( $ Class === FALSE ) $ Attributes [ 'class' ] = 'DateBox' ; // IN THE MEANTIME... return $ this -> Input ( $ FieldName , 'text' , $ Attributes ) ; }
Returns XHTML for a standard calendar input control.

@param string $FieldName The name of the field that is being displayed/posted with this input. It
should related directly to a field name in $this->_DataArray.
@param array $Attributes An associative array of attributes for the input. ie. onclick, class, etc
@return string
@todo Create calendar helper
Returns XHTML for a standard calendar input control .