"; $table .= ' '.$this->oLang->texts['MATERIAL_ID'].' '.$this->oLang->texts['NAME'].' '.$this->oLang->texts['LOCATION'].' '.$this->oLang->texts['STATUS'].''; $table .=' '.$this->oLang->texts['BUTTON_CHANGE'].' '.$this->oLang->texts['BUTTON_DELETE'].''; $table .=''; foreach ($this->aMaterial as $material_ID => $aResult) { if($aResult['lent'] == 0){ $sClass= "available"; $sStatus= $this->oLang->texts['STATUS_AVAILABLE']; } else{ $sClass = "lent"; $sStatus = $this->oLang->texts['STATUS_LENT']; } $table .= ' '.$aResult['material_ID'].' '.$aResult['name'].' '.$aResult['location'].' '.$sStatus; $table .= ' '.$this->oLang->texts['BUTTON_CHANGE'].' '.$this->oLang->texts['BUTTON_DELETE'].' '; } $table .=""; echo $table; $form = '
oLang->texts['NEW_MATERIAL'].'">
'; echo $form; ?>