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



class DataMenuAuthentifizierung extends DataMenuMain
{
  
  var $mode;
  function __construct($pUrlparam)
  {
    parent::__construct($pUrlparam);
    $this->exportadapter = new ExpTeilnehmer();
  }
  
 
  function _getClickPath()
  {
    
    DataMenuMain::_getClickPath();
    
    if ($this->toolsettings->titleKursBereich != '') {
      $this->clickpfad = "<span class='clickadresse'>".' '.CleanOperations::cleanStringForHtml(stripslashes($this->toolsettings->titleKursBereich)).' '."</span>\n";
      $this->clickpfad .= "<span class='trennzeichen'>".' '.CleanOperations::cleanStringContainingHtml($this->toolsettings->trennzeichenKategorie).' '."</span>";
    }
    $this->clickpfad .= "<span class='clickadrbold'>Authentifizierung</span>\n";
    
    return $this->clickpfad;
  }
  
  function get2ndColumn()
  {
    $tmp = $this->sight;
    $this->getsight();
    $this->getdataarraynocolumn();
    $retour = $this->getnocolumn();
    $this->sight = $tmp;
    return $retour;
  }
    
  function mainmenu()
  { $this->prepareMainmenu();
    if ($this->toolsettings->showClickpfad)
      echo $this->getClickPath();
    if ($this->mode != AUTH_TECHPROBLEM)  {
      $this->showheader();
      $this->showbody();
      $this->showfooter();
    }
    
    
    else  {  
      $this->shownodata();
    }
  }
  
  
  function getheader()
  {
    
    $tmpexpadapter = $this->exportadapter;
    
    
    $this->getsight();
    $this->exportadapter = new ExpKurse();
    $retour = parent::getheader();
    
    $this->exportadapter = $tmpexpadapter;
    return $retour;
  }
  
  
  function getfooter()
  {
    
    $tmpexpadapter = $this->exportadapter;
    
    
    $this->getsight();
    $this->exportadapter = new ExpKurse();
    $retour = parent::getfooter();
    
    $this->exportadapter = $tmpexpadapter;
    return $retour;
  }
   
  
  
  function getdataarrayheader()
  {
    $this->dataarrayheader = array(WBKursStore::getKurs($this->urlparameter->knr));
  }


 
  function getdataarrayfooter()
  {
    $this->dataarrayfooter = array(WBKursStore::getKurs($this->urlparameter->knr));
  }
 
  
  function showheader()
  {
    echo "<div class='hauptseite_ohnestatus'>\n" . $this->getContentAnker();
    echo $this->getheader();
  }
  
  
  function showfooter()
  {
    echo $this->getfooter();
    echo "</div>\n\n";
  }

  
  function shownodata()
  {
    echo "<div class='hauptseite_ohnestatus'>\n" . $this->getContentAnker();
    DataMenu::shownodata();
    echo "</div>\n\n";
  }
  
  function getsight($sightid = 174)
  {
    parent::getsight($sightid);
  }
}
?>