diff --git a/forms/RestrictedTextField.php b/forms/RestrictedTextField.php deleted file mode 100755 index 8516cb930..000000000 --- a/forms/RestrictedTextField.php +++ /dev/null @@ -1,30 +0,0 @@ -restrictedChars = $restrictedChars; - parent::__construct($name, $title, $value); - } - - function Field() { - Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang'); - Requirements::javascript( SAPPHIRE_DIR . '/javascript/UniqueFields.js' ); - - if($this->maxLength){ - $field = "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" maxlength=\"$this->maxLength\" />"; - }else{ - $field = "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" />"; - } - - return $field."id()."]\" id=\"".$this->id()."-restricted-chars\" value=\"".$this->restrictedChars."\" />"; - } -} -?> \ No newline at end of file diff --git a/forms/UniqueRestrictedTextField.php b/forms/UniqueRestrictedTextField.php deleted file mode 100755 index e294ba5fc..000000000 --- a/forms/UniqueRestrictedTextField.php +++ /dev/null @@ -1,27 +0,0 @@ -charRegex = $charRegex; - $this->charReplacement = $charReplacement; - $this->charMessage = $charMessage; - - parent::__construct($name, $restrictedField, $restrictedTable, $restrictedMessage, $title, $value, $maxLength); - } - - function Field() { - return parent::Field()."id()."]\" id=\"".$this->id()."-restricted-chars\" value=\"".$this->charRegex."\" />id()."]\" id=\"".$this->id()."-restricted-chars-replace\" value=\"".$this->charReplacement."\" />id()."]\" id=\"".$this->id()."-restricted-chars-message\" value=\"".$this->charMessage."\" />"; - } -} -?> \ No newline at end of file