function edit_options() { $context = $_GET['editoptions']; $options_table = $this->options_table ? $this->options_table : $this->table . ">Options"; $edit_options_scaff = new Scaffold($options_table, $this->connection); //$edit_options_scaff->connection->debug = true; $edit_options_scaff->edit_enabled = true; $edit_options_scaff->options_editor = true; $edit_options_scaff->show_buttons_above_form = false; $edit_options_scaff->cols_array['Context']['value'] = $context; $edit_options_scaff->cols_array['Context']['type'] = 'hidden'; $edit_options_scaff->sql = "SELECT * FROM `{$edit_options_scaff->table}` WHERE `Context` = '{$context}'"; return $edit_options_scaff->make_table(null, INSTALL_PATH . '/System/Scaffold/EditOptions.table.template.html'); }