HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership.net (cms)/modules/FeedbackForm/classes/StaticTextInput.class.php
<?php
// Feedback Form. 02/2005 SjG <feedbackform_cmsmodule@fogbound.net>
// A Module for CMS Made Simple, (c)2005 by Ted Kulp (wishy@cmsmadesimple.org)
// This project's homepage is: http://www.cmsmadesimple.org

class ffStaticTextInput extends ffInput {

  function ffStaticTextInput(&$mod_globals, $formRef, &$params)
  {
    $this->ffInput($mod_globals, $formRef, $params);
    $this->Type = 'StaticTextInput';
    $this->DisplayType = $this->mod_globals->Lang('field_type_static_text');
    if (ffUtilityFunctions::def($params['text']))
      {
	$this->AddOption('text', 'text', $params['text']);
      }
    $this->ValidationTypes = array(
				   $this->mod_globals->Lang('validation_none')=>'none'
				   );
    $this->required = false;
    $this->specialInput = true;

  }

  function WriteToPublicForm($id, &$params, $return_id)
  {
    $textOpt = $this->GetOptionByKind('text');
    if (strlen($this->CSSClass)>0)
      {
	echo "<div class=\"".$this->CSSClass."\">";
      }
    echo ffUtilityFunctions::def($textOpt[0]->Value)?$textOpt[0]->Value:'';
    if (strlen($this->CSSClass)>0)
      {
	echo "</div>";
      }
  }


  function StatusInfo()
  {
    $textOpt = $this->GetOptionByKind('text');
    if (isset($textOpt[0]->Value))
      {
	$ret = strlen($textOpt[0]->Value);
      }
    else
      {
	$ret = '0';
      }
    $ret .= ' '.$this->mod_globals->Lang('chars');
    return $ret;
  }


  function RenderAdminForm($formDescriptor)
  {
    $module =& $this->mod_globals->selfptr;
    $textOpt = $this->GetOptionByKind('text');

    return array($this->mod_globals->Lang('title_static_text').':'=>
		 $module->CreateTextArea(false, $formDescriptor, ffUtilityFunctions::def($textOpt[0]->Value)?$this->NerfHTML($textOpt[0]->Value):'', 'text','pageheadtags')); 
            
  }


  function Validate()
  {
    return array(true, '');
  }

}

?>