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




class KurssucheFormularSightExtendedDiv extends KurssucheFormularSightExtended
{
  
  public function getTable()
  {
    return NormaldetailsSight::getTable();
  }

  
  public function createSight()
  {
    $this->clear();
    
    $this->getColumns(false);
    $this->getData();
    
    
    $this->sight .= $this->getTable();
    
    if ($this->printmodus) {
      $this->sight = '';
    }
  }

  
  public function getTableRowContent($rowindex, $colindex)
  {
    switch ($this->dataary[$colindex]->fieldname) {
      default:
        $str = parent::getTableRowContent($rowindex, $colindex);
        break;
      case 'kursbeginnzeitraum':

          $str
                = "<table width='100%' cellspacing='0' cellpadding='0'>"
                . '  <tr>'
                . '    <td class="search_kursbeginn_von">'
                . "      <input type='text' size='" . CleanOperations::cleanStringForHtml($this->dataary[$colindex]->width) . "' class='hasDatePicker' name='search_kursbeginnzeitraum_von' value='" . CleanOperations::cleanStringForHtml(SessionOperations::getVarValueWTIntern('ssearch_kursbeginnzeitraum_von' . $this->getToolExt())) . "'>"
                . '    </td>'
                . "    <td align='right' class=\"search_kursbeginn_bis\">"
                . "      <input type='text' size='" . CleanOperations::cleanStringForHtml($this->dataary[$colindex]->width) . "' class='hasDatePicker' name='search_kursbeginnzeitraum_bis' value='" . CleanOperations::cleanStringForHtml(SessionOperations::getVarValueWTIntern('ssearch_kursbeginnzeitraum_bis' . $this->getToolExt())) . "'>"
                . '    </td>'
                . '  </tr>'
                . '</table>';
          break;
    } 

    return $str;
  }
}