Region $repository = remositoryRepository::getInstance(); $types = explode(',', $repository->Classification_Types); $optionhtml = ''; foreach ($types as $onetype ) { $onetype = trim($onetype); $check = $onetype == $type ? 'selected="selected"' : ''; $optionhtml .= <<$onetype TYPE_CHOICE; } return << $optionhtml TYPE_CHOICE; } function selectList ($title, $selector) { $this->inputTop ($title, false); ?> hidden) ? "checked='checked'" : ''; $heading = _DOWN_DISPLAY_LISTS; echo << $heading  HIDDEN_BOX; } function startForm () { $tabclass_arr = $this->repository->getTableClasses(); echo << START_FORM; } function view (&$classification) { $this->commonScripts('description'); $this->startForm(); $this->publishedBox($classification); $this->fileInputBox(_DOWN_CLASSIFICATION_NAME.':', 'name', $classification->name, 50); $this->hiddenBox($classification); $this->selectList(_DOWN_TYPE.':', $this->chooseType($classification->type)); $this->fileInputBox(_DOWN_FREQUENCY.':','frequency',$classification->frequency,20); $this->fileInputArea(_DOWN_DESC, _DOWN_DESC_MAX, 'description', $classification->description, 50, 100, true); $this->editFormEnd ($classification->id, 0); } }