function update_entry($_arg, $errorArray) { if ($id = session::get("show") or hyrarchy::errors($errorArray)) { $parentArray = thesaurus::get_descriptor($id); if (right::write() and session::get("edit")) { echo "<form method='get' name='descriptor' action='index.php'>"; // basic data form::descriptor($id, $parentArray[name], $errorArray[name]); form::comment($id, $parentArray[comment], $errorArray[comment]); // field(type,name,value,editable,size,format,prefix,postfix,help) echo form::field("submit", "", "speichern", "", "", "", "", "save"); echo form::field("hidden", "id", $id); echo form::field("hidden", "action", "update"); echo "</form>"; // links form::equivalent_links($id); form::hyrarchic_links($id); form::sub_links($id); form::assoc_links($id); } // display preview echo "<div id='preview'>"; export::descriptor($id, "", "SHOW"); echo "</div>"; } }