<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */


class PageSmsAnKursort extends PageKontaktSms
{
  
  public function __construct(
    $pPageTitle,
    $pPageId,
    $pTool,
    $pUeberschrift,
    $pBetreff,
    $pInhaltLabel,
    $pInhalt,
    $pZeigeBetreff = false,
    $pErrorMessage = '',
    $pSuccessMessage = '',
    $pMaxLength = 160
  ) {
    parent::__construct(
      $pPageTitle,
      $pPageId,
      $pTool,
      $pUeberschrift,
      $pBetreff,
      $pInhaltLabel,
      $pInhalt,
      $pErrorMessage,
      $pSuccessMessage,
      $pMaxLength,
      $pZeigeBetreff
    );
  }

  
  

  
  protected function _getSonstigenFormularinhalt()
  {
    return $this->_getMessages();
  }

  
  protected function _getButtons()
  {
    $buttons = $this->_getSendButton();

    
    $buttons .= HTMLOperations::CreateBackButton($this->links['back']);

    return $buttons;
  }

  
  protected function _getInfoOrBetreff()
  {
    $result = '';
    if ($this->zeigeBetreff) {
      $result .= '<div class="betreff"><b>Hinweis:</b> ' . $this->_betreff . '</div>';
    }

    return $result;
  }

  
}