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

 


class MenuPunkt4NewPw extends MenuPunkt
{
 
  function __construct($pBeschriftung = '', $pAccessKey = '')
  {
    $this->beschriftung = $pBeschriftung;
    $this->accesskey = $pAccessKey;
  } 
  
  
  function createButton($buttonWidth = 150)
  {
    $buttonWidth = ($buttonWidth < 150)?150:$buttonWidth;
    if (defined('ISWEBADMIN') && ISWEBADMIN) {
      $result = ' <span class="backgroundButton text_left_menu glass" style="width: 230px;">'.CleanOperations::cleanStringForHtml($this->getBeschriftung()).'</span>';
    } else {
      $result = '<img alt="" style="width: '.$buttonWidth.'px;" src="layout/button_background.gif">';
      $result .= '<span class="text_left_menu" style="width:'.$buttonWidth.'px">'.$this->getBeschriftung().'</span>';
    }
    return $result;
  }
  
  
  function getBeschriftung()
  {
    if($this->beschriftung != '')
      return $this->beschriftung;
    else
      return 'Neues Passwort anfordern';
  }
  
  
  function getType()
  {
    return 'password';
  }
  
  
  function getLink()
  {
    
    $allgSettings = AllgSettingsAPI::getAllgSettings();
    return 'reminder.php';
  }
  
}
?>