".$this->Lang("showonly")." ".$this->CreateInputDropdown($id, "showonly", array_flip($desttypes), -1, '-'); echo $this->Lang("attachedto")." ".$this->CreateInputDropdown($id, "showonly2", array_flip($srctypes), -1, '-'); echo $this->CreateInputHidden($id, "active_tab", "attachments"); echo " ".$this->CreateInputSubmit($id, "submit", lang("submit"))."
".$this->CreateLink($id, "defaultadmin", $returnid, $this->Lang("showall"), array("active_tab" => "attachments"))."
".$this->Lang("searchthistable").' '.$this->CreateInputText($id, "innersearch", "", 10, 64, ' onkeyup="ctlmm_search(this.value,\'attachmentlist\');"')."
".$this->CreateLink($id, "addAttachment", $returnid, $admintheme->DisplayImage("icons/system/newobject.gif", "","","","systemicon")." ".$this->Lang("add_attachment"))."
".$this->Lang("defaulttemplate").":
".$this->CreateInputDropdown($id,"template",$tploptions,-1,$defaulttemplate)." ".$this->CreateInputSubmit($id, "submit", lang("submit"))."
".$this->CreateLink($id, "editTemplate", $returnid, $admintheme->DisplayImage("icons/system/newobject.gif", "","","","systemicon")." ".$this->Lang("addtemplate"))."
".$this->CreateLink($id, "editType", $returnid, $admintheme->DisplayImage("icons/system/newobject.gif", "","","","systemicon")." ".$this->Lang("add_restype"))."