/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldSize'] = isc_html_escape($this->extraInfo['size']); $GLOBALS['FormFieldMaxLength'] = isc_html_escape($this->extraInfo['maxlength']); $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); if ($this->extraInfo['limitfrom'] !== '') { $GLOBALS['FormFieldLimitFrom'] = (int) $this->extraInfo['limitfrom']; } if ($this->extraInfo['limitto'] !== '') { $GLOBALS['FormFieldLimitTo'] = (int) $this->extraInfo['limitto']; } if ($this->extraInfo['defaultvalue'] !== '') { $GLOBALS['FormFieldDefaultValue'] = (int) $this->extraInfo['defaultvalue']; } return parent::buildForBackend(); }
/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldDefaultValue'] = isc_html_escape($this->extraInfo['defaultvalue']); $GLOBALS['FormFieldSize'] = isc_html_escape($this->extraInfo['size']); $GLOBALS['FormFieldMaxLength'] = isc_html_escape($this->extraInfo['maxlength']); $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); return parent::buildForBackend(); }
/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldSize'] = isc_html_escape($this->extraInfo['size']); $GLOBALS['FormFieldMaxLength'] = isc_html_escape($this->extraInfo['maxlength']); $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); $GLOBALS['FormFieldChoosePrefix'] = isc_html_escape($this->extraInfo['chooseprefix']); $GLOBALS['FormFieldSelectOptions'] = trim(implode("\n", $this->extraInfo['options'])); return parent::buildForBackend(); }
/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); $GLOBALS['FormFieldOptions'] = implode("\n", $this->extraInfo['options']); return parent::buildForBackend(); }
/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldRows'] = isc_html_escape($this->extraInfo['rows']); $GLOBALS['FormFieldCols'] = isc_html_escape($this->extraInfo['cols']); $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); $GLOBALS['FormFieldDefaultValue'] = isc_html_escape($this->extraInfo['defaultvalue']); return parent::buildForBackend(); }
/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $defaultValue = explode('-', $this->extraInfo['defaultvalue']); $limitFrom = explode('-', $this->extraInfo['limitfrom']); $limitTo = explode('-', $this->extraInfo['limitto']); $year = date('Y'); $GLOBALS['FormFieldDateDefaultValueDays'] = '<option value="">--</option>'; $GLOBALS['FormFieldDateLimitFromDays'] = '<option value="">--</option>'; $GLOBALS['FormFieldDateLimitToDays'] = '<option value="">--</option>'; for ($i=1; $i<=31; $i++) { if (isset($defaultValue[2]) && (int)$defaultValue[2] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateDefaultValueDays'] .= '<option value="' . (int)$i . '"' . $selected . '>' . (int)$i . '</option>'; if (isset($limitFrom[2]) && (int)$limitFrom[2] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateLimitFromDays'] .= '<option value="' . (int)$i . '"' . $selected . '>' . (int)$i . '</option>'; if (isset($limitTo[2]) && (int)$limitTo[2] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateLimitToDays'] .= '<option value="' . (int)$i . '"' . $selected . '>' . (int)$i . '</option>'; } $GLOBALS['FormFieldDateDefaultValueMonths'] = '<option value="">---</option>'; $GLOBALS['FormFieldDateLimitFromMonths'] = '<option value="">---</option>'; $GLOBALS['FormFieldDateLimitToMonths'] = '<option value="">---</option>'; for ($i=1; $i<=12; $i++) { if (isset($defaultValue[1]) && (int)$defaultValue[1] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateDefaultValueMonths'] .= '<option value="' . (int)$i . '"' . $selected . '>' . isc_html_escape(date('M', mktime(1,1,1,$i,1,$year))) . '</option>'; if (isset($limitFrom[1]) && (int)$limitFrom[1] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateLimitFromMonths'] .= '<option value="' . (int)$i . '"' . $selected . '>' . isc_html_escape(date('M', mktime(1,1,1,$i,1,$year))) . '</option>'; if (isset($limitTo[1]) && (int)$limitTo[1] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateLimitToMonths'] .= '<option value="' . (int)$i . '"' . $selected . '>' . isc_html_escape(date('M', mktime(1,1,1,$i,1,$year))) . '</option>'; } $GLOBALS['FormFieldDateDefaultValueYears'] = '<option value="">----</option>'; $GLOBALS['FormFieldDateLimitFromYears'] = '<option value="">----</option>'; $GLOBALS['FormFieldDateLimitToYears'] = '<option value="">----</option>'; for ($i=($year-50); $i<=($year+50); $i++) { if (isset($defaultValue[0]) && (int)$defaultValue[0] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateDefaultValueYears'] .= '<option value="' . (int)$i . '"' . $selected . '>' . (int)$i . '</option>'; if (isset($limitFrom[0]) && (int)$limitFrom[0] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateLimitFromYears'] .= '<option value="' . (int)$i . '"' . $selected . '>' . (int)$i . '</option>'; if (isset($limitTo[0]) && (int)$limitTo[0] == $i) { $selected = ' SELECTED'; } else { $selected = ''; } $GLOBALS['FormFieldDateLimitToYears'] .= '<option value="' . (int)$i . '"' . $selected . '>' . (int)$i . '</option>'; } $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); return parent::buildForBackend(); }